bbclone.inc.php
Gesponsorde koppelingen
PHP script bestanden
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
$scriptfile=end(explode("/",$_SERVER['SCRIPT_NAME']));
$scriptfilename=reset(explode(".",$scriptfile));
$scriptfilename=ucfirst($scriptfilename); //Capitalize first letter
$downloadfile=$_REQUEST["file"];
if ($downloadfile != "") {$scriptfilename =$downloadfile;}
//------ Counter -----------------------------------
define("_BBC_PAGE_NAME", $scriptfilename);
define("_BBCLONE_DIR", "bbclone/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
if ($downloadfile != "") {
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
#header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Datum in het verleden
header('Content-type: text/html');
//-------Display page downloads of file -----------
require("bbclone/var/access.php");
// number of hits by title
echo $access["page"][$downloadfile]["count"];
}
?>
$scriptfile=end(explode("/",$_SERVER['SCRIPT_NAME']));
$scriptfilename=reset(explode(".",$scriptfile));
$scriptfilename=ucfirst($scriptfilename); //Capitalize first letter
$downloadfile=$_REQUEST["file"];
if ($downloadfile != "") {$scriptfilename =$downloadfile;}
//------ Counter -----------------------------------
define("_BBC_PAGE_NAME", $scriptfilename);
define("_BBCLONE_DIR", "bbclone/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
if ($downloadfile != "") {
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
#header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Datum in het verleden
header('Content-type: text/html');
//-------Display page downloads of file -----------
require("bbclone/var/access.php");
// number of hits by title
echo $access["page"][$downloadfile]["count"];
}
?>