aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/common.inc.php13
-rw-r--r--include/page_header.php12
2 files changed, 14 insertions, 11 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index 005297d25..8aeafb7bf 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -208,6 +208,19 @@ include(
.'/themeconf.inc.php'
);
+if (is_adviser())
+{
+ ob_start();// buffer output so that cookies work
+ echo '
+ <div class="titrePage">
+ <h2>
+ <div style="text-align:center;">'.$lang['adviser_mode_enabled'].'
+ </div>
+ </h2>
+ </div>
+ ';
+}
+
// template instance
$template = new Template(PHPWG_ROOT_PATH.'template/'.$user['template']);
?>
diff --git a/include/page_header.php b/include/page_header.php
index cd4e59316..6a48b4b81 100644
--- a/include/page_header.php
+++ b/include/page_header.php
@@ -49,19 +49,9 @@ $template->assign_vars(
'LANG'=>$lang_info['code'],
'DIR'=>$lang_info['direction'],
- 'TAG_INPUT_ENABLED' => ((is_adviser()) ? 'disabled' : '')
+ 'TAG_INPUT_ENABLED' => ((is_adviser()) ? 'disabled onclick="return false;"' : '')
));
-if (is_adviser())
-{
- $template->assign_vars(
- array(
- 'ADVISER_ENABLED' => $lang['adviser_mode_enabled']
- )
- );
-}
-
-
// refresh
if ( isset( $refresh ) and intval($refresh) >= 0 and isset( $url_link ) and isset( $redirect_msg ) )
{