From 7075fdf8f5163b6598d3473ba92d5e1f56c2947d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 16 Aug 2018 14:47:12 +0200 Subject: [PATCH] NEW Can add autorefresh=X in any URLs to refresh page after X seconds --- htdocs/main.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index acb04734234..26dcb94a0ba 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1170,12 +1170,15 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs $ext='layout='.$conf->browser->layout.'&version='.urlencode(DOL_VERSION); print "\n"; + if (GETPOST('dol_basehref','alpha')) print ''."\n"; + // Displays meta print ''."\n"; print ''."\n"; // Do not index print ''."\n"; // Scale for mobile device print ''."\n"; + // Favicon $favicon=dol_buildpath('/theme/'.$conf->theme.'/img/favicon.ico',1); if (! empty($conf->global->MAIN_FAVICON_URL)) $favicon=$conf->global->MAIN_FAVICON_URL; @@ -1184,6 +1187,9 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs //if (empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) print ''."\n"; //if (empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) print ''."\n"; + // Auto refresh page + if (GETPOST('autorefresh','int') > 0) print ''; + // Displays title $appli=constant('DOL_APPLICATION_TITLE'); if (!empty($conf->global->MAIN_APPLICATION_TITLE)) $appli=$conf->global->MAIN_APPLICATION_TITLE;