updating code presentation

git-svn-id: http://piwigo.org/svn/trunk@32 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
z0rglub
2003-07-22 08:18:08 +00:00
parent ea4bf112f9
commit 53479d08c3
+3 -8
View File
@@ -40,14 +40,9 @@ $tpl = array( 'stats_last_days','date','login',
templatize_array( $tpl, 'lang', $sub );
$vtp->setGlobalVar( $sub, 'user_template', $user['template'] );
//--------------------------------------------------- number of days to display
if ( isset( $_GET['last_days'] ) )
{
define( MAX_DAYS, $_GET['last_days'] );
}
else
{
define( MAX_DAYS, 0 );
}
if ( isset( $_GET['last_days'] ) ) define( MAX_DAYS, $_GET['last_days'] );
else define( MAX_DAYS, 0 );
foreach ( $conf['last_days'] as $option ) {
$vtp->addSession( $sub, 'last_day_option' );
$vtp->setVar( $sub, 'last_day_option.option', $option );