diff --git a/system/boot.php b/system/boot.php index 374a5b24..6ec57409 100644 --- a/system/boot.php +++ b/system/boot.php @@ -129,11 +129,11 @@ try { $e->getTraceAsString() ); if (!Admin::getID()) { - r2(U . 'home', 'e', $e->getMessage()); + $ui->display('error-user.tpl'); die(); } $ui->assign("error_message", $e->getMessage() . '
' . $e->getTraceAsString() . '
'); $ui->assign("error_title", "PHPNuxBill Crash"); - $ui->display('router-error.tpl'); + $ui->display('error.tpl'); die(); } catch (Exception $e) { Message::sendTelegram( @@ -142,10 +142,10 @@ try { $e->getTraceAsString() ); if (!Admin::getID()) { - r2(U . 'home', 'e', $e->getMessage()); + $ui->display('error-user.tpl'); die(); } $ui->assign("error_message", $e->getMessage() . '
' . $e->getTraceAsString() . '
'); $ui->assign("error_title", "PHPNuxBill Crash"); - $ui->display('router-error.tpl'); + $ui->display('error.tpl'); die(); } diff --git a/system/controllers/settings.php b/system/controllers/settings.php index 2363b257..33e4abe9 100644 --- a/system/controllers/settings.php +++ b/system/controllers/settings.php @@ -151,7 +151,7 @@ switch ($action) { $ui->assign("error_message", "Radius table not found.

" . $e->getMessage() . "

Download here or here and import it to database.

Check config.php for radius connection details"); - $ui->display('router-error.tpl'); + $ui->display('error.tpl'); die(); } } diff --git a/ui/ui/error-user.tpl b/ui/ui/error-user.tpl new file mode 100644 index 00000000..9c2c9be5 --- /dev/null +++ b/ui/ui/error-user.tpl @@ -0,0 +1,51 @@ + + + + + + + {ucwords(Lang::T("Error"))} - {$_c['CompanyName']} + + + + + + + +
+
+
{ucwords(Lang::T("Internal Error"))}
+
+ {Lang::T("Sorry, the software failed to process the request, if it still happening, please tell")} + {$_c['CompanyName']} +
+ +
+ +
+ + {if $_c['tawkto'] != ''} + + + + {/if} + + + + \ No newline at end of file diff --git a/ui/ui/router-error.tpl b/ui/ui/error.tpl similarity index 100% rename from ui/ui/router-error.tpl rename to ui/ui/error.tpl