init: workspace opencode sync
This commit is contained in:
@@ -0,0 +1,94 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (C) 2018 Laksamadi Guko.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
session_start();
|
||||
// hide all error
|
||||
error_reporting(0);
|
||||
if (!isset($_SESSION["mikhmon"])) {
|
||||
header("Location:../admin.php?id=login");
|
||||
} else {
|
||||
}
|
||||
?>
|
||||
<style>
|
||||
.iFWrapper {
|
||||
position: relative;
|
||||
padding-bottom: 56.25%; /* 16:9 */
|
||||
padding-top: 25px;
|
||||
height: 0;
|
||||
}
|
||||
.iFWrapper iframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border :none;
|
||||
}
|
||||
</style>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3><i class="fa fa-info-circle"></i> About</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h3>MIKHMON V<?= $_SESSION['v']; ?></h3>
|
||||
<p>
|
||||
Aplikasi ini dipersembahkan untuk pengusaha hotspot di manapun Anda berada.
|
||||
Semoga makin sukses.
|
||||
</p>
|
||||
<p>
|
||||
<ul>
|
||||
<li>
|
||||
Author : Laksamadi Guko
|
||||
</li>
|
||||
<li>
|
||||
Licence : <a href="https://github.com/laksa19/mikhmonv2/blob/master/LICENSE">GPLv2</a>
|
||||
</li>
|
||||
<li>
|
||||
API Class : <a href="https://github.com/BenMenking/routeros-api">routeros-api</a>
|
||||
</li>
|
||||
<li>
|
||||
Website : <a href="https://laksa19.github.io">laksa19.github.io</a>
|
||||
</li>
|
||||
<li>
|
||||
Facebook : <a href="https://fb.com/laksamadi">fb.com/laksamadi</a>
|
||||
</li>
|
||||
</ul>
|
||||
</p>
|
||||
<p>
|
||||
Terima kasih untuk semua yang telah mendukung pengembangan MIKHMON.
|
||||
</p>
|
||||
<div>
|
||||
<i>Copyright © <i> 2018 Laksamadi Guko</i></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3><i class="fa fa-info-circle"></i> Changelog</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="iFWrapper">
|
||||
<iframe src="https://laksa19.github.io/mikhmonv3" ></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
if(substr($_SERVER["REQUEST_URI"], -10) == "config.php"){header("Location:./");};
|
||||
$data['mikhmon'] = array ('1'=>'mikhmon<|<mikhmon','mikhmon>|>bGRkaQ==');
|
||||
|
||||
$data['Msr'] = array ('1'=>'Msr!192.168.53.1','Msr@|@mi4','Msr#|#pWJm','Msr%Mesir-Hotspot','Msr^msr.net','Msr&Rp','Msr*10','Msr(1','Msr)','Msr=10','Msr@!@enable');
|
||||
$data['rm-jogja'] = array ('1'=>'rm-jogja!remote.vpnmurahjogja.my.id:33206','rm-jogja@|@mi4','rm-jogja#|#pWJm','rm-jogja%mesir hotspot','rm-jogja^msr.net','rm-jogja&Rp','rm-jogja*10','rm-jogja(1','rm-jogja)','rm-jogja=10','rm-jogja@!@enable');
|
||||
$data['MTS'] = array ('1'=>'MTS!192.168.35.1:13051','MTS@|@yzm','MTS#|#amFkbGdra2k=','MTS%hotspot_al-amin','MTS^mtsalamin.net','MTS&Rp','MTS*10','MTS(1','MTS)','MTS=10','MTS@!@enable');
|
||||
$data['mountain-g'] = array ('1'=>'mountain-g!remote10.vpnmurahjogja.my.id:31182','mountain-g@|@mtg','mountain-g#|#paCnpqWToZ+Z','mountain-g%server-hotspot','mountain-g^mtg.net','mountain-g&Rp','mountain-g*10','mountain-g(1','mountain-g)','mountain-g=10','mountain-g@!@disable');
|
||||
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (C) 2018 Laksamadi Guko.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
session_start();
|
||||
// hide all error
|
||||
error_reporting(0);
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>MIKHMON <?= $hotspotname; ?></title>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="cache-control" content="private" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<!-- Tell the browser to be responsive to screen width -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<!-- Theme color -->
|
||||
<meta name="theme-color" content="<?= $themecolor ?>" />
|
||||
<!-- Font Awesome -->
|
||||
<link rel="stylesheet" type="text/css" href="css/font-awesome/css/font-awesome.min.css" />
|
||||
<!-- Mikhmon UI -->
|
||||
<link rel="stylesheet" href="css/mikhmon-ui.<?= $theme; ?>.min.css">
|
||||
<!-- favicon -->
|
||||
<link rel="icon" href="./img/favicon.png" />
|
||||
<!-- jQuery -->
|
||||
<script src="js/jquery.min.js"></script>
|
||||
<!-- pace -->
|
||||
<link href="css/pace.<?= $theme; ?>.css" rel="stylesheet" />
|
||||
<script src="js/pace.min.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (C) 2018 Laksamadi Guko.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
echo "<meta http-equiv='refresh' content='0;url=../' />";
|
||||
?>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<?php $langid="en";?>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (C) 2018 Laksamadi Guko.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
session_start();
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<div style="padding-top: 5%;" class="login-box">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3><?= $_please_login ?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="text-center pd-5">
|
||||
<img src="img/favicon.png" alt="MIKHMON Logo">
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<span style="font-size: 25px; margin: 10px;">MIKHMON</span>
|
||||
</div>
|
||||
<center>
|
||||
<form autocomplete="off" action="" method="post">
|
||||
<table class="table" style="width:90%">
|
||||
<tr>
|
||||
<td class="align-middle text-center">
|
||||
<input style="width: 100%; height: 35px; font-size: 16px;" class="form-control" type="text" name="user" id="_username" placeholder="Username" required="1" autofocus>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="align-middle text-center">
|
||||
<input style="width: 100%; height: 35px; font-size: 16px;" class="form-control" type="password" name="pass" placeholder="Password" required="1">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="align-middle text-center">
|
||||
<input style="width: 100%; margin-top:20px; height: 35px; font-weight: bold; font-size: 17px;" class="btn-login bg-primary pointer" type="submit" name="login" value="Login">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="align-middle text-center">
|
||||
<?= $error; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,389 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (C) 2018 Laksamadi Guko.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
session_start();
|
||||
// hide all error
|
||||
error_reporting(0);
|
||||
|
||||
if (!isset($_SESSION["mikhmon"])) {
|
||||
header("Location:../admin.php?id=login");
|
||||
} else {
|
||||
|
||||
include ('./include/version.php');
|
||||
|
||||
$btnmenuactive = "font-weight: bold;background-color: #f9f9f9; color: #000000";
|
||||
if ($hotspot == "dashboard" || substr(end(explode("/", $url)), 0, 8) == "?session") {
|
||||
$shome = "active";
|
||||
$mpage = $_dashboard;
|
||||
} elseif ($hotspot == "quick-print" || $hotspot == "list-quick-print") {
|
||||
$squick = "active";
|
||||
$mpage = $_quick_print;
|
||||
} elseif ($hotspot == "users" || $userbyprofile != "" || $hotspot == "export-users" || $removehotspotuserbycomment != "" || $removehotspotuser != "" || $removehotspotusers != "" || $disablehotspotuser || $enablehotspotuser != "") {
|
||||
$susersl = "active";
|
||||
$susers = "active";
|
||||
$mpage = $_users;
|
||||
$umenu = "menu-open";
|
||||
} elseif ($hotspotuser == "add") {
|
||||
$sadduser = "active";
|
||||
$mpage = $_users;
|
||||
$susers = "active";
|
||||
$umenu = "menu-open";
|
||||
} elseif ($hotspotuser == "generate") {
|
||||
$sgenuser = "active";
|
||||
$mpage = $_users;
|
||||
$susers = "active";
|
||||
$umenu = "menu-open";
|
||||
} elseif ($userbyname != "" || $resethotspotuser != "") {
|
||||
$susers = "active";
|
||||
$mpage = $_users;
|
||||
$umenu = "menu-open";
|
||||
} elseif ($hotspot == "user-profiles") {
|
||||
$suserprofiles = "active";
|
||||
$suserprof = "active";
|
||||
$mpage = $_user_profile;
|
||||
$upmenu = "menu-open";
|
||||
} elseif ($hotspot == "active" || $removeuseractive != "") {
|
||||
$sactive = "active";
|
||||
$mpage = $_hotspot_active;
|
||||
$hamenu = "menu-open";
|
||||
} elseif ($hotspot == "hosts" || $hotspot == "hostp" || $hotspot == "hosta" || $removehost != "") {
|
||||
$shosts = "active";
|
||||
$mpage = $_hosts;
|
||||
$hmenu = "menu-open";
|
||||
} elseif ($hotspot == "dhcp-leases") {
|
||||
$slease = "active";
|
||||
$mpage = $_dhcp_leases;
|
||||
} elseif ($minterface == "traffic-monitor") {
|
||||
$strafficmonitor = "active";
|
||||
$mpage = $_traffic_monitor;
|
||||
} elseif ($hotspot == "ipbinding" || $hotspot == "binding" || $removeipbinding != "" || $enableipbinding != "" || $disableipbinding != "") {
|
||||
$sipbind = "active";
|
||||
$mpage = $_ip_bindings;
|
||||
$ibmenu = "menu-open";
|
||||
} elseif ($hotspot == "template-editor") {
|
||||
$ssett = "active";
|
||||
$teditor = "active";
|
||||
$mpage = $_template_editor;
|
||||
$settmenu = "menu-open";
|
||||
} elseif ($hotspot == "uplogo") {
|
||||
$ssett = "active";
|
||||
$uplogo = "active";
|
||||
$mpage = $_upload_logo;
|
||||
$settmenu = "menu-open";
|
||||
} elseif ($hotspot == "cookies" || $removecookie != "") {
|
||||
$scookies = "active";
|
||||
$mpage = $_hotspot_cookies;
|
||||
$cmenu = "menu-open";
|
||||
} elseif ($hotspot == "log") {
|
||||
$log = "active";
|
||||
$slog = "active";
|
||||
$mpage = $_hotspot_log;
|
||||
$lmenu = "menu-open";
|
||||
} elseif ($report == "userlog") {
|
||||
$log = "active";
|
||||
$sulog = "active";
|
||||
$mpage = $_user_log;
|
||||
$lmenu = "menu-open";
|
||||
} elseif ($ppp == "secrets" || $ppp == "addsecret" || $enablesecr != "" || $disablesecr != "" || $removesecr != "" || $secretbyname != "") {
|
||||
$mppp = "active";
|
||||
$ssecrets = "active";
|
||||
$mpage = $_ppp_secrets;
|
||||
$pppmenu = "menu-open";
|
||||
} elseif ($ppp == "profiles" || $removepprofile != "" || $ppp == "add-profile" || $ppp == "edit-profile" ) {
|
||||
$mppp = "active";
|
||||
$spprofile = "active";
|
||||
$mpage = $_ppp_profiles;
|
||||
$pppmenu = "menu-open";
|
||||
} elseif ($ppp == "active" || $removepactive != "") {
|
||||
$mppp = "active";
|
||||
$spactive = "active";
|
||||
$mpage = $_ppp_active;
|
||||
$pppmenu = "menu-open";
|
||||
} elseif ($sys == "scheduler" || $enablesch != "" || $disablesch != "" || $removesch != "") {
|
||||
$sysmenu = "active";
|
||||
$ssch = "active";
|
||||
$mpage = $_system_scheduler;
|
||||
$schmenu = "menu-open";
|
||||
} elseif ($report == "selling" || $report == "resume-report") {
|
||||
$sselling = "active";
|
||||
$mpage = $_report;
|
||||
} elseif ($userprofile == "add") {
|
||||
$suserprof = "active";
|
||||
$sadduserprof = "active";
|
||||
$mpage = $_user_profile;
|
||||
$upmenu = "menu-open";
|
||||
} elseif ($userprofilebyname != "") {
|
||||
$suserprof = "active";
|
||||
$mpage = $_user_profile;
|
||||
$upmenu = "menu-open";
|
||||
} elseif ($hotspot == "users-by-profile") {
|
||||
$susersbp = "active";
|
||||
$mpage = $_vouchers;
|
||||
} elseif ($userbyname != "") {
|
||||
$mpage = $_users;
|
||||
$susers = "active";
|
||||
} elseif ($hotspot == "about") {
|
||||
$mpage = $_about;
|
||||
$sabout = "active";
|
||||
} elseif ($id == "sessions" || $id == "remove" || $router == "new") {
|
||||
$ssesslist = "active";
|
||||
$mpage = $_admin_settings;
|
||||
} elseif ($id == "settings" && $session == "new") {
|
||||
$snsettings = "active";
|
||||
$mpage = $_add_router;
|
||||
} elseif ($id == "settings" || $id == "connect") {
|
||||
$ssettings = "active";
|
||||
$mpage = $_session_settings;
|
||||
} elseif ($id == "about") {
|
||||
$sabout = "active";
|
||||
$mpage = $_about;
|
||||
} elseif ($id == "uplogo") {
|
||||
$suplogo = "active";
|
||||
$mpage = $_upload_logo;
|
||||
} elseif ($id == "editor") {
|
||||
$seditor = "active";
|
||||
$mpage = $_template_editor;
|
||||
}
|
||||
}
|
||||
|
||||
if($idleto != "disable"){
|
||||
$didleto = 'display:block;';
|
||||
}else{
|
||||
$didleto = 'display:none;';
|
||||
}
|
||||
?>
|
||||
<span style="display:none;" id="idto"><?= $idleto ;?></span>
|
||||
|
||||
|
||||
<?php if ($id != "") { ?>
|
||||
|
||||
<div id="navbar" class="navbar">
|
||||
<div class="navbar-left">
|
||||
<a id="brand" class="text-center" href="javascript:void(0)">MIKHMON</a>
|
||||
|
||||
<a id="openNav" class="navbar-hover" href="javascript:void(0)"><i class="fa fa-bars"></i></a>
|
||||
<a id="closeNav" class="navbar-hover" href="javascript:void(0)"><i class="fa fa-bars"></i></a>
|
||||
<a id="cpage" class="navbar-left" href="javascript:void(0)"><?= $mpage; ?></a>
|
||||
</div>
|
||||
<div class="navbar-right">
|
||||
<a id="logout" href="./admin.php?id=logout" ><i class="fa fa-sign-out mr-1"></i> <?= $_logout ?></a>
|
||||
<select class="stheme ses text-right mr-t-10 pd-5">
|
||||
<option> <?= $_theme?></option>
|
||||
<?php for ($i = 0; $i < count($mtheme); $i++) {
|
||||
echo '<option value="'.$url.'&set-theme='.$mtheme[$i],'">'.ucfirst($mtheme[$i]),'</option>';
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<select class="slang ses text-right mr-t-10 pd-5">
|
||||
<option> <?= $language ?></option>
|
||||
<?php
|
||||
$fileList = glob('lang/*');
|
||||
foreach($fileList as $filename){
|
||||
if(is_file($filename)){
|
||||
$filename = substr(explode("/",$filename)[1],0,-4);
|
||||
if($filename == "isocodelang"){}else{
|
||||
echo '<option value="'.$url.'&setlang=' . $filename . '">'. $isocodelang[$filename]. '</option>';
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<a title="Idle Timeout" style="<?= $didleto; ?>"><span style="width:70px;" class="pd-5 radius-3"><i class="fa fa-clock-o mr-1"></i> <span class="mr-1" id="timer"></span></span></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="sidenav" class="sidenav">
|
||||
<?php if (($id == "settings" && $session == "new") || $id == "settings" && $router == "new") {
|
||||
}else if ($id == "settings" || $id == "editor"|| $id == "uplogo" || $id == "connect"){
|
||||
?>
|
||||
<div class="menu text-center align-middle card-header" style="border-radius:0;"><h3 id="MikhmonSession"><?= $session; ?></h3></div>
|
||||
<a class="connect menu <?= $shome; ?>" id="<?= $session; ?>&c=settings"><i class='fa fa-tachometer'></i> <?= $_dashboard ?></a>
|
||||
<a href="./admin.php?id=settings&session=<?= $session; ?>" class="menu <?= $ssettings; ?>" title="Mikhmon Settings"><i class='fa fa-gear'></i> <?= $_session_settings ?></a>
|
||||
<a href="./admin.php?id=uplogo&session=<?= $session; ?>" class="menu <?= $suplogo; ?>"><i class="fa fa-upload "></i> <?= $_upload_logo ?></a>
|
||||
<a href="./admin.php?id=editor&template=default&session=<?= $session; ?>" class="menu <?= $seditor; ?>"><i class="fa fa-edit"></i> <?= $_template_editor ?></a>
|
||||
<div class="menu spa"></div>
|
||||
<?php
|
||||
} ?>
|
||||
<a href="./admin.php?id=sessions" class="menu <?= $ssesslist; ?>"><i class="fa fa-gear"></i> <?= $_admin_settings ?></a>
|
||||
<a href="./admin.php?id=settings&router=new-<?= rand(1111,9999) ?>" class="menu <?= $snsettings ?>"><i class="fa fa-plus"></i> <?= $_add_router ?></a>
|
||||
<a href="./admin.php?id=about" class="menu <?= $sabout; ?>"><i class="fa fa-info-circle"></i> <?= $_about ?></a>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$(".connect").click(function(){
|
||||
notify("<?= $_connecting ?>");
|
||||
connect(this.id)
|
||||
});
|
||||
$(".stheme").change(function(){
|
||||
notify("<?= $_loading_theme ?>");
|
||||
stheme(this.value)
|
||||
});
|
||||
$(".slang").change(function(){
|
||||
notify("<?= $_loading ?>");
|
||||
stheme(this.value)
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<div id="notify"><div class="message"></div></div>
|
||||
<div id="temp"></div>
|
||||
<?php
|
||||
include('./info.php');
|
||||
} else { ?>
|
||||
|
||||
<div id="navbar" class="navbar">
|
||||
<div class="navbar-left">
|
||||
<a id="brand" class="text-center" href="./?session=<?= $session; ?>">MIKHMON</a>
|
||||
|
||||
<a id="openNav" class="navbar-hover" href="javascript:void(0)"><i class="fa fa-bars"></i></a>
|
||||
<a id="closeNav" class="navbar-hover" href="javascript:void(0)"><i class="fa fa-bars"></i></a>
|
||||
<a id="cpage" class="navbar-left" href="javascript:void(0)"><?= $mpage; ?></a>
|
||||
</div>
|
||||
<div class="navbar-right">
|
||||
<a id="logout" href="./?hotspot=logout&session=<?= $session; ?>" ><i class="fa fa-sign-out mr-1"></i> <?= $_logout ?></a>
|
||||
<select class="stheme ses text-right mr-t-10 pd-5">
|
||||
<option> <?= $_theme ?></option>
|
||||
<?php for ($i = 0; $i < count($mtheme); $i++) {
|
||||
echo '<option value="'.$url.'&set-theme='.$mtheme[$i],'">'.ucfirst($mtheme[$i]),'</option>';
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<select class="connect optfa ses text-right mr-t-10 pd-5">
|
||||
<option id="MikhmonSession" value="<?= $session; ?>"><?= $hotspotname; ?></option>
|
||||
<?php
|
||||
foreach (file('./include/config.php') as $line) {
|
||||
$sesname = explode("'", $line)[1];
|
||||
if ($sesname == "" || $sesname== "mikhmon") {
|
||||
} else {
|
||||
if($sesname == $session){
|
||||
echo '<option value="' . $sesname. '">'.$sesname. ' ♦</option>';
|
||||
}else{
|
||||
echo '<option value="' . $sesname. '">'.$sesname. '</option>';
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</select>
|
||||
<a title="Idle Timeout" style="<?= $didleto; ?>"><span style="width:70px;" class="pd-5 radius-3"><i class="fa fa-clock-o mr-1"></i> <span class="mr-1" id="timer"></span></span></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="sidenav" class="sidenav">
|
||||
<div class="menu text-center align-middle card-header" style="border-radius:0;"><h3><?= $identity; ?></h3></div>
|
||||
<a href="./?session=<?= $session; ?>" class="menu <?= $shome; ?>"><i class="fa fa-dashboard"></i> <?= $_dashboard ?></a>
|
||||
<!--hotspot-->
|
||||
<div class="dropdown-btn <?= $susers . $suserprof . $sactive . $shosts . $sipbind . $scookies; ?>"><i class="fa fa-wifi"></i> Hotspot
|
||||
<i class="fa fa-caret-down"></i>
|
||||
</div>
|
||||
<div class="dropdown-container <?= $umenu . $upmenu . $hamenu . $hmenu . $ibmenu . $cmenu; ?>">
|
||||
<!--users-->
|
||||
<div class="dropdown-btn <?= $susers; ?>"><i class="fa fa-users"></i> <?= $_users ?>
|
||||
<i class="fa fa-caret-down"></i>
|
||||
</div>
|
||||
<div class="dropdown-container <?= $umenu; ?>">
|
||||
<a href="./?hotspot=users&profile=all&session=<?= $session; ?>" class="<?= $susersl; ?>"> <i class="fa fa-list "></i> <?= $_user_list ?> </a>
|
||||
<a href="./?hotspot-user=add&session=<?= $session; ?>" class="<?= $sadduser; ?>"> <i class="fa fa-user-plus "></i> <?= $_add_user ?> </a>
|
||||
<a href="./?hotspot-user=generate&session=<?= $session; ?>" class="<?= $sgenuser; ?>"> <i class="fa fa-user-plus"></i> <?= $_generate ?> </a>
|
||||
</div>
|
||||
<!--profile-->
|
||||
<div class="dropdown-btn <?= $suserprof; ?>"><i class=" fa fa-pie-chart"></i> <?= $_user_profile ?>
|
||||
<i class="fa fa-caret-down"></i>
|
||||
</div>
|
||||
<div class="dropdown-container <?= $upmenu; ?>">
|
||||
<a href="./?hotspot=user-profiles&session=<?= $session; ?>" class=" <?= $suserprofiles; ?>"> <i class="fa fa-list "></i> <?= $_user_profile_list ?> </a>
|
||||
<a href="./?user-profile=add&session=<?= $session; ?>" class=" <?= $sadduserprof; ?>"> <i class="fa fa-plus-square "></i> <?= $_add_user_profile ?> </a>
|
||||
|
||||
</div>
|
||||
<!--active-->
|
||||
<a href="./?hotspot=active&session=<?= $session; ?>" class="menu <?= $sactive; ?>"><i class=" fa fa-wifi"></i> <?= $_hotspot_active ?></a>
|
||||
<!--hosts-->
|
||||
<a href="./?hotspot=hosts&session=<?= $session; ?>" class="menu <?= $shosts; ?>"><i class=" fa fa-laptop"></i> <?= $_hosts ?></a>
|
||||
<!--ip bindings-->
|
||||
<a href="./?hotspot=ipbinding&session=<?= $session; ?>" class="menu <?= $sipbind; ?>"><i class=" fa fa-address-book"></i> <?= $_ip_bindings ?></a>
|
||||
<!--cookies-->
|
||||
<a href="./?hotspot=cookies&session=<?= $session; ?>" class="menu <?= $scookies; ?>"><i class=" fa fa-hourglass"></i> <?= $_hotspot_cookies ?></a>
|
||||
</div>
|
||||
<!--quick print-->
|
||||
<a href="./?hotspot=quick-print&session=<?= $session; ?>" class="menu <?= $squick; ?>"> <i class="fa fa-print"></i> <?= $_quick_print ?> </a>
|
||||
<!--vouchers-->
|
||||
<a href="./?hotspot=users-by-profile&session=<?= $session; ?>" class="menu <?= $susersbp; ?>"> <i class="fa fa-ticket"></i> <?= $_vouchers ?> </a>
|
||||
<!--log-->
|
||||
<div class="dropdown-btn <?= $log; ?>"><i class=" fa fa-align-justify"></i> <?= $_log ?>
|
||||
<i class="fa fa-caret-down"></i>
|
||||
</div>
|
||||
<div class="dropdown-container <?= $lmenu; ?>">
|
||||
<a href="./?hotspot=log&session=<?= $session; ?>" class="<?= $slog; ?>"> <i class="fa fa-wifi "></i> <?= $_hotspot_log ?> </a>
|
||||
<a href="./?report=userlog&idbl=<?= strtolower(date("M")) . date("Y"); ?>&session=<?= $session; ?>" class=" <?= $sulog; ?>"> <i class="fa fa-users "></i> <?= $_user_log ?> </a>
|
||||
</div>
|
||||
<!--system-->
|
||||
<div class="dropdown-btn <?= $sysmenu; ?>"><i class=" fa fa-gear"></i> <?= $_system ?>
|
||||
<i class="fa fa-caret-down"></i>
|
||||
</div>
|
||||
<div class="dropdown-container <?= $schmenu; ?>">
|
||||
<a href="./?system=scheduler&session=<?= $session; ?>" class="<?= $ssch; ?>"> <i class="fa fa-clock-o "></i> <?= $_system_scheduler ?> </a>
|
||||
<a href="./admin.php?id=reboot&session=<?= $session; ?>" class=""> <i class="fa fa-power-off "></i> <?= $_system_reboot ?> </a>
|
||||
<a href="./admin.php?id=shutdown&session=<?= $session; ?>" class=""> <i class="fa fa-power-off "></i> <?= $_system_off ?> </a>
|
||||
</div>
|
||||
<!--dhcp leases-->
|
||||
<a href="./?hotspot=dhcp-leases&session=<?= $session; ?>" class="menu <?= $slease; ?>"><i class=" fa fa-sitemap"></i> <?= $_dhcp_leases ?></a>
|
||||
<!--traffic monitor-->
|
||||
<a href="./?interface=traffic-monitor&session=<?= $session; ?>" class="menu <?= $strafficmonitor; ?>"><i class=" fa fa-area-chart"></i> <?= $_traffic_monitor ?></a>
|
||||
<!--report-->
|
||||
<a href="./?report=selling&idbl=<?= strtolower(date("M")) . date("Y"); ?>&session=<?= $session; ?>" class="menu <?= $sselling; ?>"><i class="nav-icon fa fa-money"></i> <?= $_report ?></a>
|
||||
<!--settings-->
|
||||
<div class="dropdown-btn <?= $ssett; ?>"><i class=" fa fa-gear"></i> <?= $_settings ?>
|
||||
<i class="fa fa-caret-down"></i>
|
||||
</div>
|
||||
<div class="dropdown-container <?= $settmenu; ?>">
|
||||
<a href="./admin.php?id=settings&session=<?= $session; ?>" class="menu "> <i class="fa fa-gear "></i> <?= $_session_settings ?> </a>
|
||||
<a href="./admin.php?id=sessions" class="menu "> <i class="fa fa-gear "></i> <?= $_admin_settings ?> </a>
|
||||
<a href="./?hotspot=uplogo&session=<?= $session; ?>" class="menu <?= $uplogo; ?>"> <i class="fa fa-upload "></i> <?= $_upload_logo ?> </a>
|
||||
<a href="./?hotspot=template-editor&template=default&session=<?= $session; ?>" class="menu <?= $teditor; ?>"> <i class="fa fa-edit "></i> <?= $_template_editor ?> </a>
|
||||
</div>
|
||||
<!--about-->
|
||||
<a href="./?hotspot=about&session=<?= $session; ?>" class="menu <?= $sabout; ?>"><i class="fa fa-info-circle"></i> <?= $_about ?></a>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$(".connect").change(function(){
|
||||
notify("<?= $_connecting ?>");
|
||||
connect(this.value)
|
||||
});
|
||||
$(".stheme").change(function(){
|
||||
notify("<?= $_loading_theme ?>");
|
||||
stheme(this.value)
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<div id="notify"><div class="message"></div></div>
|
||||
<div id="temp"></div>
|
||||
<?php
|
||||
include('./include/info.php');
|
||||
} ?>
|
||||
|
||||
<div id="main">
|
||||
<div id="loading" class="lds-dual-ring"></div>
|
||||
<?php if($hotspot == 'template-editor' || $id == 'editor'){
|
||||
echo '<div class="main-container">';
|
||||
}else{
|
||||
echo '<div class="main-container" style="display:none">';
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<?php $qrbt="disable";?>
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (C) 2018 Laksamadi Guko.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
session_start();
|
||||
// hide all error
|
||||
error_reporting(0);
|
||||
if (substr($_SERVER["REQUEST_URI"], -11) == "readcfg.php") {
|
||||
header("Location:./");
|
||||
};
|
||||
// read config
|
||||
|
||||
$iphost = explode('!', $data[$session][1])[1];
|
||||
$userhost = explode('@|@', $data[$session][2])[1];
|
||||
$passwdhost = explode('#|#', $data[$session][3])[1];
|
||||
$hotspotname = explode('%', $data[$session][4])[1];
|
||||
$dnsname = explode('^', $data[$session][5])[1];
|
||||
$currency = explode('&', $data[$session][6])[1];
|
||||
$areload = explode('*', $data[$session][7])[1];
|
||||
$iface = explode('(', $data[$session][8])[1];
|
||||
$infolp = explode(')', $data[$session][9])[1];
|
||||
$idleto = explode('=', $data[$session][10])[1];
|
||||
$sesname = explode('+', $data[$session][10])[1];
|
||||
$useradm = explode('<|<', $data['mikhmon'][1])[1];
|
||||
$passadm = explode('>|>', $data['mikhmon'][2])[1];
|
||||
$livereport = explode('@!@', $data[$session][11])[1];
|
||||
|
||||
$cekindo['indo'] = array(
|
||||
'RP', 'Rp', 'rp', 'IDR', 'idr', 'RP.', 'Rp.', 'rp.', 'IDR.', 'idr.',
|
||||
);
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<?php $theme="dark"; $themecolor="#3a4149";?>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
if (!isset($_SESSION["mikhmon"])) {
|
||||
header("Location:../admin.php?id=login");
|
||||
} else {
|
||||
$_SESSION["v"] = "3.20 06-30-2021";
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user