diff options
Diffstat (limited to 'txt/index.php')
| -rwxr-xr-x | txt/index.php | 5 |
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"); |
