mirror of
https://github.com/sibyperiyar/Easy-HotSpot.git
synced 2024-09-20 07:16:02 +08:00
e8509575a5
Bug fixes related to automatic expiry of accounts scripting and such. Type changes of fields in creating vouchers forms etc
31 lines
955 B
PHP
31 lines
955 B
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
|
|
<?php
|
|
//Start session
|
|
if ( !isset($_SESSION) ) session_start();
|
|
//Check whether the session variables present or not, and assign them to Ordinary variables, if present.
|
|
if (!isset($_SESSION['user_level']) || (trim($_SESSION['user_level']) == '' || (trim($_SESSION['user_level']) >= 4))) {
|
|
header("location:login.php");
|
|
}
|
|
?>
|
|
|
|
<?php if ( !isset($_SESSION) ) session_start(); ?>
|
|
<?php error_reporting(E_ALL);
|
|
ini_set('display_errors', 1); ?>
|
|
|
|
<?php include('header.php'); ?>
|
|
<?php include('dbconfig.php'); ?>
|
|
<?php
|
|
use PEAR2\Net\RouterOS;
|
|
require_once 'PEAR2/Autoload.php';
|
|
require_once 'config.php';
|
|
try {
|
|
$util = new RouterOS\Util($client = new RouterOS\Client("$host", "$user", "$pass"));
|
|
include_once('home.php');
|
|
}
|
|
catch (Exception $e) {
|
|
echo "Error Accessing Data: " . $e->getMessage();
|
|
include_once('settings.php');
|
|
}
|
|
?>
|