Hallo,
ist es möglich, den Besuchercounter für einzelne Seiten zu deaktivieren?
Wenn ja, wo?
Ich verstehe ganz und gar nicht, wo die Besuche gezählt werden.
Um genau zu sein, es geht um diese Signatur, da wird gar kein Theme includiert, aber meine Besucherzahlen steigen trotzdem erstaunlich an. (2.000 gezählt in 1 Monat, aber wenn ich nachdenke, sollten alleine hier eigentlich viel mehr Besucher sein?)
Ich hatte es schon so weit gebracht, dass ich die maincore auf die benötigten Funktionen gekürzt hatte..
Fällt mir gerade auf: Die maincore wurde doch im bugfix 9.01 geändert, hat jemand vergessen, die aktuelle Version dazuzuschreiben :D
Code
/*---------------------------------------------------------------------------+
| Pimped-Fusion Content Management System
| Copyright (C) 2009 - 2010
| http://www.pimped-fusion.net
+----------------------------------------------------------------------------+
| Filename: include.php
| Version: Pimped Fusion v0.09.00
+----------------------------------------------------------------------------+
| based on PHP-Fusion CMS v7.01 by Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------------------------------+
| This program is released as free software under the Affero GPL license.
| You can redistribute it and/or modify it under the terms of this license
| which you can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this copyright header is
| strictly prohibited without written permission from the original author(s).
+---------------------------------------------------------------------------*/
if (preg_match("/maincore.php/i", $_SERVER['PHP_SELF'])) { die(); }
// Debuging functions true/false
define("DEBUGING", false); # should be "false" on live sites
// Show all type of erros for development
error_reporting(-1); #error_reporting(E_ALL);
/*// Calculate script start/end time
function get_microtime() {
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
// Define script start time
define("START_TIME", get_microtime());
// Filter the $_GET var
for(reset($_GET); list($key,$value) = each($_GET); ) $_GET[$key] = secure_get($value);
// Start Output Buffering
//ob_start("ob_gzhandler"); //Uncomment this line and comment the one below to enable output compression.
//ob_start();*/
// HTML Output for Error Msg
$die1 = "<div style='font-family:Verdana;font-size:11px;text-align:center;'><strong>";
$die2 = "</strong><br /></div>";
/*// Locate config.php and set the basedir path
$folder_level = ''; $i = 0;
while (!file_exists($folder_level."config.php")){
$i++;
if ($i == 7 || file_exists($folder_level."maincore.php")) { die($die1."config.php not found!".$die2); }
$folder_level .= "../";
}
if (!require_once $folder_level."config.php") die($die1."config.php not found!".$die2);
*/
define("BASEDIR", '../');
// If config.php is empty, activate setup.php script
//if (!isset($db_name)) { redirect("_install/setup.php"); } Wäre dumm bei Signatur :D
// Include Mysql Functions and Multisite Definitions
if(DEBUGING) {
if (!require_once BASEDIR."includes/functions_mysql_dev_include.php") die($die1."functions_mysql_include.php not found!".$die2);
} else {
if (!require_once BASEDIR."includes/functions_mysql_include.php") die($die1."functions_mysql_include.php not found!".$die2);
}
if (!require_once BASEDIR."includes/multisite_include.php") die($die1."multisite_include.php not found!".$die2);
// MySQL Count and debug n.b.
//$mysql_queries_count = 0; $mysql_queries_time = array();
// Fetch the Site Settings from the database and store them in the $settings variable // Pimped: optimised
$settings = array();
$result = dbquery("SELECT settings_name, settings_value FROM ".DB_SETTINGS, false);
if(!dbrows($result)) { die($die1."Settings could not been loaded</strong><br />".mysql_errno()." : ".mysql_error()."</div>"); }
while ($data = dbarray($result)) {
$settings[$data['settings_name']] = $data['settings_value'];
}
// Redirects to the index if the URL is invalid (eg. file.php/folder/)
if ($_SERVER['SCRIPT_NAME'] != $_SERVER['PHP_SELF']) { redirect($settings['siteurl']); }
/*ENDE maincore.php(Ausschnitt)*/