/* * Check if user have timezone cookie * This cookie is important, so we can give right time/created post date to viewers */ if (!isset($_COOKIE['timezone']) || empty($_COOKIE['timezone'])) { $htmlinst->reload(); } ?> </head> <body> <div style='float:right;'> <?php // if users have an appropriate admin action, then show special bar if ($cook_book) { // get CSRF key from database $key = $admin->get_key_from_cookie($db, $_COOKIE['old_skkooll'], random_str, $cook); ?> Login as <a href='./admin.php'><font class='a-goto-admin'><?php echo $admin->get_user_from_cookie($db, $_COOKIE['old_skkooll'], random_str, $cook); ?> </font></a> <?php // root admin = can create another admins // admin = can't create another admins if ($admin->get_id_from_cookie($db, $_COOKIE['old_skkooll'], random_str, $cook) == 1) { ?> <font style='color:yellow;'>(<?php echo "Root Admin"; ?> )</font> <?php