예제 #1
0
 function is_logged_in()
 {
     if (Admins::current_admin()) {
         return true;
     } else {
         return False;
     }
 }
예제 #2
0
파일: home.php 프로젝트: kostyll/WackoPicko
<?php

require_once "../include/admins.php";
require_once "../include/functions.php";
require_admin_login();
$admin = Admins::current_admin();
?>

<h2>Welcome to the awesome admin panel <?php 
echo h($admin['login']);
?>
 </h2>

<a href="<?php 
echo h(Admins::$CREATE_URL);
?>
">Create a new user!</a>