includes/stats.php
changeset 322 5f1cd51bf1be
parent 166 d53cc29308f4
child 387 92664d2efab8
equal deleted inserted replaced
320:112debff64bd 322:5f1cd51bf1be
     1 <?php
     1 <?php
     2 
     2 
     3 /*
     3 /*
     4  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
     4  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
     5  * Version 1.1.1
     5  * Version 1.0.3 (Dyrad)
     6  * Copyright (C) 2006-2007 Dan Fuhry
     6  * Copyright (C) 2006-2007 Dan Fuhry
     7  * stats.php - handles statistics for pages (disablable in the admin CP)
     7  * stats.php - handles statistics for pages (disablable in the admin CP)
     8  *
     8  *
     9  *   ***** UNFINISHED ***** 
     9  *   ***** UNFINISHED ***** 
    10  *
    10  *
    20   global $db, $session, $paths, $template, $plugins; // Common objects
    20   global $db, $session, $paths, $template, $plugins; // Common objects
    21   if(getConfig('log_hits') == '1')
    21   if(getConfig('log_hits') == '1')
    22   {
    22   {
    23     if(!$page_id || !$namespace)
    23     if(!$page_id || !$namespace)
    24     {
    24     {
    25       $page_id = $paths->cpage['urlname_nons'];
    25       $page_id = $paths->page_id;
    26       $namespace = $paths->namespace;
    26       $namespace = $paths->namespace;
    27     }
    27     }
    28     if($namespace == 'Special' || $namespace == 'Admin') 
    28     if($namespace == 'Special' || $namespace == 'Admin') 
    29     {
    29     {
    30       return false;
    30       return false;