Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Requests
[PHP/SQL] If in maintenance, user is logged in and below a certain rank then redirect?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Modo" data-source="post: 380616" data-attributes="member: 33353"><p>Hi again,</p><p></p><p>I am trying to make my retro cms allow staff members online during maintenance but haven't seen code for it anywhere. I presume it is possible as it is just a bit of SQL...</p><p></p><p>[CODE]final public function handleCall($k)</p><p> {</p><p> global $users, $template, $_CONFIG;</p><p> </p><p> if($_CONFIG['hotel']['in_maint'] == false)</p><p> {</p><p> if(!isset($_SESSION['user']['id']))</p><p> {</p><p> switch($k)</p><p> {</p><p> case "index":</p><p> case null:[/CODE]</p><p></p><p>Main part I'm looking at is "if(!isset($_SESSION" - if user is in session and is rank above 8 then {</p><p></p><p>Anyone?</p></blockquote><p></p>
[QUOTE="Modo, post: 380616, member: 33353"] Hi again, I am trying to make my retro cms allow staff members online during maintenance but haven't seen code for it anywhere. I presume it is possible as it is just a bit of SQL... [CODE]final public function handleCall($k) { global $users, $template, $_CONFIG; if($_CONFIG['hotel']['in_maint'] == false) { if(!isset($_SESSION['user']['id'])) { switch($k) { case "index": case null:[/CODE] Main part I'm looking at is "if(!isset($_SESSION" - if user is in session and is rank above 8 then { Anyone? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Requests
[PHP/SQL] If in maintenance, user is logged in and below a certain rank then redirect?
Top