aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2006-07-28 14:07:57 +0000
committernikrou <nikrou@piwigo.org>2006-07-28 14:07:57 +0000
commit7fdd547b1ade6782766979fbb753fafa09694181 (patch)
tree099aed9dd3d001e89462c60e459e707e2f8f5dfa
parent1873dbd0623cf61b95dedcbb0ee31bec416efd46 (diff)
revert to svn:1507
block refresh is used in slideshows fix line too long. git-svn-id: http://piwigo.org/svn/trunk@1512 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/page_header.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/page_header.php b/include/page_header.php
index 38b1da0be..a729e0ebc 100644
--- a/include/page_header.php
+++ b/include/page_header.php
@@ -49,9 +49,23 @@ $template->assign_vars(
'LANG'=>$lang_info['code'],
'DIR'=>$lang_info['direction'],
- 'TAG_INPUT_ENABLED' => ((is_adviser()) ? 'disabled onclick="return false;"' : '')
+ 'TAG_INPUT_ENABLED' =>
+ ((is_adviser()) ? 'disabled onclick="return false;"' : '')
));
+// refresh
+if ( isset( $refresh ) and intval($refresh) >= 0
+ and isset( $url_link ) and isset( $redirect_msg ) )
+{
+ $template->assign_vars(
+ array(
+ 'U_REDIRECT_MSG' => $redirect_msg,
+ 'REFRESH_TIME' => $refresh,
+ 'U_REFRESH' => $url_link
+ ));
+ $template->assign_block_vars('refresh', array());
+}
+
header('Content-Type: text/html; charset='.$lang_info['charset']);
$template->parse('header');
?>