Пример #1
0
session_start();
require_once './classes/Utils.php';
$u = new Utils2();
if ($_REQUEST) {
    $username = $_REQUEST['username'];
    $password = $_REQUEST['password'];
    if ($username == 'manager' && $password == 'strange12') {
        $_SESSION['logged'] = "1";
    }
}
if ($_SESSION['logged'] == 1) {
    $class_total = $u->get_classes_num();
    $classes = $u->get_classes_list();
    $class_search = $u->get_search_block('class');
    $tutors_total = $u->get_total_tutors_number();
    $tutors = $u->get_tutors_list();
    $tutor_search = $u->get_search_block('tutor');
    $subs_total = $u->get_total_subscription();
    $subs = $u->get_subscription_list();
    $subs_search = $u->get_search_block('subs');
    $trial_total = $u->get_trial_total();
    $trial = $u->get_trial_keys_tab();
    $trial_search = $u->get_search_block('trial');
    ?>

    <!DOCTYPE html>

    <html>
        <head>
            <title>GLOBALIZATION PLUS</title>