File tree 2 files changed +4
-11
lines changed
2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change
1
+ <!-- your counter script here -->
Original file line number Diff line number Diff line change 1
1
<?php
2
- $ incscript = " <!-- your counter script here --> \n" ;
2
+ $ incscript = file_get_contents ( ' counter.txt ' ) ;
3
3
4
4
if (!isset ($ page )) $ page = (isset ($ _GET ['page ' ]) ? $ _GET ['page ' ] : '' );
5
5
if ($ page == '' ) $ page = 'index ' ;
28
28
$ content = str_replace ('%var_lon% ' , $ lon , $ content );
29
29
$ content = str_replace ('%var_rad% ' , $ rad , $ content );
30
30
31
- if (strpos ($ content , '</body> ' ) !== false )
32
- {
33
- echo str_replace ('</body> ' , $ incscript .'</body> ' , $ content );
34
- exit ();
35
- }
36
- if (strpos ($ content , '</head> ' ) !== false )
37
- {
38
- echo str_replace ('</head> ' , $ incscript .'</head> ' , $ content );
39
- exit ();
40
- }
31
+ echo str_replace ('</body> ' , $ incscript .'</body> ' , $ content );
32
+ exit ();
41
33
}
42
34
?>
You can’t perform that action at this time.
0 commit comments