[Request] Admin Login page

Status
Not open for further replies.

Ian2456

Member
Feb 19, 2013
275
7
I need a admin login page for my CMS when its on Maintenance so its some what like Habboon
and etc. my current CMS is RevCMS I think.
EDIT: got the CMS here:
 
Last edited:

Janzeer

Headmaster Of Hogwart's
Apr 30, 2012
522
47
You can make a link on the the maintenace page itself to direct towards a login page. Then restrict access to normal user's by placing, a php code.
 

RyanzRetros

Developer of ChakCMS
Jan 14, 2015
978
182
Yes, as Janzeer said. But then use the code
PHP:
<?php if(mysql_result(mysql_query("SELECT rank FROM users WHERE id = '" . $_SESSION['user']['id'] . "'"), 0) >= 5) { ?>
                            <li class="right"><a href="#">Housekeeping</a>
                                <ul>
                                    <li><a href="{url}/hk">House Keeping</a></li>
                                </ul>
                            </li>
                                <?php
                            } ?>

Put thi in your navigation bar :) Need any help doing so, Skype me or send over your me.php file.
 

Janzeer

Headmaster Of Hogwart's
Apr 30, 2012
522
47
Open your /app/class.core.php, look for this code
PHP:
elseif($_GET['url'] != 'maintenance')
and change it to this
PHP:
elseif($_GET['url'] != 'maintenance' && $_SESSION['user']['rank'] !>= 6)
So now only Administrator's and above could enter during maintenance mode.
 
Last edited:

Ian2456

Member
Feb 19, 2013
275
7
Open you /app/class.core.php, look for this code
PHP:
elseif($_GET['url'] != 'maintenance')
and change it to this
PHP:
elseif($_GET['url'] != 'maintenance' && $_SESSION['user']['rank'] !>= 6)
So now only Administrator's and above could enter during maintenance mode.
No it didn't work, if I changed the class.core.php it will glitch the whole CMS.
 
Status
Not open for further replies.

Users who are viewing this thread

Top