[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 11/26: Task #0002050: stay in mobile menu
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 11/26: Task #0002050: stay in mobile menu |
Date: |
Wed, 11 Aug 2021 11:08:12 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit a2a1ebda25a645d2ab30084a8be3914369dbc60c
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Fri Jul 30 16:46:33 2021 +0200
Task #0002050: stay in mobile menu
---
html/do.php | 5 +++++
html/mobile.php | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/html/do.php b/html/do.php
index f2775ee..4fc7ada 100644
--- a/html/do.php
+++ b/html/do.php
@@ -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']);
diff --git a/html/mobile.php b/html/mobile.php
index 7fc7ea7..6494092 100644
--- a/html/mobile.php
+++ b/html/mobile.php
@@ -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
- [Noalyss-commit] [noalyss] 25/26: Improve code : Card_Property is separated from Card (Fiche) , add more phpunit tests, (continued)
- [Noalyss-commit] [noalyss] 25/26: Improve code : Card_Property is separated from Card (Fiche) , add more phpunit tests, Dany De Bontridder, 2021/08/11
- [Noalyss-commit] [noalyss] 18/26: Task #0002046: Improve COMPTA/MENUACH/ACH, Dany De Bontridder, 2021/08/11
- [Noalyss-commit] [noalyss] 20/26: Code cleaning : remove useless class gestion_sold gestion_purchase and gestion_table, Dany De Bontridder, 2021/08/11
- [Noalyss-commit] [noalyss] 21/26: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss, Dany De Bontridder, 2021/08/11
- [Noalyss-commit] [noalyss] 23/26: translate, Dany De Bontridder, 2021/08/11
- [Noalyss-commit] [noalyss] 26/26: Code cleaning : remove Fic_Attr , replace by Attr_Def_SQL, Dany De Bontridder, 2021/08/11
- [Noalyss-commit] [noalyss] 17/26: Bug #0002048: PRINTJRN : export CSV et PDF cosmetic : remove currency data if the currency is EUR, Dany De Bontridder, 2021/08/11
- [Noalyss-commit] [noalyss] 13/26: Translation, Dany De Bontridder, 2021/08/11
- [Noalyss-commit] [noalyss] 22/26: code cleaning rename class Acc_Ledger_Sold to Acc_Ledger_Sale , improve doc , improve phpunit test, Dany De Bontridder, 2021/08/11
- [Noalyss-commit] [noalyss] 09/26: Documentation, Dany De Bontridder, 2021/08/11
- [Noalyss-commit] [noalyss] 11/26: Task #0002050: stay in mobile menu,
Dany De Bontridder <=