PHP User::is_chauffeur Examples

PHP User::is_chauffeur - 2 examples found. These are the top rated real world PHP examples of User::is_chauffeur extracted from open source projects. You can rate examples to help us improve the quality of examples.
Example #1
0
<?php

require_once '../includes/initialize.php';
if (!$session->is_logged_in()) {
    redirect_to("login.php");
}
if (User::is_chauffeur()) {
    redirect_to('index.php');
}
?>

<?php 
$layout_context = "public";
$active_menu = "admin";
$stylesheets = "";
$fluid_view = true;
$javascript = "";
$incl_message_error = true;
include SITE_ROOT . DS . 'public' . DS . 'layouts' . DS . "header_2.php";
include SITE_ROOT . DS . 'public' . DS . 'layouts' . DS . "nav.php";
?>



<h4 class="text-center"><mark><a href="<?php 
echo $_SERVER["PHP_SELF"];
?>
">Rajah production company </a> </mark></h4>


<div class="row">
Example #2
0
<?php

require_once '../../includes/initialize.php';
$session->confirmation_protected_page();
if (User::is_employee() || User::is_secretary() || User::is_chauffeur()) {
    redirect_to('index.php');
}
if (User::is_visitor()) {
    redirect_to('../index.php');
}
?>

<?php 
if (isset($_GET["class_name"])) {
    $class_name = urldecode($_GET["class_name"]);
} else {
    $class_name = "User";
}
?>

<?php 
$page = !empty($_GET['page']) ? (int) $_GET["page"] : 1;
$query_string = remove_get(array('view', 'page'));
$view_full_table = !empty($_GET) ? (int) $_GET["view"] : 0;
if ($view_full_table == 1) {
    $page_link_view = "class_manage" . $query_string . "page=" . u($page) . "&view=" . u(0);
    $page_link_text = "Short view";
    $menu_canvas = true;
} else {
    // View with offset
    $page_link_view = "class_manage" . $query_string . "page=" . u($page) . "&view=" . u(1);