Fixed mobilde device issue

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2019-12-01 16:22:04 +01:00
parent 8aa2f52308
commit 6b087cf5fd
3 changed files with 8 additions and 9 deletions

View File

@ -355,8 +355,6 @@ if($session->get("theme") && preg_match("/^([a-zA-Z0-9\-\_]+)$/", $session->get(
include("system/helper/detectmobilebrowser.php");
if(MOBILE_DEVICE == 1) { $config['THEME'] = 'mobile'; }
// make sure auditors are restricted in a saas environment
if($config['ENABLE_SAAS'] == 1) { $config['RESTRICTED_AUDITOR'] = 1; }
if($session->get("username") == 'auditor@local' || isset($_SERVER['argv'][2]) ) { $config['RESTRICTED_AUDITOR'] = 0; }

View File

@ -94,16 +94,14 @@ class Controller {
$file = DIR_THEME . THEME . '/templates/' . $this->template;
}
if(MOBILE_DEVICE == 1) { $file = DIR_THEME . 'mobile' . '/templates/' . $this->template; }
if(file_exists($file)){
extract($this->data);
ob_start();
include($file);
$content = ob_get_contents();
ob_end_clean();
@ -117,5 +115,3 @@ class Controller {
}
?>

View File

@ -5,6 +5,8 @@
<title><?php print $title; ?></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="<?php print DEFAULT_LANG; ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php if(SITE_KEYWORDS) { ?><meta name="keywords" content="<?php print SITE_KEYWORDS; ?>" /><?php } ?>
<?php if(SITE_DESCRIPTION) { ?><meta name="description" content="<?php print SITE_DESCRIPTION; ?>" /><?php } ?>
<?php if(PROVIDED_BY) { ?><meta name="author" content="<?php print PROVIDED_BY; ?>" /><?php } ?>
@ -63,7 +65,7 @@
</div>
<?php } ?>
<?php if(!(OUTLOOK == 1 && SHOW_MENU_FOR_OUTLOOK == 0)) { ?>
<?php if( (OUTLOOK == 1 && SHOW_MENU_FOR_OUTLOOK == 1) || MOBILE_DEVICE == 0) { ?>
<div id="menu">
<?php print $menu; ?>
</div>
@ -86,6 +88,8 @@
<label for="_search"><?php print $text_search; ?></label>
<input type="text" id="_search" name="_search" placeholder="<?php print $text_enter_search_terms; ?>" />
</div>
<?php if(MOBILE_DEVICE == 0) { ?>
<div class="span6 input-append btn-group">
<button id="button_search" class="btn btn-large btn-danger" onclick="Piler.expert(this); return false;"><i class="icon-search icon-large"></i>&nbsp;<?php print $text_search; ?></button>
<button id="button_expert" class="btn btn-large btn-inverse" onclick="$('#searchpopup1').show();"><?php print $text_advanced_search; ?> &nbsp;<span class="caret"></span></button>
@ -95,6 +99,7 @@
<li><a href="#" onclick="Piler.load_saved_search_terms();"><?php print $text_load; ?></a></li>
</ul>
</div>
<?php } ?>
</div>
</div>
</div>