aboutsummaryrefslogtreecommitdiffstats
path: root/admin/stats.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-09-28 02:22:57 +0000
committerrvelices <rv-github@modusoptimus.com>2007-09-28 02:22:57 +0000
commit3013832c4bf10812ab1a16379eb37148a987ef9a (patch)
treed29457b57b2f03ffa8903463d7565d99b9cf2e2f /admin/stats.php
parenta3b23df6ef58811247c4d75da02edf7bad2d73e7 (diff)
- remove unused css for IE7
- fix admin view plugin (due to a recent change elsewhere) - remove an echo from admin/stats.php git-svn-id: http://piwigo.org/svn/trunk@2108 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/stats.php')
-rw-r--r--admin/stats.php32
1 files changed, 15 insertions, 17 deletions
diff --git a/admin/stats.php b/admin/stats.php
index 707ed83d8..b06cdba16 100644
--- a/admin/stats.php
+++ b/admin/stats.php
@@ -4,7 +4,6 @@
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
-// | branch : BSF (Best So Far)
// | file : $Id$
// | last update : $Date$
// | last modifier : $Author$
@@ -47,7 +46,7 @@ SELECT
hour,
nb_pages
FROM '.HISTORY_SUMMARY_TABLE;
-
+
if (isset($day))
{
$query.= '
@@ -84,7 +83,7 @@ SELECT
ORDER BY
year ASC,
month ASC
-;';
+;';
}
else
{
@@ -93,7 +92,7 @@ SELECT
AND month IS NULL
ORDER BY
year ASC
-;';
+;';
}
$result = pwg_query($query);
@@ -210,7 +209,7 @@ if (isset($first_time_key))
sprintf('%4u.%02u.%02u', $year, $month, $day),
sprintf('%4u.%02u.%02u.%02u', $year, $month, $day, $hour),
);
-
+
$query = '
SELECT
id,
@@ -369,13 +368,13 @@ if (isset($page['day']))
$url.= '&amp;day='.$page['day'];
$time = mktime(12, 0, 0, $page['month'], $page['day'], $page['year']);
-
+
$day_title = sprintf(
'%u (%s)',
$page['day'],
$lang['day'][date('w', $time)]
);
-
+
array_push(
$title_parts,
'<a href="'.$url.'">'.$day_title.'</a>'
@@ -455,9 +454,9 @@ if (count($datas) > 0)
{
$datas[$i] = 0;
}
-
+
$url = null;
-
+
if (isset($page['day']))
{
$value = sprintf('%02u', $i);
@@ -471,9 +470,9 @@ if (count($datas) > 0)
.'&amp;month='.$page['month']
.'&amp;day='.$i
;
-
+
$time = mktime(12, 0, 0, $page['month'], $i, $page['year']);
-
+
$value = $i.' ('.$lang['day'][date('w', $time)].')';
}
else if (isset($page['year']))
@@ -484,7 +483,7 @@ if (count($datas) > 0)
.'&amp;year='.$page['year']
.'&amp;month='.$i
;
-
+
$value = $lang['month'][$i];
}
else
@@ -495,15 +494,15 @@ if (count($datas) > 0)
.'?page=stats'
.'&amp;year='.$i
;
-
+
$value = $i;
}
-
+
if ($datas[$i] != 0 and isset($url))
{
$value = '<a href="'.$url.'">'.$value.'</a>';
}
-
+
$template->assign_block_vars(
'statrow',
array(
@@ -520,5 +519,4 @@ if (count($datas) > 0)
// +-----------------------------------------------------------------------+
$template->assign_var_from_handle('ADMIN_CONTENT', 'stats');
-?>
-
+?> \ No newline at end of file