Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- error_reporting(0);
- header('HTTP/1.1 204 No Content');
- header('Content-Length: 0',true);
- header('Content-Type: application/javascript',true);
- header('Cache-Control: max-age=0');
- header('Expires: Sun, 09 Sep 1980 16:29:29 GMT');
- flush();
- if (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false)
- {
- }
- else {
- if (file_exists('/home/yair/count_file.txt'))
- {
- $fil = fopen('/home/yair/count_file.txt', r);
- $dat = fread($fil, filesize('/home/yair/count_file.txt'));
- echo $dat+1;
- fclose($fil);
- $fil = fopen('/home/yair/count_file.txt', w);
- fwrite($fil, $dat+1);
- }
- }
- if (file_exists('/home/yair/count_all.txt'))
- {
- $full = fopen('/home/yair/count_all.txt', r);
- $dato = fread($full, filesize('/home/yair/count_all.txt'));
- echo $dato+1;
- fclose($full);
- $full = fopen('/home/yair/count_all.txt', w);
- fwrite($full, $dato+1);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement