[ Code Help ] Minimum rank [ PHP ]

TinyBuilder

Bike ✔
Mar 19, 2012
717
66
Hello, I am using DeltaCMS and I need some coder to tell me what rank to put in the following code in housekeeping.php :

PHP:
if(!isset($_SESSION['username'])){ header("Location: ../index"); }
 
if(user(rank) <= '3' || user(rank) >= '11'){ header("Location: ../me"); exit(); }
To make housekeeping work for minimum rank as 6

Thanks,
Tiny
 

Sean

‫‫‫‫‫‫  ‫  Don't Worry, Be Happy
Dec 12, 2011
1,121
405
PHP:
if(user(rank) < '6'){ header("Location: ../me"); exit(); }


Just use this one, It simply states if the user ranks is less than 6 then take them away from the housekeeping
 

TinyBuilder

Bike ✔
Mar 19, 2012
717
66
Nvm , fixed it :D I just made a new database and seen the ranks in it and seen the housekeeping.php in another fresh DeltaCMS and compared with mine I am using right now, and sorter it out!

Thanks for replying me ;)
 

Gajeel

Well-Known Member
Oct 4, 2011
2,411
413
facepalm.jpg I knew why it kicked you out of the housekeeping, your rank is less than 6... since you met the criteria of being below rank 6, it kicked you out of the housekeeping.
 

Users who are viewing this thread

Top