diff options
author | plegall <plg@piwigo.org> | 2005-02-01 07:28:38 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2005-02-01 07:28:38 +0000 |
commit | 8479367eb2ffd0ae270fcae2ac4d1ca2921b379e (patch) | |
tree | f356d34bfc5400b96421c8fef4b32d770b9e2962 /admin/stats.php | |
parent | 68970e1e656cc1b217b31d01a738bb9e3ca6db33 (diff) |
- purge of obsolete lines
git-svn-id: http://piwigo.org/svn/trunk@724 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/stats.php | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/admin/stats.php b/admin/stats.php index d16146250..cb7219802 100644 --- a/admin/stats.php +++ b/admin/stats.php @@ -105,65 +105,6 @@ $nb_visitors = mysql_num_rows( $result ); $days = array(); $max_nb_visitors = 0; $max_pages_seen = 0; - -$starttime = mktime( 0, 0, 0,date('n'),date('j'),date('Y') ); -$endtime = mktime( 23,59,59,date('n'),date('j'),date('Y') ); -//for ( $i = 0; $i <= MAX_DAYS; $i++ ) -{ - /* - // log lines for this day - $query = 'SELECT date,login,IP,category,file,picture'; - $query.= ' FROM '.PREFIX_TABLE.'history'; - $query.= ' WHERE date > '.$starttime; - $query.= ' AND date < '.$endtime; - $query.= ' ORDER BY date DESC'; - $query.= ';'; - $result = pwg_query( $query ); - $nb_pages_seen = mysql_num_rows( $result ); - $day['nb_pages_seen'] = $nb_pages_seen; - if ( $nb_pages_seen > $max_pages_seen ) $max_pages_seen = $nb_pages_seen; - $vtp->setVar( $sub, 'day.nb_pages', $nb_pages_seen ); - if ( in_array( $i, $page['expand_days'] ) ) - { - while ( $row = mysql_fetch_array( $result ) ) - { - $vtp->addSession( $sub, 'line' ); - $vtp->setVar( $sub, 'line.date', date( 'G:i:s', $row['date'] ) ); - $vtp->setVar( $sub, 'line.login', $row['login'] ); - $vtp->setVar( $sub, 'line.IP', $row['IP'] ); - $vtp->setVar( $sub, 'line.category', $row['category'] ); - $vtp->setVar( $sub, 'line.file', $row['file'] ); - $vtp->setVar( $sub, 'line.picture', $row['picture'] ); - $vtp->closeSession( $sub, 'line' ); - } - } - $starttime-= 24*60*60; - $endtime -= 24*60*60; - $vtp->closeSession( $sub, 'day' ); - array_push( $days, $day );*/ -} -//------------------------------------------------------------ pages seen graph -foreach ( $days as $day ) { - /*$vtp->addSession( $sub, 'pages_day' ); - if ( $max_pages_seen > 0 ) - $width = floor( ( $day['nb_pages_seen']*$max_pixels ) / $max_pages_seen ); - else $width = 0; - $vtp->setVar( $sub, 'pages_day.date', $day['date'] ); - $vtp->setVar( $sub, 'pages_day.width', $width ); - $vtp->setVar( $sub, 'pages_day.nb_pages', $day['nb_pages_seen'] ); - $vtp->closeSession( $sub, 'pages_day' );*/ -} -//-------------------------------------------------------------- visitors grpah -foreach ( $days as $day ) { - /*$vtp->addSession( $sub, 'visitors_day' ); - if ( $max_nb_visitors > 0 ) - $width = floor( ( $day['nb_visitors'] * $max_pixels ) / $max_nb_visitors ); - else $width = 0; - $vtp->setVar( $sub, 'visitors_day.date', $day['date'] ); - $vtp->setVar( $sub, 'visitors_day.width', $width ); - $vtp->setVar( $sub, 'visitors_day.nb_visitors', $day['nb_visitors'] ); - $vtp->closeSession( $sub, 'visitors_day' );*/ -} //----------------------------------------------------------- sending html code $template->assign_var_from_handle('ADMIN_CONTENT', 'stats'); ?> |