From f806960ead3766167629249b0d85dc62d9f400a5 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Mon, 16 Oct 2023 15:06:51 +0700 Subject: [PATCH] Logs Viewer --- system/boot.php | 2 +- system/lan/english/common.lan.php | 1 + ui/ui/logs.tpl | 71 +++++++++++++++++++++++++++++++ ui/ui/sections/header.tpl | 15 +++++++ 4 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 ui/ui/logs.tpl diff --git a/system/boot.php b/system/boot.php index 85a83f18..ae52e935 100644 --- a/system/boot.php +++ b/system/boot.php @@ -116,7 +116,7 @@ try { $ui->setConfigDir(File::pathFixer('ui/conf/')); $ui->setCacheDir(File::pathFixer('ui/cache/')); $ui->assign("error_title", "PHPNuxBill Crash"); - $ui->assign("error_message", $e->getMessage()); + $ui->assign("error_message", $e->getMessage() . '
' . $e->getTraceAsString() . '
'); $ui->display('router-error.tpl'); die(); } diff --git a/system/lan/english/common.lan.php b/system/lan/english/common.lan.php index 48ba9e92..8faca48c 100644 --- a/system/lan/english/common.lan.php +++ b/system/lan/english/common.lan.php @@ -405,3 +405,4 @@ $_L['Failed_to_create_PaymeTrust_transaction'] = 'Failed to create PaymeTrust tr $_L['Location'] = 'Location'; $_L['Radius_Plans'] = 'Radius Plans'; $_L['Change_title_in_user_Plan_order'] = 'Change title in user Plan order'; +$_L['Logs'] = 'Logs'; diff --git a/ui/ui/logs.tpl b/ui/ui/logs.tpl new file mode 100644 index 00000000..a5e40ecd --- /dev/null +++ b/ui/ui/logs.tpl @@ -0,0 +1,71 @@ +{include file="sections/header.tpl"} + +
+
+
+
+
+ sync +
+ {$_L['Pool']} +
+
+
+
+ +
+   +
+
+ + + + + + + + + + + + {$no = 1} + {foreach $d as $ds} + + + + + + + + {/foreach} + +
#{$_L['Pool_Name']}{$_L['Range_IP']}{$_L['Routers']}{$_L['Manage']}
{$no++}{$ds['pool_name']}{$ds['range_ip']}{$ds['routers']} + {$_L['Edit']} + {$_L['Delete']} +
+
+ {$paginator['contents']} +
+
+
+
+ +{include file="sections/footer.tpl"} \ No newline at end of file diff --git a/ui/ui/sections/header.tpl b/ui/ui/sections/header.tpl index 35a413b2..8efe6bbf 100644 --- a/ui/ui/sections/header.tpl +++ b/ui/ui/sections/header.tpl @@ -264,6 +264,21 @@ {$_MENU_AFTER_SETTINGS} +
  • + + {Lang::T('Logs')} + + + + + +
  • + {$_MENU_AFTER_LOGS}