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
Server Development
Habbo Retros
Habbo Q&A
2 Questions
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="JayC" data-source="post: 332165" data-attributes="member: 36373"><p>elseif($_GET['url'] != 'maintenance')</p><p>Lets break this down. This says that it gets the URL so for example devbest.com and then it checks to see if it is "maintenance" so it is pretty much saying this:</p><p>if(devbest.com/maintenance <strong>NOT EQUAL</strong> maintenance then do this...</p><p>and you change it to:</p><p>elseif($_GET['url'] != 'maintenance' && $_SESSION['user']['rank'] != 7)</p><p>If devbest.com/maintenance <strong>NOT EQUAL</strong> maintenance - So this means that the maintenance is off</p><p>AND</p><p>$_SESSION['user']['rank'] I am not sure this works. I tried this on my RevCMS version and it doesn't so I would try to create a new variable and do something like;</p><p>$GetMe = mysql_query("SELECT * from USERS where id=$_SESSION['user']['id']);</p><p>then put in the if statement</p><p>&& !($GetMe['Rank'] >= 7) - Not Greater Than Equal To 7</p></blockquote><p></p>
[QUOTE="JayC, post: 332165, member: 36373"] elseif($_GET['url'] != 'maintenance') Lets break this down. This says that it gets the URL so for example devbest.com and then it checks to see if it is "maintenance" so it is pretty much saying this: if(devbest.com/maintenance [B]NOT EQUAL[/B] maintenance then do this... and you change it to: elseif($_GET['url'] != 'maintenance' && $_SESSION['user']['rank'] != 7) If devbest.com/maintenance [B]NOT EQUAL[/B] maintenance - So this means that the maintenance is off AND $_SESSION['user']['rank'] I am not sure this works. I tried this on my RevCMS version and it doesn't so I would try to create a new variable and do something like; $GetMe = mysql_query("SELECT * from USERS where id=$_SESSION['user']['id']); then put in the if statement && !($GetMe['Rank'] >= 7) - Not Greater Than Equal To 7 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
2 Questions
Top