stage 3 restructure ui folder
This commit is contained in:
parent
fa3e256174
commit
fa05ffa58b
2
init.php
2
init.php
@ -367,7 +367,7 @@ function displayMaintenanceMessage(): void
|
||||
}
|
||||
http_response_code(503);
|
||||
$ui->assign('companyName', $config['CompanyName']);
|
||||
$ui->display('maintenance.tpl');
|
||||
$ui->display('admin/maintenance.tpl');
|
||||
die();
|
||||
}
|
||||
|
||||
|
@ -141,7 +141,7 @@ try {
|
||||
}
|
||||
$ui->assign("error_message", $e->getMessage() . '<br><pre>' . $e->getTraceAsString() . '</pre>');
|
||||
$ui->assign("error_title", "PHPNuxBill Crash");
|
||||
$ui->display('error.tpl');
|
||||
$ui->display('admin/error.tpl');
|
||||
die();
|
||||
} catch (Exception $e) {
|
||||
Message::sendTelegram(
|
||||
@ -154,6 +154,6 @@ try {
|
||||
}
|
||||
$ui->assign("error_message", $e->getMessage() . '<br><pre>' . $e->getTraceAsString() . '</pre>');
|
||||
$ui->assign("error_title", "PHPNuxBill Crash");
|
||||
$ui->display('error.tpl');
|
||||
$ui->display('admin/error.tpl');
|
||||
die();
|
||||
}
|
||||
|
@ -19,8 +19,8 @@ switch ($action) {
|
||||
|
||||
$ui->assign('masters', $masters);
|
||||
$ui->assign('devs', $devs);
|
||||
$ui->display('community-rollback.tpl');
|
||||
$ui->display('admin/rollback.tpl');
|
||||
break;
|
||||
default:
|
||||
$ui->display('community.tpl');
|
||||
$ui->display('admin/community.tpl');
|
||||
}
|
@ -230,4 +230,4 @@ $ui->assign('stocks', $stocks);
|
||||
$ui->assign('plans', $plans);
|
||||
|
||||
run_hook('view_dashboard'); #HOOK
|
||||
$ui->display('dashboard.tpl');
|
||||
$ui->display('admin/dashboard.tpl');
|
||||
|
@ -83,7 +83,7 @@ switch ($action) {
|
||||
$ui->assign('mdate', $mdate);
|
||||
$ui->assign('recharged_on', $mdate);
|
||||
run_hook('print_by_date'); #HOOK
|
||||
$ui->display('print-by-date.tpl');
|
||||
$ui->display('admin/print/by-date.tpl');
|
||||
break;
|
||||
|
||||
case 'pdf-by-date':
|
||||
@ -281,7 +281,7 @@ EOF;
|
||||
$ui->assign('tdate', $tdate);
|
||||
$ui->assign('stype', $stype);
|
||||
run_hook('print_by_period'); #HOOK
|
||||
$ui->display('print-by-period.tpl');
|
||||
$ui->display('admin/print/by-period.tpl');
|
||||
break;
|
||||
|
||||
|
||||
|
@ -97,7 +97,7 @@ switch ($action) {
|
||||
|
||||
$ui->assign('d', $d);
|
||||
$ui->assign('q', $q);
|
||||
$ui->display('logs.tpl');
|
||||
$ui->display('admin/logs/system.tpl');
|
||||
break;
|
||||
case 'radius':
|
||||
$q = (_post('q') ? _post('q') : _get('q'));
|
||||
@ -116,7 +116,7 @@ switch ($action) {
|
||||
|
||||
$ui->assign('d', $d);
|
||||
$ui->assign('q', $q);
|
||||
$ui->display('logs-radius.tpl');
|
||||
$ui->display('admin/logs/radius.tpl');
|
||||
break;
|
||||
|
||||
|
||||
|
@ -46,7 +46,7 @@ EOT;
|
||||
$id = $routes['2'];
|
||||
$ui->assign('id', $id);
|
||||
$ui->assign('xfooter', $select2_customer);
|
||||
$ui->display('message.tpl');
|
||||
$ui->display('admin/message/single.tpl');
|
||||
break;
|
||||
|
||||
case 'send-post':
|
||||
@ -230,7 +230,7 @@ EOT;
|
||||
$ui->assign('totalSMSFailed', $totalSMSFailed);
|
||||
$ui->assign('totalWhatsappSent', $totalWhatsappSent);
|
||||
$ui->assign('totalWhatsappFailed', $totalWhatsappFailed);
|
||||
$ui->display('message-bulk.tpl');
|
||||
$ui->display('admin/message/bulk.tpl');
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -60,7 +60,7 @@ if (strpos($action, "-reset") !== false) {
|
||||
$ui->assign("writeable", is_writable($path));
|
||||
$ui->assign("pageHeader", str_replace('_', ' ', $action));
|
||||
$ui->assign("PageFile", $action);
|
||||
$ui->display('page-edit.tpl');
|
||||
$ui->display('admin/settings/page.tpl');
|
||||
} else
|
||||
$ui->display('admin/404.tpl');
|
||||
} else {
|
||||
|
@ -34,7 +34,7 @@ switch ($action) {
|
||||
$ui->assign('pgs', $pgs);
|
||||
$ui->assign('pg', $pg);
|
||||
$ui->assign('q', $q);
|
||||
$ui->display('paymentgateway-audit.tpl');
|
||||
$ui->display('admin/paymentgateway/audit.tpl');
|
||||
break;
|
||||
case 'auditview':
|
||||
$pg = alphanumeric($routes[2]);
|
||||
@ -43,7 +43,7 @@ switch ($action) {
|
||||
$d['pg_paid_response'] = (!empty($d['pg_paid_response']))? Text::jsonArray21Array(json_decode($d['pg_paid_response'], true)) : [];
|
||||
$ui->assign('_title', 'Payment Gateway Audit View');
|
||||
$ui->assign('pg', $d);
|
||||
$ui->display('paymentgateway-audit-view.tpl');
|
||||
$ui->display('admin/paymentgateway/audit-view.tpl');
|
||||
break;
|
||||
default:
|
||||
if (_post('save') == 'actives') {
|
||||
@ -92,7 +92,7 @@ switch ($action) {
|
||||
$ui->assign('_title', 'Payment Gateway Settings');
|
||||
$ui->assign('pgs', $pgs);
|
||||
$ui->assign('actives', explode(',', $config['payment_gateway']));
|
||||
$ui->display('paymentgateway.tpl');
|
||||
$ui->display('admin/paymentgateway/list.tpl');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ switch ($action) {
|
||||
}
|
||||
$ui->assign('usings', $usings);
|
||||
run_hook('view_recharge'); #HOOK
|
||||
$ui->display('recharge.tpl');
|
||||
$ui->display('admin/plan/recharge.tpl');
|
||||
break;
|
||||
|
||||
case 'recharge-confirm':
|
||||
@ -158,7 +158,7 @@ switch ($action) {
|
||||
$ui->assign('server', $server);
|
||||
$ui->assign('using', $using);
|
||||
$ui->assign('plan', $plan);
|
||||
$ui->display('recharge-confirm.tpl');
|
||||
$ui->display('admin/plan/recharge-confirm.tpl');
|
||||
} else {
|
||||
r2(getUrl('plan/recharge'), 'e', $msg);
|
||||
}
|
||||
@ -180,7 +180,7 @@ switch ($action) {
|
||||
$username = App::getVoucherValue($svoucher);
|
||||
$in = ORM::for_table('tbl_transactions')->where('username', $username)->order_by_desc('id')->find_one();
|
||||
Package::createInvoice($in);
|
||||
$ui->display('invoice.tpl');
|
||||
$ui->display('admin/plan/invoice.tpl');
|
||||
die();
|
||||
}
|
||||
|
||||
@ -239,7 +239,7 @@ switch ($action) {
|
||||
$in = ORM::for_table('tbl_transactions')->where('username', $cust['username'])->order_by_desc('id')->find_one();
|
||||
Package::createInvoice($in);
|
||||
App::setVoucher($svoucher, $cust['username']);
|
||||
$ui->display('invoice.tpl');
|
||||
$ui->display('admin/plan/invoice.tpl');
|
||||
_log('[' . $admin['username'] . ']: ' . 'Recharge ' . $cust['username'] . ' [' . $in['plan_name'] . '][' . Lang::moneyFormat($in['price']) . ']', $admin['user_type'], $admin['id']);
|
||||
} else {
|
||||
r2(getUrl('plan/recharge'), 'e', "Failed to recharge account");
|
||||
@ -263,7 +263,7 @@ switch ($action) {
|
||||
}
|
||||
Package::createInvoice($in);
|
||||
$ui->assign('_title', 'View Invoice');
|
||||
$ui->display('invoice.tpl');
|
||||
$ui->display('admin/plan/invoice.tpl');
|
||||
break;
|
||||
|
||||
|
||||
@ -285,7 +285,7 @@ switch ($action) {
|
||||
$ui->assign('date', Lang::dateAndTimeFormat($d['recharged_on'], $d['recharged_time']));
|
||||
}
|
||||
run_hook('print_invoice'); #HOOK
|
||||
$ui->display('invoice-print.tpl');
|
||||
$ui->display('admin/plan/invoice-print.tpl');
|
||||
break;
|
||||
|
||||
case 'edit':
|
||||
@ -312,7 +312,7 @@ switch ($action) {
|
||||
$ui->assign('p', $ps);
|
||||
run_hook('view_edit_customer_plan'); #HOOK
|
||||
$ui->assign('_title', 'Edit Plan');
|
||||
$ui->display('plan-edit.tpl');
|
||||
$ui->display('admin/plan/edit.tpl');
|
||||
} else {
|
||||
r2(getUrl('plan/list'), 'e', Lang::T('Account Not Found'));
|
||||
}
|
||||
@ -510,7 +510,7 @@ switch ($action) {
|
||||
$ui->assign('search', $search);
|
||||
$ui->assign('page', $page);
|
||||
run_hook('view_list_voucher'); #HOOK
|
||||
$ui->display('voucher.tpl');
|
||||
$ui->display('admin/voucher/list.tpl');
|
||||
break;
|
||||
|
||||
case 'add-voucher':
|
||||
@ -525,7 +525,7 @@ switch ($action) {
|
||||
$r = ORM::for_table('tbl_routers')->where('enabled', '1')->find_many();
|
||||
$ui->assign('r', $r);
|
||||
run_hook('view_add_voucher'); #HOOK
|
||||
$ui->display('voucher-add.tpl');
|
||||
$ui->display('admin/voucher/add.tpl');
|
||||
break;
|
||||
|
||||
case 'remove-voucher':
|
||||
@ -684,7 +684,7 @@ switch ($action) {
|
||||
//for counting pagebreak
|
||||
$ui->assign('jml', 0);
|
||||
run_hook('view_print_voucher'); #HOOK
|
||||
$ui->display('print-voucher.tpl');
|
||||
$ui->display('admin/print/voucher.tpl');
|
||||
break;
|
||||
case 'voucher-post':
|
||||
if (!in_array($admin['user_type'], ['SuperAdmin', 'Admin', 'Agent', 'Sales'])) {
|
||||
@ -916,7 +916,7 @@ switch ($action) {
|
||||
$ui->assign('xfooter', $select2_customer);
|
||||
$ui->assign('_title', Lang::T('Refill Account'));
|
||||
run_hook('view_refill'); #HOOK
|
||||
$ui->display('refill.tpl');
|
||||
$ui->display('admin/plan/refill.tpl');
|
||||
|
||||
break;
|
||||
|
||||
@ -936,7 +936,7 @@ switch ($action) {
|
||||
$v1->save();
|
||||
$in = ORM::for_table('tbl_transactions')->where('username', $user['username'])->order_by_desc('id')->find_one();
|
||||
Package::createInvoice($in);
|
||||
$ui->display('invoice.tpl');
|
||||
$ui->display('admin/plan/invoice.tpl');
|
||||
} else {
|
||||
r2(getUrl('plan/refill'), 'e', "Failed to refill account");
|
||||
}
|
||||
@ -956,7 +956,7 @@ switch ($action) {
|
||||
$ui->assign('p', ORM::for_table('tbl_plans')->where('enabled', '1')->where('type', 'Balance')->find_many());
|
||||
}
|
||||
run_hook('view_deposit'); #HOOK
|
||||
$ui->display('deposit.tpl');
|
||||
$ui->display('admin/plan/deposit.tpl');
|
||||
break;
|
||||
case 'deposit-post':
|
||||
if (!in_array($admin['user_type'], ['SuperAdmin', 'Admin', 'Agent', 'Sales'])) {
|
||||
@ -971,7 +971,7 @@ switch ($action) {
|
||||
if (App::getVoucherValue($svoucher)) {
|
||||
$in = ORM::for_table('tbl_transactions')->find_one(App::getVoucherValue($svoucher));
|
||||
Package::createInvoice($in);
|
||||
$ui->display('invoice.tpl');
|
||||
$ui->display('admin/plan/invoice.tpl');
|
||||
die();
|
||||
}
|
||||
|
||||
@ -987,7 +987,7 @@ switch ($action) {
|
||||
if (!empty($svoucher)) {
|
||||
App::setVoucher($svoucher, $trxId);
|
||||
}
|
||||
$ui->display('invoice.tpl');
|
||||
$ui->display('admin/plan/invoice.tpl');
|
||||
} else {
|
||||
r2(getUrl('plan/refill'), 'e', "Failed to refill account");
|
||||
}
|
||||
@ -1000,7 +1000,7 @@ switch ($action) {
|
||||
if (!empty($svoucher)) {
|
||||
App::setVoucher($svoucher, $trxId);
|
||||
}
|
||||
$ui->display('invoice.tpl');
|
||||
$ui->display('admin/plan/invoice.tpl');
|
||||
} else {
|
||||
r2(getUrl('plan/refill'), 'e', "Failed to refill account");
|
||||
}
|
||||
@ -1102,6 +1102,6 @@ switch ($action) {
|
||||
$d = Paginator::findMany($query, ['search' => $search], 25, $append_url);
|
||||
run_hook('view_list_billing'); #HOOK
|
||||
$ui->assign('d', $d);
|
||||
$ui->display('plan.tpl');
|
||||
$ui->display('admin/plan/active.tpl');
|
||||
break;
|
||||
}
|
||||
|
@ -345,7 +345,7 @@ switch ($action) {
|
||||
$ui->assign('plugins', $json['plugins']);
|
||||
$ui->assign('pgs', $json['payment_gateway']);
|
||||
$ui->assign('dvcs', $json['devices']);
|
||||
$ui->display('plugin-manager.tpl');
|
||||
$ui->display('admin/settings/plugin-manager.tpl');
|
||||
}
|
||||
|
||||
|
||||
|
@ -33,14 +33,14 @@ switch ($action) {
|
||||
|
||||
$ui->assign('d', $d);
|
||||
run_hook('view_pool'); #HOOK
|
||||
$ui->display('pool.tpl');
|
||||
$ui->display('admin/pool/list.tpl');
|
||||
break;
|
||||
|
||||
case 'add':
|
||||
$r = ORM::for_table('tbl_routers')->find_many();
|
||||
$ui->assign('r', $r);
|
||||
run_hook('view_add_pool'); #HOOK
|
||||
$ui->display('pool-add.tpl');
|
||||
$ui->display('admin/pool/add.tpl');
|
||||
break;
|
||||
|
||||
case 'edit':
|
||||
@ -49,7 +49,7 @@ switch ($action) {
|
||||
if ($d) {
|
||||
$ui->assign('d', $d);
|
||||
run_hook('view_edit_pool'); #HOOK
|
||||
$ui->display('pool-edit.tpl');
|
||||
$ui->display('admin/pool/edit.tpl');
|
||||
} else {
|
||||
r2(getUrl('pool/list'), 'e', Lang::T('Account Not Found'));
|
||||
}
|
||||
@ -162,14 +162,14 @@ switch ($action) {
|
||||
|
||||
$ui->assign('d', $d);
|
||||
run_hook('view_port'); #HOOK
|
||||
$ui->display('port.tpl');
|
||||
$ui->display('admin/port/list.tpl');
|
||||
break;
|
||||
|
||||
case 'add-port':
|
||||
$r = ORM::for_table('tbl_routers')->find_many();
|
||||
$ui->assign('r', $r);
|
||||
run_hook('view_add_port'); #HOOK
|
||||
$ui->display('port-add.tpl');
|
||||
$ui->display('admin/port/add.tpl');
|
||||
break;
|
||||
|
||||
case 'edit-port':
|
||||
@ -178,7 +178,7 @@ switch ($action) {
|
||||
if ($d) {
|
||||
$ui->assign('d', $d);
|
||||
run_hook('view_edit_port'); #HOOK
|
||||
$ui->display('port-edit.tpl');
|
||||
$ui->display('admin/port/edit.tpl');
|
||||
} else {
|
||||
r2(getUrl('pool/port'), 'e', Lang::T('Account Not Found'));
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ switch ($action) {
|
||||
$ui->assign('_system_menu', 'radius');
|
||||
$ui->assign('_title', "Network Access Server");
|
||||
$ui->assign('routers', ORM::for_table('tbl_routers')->find_many());
|
||||
$ui->display('radius-nas-add.tpl');
|
||||
$ui->display('admin/radius/nas-add.tpl');
|
||||
break;
|
||||
case 'nas-add-post':
|
||||
$shortname = _post('shortname');
|
||||
@ -78,7 +78,7 @@ switch ($action) {
|
||||
if ($d) {
|
||||
$ui->assign('routers', ORM::for_table('tbl_routers')->find_many());
|
||||
$ui->assign('d', $d);
|
||||
$ui->display('radius-nas-edit.tpl');
|
||||
$ui->display('admin/radius/nas-edit.tpl');
|
||||
} else {
|
||||
r2(getUrl('radius/list'), 'e', Lang::T('Account Not Found'));
|
||||
}
|
||||
@ -147,5 +147,5 @@ switch ($action) {
|
||||
}
|
||||
$ui->assign('name', $name);
|
||||
$ui->assign('nas', $nas);
|
||||
$ui->display('radius-nas.tpl');
|
||||
$ui->display('admin/radius/nas.tpl');
|
||||
}
|
||||
|
@ -269,7 +269,7 @@ switch ($action) {
|
||||
|
||||
$ui->assign('activation', $d);
|
||||
$ui->assign('q', $q);
|
||||
$ui->display('reports-activation.tpl');
|
||||
$ui->display('admin/reports/activation.tpl');
|
||||
break;
|
||||
|
||||
case 'by-period':
|
||||
@ -277,7 +277,7 @@ switch ($action) {
|
||||
$ui->assign('mtime', $mtime);
|
||||
$ui->assign('tdate', $tdate);
|
||||
run_hook('view_reports_by_period'); #HOOK
|
||||
$ui->display('reports-period.tpl');
|
||||
$ui->display('admin/reports/period.tpl');
|
||||
break;
|
||||
|
||||
case 'period-view':
|
||||
@ -310,7 +310,7 @@ switch ($action) {
|
||||
$ui->assign('tdate', $tdate);
|
||||
$ui->assign('stype', $stype);
|
||||
run_hook('view_reports_period'); #HOOK
|
||||
$ui->display('reports-period-view.tpl');
|
||||
$ui->display('admin/reports/period-view.tpl');
|
||||
break;
|
||||
|
||||
case 'daily-report':
|
||||
@ -384,6 +384,6 @@ switch ($action) {
|
||||
$ui->assign('dr', $dr);
|
||||
$ui->assign('mdate', $mdate);
|
||||
run_hook('view_daily_reports'); #HOOK
|
||||
$ui->display('reports.tpl');
|
||||
$ui->display('admin/reports/list.tpl');
|
||||
break;
|
||||
}
|
||||
|
@ -36,11 +36,11 @@ switch ($action) {
|
||||
$ui->assign('_title', Lang::T('Routers Geo Location Information'));
|
||||
$ui->assign('xheader', $leafletpickerHeader);
|
||||
$ui->assign('xfooter', '<script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js"></script>');
|
||||
$ui->display('routers-maps.tpl');
|
||||
$ui->display('admin/routers/maps.tpl');
|
||||
break;
|
||||
case 'add':
|
||||
run_hook('view_add_routers'); #HOOK
|
||||
$ui->display('routers-add.tpl');
|
||||
$ui->display('admin/routers/add.tpl');
|
||||
break;
|
||||
|
||||
case 'edit':
|
||||
@ -53,7 +53,7 @@ switch ($action) {
|
||||
if ($d) {
|
||||
$ui->assign('d', $d);
|
||||
run_hook('view_router_edit'); #HOOK
|
||||
$ui->display('routers-edit.tpl');
|
||||
$ui->display('admin/routers/edit.tpl');
|
||||
} else {
|
||||
r2(getUrl('routers/list'), 'e', Lang::T('Account Not Found'));
|
||||
}
|
||||
@ -215,6 +215,6 @@ switch ($action) {
|
||||
$d = Paginator::findMany($query, ['name' => $name]);
|
||||
$ui->assign('d', $d);
|
||||
run_hook('view_list_routers'); #HOOK
|
||||
$ui->display('routers.tpl');
|
||||
$ui->display('admin/routers/list.tpl');
|
||||
break;
|
||||
}
|
||||
|
@ -516,7 +516,7 @@ switch ($action) {
|
||||
|
||||
$ui->assign('d', $d);
|
||||
run_hook('view_list_ppoe'); #HOOK
|
||||
$ui->display('pppoe.tpl');
|
||||
$ui->display('admin/pppoe/list.tpl');
|
||||
break;
|
||||
|
||||
case 'pppoe-add':
|
||||
@ -535,7 +535,7 @@ switch ($action) {
|
||||
}
|
||||
$ui->assign('devices', $devices);
|
||||
run_hook('view_add_ppoe'); #HOOK
|
||||
$ui->display('pppoe-add.tpl');
|
||||
$ui->display('admin/pppoe/add.tpl');
|
||||
break;
|
||||
|
||||
case 'pppoe-edit':
|
||||
@ -578,7 +578,7 @@ switch ($action) {
|
||||
}
|
||||
$ui->assign('exps', $exps);
|
||||
run_hook('view_edit_ppoe'); #HOOK
|
||||
$ui->display('pppoe-edit.tpl');
|
||||
$ui->display('admin/pppoe/edit.tpl');
|
||||
} else {
|
||||
r2(getUrl('services/pppoe'), 'e', Lang::T('Account Not Found'));
|
||||
}
|
||||
@ -1009,7 +1009,7 @@ switch ($action) {
|
||||
|
||||
$ui->assign('d', $d);
|
||||
run_hook('view_list_vpn'); #HOOK
|
||||
$ui->display('vpn.tpl');
|
||||
$ui->display('admin/vpn/list.tpl');
|
||||
break;
|
||||
|
||||
case 'vpn-add':
|
||||
@ -1028,7 +1028,7 @@ switch ($action) {
|
||||
}
|
||||
$ui->assign('devices', $devices);
|
||||
run_hook('view_add_vpn'); #HOOK
|
||||
$ui->display('vpn-add.tpl');
|
||||
$ui->display('admin/vpn/add.tpl');
|
||||
break;
|
||||
|
||||
case 'vpn-edit':
|
||||
@ -1071,7 +1071,7 @@ switch ($action) {
|
||||
}
|
||||
$ui->assign('exps', $exps);
|
||||
run_hook('view_edit_vpn'); #HOOK
|
||||
$ui->display('vpn-edit.tpl');
|
||||
$ui->display('admin/vpn/edit.tpl');
|
||||
} else {
|
||||
r2(getUrl('services/vpn'), 'e', Lang::T('Account Not Found'));
|
||||
}
|
||||
|
@ -205,7 +205,7 @@ switch ($action) {
|
||||
$ui->assign("error_message", "Radius table not found.<br><br>" .
|
||||
$e->getMessage() .
|
||||
"<br><br>Download <a href=\"https://raw.githubusercontent.com/hotspotbilling/phpnuxbill/Development/install/radius.sql\">here</a> or <a href=\"https://raw.githubusercontent.com/hotspotbilling/phpnuxbill/master/install/radius.sql\">here</a> and import it to database.<br><br>Check config.php for radius connection details");
|
||||
$ui->display('error.tpl');
|
||||
$ui->display('admin/error.tpl');
|
||||
die();
|
||||
}
|
||||
}
|
||||
@ -527,7 +527,7 @@ switch ($action) {
|
||||
run_hook('view_list_admin'); #HOOK
|
||||
$csrf_token = Csrf::generateAndStoreToken();
|
||||
$ui->assign('csrf_token', $csrf_token);
|
||||
$ui->display('list.tpl');
|
||||
$ui->display('admin/admin/list.tpl');
|
||||
break;
|
||||
|
||||
case 'users-add':
|
||||
@ -953,7 +953,7 @@ switch ($action) {
|
||||
}
|
||||
$ui->assign('tables', $tables);
|
||||
run_hook('view_database'); #HOOK
|
||||
$ui->display('dbstatus.tpl');
|
||||
$ui->display('admin/settings/dbstatus.tpl');
|
||||
}
|
||||
break;
|
||||
|
||||
@ -1043,7 +1043,7 @@ switch ($action) {
|
||||
}
|
||||
$csrf_token = Csrf::generateAndStoreToken();
|
||||
$ui->assign('csrf_token', $csrf_token);
|
||||
$ui->display('language-add.tpl');
|
||||
$ui->display('admin/settings/language-add.tpl');
|
||||
break;
|
||||
|
||||
case 'lang-post':
|
||||
@ -1095,7 +1095,7 @@ switch ($action) {
|
||||
$ui->assign('csrf_token', $csrf_token);
|
||||
$ui->assign('_c', $config);
|
||||
$ui->assign('_title', Lang::T('Maintenance Mode Settings'));
|
||||
$ui->display('maintenance-mode.tpl');
|
||||
$ui->display('admin/settings/maintenance-mode.tpl');
|
||||
break;
|
||||
|
||||
case 'miscellaneous':
|
||||
|
Loading…
x
Reference in New Issue
Block a user