Merge pull request #334 from Focuslinkstech/Development

patch
This commit is contained in:
iBNu Maksum 2024-10-26 19:14:45 +07:00 committed by GitHub
commit 383a1e55d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
40 changed files with 118 additions and 56 deletions

View File

@ -1,10 +1,15 @@
<?php <?php
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://"; $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ||
$host = $_SERVER['HTTP_HOST']; (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443)) ? "https://" : "http://";
// Check if HTTP_HOST is set, otherwise use a default value or SERVER_NAME
$host = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : 'localhost');
$baseDir = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/\\'); $baseDir = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/\\');
define('APP_URL', $protocol . $host . $baseDir); define('APP_URL', $protocol . $host . $baseDir);
$_app_stage = 'Live'; # Do not change this $_app_stage = 'Live'; # Do not change this
$db_host = "localhost"; # Database Host $db_host = "localhost"; # Database Host

View File

@ -40,7 +40,7 @@ class Admin
$isValid = self::validateToken($_SESSION['aid'], $_COOKIE['aid']); $isValid = self::validateToken($_SESSION['aid'], $_COOKIE['aid']);
if (!$isValid) { if (!$isValid) {
self::removeCookie(); self::removeCookie();
_alert(Lang::T('Token has expired. Please log in again.'), 'danger', "admin"); _alert(Lang::T('Token has expired. Please log in again.') . '.'.$_SESSION['aid'], 'danger', "admin");
return 0; return 0;
} }
return $_SESSION['aid']; return $_SESSION['aid'];
@ -57,7 +57,7 @@ class Admin
} }
if (!empty($_COOKIE['aid']) && !$isValid) { if (!empty($_COOKIE['aid']) && !$isValid) {
self::removeCookie(); self::removeCookie();
_alert(Lang::T('Token has expired. Please log in again.'), 'danger', "admin"); _alert(Lang::T('Token has expired. Please log in again.') . '..', 'danger', "admin");
return 0; return 0;
} else { } else {
if (time() - $tmp[1] < 86400 * 7) { if (time() - $tmp[1] < 86400 * 7) {
@ -124,7 +124,9 @@ class Admin
'samesite' => 'Lax', 'samesite' => 'Lax',
]); ]);
session_destroy(); session_destroy();
unset($_COOKIE['aid']); session_unset();
session_start();
unset($_COOKIE['aid'], $_SESSION['aid']);
} }
} }
@ -151,10 +153,10 @@ class Admin
{ {
global $config; global $config;
$query = ORM::for_table('tbl_users')->select('login_token')->findOne($aid); $query = ORM::for_table('tbl_users')->select('login_token')->findOne($aid);
if($config['single_session'] != 'yes'){ if ($config['single_session'] != 'yes') {
return true; // For multi-session, any token is valid return true; // For multi-session, any token is valid
} }
if(empty($query)){ if (empty($query)) {
return true; return true;
} }
return $query->login_token === sha1($cookieToken); return $query->login_token === sha1($cookieToken);

View File

@ -235,6 +235,7 @@ class Message
$textInvoice = str_replace('[[phone]]', $config['phone'], $textInvoice); $textInvoice = str_replace('[[phone]]', $config['phone'], $textInvoice);
$textInvoice = str_replace('[[invoice]]', $trx['invoice'], $textInvoice); $textInvoice = str_replace('[[invoice]]', $trx['invoice'], $textInvoice);
$textInvoice = str_replace('[[date]]', Lang::dateAndTimeFormat($trx['recharged_on'], $trx['recharged_time']), $textInvoice); $textInvoice = str_replace('[[date]]', Lang::dateAndTimeFormat($trx['recharged_on'], $trx['recharged_time']), $textInvoice);
$textInvoice = str_replace('[[trx_date]]', Lang::dateAndTimeFormat($trx['recharged_on'], $trx['recharged_time']), $textInvoice);
if (!empty($trx['note'])) { if (!empty($trx['note'])) {
$textInvoice = str_replace('[[note]]', $trx['note'], $textInvoice); $textInvoice = str_replace('[[note]]', $trx['note'], $textInvoice);
} }

View File

@ -475,7 +475,8 @@ class Package
$textInvoice = str_replace('[[address]]', $config['address'], $textInvoice); $textInvoice = str_replace('[[address]]', $config['address'], $textInvoice);
$textInvoice = str_replace('[[phone]]', $config['phone'], $textInvoice); $textInvoice = str_replace('[[phone]]', $config['phone'], $textInvoice);
$textInvoice = str_replace('[[invoice]]', $inv, $textInvoice); $textInvoice = str_replace('[[invoice]]', $inv, $textInvoice);
$textInvoice = str_replace('[[date]]', Lang::dateTimeFormat(date("Y-m-d")), $textInvoice); $textInvoice = str_replace('[[date]]', Lang::dateTimeFormat(date("Y-m-d H:i:s")), $textInvoice);
$textInvoice = str_replace('[[trx_date]]', Lang::dateTimeFormat(date("Y-m-d H:i:s")), $textInvoice);
$textInvoice = str_replace('[[payment_gateway]]', $gateway, $textInvoice); $textInvoice = str_replace('[[payment_gateway]]', $gateway, $textInvoice);
$textInvoice = str_replace('[[payment_channel]]', $channel, $textInvoice); $textInvoice = str_replace('[[payment_channel]]', $channel, $textInvoice);
$textInvoice = str_replace('[[type]]', 'Balance', $textInvoice); $textInvoice = str_replace('[[type]]', 'Balance', $textInvoice);

View File

@ -145,7 +145,7 @@ switch ($action) {
r2(U . 'settings/app', 'e', 'PHP GD is not installed'); r2(U . 'settings/app', 'e', 'PHP GD is not installed');
} }
} }
if ($company == '') { if ($_POST['general'] && $company == '') {
r2(U . 'settings/app', 'e', Lang::T('All field is required')); r2(U . 'settings/app', 'e', Lang::T('All field is required'));
} else { } else {
if ($radius_enable) { if ($radius_enable) {

View File

@ -207,3 +207,5 @@ unlink($lockFile);
$timestampFile = "$UPLOAD_PATH/cron_last_run.txt"; $timestampFile = "$UPLOAD_PATH/cron_last_run.txt";
file_put_contents($timestampFile, time()); file_put_contents($timestampFile, time());
run_hook('cronjob_end'); #HOOK

View File

@ -874,5 +874,6 @@
"Welcome_Message": "Welcome Message", "Welcome_Message": "Welcome Message",
"will_be_replaced_with_Customer_password": "will be replaced with Customer password", "will_be_replaced_with_Customer_password": "will be replaced with Customer password",
"will_be_replaced_with_Customer_Portal_URL": "will be replaced with Customer Portal URL", "will_be_replaced_with_Customer_Portal_URL": "will be replaced with Customer Portal URL",
"will_be_replaced_with_Company_Name": "will be replaced with Company Name" "will_be_replaced_with_Company_Name": "will be replaced with Company Name",
"Token_has_expired__Please_log_in_again_": "Token has expired. Please log in again."
} }

View File

@ -101,7 +101,7 @@
</div> </div>
</div> </div>
<div class="form-group text-center"> <div class="form-group text-center">
<button class="btn btn-primary" type="submit">{Lang::T('Save Changes')}</button> <button class="btn btn-primary" onclick="return confirm('Continue the process of adding Admin?')" type="submit">{Lang::T('Save Changes')}</button>
Or <a href="{$_url}settings/users">{Lang::T('Cancel')}</a> Or <a href="{$_url}settings/users">{Lang::T('Cancel')}</a>
</div> </div>
</form> </form>

View File

@ -126,7 +126,7 @@
</div> </div>
</div> </div>
<div class="form-group text-center"> <div class="form-group text-center">
<button class="btn btn-primary" type="submit">{Lang::T('Save Changes')}</button> <button class="btn btn-primary" onclick="return confirm('Continue the Admin change process?')" type="submit">{Lang::T('Save Changes')}</button>
Or <a href="{$_url}settings/users">{Lang::T('Cancel')}</a> Or <a href="{$_url}settings/users">{Lang::T('Cancel')}</a>
</div> </div>
</form> </form>

View File

@ -120,12 +120,17 @@
<span class="help-block col-md-4">{Lang::T('Income will reset every this <span class="help-block col-md-4">{Lang::T('Income will reset every this
day')}</span> day')}</span>
</div> </div>
<button class="btn btn-success btn-block" type="submit"> <button class="btn btn-success btn-block" name="general" type="submit">
{Lang::T('Save Changes')} {Lang::T('Save Changes')}
</button> </button>
</div> </div>
</div> </div>
</div> </div>
</form>
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/app-post" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="{$csrf_token}">
<div class="panel"> <div class="panel">
<div class="panel-heading" role="tab" id="HideDashboardContent"> <div class="panel-heading" role="tab" id="HideDashboardContent">
<h4 class="panel-title"> <h4 class="panel-title">
@ -161,6 +166,10 @@
</div> </div>
</div> </div>
</div> </div>
</form>
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/app-post" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="{$csrf_token}">
<div class="panel"> <div class="panel">
<div class="panel-heading" role="tab" id="Registration"> <div class="panel-heading" role="tab" id="Registration">
<h4 class="panel-title"> <h4 class="panel-title">
@ -230,9 +239,9 @@
<div class="col-md-6"> <div class="col-md-6">
<select name="phone_otp_type" id="phone_otp_type" class="form-control"> <select name="phone_otp_type" id="phone_otp_type" class="form-control">
<option value="sms" {if $_c['phone_otp_type']=='sms' }selected="selected" {/if}> <option value="sms" {if $_c['phone_otp_type']=='sms' }selected="selected" {/if}>
{Lang::T('By SMS')} {Lang::T('By SMS')}</option>
<option value="whatsapp" {if $_c['phone_otp_type']=='whatsapp' }selected="selected" {/if}> <option value="whatsapp" {if $_c['phone_otp_type']=='whatsapp' }selected="selected" {/if}>
{Lang::T('by WhatsApp')} {Lang::T('by WhatsApp')}</option>
<option value="both" {if $_c['phone_otp_type']=='both' }selected="selected" {/if}> <option value="both" {if $_c['phone_otp_type']=='both' }selected="selected" {/if}>
{Lang::T('By WhatsApp and SMS')} {Lang::T('By WhatsApp and SMS')}
</option> </option>
@ -247,6 +256,10 @@
</div> </div>
</div> </div>
</div> </div>
</form>
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/app-post" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="{$csrf_token}">
<div class="panel"> <div class="panel">
<div class="panel-heading" role="tab" id="Voucher"> <div class="panel-heading" role="tab" id="Voucher">
<h4 class="panel-title"> <h4 class="panel-title">
@ -310,7 +323,10 @@
</div> </div>
</div> </div>
</div> </div>
</form>
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/app-post" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="{$csrf_token}">
<div class="panel"> <div class="panel">
<div class="panel-heading" role="tab" id="FreeRadius"> <div class="panel-heading" role="tab" id="FreeRadius">
<h4 class="panel-title"> <h4 class="panel-title">
@ -341,7 +357,10 @@
</div> </div>
</div> </div>
</div> </div>
</form>
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/app-post" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="{$csrf_token}">
<div class="panel"> <div class="panel">
<div class="panel-heading" role="tab" id="ExtendPostpaidExpiration"> <div class="panel-heading" role="tab" id="ExtendPostpaidExpiration">
<h4 class="panel-title"> <h4 class="panel-title">
@ -385,7 +404,10 @@
</div> </div>
</div> </div>
</div> </div>
</form>
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/app-post" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="{$csrf_token}">
<div class="panel"> <div class="panel">
<div class="panel-heading" role="tab" id="CustomerBalanceSystem"> <div class="panel-heading" role="tab" id="CustomerBalanceSystem">
<h4 class="panel-title"> <h4 class="panel-title">
@ -437,7 +459,10 @@
</div> </div>
</div> </div>
</div> </div>
</form>
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/app-post" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="{$csrf_token}">
<div class="panel"> <div class="panel">
<div class="panel-heading" role="tab" id="TelegramNotification"> <div class="panel-heading" role="tab" id="TelegramNotification">
<h4 class="panel-title"> <h4 class="panel-title">
@ -477,7 +502,10 @@
</div> </div>
</div> </div>
</div> </div>
</form>
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/app-post" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="{$csrf_token}">
<div class="panel"> <div class="panel">
<div class="panel-heading" role="tab" id="SMSNotification"> <div class="panel-heading" role="tab" id="SMSNotification">
<h4 class="panel-title"> <h4 class="panel-title">
@ -529,7 +557,10 @@
</div> </div>
</div> </div>
</div> </div>
</form>
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/app-post" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="{$csrf_token}">
<div class="panel"> <div class="panel">
<div class="panel-heading" role="tab" id="WhatsappNotification"> <div class="panel-heading" role="tab" id="WhatsappNotification">
<h4 class="panel-title"> <h4 class="panel-title">
@ -552,7 +583,7 @@
placeholder="https://domain/?param_number=[number]&param_text=[text]&secret="> placeholder="https://domain/?param_number=[number]&param_text=[text]&secret=">
</div> </div>
<p class="help-block col-md-4">{Lang::T('Must include')} <b>[text]</b> &amp; <b>[number]</b>, <p class="help-block col-md-4">{Lang::T('Must include')} <b>[text]</b> &amp; <b>[number]</b>,
{Lang::T('it will be replaced.')} {Lang::T('it will be replaced.')}</p>
</div> </div>
<small id="emailHelp" class="form-text text-muted">{Lang::T('You can use')} WhatsApp <small id="emailHelp" class="form-text text-muted">{Lang::T('You can use')} WhatsApp
{Lang::T('in here too.')} <a href="https://wa.nux.my.id/login" target="_blank">{Lang::T('Free {Lang::T('in here too.')} <a href="https://wa.nux.my.id/login" target="_blank">{Lang::T('Free
@ -563,7 +594,10 @@
</div> </div>
</div> </div>
</div> </div>
</form>
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/app-post" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="{$csrf_token}">
<div class="panel"> <div class="panel">
<div class="panel-heading" role="tab" id="EmailNotification"> <div class="panel-heading" role="tab" id="EmailNotification">
<h4 class="panel-title"> <h4 class="panel-title">
@ -645,7 +679,10 @@
</div> </div>
</div> </div>
</div> </div>
</form>
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/app-post" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="{$csrf_token}">
<div class="panel"> <div class="panel">
<div class="panel-heading" role="tab" id="UserNotification"> <div class="panel-heading" role="tab" id="UserNotification">
<h4 class="panel-title"> <h4 class="panel-title">
@ -708,7 +745,10 @@
</div> </div>
</div> </div>
</div> </div>
</form>
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/app-post" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="{$csrf_token}">
<div class="panel"> <div class="panel">
<div class="panel-heading" role="tab" id="TawkToChatWidget"> <div class="panel-heading" role="tab" id="TawkToChatWidget">
<h4 class="panel-title"> <h4 class="panel-title">
@ -738,7 +778,10 @@
</div> </div>
</div> </div>
</div> </div>
</form>
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/app-post" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="{$csrf_token}">
<div class="panel"> <div class="panel">
<div class="panel-heading" role="tab" id="APIKey"> <div class="panel-heading" role="tab" id="APIKey">
<h4 class="panel-title"> <h4 class="panel-title">
@ -765,7 +808,10 @@
</div> </div>
</div> </div>
</div> </div>
</form>
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/app-post" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="{$csrf_token}">
<div class="panel"> <div class="panel">
<div class="panel-heading" role="tab" id="Proxy"> <div class="panel-heading" role="tab" id="Proxy">
<h4 class="panel-title"> <h4 class="panel-title">
@ -798,7 +844,10 @@
</div> </div>
</div> </div>
</div> </div>
</form>
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/app-post" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="{$csrf_token}">
<div class="panel"> <div class="panel">
<div class="panel-heading" role="tab" id="TaxSystem"> <div class="panel-heading" role="tab" id="TaxSystem">
<h4 class="panel-title"> <h4 class="panel-title">
@ -869,7 +918,10 @@
</div> </div>
</div> </div>
</div> </div>
</form>
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/app-post" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="{$csrf_token}">
<div class="panel"> <div class="panel">
<div class="panel-heading" role="tab" id="GithubAuthentication"> <div class="panel-heading" role="tab" id="GithubAuthentication">
<h4 class="panel-title"> <h4 class="panel-title">

View File

@ -46,7 +46,7 @@
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success" type="submit">{Lang::T('Save Changes')}</button> <button class="btn btn-success" onclick="return confirm('Continue the balance top-up process?')" type="submit">{Lang::T('Save Changes')}</button>
Or <a href="{$_url}services/balance">{Lang::T('Cancel')}</a> Or <a href="{$_url}services/balance">{Lang::T('Cancel')}</a>
</div> </div>
</div> </div>

View File

@ -55,7 +55,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success" type="submit">{Lang::T('Save Changes')}</button> <button class="btn btn-success" onclick="return confirm('Continue the process of changing the balance contents?')" type="submit">{Lang::T('Save Changes')}</button>
Or <a href="{$_url}services/balance">{Lang::T('Cancel')}</a> Or <a href="{$_url}services/balance">{Lang::T('Cancel')}</a>
</div> </div>
</div> </div>
@ -65,4 +65,4 @@
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -69,7 +69,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary" type="submit">{Lang::T('Save')}</button> <button class="btn btn-primary" onclick="return confirm('Continue the Bandwidth addition process?')" type="submit">{Lang::T('Save')}</button>
Or <a href="{$_url}bandwidth/list">{Lang::T('Cancel')}</a> Or <a href="{$_url}bandwidth/list">{Lang::T('Cancel')}</a>
</div> </div>
</div> </div>
@ -128,4 +128,4 @@ function burstIt(value) {
} }
</script> </script>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -86,7 +86,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary" type="submit">{Lang::T('Save Change')}</button> <button class="btn btn-primary" onclick="return confirm('Continue the Bandwidth change process?')" type="submit">{Lang::T('Save Change')}</button>
Or <a href="{$_url}bandwidth/list">{Lang::T('Cancel')}</a> Or <a href="{$_url}bandwidth/list">{Lang::T('Cancel')}</a>
</div> </div>
</div> </div>
@ -145,4 +145,4 @@
} }
</script> </script>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -280,7 +280,7 @@
{/if} {/if}
<tr> <tr>
<td class="small text-primary text-uppercase text-normal"> <td class="small text-primary text-uppercase text-normal">
{if $_bill['status'] == 'on'} {if $_bill['status'] == 'on' && $_bill['prepaid'] != 'YES'}
<a href="{$_url}home&deactivate={$_bill['id']}" <a href="{$_url}home&deactivate={$_bill['id']}"
onclick="return confirm('{Lang::T('Deactivate')}?')" class="btn btn-danger btn-xs"><i onclick="return confirm('{Lang::T('Deactivate')}?')" class="btn btn-danger btn-xs"><i
class="glyphicon glyphicon-trash"></i></a> class="glyphicon glyphicon-trash"></i></a>

View File

@ -203,7 +203,7 @@
</div> </div>
</div> </div>
<center> <center>
<button class="btn btn-primary" type="submit"> <button class="btn btn-primary" onclick="return confirm('Continue the process of adding Customer Data?')" type="submit">
{Lang::T('Save Changes')} {Lang::T('Save Changes')}
</button> </button>
<br><a href="{$_url}customers/list" class="btn btn-link">{Lang::T('Cancel')}</a> <br><a href="{$_url}customers/list" class="btn btn-link">{Lang::T('Cancel')}</a>
@ -312,4 +312,4 @@
{/literal} {/literal}
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -226,7 +226,7 @@
</div> </div>
</div> </div>
<center> <center>
<button class="btn btn-primary" type="submit"> <button class="btn btn-primary" onclick="return confirm('Continue the Customer Data change process?')" type="submit">
{Lang::T('Save Changes')} {Lang::T('Save Changes')}
</button> </button>
<br><a href="{$_url}customers/list" class="btn btn-link">{Lang::T('Cancel')}</a> <br><a href="{$_url}customers/list" class="btn btn-link">{Lang::T('Cancel')}</a>
@ -310,4 +310,4 @@
</script> </script>
{/literal} {/literal}
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -46,7 +46,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-md-9 col-md-offset-3"> <div class="col-md-9 col-md-offset-3">
<button class="btn btn-success" <button class="btn btn-success" onclick="return confirm('Continue the Customer Balance top-up process?')"
type="submit">{Lang::T('Recharge')}</button> type="submit">{Lang::T('Recharge')}</button>
Or <a href="{$_url}customers/list">{Lang::T('Cancel')}</a> Or <a href="{$_url}customers/list">{Lang::T('Cancel')}</a>
</div> </div>

View File

@ -203,7 +203,7 @@
</span> </span>
<div class="form-group"> <div class="form-group">
<div class="col-md-offset-2 col-md-10"> <div class="col-md-offset-2 col-md-10">
<button class="btn btn-success" type="submit">{Lang::T('Save Changes')}</button> <button class="btn btn-success" onclick="return confirm('Continue the Hotspot Package creation process?')" type="submit">{Lang::T('Save Changes')}</button>
Or <a href="{$_url}services/hotspot">{Lang::T('Cancel')}</a> Or <a href="{$_url}services/hotspot">{Lang::T('Cancel')}</a>
</div> </div>
</div> </div>

View File

@ -278,7 +278,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-md-offset-2 col-md-9"> <div class="col-md-offset-2 col-md-9">
<button class="btn btn-success" type="submit">{Lang::T('Save Changes')}</button> <button class="btn btn-success" onclick="return confirm('Continue the process of changing Hotspot Package data?')" type="submit">{Lang::T('Save Changes')}</button>
Or <a href="{$_url}services/hotspot">{Lang::T('Cancel')}</a> Or <a href="{$_url}services/hotspot">{Lang::T('Cancel')}</a>
</div> </div>
</div> </div>

View File

@ -18,7 +18,7 @@
{/foreach} {/foreach}
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary" <button class="btn btn-primary" onclick="return confirm('Continue the process of adding Languages?')"
type="submit">{Lang::T('Save Changes')}</button> type="submit">{Lang::T('Save Changes')}</button>
Or <a href="{$_url}settings/localisation">{Lang::T('Cancel')}</a> Or <a href="{$_url}settings/localisation">{Lang::T('Cancel')}</a>
</div> </div>
@ -29,4 +29,4 @@
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -77,7 +77,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success" type="submit" name=send value=now> <button class="btn btn-success" onclick="return confirm('Continue the process of sending mass messages?')" type="submit" name=send value=now>
{Lang::T('Send Message')}</button> {Lang::T('Send Message')}</button>
<a href="{$_url}dashboard" class="btn btn-default">{Lang::T('Cancel')}</a> <a href="{$_url}dashboard" class="btn btn-default">{Lang::T('Cancel')}</a>
</div> </div>

View File

@ -50,7 +50,7 @@
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success" type="submit">{Lang::T('Send Message')}</button> <button class="btn btn-success" onclick="return confirm('Continue the process of sending messages?')" type="submit">{Lang::T('Send Message')}</button>
<a href="{$_url}dashboard" class="btn btn-default">{Lang::T('Cancel')}</a> <a href="{$_url}dashboard" class="btn btn-default">{Lang::T('Cancel')}</a>
</div> </div>
</div> </div>

View File

@ -58,7 +58,7 @@
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success" type="submit">{Lang::T('Edit')}</button> <button class="btn btn-success" onclick="return confirm('Continue the package change process?')" type="submit">{Lang::T('Edit')}</button>
Or <a href="{$_url}plan/list">{Lang::T('Cancel')}</a> Or <a href="{$_url}plan/list">{Lang::T('Cancel')}</a>
</div> </div>
</div> </div>
@ -68,4 +68,4 @@
</div> </div>
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -40,7 +40,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary" type="submit">{Lang::T('Save Changes')}</button> <button class="btn btn-primary" onclick="return confirm('Continue the Pool addition process?')" type="submit">{Lang::T('Save Changes')}</button>
Or <a href="{$_url}pool/list">{Lang::T('Cancel')}</a> Or <a href="{$_url}pool/list">{Lang::T('Cancel')}</a>
</div> </div>
</div> </div>

View File

@ -38,7 +38,7 @@
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success" type="submit">{Lang::T('Save Changes')}</button> <button class="btn btn-success" onclick="return confirm('Continue the Port change process?')" type="submit">{Lang::T('Save Changes')}</button>
Or <a href="{$_url}pool/list">{Lang::T('Cancel')}</a> Or <a href="{$_url}pool/list">{Lang::T('Cancel')}</a>
</div> </div>
</div> </div>

View File

@ -37,7 +37,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary" type="submit">{Lang::T('Save Changes')}</button> <button class="btn btn-primary" onclick="return confirm('Continue the process of adding Ports?')" type="submit">{Lang::T('Save')}</button>
Or <a href="{$_url}pool/port">{Lang::T('Cancel')}</a> Or <a href="{$_url}pool/port">{Lang::T('Cancel')}</a>
</div> </div>
</div> </div>

View File

@ -35,7 +35,7 @@
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success" type="submit">{Lang::T('Save Changes')}</button> <button class="btn btn-success" onclick="return confirm('Continue the Port change process?')" type="submit">{Lang::T('Save Changes')}</button>
Or <a href="{$_url}pool/port">{Lang::T('Cancel')}</a> Or <a href="{$_url}pool/port">{Lang::T('Cancel')}</a>
</div> </div>
</div> </div>

View File

@ -147,7 +147,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-md-offset-2 col-md-10"> <div class="col-md-offset-2 col-md-10">
<button class="btn btn-primary" type="submit">{Lang::T('Save Changes')}</button> <button class="btn btn-primary" onclick="return confirm('Continue the process of adding the PPPoE Package?')" type="submit">{Lang::T('Save Changes')}</button>
Or <a href="{$_url}services/pppoe">{Lang::T('Cancel')}</a> Or <a href="{$_url}services/pppoe">{Lang::T('Cancel')}</a>
</div> </div>
</div> </div>

View File

@ -214,7 +214,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success" type="submit">{Lang::T('Save Changes')}</button> <button class="btn btn-success" onclick="return confirm('Continue the PPPoE Package change process?')" type="submit">{Lang::T('Save Changes')}</button>
Or <a href="{$_url}services/pppoe">{Lang::T('Cancel')}</a> Or <a href="{$_url}services/pppoe">{Lang::T('Cancel')}</a>
</div> </div>
</div> </div>

View File

@ -71,7 +71,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary" <button class="btn btn-primary" onclick="return confirm('Continue the process of adding Radius NAS?')"
type="submit">{Lang::T('Save Changes')}</button> type="submit">{Lang::T('Save Changes')}</button>
Or <a href="{$_url}radius/nas-list">{Lang::T('Cancel')}</a> Or <a href="{$_url}radius/nas-list">{Lang::T('Cancel')}</a>
</div> </div>

View File

@ -71,7 +71,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary" <button class="btn btn-primary" onclick="return confirm('Continue the process of changing the Radius of the NAS?')"
type="submit">{Lang::T('Save Changes')}</button> type="submit">{Lang::T('Save Changes')}</button>
Or <a href="{$_url}radius/nas-list">{Lang::T('Cancel')}</a> Or <a href="{$_url}radius/nas-list">{Lang::T('Cancel')}</a>
</div> </div>

View File

@ -59,7 +59,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success" <button class="btn btn-success" onclick="return confirm('Continue the Recharge process?')"
type="submit">{Lang::T('Recharge')}</button> type="submit">{Lang::T('Recharge')}</button>
{Lang::T('Or')} <a href="{$_url}customers/list">{Lang::T('Cancel')}</a> {Lang::T('Or')} <a href="{$_url}customers/list">{Lang::T('Cancel')}</a>
</div> </div>

View File

@ -24,7 +24,7 @@
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success" <button class="btn btn-success" onclick="return confirm('Continue the Refill process?')"
type="submit">{Lang::T('Recharge')}</button> type="submit">{Lang::T('Recharge')}</button>
Or <a href="{$_url}customers/list">{Lang::T('Cancel')}</a> Or <a href="{$_url}customers/list">{Lang::T('Cancel')}</a>
</div> </div>
@ -36,4 +36,4 @@
</div> </div>
{include file="sections/footer.tpl"} {include file="sections/footer.tpl"}

View File

@ -61,8 +61,8 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary" <button class="btn btn-primary" onclick="return confirm('Continue the process of adding Routers?')"
type="submit">{Lang::T('Save Changes')}</button> type="submit">{Lang::T('Save')}</button>
Or <a href="{$_url}routers/list">{Lang::T('Cancel')}</a> Or <a href="{$_url}routers/list">{Lang::T('Cancel')}</a>
</div> </div>
</div> </div>

View File

@ -78,7 +78,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary" type="submit">{Lang::T('Save Changes')}</button> <button class="btn btn-primary" onclick="return confirm('Continue the process of changing Routers?')" type="submit">{Lang::T('Save Changes')}</button>
Or <a href="{$_url}routers/list">{Lang::T('Cancel')}</a> Or <a href="{$_url}routers/list">{Lang::T('Cancel')}</a>
</div> </div>
</div> </div>

View File

@ -185,8 +185,6 @@
color: #a94442; color: #a94442;
background-color: #f2dede; background-color: #f2dede;
border-color: #ebccd1; border-color: #ebccd1;
border-bottom-right-radius: 21px;
border-bottom-left-radius: 21px;
} }
.panel-heading { .panel-heading {

View File

@ -73,7 +73,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success" type="submit">{Lang::T('Generate')}</button> <button class="btn btn-success" onclick="return confirm('Continue the Voucher creation process?')" type="submit">{Lang::T('Generate')}</button>
</div> </div>
</div> </div>
</form> </form>

View File

@ -134,7 +134,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-md-offset-2 col-md-10"> <div class="col-md-offset-2 col-md-10">
<button class="btn btn-primary" type="submit">{Lang::T('Save Changes')}</button> <button class="btn btn-primary" onclick="return confirm('Continue the VPN creation process?')" type="submit">{Lang::T('Save Changes')}</button>
Or <a href="{$_url}services/pppoe">{Lang::T('Cancel')}</a> Or <a href="{$_url}services/pppoe">{Lang::T('Cancel')}</a>
</div> </div>
</div> </div>

View File

@ -214,7 +214,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success" type="submit">{Lang::T('Save Changes')}</button> <button class="btn btn-success" onclick="return confirm('Continue the VPN creation process?')" type="submit">{Lang::T('Save Changes')}</button>
Or <a href="{$_url}services/vpn">{Lang::T('Cancel')}</a> Or <a href="{$_url}services/vpn">{Lang::T('Cancel')}</a>
</div> </div>
</div> </div>