-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
29 lines (25 loc) · 855 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
// require('inc/api.class.php');
// $API = new RouterosAPI();
// if($_SERVER['REQUEST_METHOD'] == 'POST'){
// if(!empty($_POST['ip'] && $_POST['user'])){
// if(isset($_POST['submit'])){
// session_start();
// $_SESSION['ip'] = $_POST['ip'];
// $_SESSION['user'] = $_POST['user'];
// $_SESSION['pass'] = $_POST['pass'];
// $_SESSION['mikrotik'] = TRUE;
//
// if($API->connect($_SESSION['ip'], $_SESSION['user'], $_SESSION['pass'])){
// header('location:home.php');
//
// }elseif(!$API->connect($_SESSION['ip'], $_SESSION['user'], $_SESSION['pass'])){
// header('location:index.php');
// }
// $API->disconnect();
// }
// }
// }
require_once 'app/init.php';
$app = new App;
?>