Change Header
This commit is contained in:
parent
e6eff99632
commit
9dd85dc38e
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
header('location: ../index.php?_route=admin/');
|
header('location: ../index.php?_route=admin/');
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
require ('system/boot.php');
|
require ('system/boot.php');
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
Class Admin{
|
Class Admin{
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
Class App{
|
Class App{
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
Class Paginator
|
Class Paginator
|
||||||
|
@ -3,10 +3,6 @@
|
|||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
class Password
|
class Password
|
||||||
|
115
system/autoload/Paymentgateway.php
Normal file
115
system/autoload/Paymentgateway.php
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
**/
|
||||||
|
|
||||||
|
|
||||||
|
// Payment Gateway Server
|
||||||
|
if($_app_stage = 'Live'){
|
||||||
|
$xendit_server = 'https://api.xendit.co/v2/';
|
||||||
|
$midtrans_server = 'https://api.midtrans.com';
|
||||||
|
$moota_server = 'https://api.xendit.co/v2/';
|
||||||
|
}else{
|
||||||
|
$xendit_server = 'https://api.xendit.co/v2/';
|
||||||
|
$midtrans_server = 'https://api.sandbox.midtrans.com';
|
||||||
|
$moota_server = 'https://api.xendit.co/v2/';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function create_invoice_xendit($trxID, $amount, $phone, $description){
|
||||||
|
global $xendit_server,$_c;
|
||||||
|
$json = [
|
||||||
|
'external_id' => $trxID,
|
||||||
|
'amount' => $amount,
|
||||||
|
'description' => $description,
|
||||||
|
'customer' => [
|
||||||
|
'mobile_number' => $phone,
|
||||||
|
],
|
||||||
|
'customer_notification_preference'=>[
|
||||||
|
'invoice_created' => ['whatsapp','sms'],
|
||||||
|
'invoice_reminder' => ['whatsapp','sms'],
|
||||||
|
'invoice_paid' => ['whatsapp','sms'],
|
||||||
|
'invoice_expired' => ['whatsapp','sms']
|
||||||
|
],
|
||||||
|
'success_redirect_url' => APP_URL,
|
||||||
|
'failure_redirect_url' => APP_URL
|
||||||
|
];
|
||||||
|
return json_decode(postJsonData($xendit_server, $json, [
|
||||||
|
'Authorization: Basic '.$_c['xendit_secret']
|
||||||
|
]),true);
|
||||||
|
/*
|
||||||
|
{
|
||||||
|
"id": "631597513897510bace2459d", #gateway_trx_id
|
||||||
|
"external_id": "test-va-success-1662359375",
|
||||||
|
"user_id": "599bd7f1ccab55b020bb1147",
|
||||||
|
"status": "PENDING",
|
||||||
|
"merchant_name": "Xendit",
|
||||||
|
"merchant_profile_picture_url": "https://xnd-companies.s3.amazonaws.com/prod/1538466380522_868.png",
|
||||||
|
"amount": 3000000,
|
||||||
|
"description": "Test - VA Successful invoice payment",
|
||||||
|
"expiry_date": "2022-09-06T06:29:37.251Z",
|
||||||
|
"invoice_url": "https://checkout-staging.xendit.co/web/631597513897510bace2459d"
|
||||||
|
"created": "2022-09-05T06:29:37.954Z",
|
||||||
|
"updated": "2022-09-05T06:29:37.954Z"
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_invoice_xendit($xendittrxID){
|
||||||
|
global $xendit_server,$_c;
|
||||||
|
return json_decode(getData($xendit_server.'invoices/'.$xendittrxID, [
|
||||||
|
'Authorization: Basic '.$_c['xendit_secret']
|
||||||
|
]),true);
|
||||||
|
/*
|
||||||
|
{
|
||||||
|
"id": "631597513897510bace2459d", #gateway_trx_id
|
||||||
|
"external_id": "test-va-success-1662359375",
|
||||||
|
"user_id": "599bd7f1ccab55b020bb1147",
|
||||||
|
"status": "PENDING", // CHECK THIS
|
||||||
|
"merchant_name": "Xendit",
|
||||||
|
"merchant_profile_picture_url": "https://xnd-companies.s3.amazonaws.com/prod/1538466380522_868.png",
|
||||||
|
"amount": 3000000,
|
||||||
|
"description": "Test - VA Successful invoice payment",
|
||||||
|
"expiry_date": "2022-09-06T06:29:37.251Z",
|
||||||
|
"invoice_url": "https://checkout-staging.xendit.co/web/631597513897510bace2459d"
|
||||||
|
"created": "2022-09-05T06:29:37.954Z",
|
||||||
|
"updated": "2022-09-05T06:29:37.954Z"
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
function getData($url, $headers)
|
||||||
|
{
|
||||||
|
$ch = curl_init();
|
||||||
|
curl_setopt($ch, CURLOPT_URL, $url);
|
||||||
|
curl_setopt($ch, CURLOPT_POST, 0);
|
||||||
|
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15);
|
||||||
|
curl_setopt($ch, CURLOPT_TIMEOUT, 15);
|
||||||
|
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
||||||
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||||
|
$server_output = curl_exec($ch);
|
||||||
|
curl_close($ch);
|
||||||
|
return $server_output;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function postJsonData($url, $array_post, $headers = [], $basic = null)
|
||||||
|
{
|
||||||
|
$headers[] = 'Content-Type: application/json';
|
||||||
|
$ch = curl_init();
|
||||||
|
curl_setopt($ch, CURLOPT_URL, $url);
|
||||||
|
curl_setopt($ch, CURLOPT_POST, 1);
|
||||||
|
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15);
|
||||||
|
curl_setopt($ch, CURLOPT_TIMEOUT, 15);
|
||||||
|
curl_setopt($ch, CURLOPT_VERBOSE, false);
|
||||||
|
curl_setopt($ch, CURLINFO_HEADER_OUT, false);
|
||||||
|
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($array_post));
|
||||||
|
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
||||||
|
if (!empty($basic)) {
|
||||||
|
curl_setopt($ch, CURLOPT_USERPWD, $basic);
|
||||||
|
}
|
||||||
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||||
|
$server_output = curl_exec($ch);
|
||||||
|
curl_close($ch);
|
||||||
|
return $server_output;
|
||||||
|
}
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
Class Router{
|
Class Router{
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
class Timezone {
|
class Timezone {
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
Class User{
|
Class User{
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -3,10 +3,6 @@
|
|||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
session_start();
|
session_start();
|
||||||
function r2($to, $ntype = 'e', $msg = '')
|
function r2($to, $ntype = 'e', $msg = '')
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
_auth();
|
_auth();
|
||||||
$ui->assign('_title', $_L['My_Account'].'- '. $config['CompanyName']);
|
$ui->assign('_title', $_L['My_Account'].'- '. $config['CompanyName']);
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
if (isset($routes['1'])) {
|
if (isset($routes['1'])) {
|
||||||
$do = $routes['1'];
|
$do = $routes['1'];
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
_admin();
|
_admin();
|
||||||
$ui->assign('_title', $_L['Network'].' - '. $config['CompanyName']);
|
$ui->assign('_title', $_L['Network'].' - '. $config['CompanyName']);
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
_admin();
|
_admin();
|
||||||
$ui->assign('_title', $_L['Bandwidth_Plans'].' - '. $config['CompanyName']);
|
$ui->assign('_title', $_L['Bandwidth_Plans'].' - '. $config['CompanyName']);
|
||||||
|
@ -3,10 +3,6 @@
|
|||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
_admin();
|
_admin();
|
||||||
$ui->assign('_title', $_L['Customers'] . ' - ' . $config['CompanyName']);
|
$ui->assign('_title', $_L['Customers'] . ' - ' . $config['CompanyName']);
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
_admin();
|
_admin();
|
||||||
$ui->assign('_title', $_L['Dashboard'].' - '. $config['CompanyName']);
|
$ui->assign('_title', $_L['Dashboard'].' - '. $config['CompanyName']);
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
r2(APP_URL.'/index.php?_route=dashboard');
|
r2(APP_URL.'/index.php?_route=dashboard');
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
_admin();
|
_admin();
|
||||||
$ui->assign('_title', $_L['Reports'].'- '. $config['CompanyName']);
|
$ui->assign('_title', $_L['Reports'].'- '. $config['CompanyName']);
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
_auth();
|
_auth();
|
||||||
$ui->assign('_title', $_L['Dashboard'].' - '. $config['CompanyName']);
|
$ui->assign('_title', $_L['Dashboard'].' - '. $config['CompanyName']);
|
||||||
|
@ -3,10 +3,6 @@
|
|||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
if (isset($routes['1'])) {
|
if (isset($routes['1'])) {
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
if (session_status() == PHP_SESSION_NONE) session_start();
|
if (session_status() == PHP_SESSION_NONE) session_start();
|
||||||
session_destroy();
|
session_destroy();
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
_admin();
|
_admin();
|
||||||
$ui->assign('_title', $_L['Private_Message'].'- '. $config['CompanyName']);
|
$ui->assign('_title', $_L['Private_Message'].'- '. $config['CompanyName']);
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
_auth();
|
_auth();
|
||||||
$ui->assign('_title', $_L['Order_Voucher'].'- '. $config['CompanyName']);
|
$ui->assign('_title', $_L['Order_Voucher'].'- '. $config['CompanyName']);
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
_admin();
|
_admin();
|
||||||
$ui->assign('_title', 'Pages - '. $config['CompanyName']);
|
$ui->assign('_title', 'Pages - '. $config['CompanyName']);
|
||||||
|
22
system/controllers/paymentgateway.php
Normal file
22
system/controllers/paymentgateway.php
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
**/
|
||||||
|
_admin();
|
||||||
|
$ui->assign('_system_menu', 'paymentgateway');
|
||||||
|
|
||||||
|
$action = $routes['1'];
|
||||||
|
$admin = Admin::_info();
|
||||||
|
$ui->assign('_admin', $admin);
|
||||||
|
|
||||||
|
switch ($action) {
|
||||||
|
case 'xendit':
|
||||||
|
$ui->assign('_title', 'Xendit - Payment Gateway - '. $config['CompanyName']);
|
||||||
|
$ui->display('a404.tpl');
|
||||||
|
break;
|
||||||
|
case 'midtrans':
|
||||||
|
$ui->assign('_title', 'Midtrans - Payment Gateway - '. $config['CompanyName']);
|
||||||
|
|
||||||
|
$ui->display('a404.tpl');
|
||||||
|
break;
|
||||||
|
}
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
_auth();
|
_auth();
|
||||||
$ui->assign('_title', $_L['Private_Message'].'- '. $config['CompanyName']);
|
$ui->assign('_title', $_L['Private_Message'].'- '. $config['CompanyName']);
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
_admin();
|
_admin();
|
||||||
$ui->assign('_title', $_L['Network'].' - '. $config['CompanyName']);
|
$ui->assign('_title', $_L['Network'].' - '. $config['CompanyName']);
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
_admin();
|
_admin();
|
||||||
$ui->assign('_title', $_L['Reports'].' - '. $config['CompanyName']);
|
$ui->assign('_title', $_L['Reports'].' - '. $config['CompanyName']);
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
_admin();
|
_admin();
|
||||||
$ui->assign('_title', $_L['Network'].' - '. $config['CompanyName']);
|
$ui->assign('_title', $_L['Network'].' - '. $config['CompanyName']);
|
||||||
|
@ -3,10 +3,6 @@
|
|||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
_admin();
|
_admin();
|
||||||
$ui->assign('_title', $_L['Hotspot_Plans'] . ' - ' . $config['CompanyName']);
|
$ui->assign('_title', $_L['Hotspot_Plans'] . ' - ' . $config['CompanyName']);
|
||||||
|
@ -3,10 +3,6 @@
|
|||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
_admin();
|
_admin();
|
||||||
$ui->assign('_title', $_L['Settings'] . '- ' . $config['CompanyName']);
|
$ui->assign('_title', $_L['Settings'] . '- ' . $config['CompanyName']);
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
require('config.php');
|
require('config.php');
|
||||||
@ -108,7 +103,6 @@ foreach ($d as $ds){
|
|||||||
|
|
||||||
$u->status = 'off';
|
$u->status = 'off';
|
||||||
$u->save();
|
$u->save();
|
||||||
}else
|
}else echo " : ACTIVE \r\n";
|
||||||
echo " : ACTIVE \r\n";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
||||||
|
|
||||||
|
|
||||||
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
//error_reporting (0);
|
//error_reporting (0);
|
||||||
$appurl = $_POST['appurl'];
|
$appurl = $_POST['appurl'];
|
||||||
|
@ -34,6 +34,17 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group hidden">
|
||||||
|
<label class="col-md-2 control-label">Payment Gateway</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<select name="theme" id="theme" class="form-control">
|
||||||
|
<option value="none">None</option>
|
||||||
|
<option value="xendit" {if $_c['payment_gateway'] eq 'xendit'}selected="selected" {/if}>Xendit</option>
|
||||||
|
<option value="midtrans" {if $_c['payment_gateway'] eq 'midtrans'}selected="selected" {/if}>Midtrans</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-heading">Telegram Notification</div>
|
<div class="panel-heading">Telegram Notification</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
@ -262,6 +262,18 @@
|
|||||||
<li> </li>
|
<li> </li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li {if $_system_menu eq 'paymentgateway'}class="open"{/if}>
|
||||||
|
<a href="#" onClick="toggleDropdownMobile(this)">
|
||||||
|
<i class="ion ion-cash"></i>
|
||||||
|
<span class="text">Payment Gateway</span>
|
||||||
|
<i class="arrow ion-chevron-left"></i>
|
||||||
|
</a>
|
||||||
|
<ul class="inner-drop list-unstyled">
|
||||||
|
<li {if $_system_menu eq 'paymentgateway'}class="active"{/if}><a href="{$_url}paymentgateway/xendit">Xendit</a></li>
|
||||||
|
<li {if $_system_menu eq 'paymentgateway'}class="active"{/if}><a href="{$_url}paymentgateway/midtrans">Midtrans</a></li>
|
||||||
|
<li> </li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
<li {if $_system_menu eq 'disquss'}class="active"{/if}>
|
<li {if $_system_menu eq 'disquss'}class="active"{/if}>
|
||||||
<a href="https://github.com/ibnux/phpmixbill/discussions" target="_blank">
|
<a href="https://github.com/ibnux/phpmixbill/discussions" target="_blank">
|
||||||
<i class="ion ion-chatbubbles"></i>
|
<i class="ion ion-chatbubbles"></i>
|
||||||
|
12
ui/theme/default/user-order.tpl
Normal file
12
ui/theme/default/user-order.tpl
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{include file="sections/user-header.tpl"}
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-12">
|
||||||
|
<div class="panel mb20 panel-primary panel-hovered">
|
||||||
|
<div class="panel-heading">{$_L[$pageHeader]}</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
{include file="$_path/../pages/$PageFile.html"}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{include file="sections/user-footer.tpl"}
|
Loading…
x
Reference in New Issue
Block a user