<?php

include_once dirname(__FILE__) . '/admin-class.php';
session_start();
$admin = new itg_admin();
if ($_SESSION['is_super'] == 1) {
    if ($_POST) {
        if ($_POST['createadmin'] == 1) {
            $admin->_createAdmin();
        }
    }
    if ($_GET['check'] == 1) {
        $admin->_checkAdmin($_GET['email']);
    }
    ?>
    <!DOCTYPE html>
    <html lang="en">
        <head>
            <meta charset="utf-8">
            <meta http-equiv="X-UA-Compatible" content="IE=edge">
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <meta name="description" content="">
            <meta name="author" content="">
            <title>Tracker | Add Admin</title>
            <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
            <link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
            <link href="dist/css/sb-admin-2.css" rel="stylesheet">
            <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
            <link href="bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
            <script src="bower_components/datePicker/jquery.js"></script>
            <script src="bower_components/datePicker/jquery.datetimepicker.full.js"></script>