Change credits

This commit is contained in:
Ibnu Maksum 2023-10-12 15:55:42 +07:00
parent 95097e4512
commit a1d9b63dcf
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
50 changed files with 166 additions and 87 deletions

View File

@ -1,6 +1,8 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
header('location: ../index.php?_route=admin/'); header('location: ../index.php?_route=admin/');

View File

@ -1,7 +1,9 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
session_start(); session_start();
if(isset($_GET['nux-mac']) && !empty($_GET['nux-mac'])){ if(isset($_GET['nux-mac']) && !empty($_GET['nux-mac'])){

View File

@ -2,7 +2,9 @@
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
//error_reporting (0); //error_reporting (0);
$appurl = $_POST['appurl']; $appurl = $_POST['appurl'];
$db_host = $_POST['dbhost']; $db_host = $_POST['dbhost'];

View File

@ -1,8 +1,10 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
Class Admin{ Class Admin{
public static function _info(){ public static function _info(){
$id = $_SESSION['aid']; $id = $_SESSION['aid'];

View File

@ -1,8 +1,10 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
class App{ class App{
public static function _run(){ public static function _run(){
return true; return true;

View File

@ -1,7 +1,9 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/
/**
* This script is for managing user balance * This script is for managing user balance
**/ **/

View File

@ -1,5 +1,8 @@
<?php <?php
/**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/
class File class File
{ {

View File

@ -1,6 +1,9 @@
<?php <?php
/**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/
$menu_registered = array(); $menu_registered = array();

View File

@ -1,7 +1,10 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/
/**
* using proxy, add this variable in config.php * using proxy, add this variable in config.php
* $http_proxy = '127.0.0.1:3128'; * $http_proxy = '127.0.0.1:3128';
* if proxy using authentication, use this parameter * if proxy using authentication, use this parameter

View File

@ -2,8 +2,10 @@
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
class Lang class Lang
{ {
public static function T($var) public static function T($var)

View File

@ -2,8 +2,10 @@
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
class Message class Message
{ {

View File

@ -1,4 +1,8 @@
<?php <?php
/**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/
use PEAR2\Net\RouterOS; use PEAR2\Net\RouterOS;

View File

@ -2,9 +2,11 @@
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
class Package class Package
{ {
/** /**

View File

@ -2,8 +2,10 @@
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
class Paginator class Paginator
{ {
public static function bootstrap($table, $w1 = '', $c1 = '', $w2 = '', $c2 = '', $w3 = '', $c3 = '', $w4 = '', $c4 = '', $per_page = '10') public static function bootstrap($table, $w1 = '', $c1 = '', $w2 = '', $c2 = '', $w3 = '', $c3 = '', $w4 = '', $c4 = '', $per_page = '10')

View File

@ -2,7 +2,7 @@
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
class Password class Password

View File

@ -1,5 +1,10 @@
<?php <?php
/**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/
/** /**
* Radius Class * Radius Class
* based https://gist.github.com/nasirhafeez/6669b24aab0bda545f60f9da5ed14f25 * based https://gist.github.com/nasirhafeez/6669b24aab0bda545f60f9da5ed14f25

View File

@ -1,8 +1,10 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
class Timezone { class Timezone {
public static function timezoneList() public static function timezoneList()
{ {

View File

@ -2,8 +2,10 @@
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
class User class User
{ {
public static function _info() public static function _info()

View File

@ -2,8 +2,10 @@
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
/** /**
* Validator class * Validator class
*/ */

View File

@ -2,7 +2,7 @@
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by @ibnux * by https://t.me/ibnux
**/ **/

View File

@ -2,7 +2,9 @@
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
if (isset($routes['1'])) { if (isset($routes['1'])) {
$do = $routes['1']; $do = $routes['1'];
} else { } else {

View File

@ -1,7 +1,10 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/
/**
* used for ajax * used for ajax
**/ **/

View File

@ -1,7 +1,10 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/
/**
* used for ajax * used for ajax
**/ **/

View File

@ -1,7 +1,9 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
_admin(); _admin();
$ui->assign('_title', $_L['Bandwidth_Plans']); $ui->assign('_title', $_L['Bandwidth_Plans']);
$ui->assign('_system_menu', 'services'); $ui->assign('_system_menu', 'services');

View File

@ -2,8 +2,10 @@
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
$action = $routes['1']; $action = $routes['1'];

View File

@ -1,7 +1,9 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
_admin(); _admin();
$ui->assign('_title', 'Community'); $ui->assign('_title', 'Community');
$ui->assign('_system_menu', 'community'); $ui->assign('_system_menu', 'community');

View File

@ -2,8 +2,9 @@
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
_admin(); _admin();
$ui->assign('_title', $_L['Customers']); $ui->assign('_title', $_L['Customers']);
$ui->assign('_system_menu', 'customers'); $ui->assign('_system_menu', 'customers');

View File

@ -2,7 +2,9 @@
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
_admin(); _admin();
$ui->assign('_title', $_L['Dashboard']); $ui->assign('_title', $_L['Dashboard']);
$admin = Admin::_info(); $admin = Admin::_info();

View File

@ -1,6 +1,8 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
r2(APP_URL.'/index.php?_route=dashboard'); r2(APP_URL.'/index.php?_route=dashboard');

View File

@ -2,7 +2,9 @@
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
_admin(); _admin();
$ui->assign('_title', $_L['Reports']); $ui->assign('_title', $_L['Reports']);
$ui->assign('_sysfrm_menu', 'reports'); $ui->assign('_sysfrm_menu', 'reports');

View File

@ -2,7 +2,9 @@
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
_auth(); _auth();
$ui->assign('_title', $_L['Dashboard']); $ui->assign('_title', $_L['Dashboard']);

View File

@ -2,7 +2,7 @@
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
if (isset($routes['1'])) { if (isset($routes['1'])) {

View File

@ -1,7 +1,9 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
run_hook('customer_logout'); #HOOK run_hook('customer_logout'); #HOOK
if (session_status() == PHP_SESSION_NONE) session_start(); if (session_status() == PHP_SESSION_NONE) session_start();
session_destroy(); session_destroy();

View File

@ -2,7 +2,9 @@
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
_auth(); _auth();
$action = $routes['1']; $action = $routes['1'];
$user = User::_info(); $user = User::_info();

View File

@ -1,7 +1,9 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
_auth(); _auth();
$ui->assign('_title', $_L['Order_Voucher']); $ui->assign('_title', $_L['Order_Voucher']);
$ui->assign('_system_menu', 'order'); $ui->assign('_system_menu', 'order');

View File

@ -1,7 +1,9 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
_admin(); _admin();
$ui->assign('_title', 'Pages'); $ui->assign('_title', 'Pages');
$ui->assign('_system_menu', 'pages'); $ui->assign('_system_menu', 'pages');

View File

@ -1,7 +1,9 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
_admin(); _admin();
$ui->assign('_system_menu', 'paymentgateway'); $ui->assign('_system_menu', 'paymentgateway');

View File

@ -1,4 +1,8 @@
<?php <?php
/**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/
if(function_exists($routes[1])){ if(function_exists($routes[1])){
call_user_func($routes[1]); call_user_func($routes[1]);

View File

@ -1,9 +1,9 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
_admin(); _admin();
$ui->assign('_title', $_L['Plugin Manager']); $ui->assign('_title', $_L['Plugin Manager']);
$ui->assign('_system_menu', 'settings'); $ui->assign('_system_menu', 'settings');

View File

@ -2,7 +2,9 @@
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
_admin(); _admin();
$ui->assign('_title', $_L['Network']); $ui->assign('_title', $_L['Network']);
$ui->assign('_system_menu', 'network'); $ui->assign('_system_menu', 'network');

View File

@ -1,11 +1,9 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * by https://t.me/ibnux
* @license GNU General Public License version 2 or later; see LICENSE.txt
**/ **/
_admin(); _admin();
$ui->assign('_title', $_L['Recharge_Account']); $ui->assign('_title', $_L['Recharge_Account']);
$ui->assign('_system_menu', 'prepaid'); $ui->assign('_system_menu', 'prepaid');

View File

@ -1,8 +1,7 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
_admin(); _admin();
$ui->assign('_title', $_L['Plugin Manager']); $ui->assign('_title', $_L['Plugin Manager']);

View File

@ -1,11 +1,7 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing * by https://t.me/ibnux
* @license GNU General Public License version 2 or later; see LICENSE.txt
*
* created by iBNuX
**/ **/
if (isset($routes['1'])) { if (isset($routes['1'])) {

View File

@ -1,7 +1,9 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
_admin(); _admin();
$ui->assign('_title', $_L['Reports']); $ui->assign('_title', $_L['Reports']);
$ui->assign('_system_menu', 'reports'); $ui->assign('_system_menu', 'reports');

View File

@ -2,7 +2,9 @@
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
_admin(); _admin();
$ui->assign('_title', $_L['Network']); $ui->assign('_title', $_L['Network']);
$ui->assign('_system_menu', 'network'); $ui->assign('_system_menu', 'network');

View File

@ -1,8 +1,7 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
_admin(); _admin();
$ui->assign('_title', $_L['Hotspot_Plans']); $ui->assign('_title', $_L['Hotspot_Plans']);

View File

@ -1,8 +1,7 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
_admin(); _admin();
$ui->assign('_title', $_L['Settings']); $ui->assign('_title', $_L['Settings']);

View File

@ -1,8 +1,7 @@
<?php <?php
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
_auth(); _auth();
$ui->assign('_title', $_L['Voucher']); $ui->assign('_title', $_L['Voucher']);

View File

@ -2,8 +2,10 @@
/** /**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/ **/
// on some server, it getting error because of slash is backwards // on some server, it getting error because of slash is backwards
function _autoloader($class) function _autoloader($class)
{ {

0
ui/themes/index.html Normal file
View File