remove $_L
This commit is contained in:
parent
dcbb9434d6
commit
3a2e7c9192
8
init.php
8
init.php
@ -254,7 +254,13 @@ function r2($to, $ntype = 'e', $msg = '')
|
|||||||
|
|
||||||
function _alert($text, $type = 'success', $url = "home", $time = 3)
|
function _alert($text, $type = 'success', $url = "home", $time = 3)
|
||||||
{
|
{
|
||||||
global $ui;
|
global $ui, $isApi;
|
||||||
|
if ($isApi) {
|
||||||
|
showResult(
|
||||||
|
($type=='success')? true : false,
|
||||||
|
$text
|
||||||
|
);
|
||||||
|
}
|
||||||
if (!isset($ui)) return;
|
if (!isset($ui)) return;
|
||||||
if (strlen($url) > 4) {
|
if (strlen($url) > 4) {
|
||||||
if (substr($url, 0, 4) != "http") {
|
if (substr($url, 0, 4) != "http") {
|
||||||
|
@ -53,7 +53,7 @@ switch ($action) {
|
|||||||
$ui->assign('d', $d);
|
$ui->assign('d', $d);
|
||||||
$ui->display('bandwidth-edit.tpl');
|
$ui->display('bandwidth-edit.tpl');
|
||||||
} else {
|
} else {
|
||||||
r2(U . 'bandwidth/list', 'e', $_L['Account_Not_Found']);
|
r2(U . 'bandwidth/list', 'e', Lang::T('Account Not Found'));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -207,7 +207,7 @@ switch ($action) {
|
|||||||
$ui->assign('xheader', $leafletpickerHeader);
|
$ui->assign('xheader', $leafletpickerHeader);
|
||||||
$ui->display('customers-view.tpl');
|
$ui->display('customers-view.tpl');
|
||||||
} else {
|
} else {
|
||||||
r2(U . 'customers/list', 'e', $_L['Account_Not_Found']);
|
r2(U . 'customers/list', 'e', Lang::T('Account Not Found'));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'edit':
|
case 'edit':
|
||||||
@ -227,7 +227,7 @@ switch ($action) {
|
|||||||
$ui->assign('xheader', $leafletpickerHeader);
|
$ui->assign('xheader', $leafletpickerHeader);
|
||||||
$ui->display('customers-edit.tpl');
|
$ui->display('customers-edit.tpl');
|
||||||
} else {
|
} else {
|
||||||
r2(U . 'customers/list', 'e', $_L['Account_Not_Found']);
|
r2(U . 'customers/list', 'e', Lang::T('Account Not Found'));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -253,7 +253,7 @@ switch ($action) {
|
|||||||
$ui->assign('_title', 'Edit Plan');
|
$ui->assign('_title', 'Edit Plan');
|
||||||
$ui->display('plan-edit.tpl');
|
$ui->display('plan-edit.tpl');
|
||||||
} else {
|
} else {
|
||||||
r2(U . 'plan/list', 'e', $_L['Account_Not_Found']);
|
r2(U . 'plan/list', 'e', Lang::T('Account Not Found'));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ switch ($action) {
|
|||||||
run_hook('view_edit_pool'); #HOOK
|
run_hook('view_edit_pool'); #HOOK
|
||||||
$ui->display('pool-edit.tpl');
|
$ui->display('pool-edit.tpl');
|
||||||
} else {
|
} else {
|
||||||
r2(U . 'pool/list', 'e', $_L['Account_Not_Found']);
|
r2(U . 'pool/list', 'e', Lang::T('Account Not Found'));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* by https://t.me/ibnux
|
* by https://t.me/ibnux
|
||||||
**/
|
**/
|
||||||
_admin();
|
_admin();
|
||||||
$ui->assign('_title', $_L['Plugin Manager']);
|
$ui->assign('_title', Lang::T('Plugin Manager'));
|
||||||
$ui->assign('_system_menu', 'settings');
|
$ui->assign('_system_menu', 'settings');
|
||||||
|
|
||||||
$action = $routes['1'];
|
$action = $routes['1'];
|
||||||
@ -80,7 +80,7 @@ switch ($action) {
|
|||||||
$ui->assign('d', $d);
|
$ui->assign('d', $d);
|
||||||
$ui->display('radius-nas-edit.tpl');
|
$ui->display('radius-nas-edit.tpl');
|
||||||
} else {
|
} else {
|
||||||
r2(U . 'radius/list', 'e', $_L['Account_Not_Found']);
|
r2(U . 'radius/list', 'e', Lang::T('Account Not Found'));
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -54,7 +54,7 @@ switch ($action) {
|
|||||||
run_hook('view_router_edit'); #HOOK
|
run_hook('view_router_edit'); #HOOK
|
||||||
$ui->display('routers-edit.tpl');
|
$ui->display('routers-edit.tpl');
|
||||||
} else {
|
} else {
|
||||||
r2(U . 'routers/list', 'e', $_L['Account_Not_Found']);
|
r2(U . 'routers/list', 'e', Lang::T('Account Not Found'));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ switch ($action) {
|
|||||||
run_hook('view_edit_plan'); #HOOK
|
run_hook('view_edit_plan'); #HOOK
|
||||||
$ui->display('hotspot-edit.tpl');
|
$ui->display('hotspot-edit.tpl');
|
||||||
} else {
|
} else {
|
||||||
r2(U . 'services/hotspot', 'e', $_L['Account_Not_Found']);
|
r2(U . 'services/hotspot', 'e', Lang::T('Account Not Found'));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -432,7 +432,7 @@ switch ($action) {
|
|||||||
run_hook('view_edit_ppoe'); #HOOK
|
run_hook('view_edit_ppoe'); #HOOK
|
||||||
$ui->display('pppoe-edit.tpl');
|
$ui->display('pppoe-edit.tpl');
|
||||||
} else {
|
} else {
|
||||||
r2(U . 'services/pppoe', 'e', $_L['Account_Not_Found']);
|
r2(U . 'services/pppoe', 'e', Lang::T('Account Not Found'));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -393,7 +393,7 @@ switch ($action) {
|
|||||||
$ui->assign('_title', $d['username']);
|
$ui->assign('_title', $d['username']);
|
||||||
$ui->display('users-view.tpl');
|
$ui->display('users-view.tpl');
|
||||||
} else {
|
} else {
|
||||||
r2(U . 'settings/users', 'e', $_L['Account_Not_Found']);
|
r2(U . 'settings/users', 'e', Lang::T('Account Not Found'));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'users-edit':
|
case 'users-edit':
|
||||||
@ -430,7 +430,7 @@ switch ($action) {
|
|||||||
run_hook('view_edit_admin'); #HOOK
|
run_hook('view_edit_admin'); #HOOK
|
||||||
$ui->display('users-edit.tpl');
|
$ui->display('users-edit.tpl');
|
||||||
} else {
|
} else {
|
||||||
r2(U . 'settings/users', 'e', $_L['Account_Not_Found']);
|
r2(U . 'settings/users', 'e', Lang::T('Account Not Found'));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -449,7 +449,7 @@ switch ($action) {
|
|||||||
$d->delete();
|
$d->delete();
|
||||||
r2(U . 'settings/users', 's', Lang::T('User deleted Successfully'));
|
r2(U . 'settings/users', 's', Lang::T('User deleted Successfully'));
|
||||||
} else {
|
} else {
|
||||||
r2(U . 'settings/users', 'e', $_L['Account_Not_Found']);
|
r2(U . 'settings/users', 'e', Lang::T('Account Not Found'));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -536,5 +536,6 @@
|
|||||||
"Testing__if_checked_no_real_message_is_sent_": "Testing [if checked no real message is sent]",
|
"Testing__if_checked_no_real_message_is_sent_": "Testing [if checked no real message is sent]",
|
||||||
"All_fields_are_required": "All fields are required",
|
"All_fields_are_required": "All fields are required",
|
||||||
"Personal": "Personal",
|
"Personal": "Personal",
|
||||||
"Email_Notification": "Email Notification"
|
"Email_Notification": "Email Notification",
|
||||||
|
"Router_Name___Location": "Router Name \/ Location"
|
||||||
}
|
}
|
@ -20,7 +20,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">{Lang::T('Router Name')}</label>
|
<label class="col-md-2 control-label">{Lang::T('Router Name / Location')}</label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<input type="text" class="form-control" id="name" name="name" maxlength="32">
|
<input type="text" class="form-control" id="name" name="name" maxlength="32">
|
||||||
<p class="help-block">{Lang::T('Name of Area that router operated')}</p>
|
<p class="help-block">{Lang::T('Name of Area that router operated')}</p>
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">{Lang::T('Router Name')}</label>
|
<label class="col-md-2 control-label">{Lang::T('Router Name / Location')}</label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<input type="text" class="form-control" id="name" name="name" maxlength="32" value="{$d['name']}">
|
<input type="text" class="form-control" id="name" name="name" maxlength="32" value="{$d['name']}">
|
||||||
<p class="help-block">{Lang::T('Name of Area that router operated')}</p>
|
<p class="help-block">{Lang::T('Name of Area that router operated')}</p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user