diff options
| author | David Aspinall | 2000-09-28 15:01:50 +0000 |
|---|---|---|
| committer | David Aspinall | 2000-09-28 15:01:50 +0000 |
| commit | bd7aa7923a25d16207842f9f3d6b773c2fc6fa58 (patch) | |
| tree | 8f5733bf63e8c880e65472b3ebf745b1026698e3 /html/hits.html | |
| parent | 2c253444d0b93cf7628ab030e6a5f1ad24fa20fd (diff) | |
Renamed file
Diffstat (limited to 'html/hits.html')
| -rw-r--r-- | html/hits.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/html/hits.html b/html/hits.html new file mode 100644 index 00000000..6d5c2be6 --- /dev/null +++ b/html/hits.html @@ -0,0 +1,26 @@ +<?php + $counterFile = "counter.txt"; + $counterStart = "counterstart.txt"; + $maxlen=10; + require('functions.php3'); + small_header("Hit counter"); + print "<p>"; + if (is_readable($counterFile)) { + print "These pages have been accessed "; + readfile($counterFile); + print " times "; + if (is_readable($counterStart)) { + $fp=fopen($counterStart,"r"); + $start=fgets($fp,20); + print "since "; + print strftime("%d %B %Y",$start); + print ".\n"; + } else { + print "<br>\n(could not access time stamp file $counterStart)\n"; + }; + } else { + echo "Could not access hit counter file $counterFile\n"; + }; + print "</p>"; + footer(); +?> |
