diff --git a/.gitignore b/.gitignore index 1f90a3e1..f9978048 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ system/config.php .vscode/ ui/compiled/*.php ui/cache/*.php -test.php \ No newline at end of file +test.php +pages/ \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index fb486e06..43d61eb9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -41,7 +41,7 @@
diff --git a/system/controllers/autoload.php b/system/controllers/autoload.php index 4cfcd61a..d5355493 100644 --- a/system/controllers/autoload.php +++ b/system/controllers/autoload.php @@ -20,26 +20,26 @@ switch ($action) { $routers = _get('routers'); $d = ORM::for_table('tbl_pool')->where('routers', $routers)->find_many(); $ui->assign('d',$d); - + $ui->display('autoload-pool.tpl'); break; - + case 'server': $d = ORM::for_table('tbl_routers')->find_many(); $ui->assign('d',$d); - + $ui->display('autoload-server.tpl'); break; - + case 'plan': $server = _post('server'); $jenis = _post('jenis'); $d = ORM::for_table('tbl_plans')->where('routers', $server)->where('type', $jenis)->find_many(); $ui->assign('d',$d); - + $ui->display('autoload.tpl'); break; - + default: echo 'action not defined'; } \ No newline at end of file diff --git a/system/controllers/bandwidth.php b/system/controllers/bandwidth.php index d1b82b76..d0eb1896 100644 --- a/system/controllers/bandwidth.php +++ b/system/controllers/bandwidth.php @@ -22,7 +22,7 @@ if($admin['user_type'] != 'Admin' AND $admin['user_type'] != 'Sales'){ switch ($action) { case 'list': $ui->assign('xfooter', ''); - + $name = _post('name'); if ($name != ''){ $paginator = Paginator::bootstrap('tbl_bandwidth','name_bw','%'.$name.'%'); @@ -31,7 +31,7 @@ switch ($action) { $paginator = Paginator::bootstrap('tbl_bandwidth'); $d = ORM::for_table('tbl_bandwidth')->offset($paginator['startpoint'])->limit($paginator['limit'])->order_by_desc('id')->find_many(); } - + $ui->assign('d',$d); $ui->assign('paginator',$paginator); $ui->display('bandwidth.tpl'); @@ -67,12 +67,12 @@ switch ($action) { $rate_down_unit = _post('rate_down_unit'); $rate_up = _post('rate_up'); $rate_up_unit = _post('rate_up_unit'); - + $msg = ''; if(Validator::Length($name,16,4) == false){ $msg .= 'Name should be between 5 to 15 characters'. '{$_L['Welcome_Text_User']}
-