May 23 2012 02:11:54
Languages
Navigation
Friends & Affiliates
Roadmap
[N] User Profile Wall
[N] Error log like in P...
[N] Submit photo - Subc...
[N] Warnings - who can ...
[N] [edit profile]Save ...
[N] Moving panels with ...
[N] Forum thread deform...
[N] Thumbnails in downl...
[N] [Locale German] New...
[N] Warnings only for a...
Users Online
· Guests Online: 5

· Members Online: 0

· Total Members: 495
· Newest Member: chronsk
Last Seen Users
· chronsk15:21:08
· budisantoso 1 day
· lidaer 1 day
· Yodix 2 days
· mr-casino 2 days
· dos5 4 days
· Machello93 4 days
· Leonardo_master 4 days
· ezgi 4 days
· xxyy 5 days

Login
 Username  Password  
View Thread: Counter deaktivieren
Pimped Fusion - Content Management System » Pimped-Fusion Support & Entwicklung » Allgemeine Fragen
Who is here? 2 Guests
 Print Thread
Counter deaktivieren
xxyy
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.Angry

Danke,

xxyy Grin
Signaturexxyy
blacktigers.bplaced.net/banner/sig.png
Meine neue Webseite (in Development...)
Alle Angaben ohne Gewähr. Ich übernehme keine Haftung für Schäden an Hard/Software Wink
 
http://xxyy.bplaced.net/
slaughter
Es wird jeder Besucher gezählt, egal welche Seite er aufruft.
Jeder Besucher wird natürlich nur einmal gezählt.

Den Zähler kannst du entfernen, indem du die Funktion showcounter() von der theme.php deines Themes rausnimmst.
 
xxyy
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?)
Signaturexxyy
blacktigers.bplaced.net/banner/sig.png
Meine neue Webseite (in Development...)
Alle Angaben ohne Gewähr. Ich übernehme keine Haftung für Schäden an Hard/Software Wink
 
http://xxyy.bplaced.net/
slaughter
Ja, kann sein, dass wenn jemand dein Banner sieht, diese Views dann mitgezählt werden, da die maincore.php ja für den Banner benötigt wird.
 
Advertising Bot
Posted on 23-05-2012 02:11
Bot Agent

Posts: n^x
Joined: Always

  
xxyy
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

Download source  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);

// Establish mySQL database connection
$link = dbconnect($db_host, $db_user, $db_pass, $db_name);
unset($db_host, $db_user, $db_pass, $db_name);

// 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'];
}



// Common definitions
define("IN_FUSION", true);
define("PIMPED_FUSION", true);
define("FUSION_REQUEST", isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI'] != "" ? $_SERVER['REQUEST_URI'] : $_SERVER['SCRIPT_NAME']);
define("FUSION_QUERY", isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '');
define("FUSION_SELF", basename($_SERVER['PHP_SELF']));
define("HTTP_REFERER", isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : '');
define("REDIRECT_TO", ((HTTP_REFERER == '' || (strpos(HTTP_REFERER,"setuser.php")!==false) || (strpos(HTTP_REFERER,"/administration/")!==false)) ? $settings['opening_page'] : HTTP_REFERER));
define("USER_IP", $_SERVER['REMOTE_ADDR']);
define("QUOTES_GPC", (ini_get('magic_quotes_gpc') ? true : false));
// Path definitions
define("ADMIN", BASEDIR."administration/");
define("DOWNLOADS", BASEDIR."downloads/");
define("IMAGES", BASEDIR."images/");
define("IMAGES_AVA", IMAGES."avatars/");
define("IMAGES_A", IMAGES."articles/");
define("IMAGES_N", IMAGES."news/");
define("IMAGES_N_T", IMAGES."news/thumbs/");
define("IMAGES_NC", IMAGES."news_cats/");
define("IMAGES_F", IMAGES."forum/");
define("IMAGES_FC", IMAGES."forum_cats/");
define("IMAGES_FLAGS", IMAGES."user_flags/");
define("IMAGES_ICONS", IMAGES."icons/");
define("RANKS", IMAGES."ranks/");
define("INCLUDES", BASEDIR."includes/");
define("INCLUDES_JS", INCLUDES."jscripts/");
define("INCLUDES_RATING", INCLUDES."ratings/");
define("LOCALE", BASEDIR."locale/");
define("LOCALESET", $settings['locale']."/");
define("FORUM", BASEDIR."forum/");
define("FORUM_INC", FORUM."includes/");
define("FORUM_ATT", FORUM."attachments/");
define("INFUSIONS", BASEDIR."infusions/");
define("PHOTOS", IMAGES."photoalbum/");
define("THEMES", BASEDIR."themes/");
// Settings
define("IF_MULTI_LANGUAGE", ($settings['locale_multi'] == "1" ? true : false));
define("IF_MULTI_LANGUAGE_FORUM", ($settings['locale_multi_forum'] == "1" ? true : false));
define("LANGUAGE", $settings['locale']);
if(!file_exists(BASEDIR.".htaccess")) {
   define("MOD_REWRITE_ABLE", false);
} elseif(function_exists("apache_get_modules")) {
   define("MOD_REWRITE_ABLE", in_array('mod_rewrite', @apache_get_modules()) ? true : false);
} else {
   define("MOD_REWRITE_ABLE", true);
}
define("URL_REWRITE", (MOD_REWRITE_ABLE && $settings['seo_url_rewrite'] == "1" ? true : false));

// 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)*/




Edit:
Lag anscheinend am GESHI-BBCode !!!
Edited by xxyy on 31-12-2010 15:23
Signaturexxyy
blacktigers.bplaced.net/banner/sig.png
Meine neue Webseite (in Development...)
Alle Angaben ohne Gewähr. Ich übernehme keine Haftung für Schäden an Hard/Software Wink
 
http://xxyy.bplaced.net/
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Kommentare deaktivieren: Alte anzeigen Feature-Anfragen 1 10-02-2011 22:53
Share this thread
URL:
BB-Code:
HTML:
AddThis:
Share |
Render time: 0.16 seconds - 94 Queries 995,799 unique visits