Task #0002050: stay in mobile menu
This commit is contained in:
parent
496266799c
commit
a2a1ebda25
2 changed files with 6 additions and 1 deletions
|
|
@ -57,6 +57,7 @@ global $g_user, $cn,$g_parameter,$http;
|
|||
$g_user = new User($cn);
|
||||
$http=new HttpInput();
|
||||
IDate::set_firstDate($g_user->get_first_week_day());
|
||||
|
||||
/*
|
||||
* check that the database is not empty
|
||||
*/
|
||||
|
|
@ -68,6 +69,10 @@ if ( ! $cn->exist_table('version')) {
|
|||
echo '</p>';
|
||||
return;
|
||||
}
|
||||
/**
|
||||
* if access_mode is MOBILE than force it to mobile.php
|
||||
*/
|
||||
if ($g_user->get_access_mode()=='MOBILE') { require NOALYSS_HOME."/mobile.php"; return;}
|
||||
|
||||
$style_user=$http->post("style_user","string",$_SESSION[SESSION_KEY.'g_theme']);
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ global $g_user;
|
|||
$cn=new Database();
|
||||
$g_user=new \User($cn);
|
||||
$g_user->check();
|
||||
define ('ALLOWED',true);
|
||||
if ( !defined ("ALLOWED") ) { define ('ALLOWED',true); }
|
||||
|
||||
//-----------------------------------------------------------------
|
||||
/// if $_REQUEST['gDossier'] is not set then select the folder
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue