phpnuxbill/system/controllers/page.php

21 lines
575 B
PHP
Raw Normal View History

2017-03-11 03:51:06 +08:00
<?php
/**
2023-10-12 16:55:42 +08:00
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/
2017-03-11 03:51:06 +08:00
_auth();
2024-02-13 14:54:01 +08:00
$ui->assign('_title', Lang::T('Order Voucher'));
2017-03-11 03:51:06 +08:00
$ui->assign('_system_menu', 'order');
$action = $routes['1'];
2017-03-11 03:51:06 +08:00
$user = User::_info();
$ui->assign('_user', $user);
if(file_exists(__DIR__."/../../pages/".str_replace(".","",$action).".html")){
$ui->assign("PageFile",$action);
$ui->assign("pageHeader",$action);
2022-09-18 01:00:40 +08:00
run_hook('customer_view_page'); #HOOK
$ui->display('user-pages.tpl');
}else
$ui->display('404.tpl');