diff options
Diffstat (limited to 'stats')
| -rw-r--r-- | stats/index.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/stats/index.php b/stats/index.php index eb17786..a0373fc 100644 --- a/stats/index.php +++ b/stats/index.php @@ -21,7 +21,8 @@ } } </style> - <?php include($_SERVER['DOCUMENT_ROOT'] . '/seasonal.php'); ?> + <?php include($_SERVER['DOCUMENT_ROOT'] . '/seasonal.php'); + include($_SERVER['DOCUMENT_ROOT'] . '/common.php'); ?> </head> <body> <?php include($_SERVER['DOCUMENT_ROOT'] . '/nav.php'); bg(); ?> @@ -161,9 +162,9 @@ <td title="Since this bit was added, anyway">Page views</td> <td> <?php - $num = (int) filter_var(file_get_contents("views.txt"), FILTER_SANITIZE_NUMBER_INT); + $num = (int) filter_var(file_get_contents($datadir."stats_views.txt"), FILTER_SANITIZE_NUMBER_INT); $num++; - file_put_contents("views.txt", $num); + file_put_contents($datadir."stats_views.txt", $num); echo $num; ?> </td> |
