aboutsummaryrefslogtreecommitdiff
path: root/txt/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'txt/index.php')
-rwxr-xr-xtxt/index.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/txt/index.php b/txt/index.php
index 7c8006e..8cfb5b9 100755
--- a/txt/index.php
+++ b/txt/index.php
@@ -14,9 +14,8 @@
<p>$ cat sys.log</p>
<section class="dir">
<?php
- $infile = fopen("sys.log", "r") or die("file read error -_-");
- $content = fread($infile,filesize("sys.log"));
- fclose($infile);
+ $fp = "/var/www/data/deeptwisty/sys.log";
+ $content = file_get_contents($fp);
$post_arr = explode("\n",$content);
$posts_out = "";
date_default_timezone_set("Etc/GMT-1");