From 79953adf59737e82ad67da80eb69edd3bc12cb2d Mon Sep 17 00:00:00 2001 From: kanoi Date: Thu, 18 Sep 2014 10:56:13 +1000 Subject: [PATCH] php - show the default menu on error pages --- pool/base.php | 8 ++++---- pool/prime.php | 8 +++++++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/pool/base.php b/pool/base.php index 42fedc73..aab770b9 100644 --- a/pool/base.php +++ b/pool/base.php @@ -177,7 +177,7 @@ function dbd($data, $user) # function dbdown() { - gopage(NULL, 'dbd', 'dbd', NULL, '', '', true, false, false); + gopage(NULL, 'dbd', 'dbd', def_menu(), '', '', true, false, false); } # function syse($data, $user) @@ -187,7 +187,7 @@ function syse($data, $user) # function syserror() { - gopage(NULL, 'syse', 'syse', NULL, '', '', true, false, false); + gopage(NULL, 'syse', 'syse', def_menu(), '', '', true, false, false); } # function f404($data) @@ -197,7 +197,7 @@ function f404($data) # function do404() { - gopage(NULL, 'f404', 'f404', NULL, '', '', true, false, false); + gopage(NULL, 'f404', 'f404', def_menu(), '', '', true, false, false); } # function showPage($page, $menu, $name, $user) @@ -216,7 +216,7 @@ function showPage($page, $menu, $name, $user) # function showIndex() { - showPage('index', NULL, '', false); + showPage('index', def_menu(), '', false); } # function offline() diff --git a/pool/prime.php b/pool/prime.php index 5fd579d5..d6599b7d 100644 --- a/pool/prime.php +++ b/pool/prime.php @@ -36,12 +36,18 @@ function process($p, $user, $menu) showPage($page, $menu, $n, $user); } # -function check() +function def_menu() { $dmenu = array('Home' => array('Home' => ''), 'gap' => NULL, 'Help' => array('Help' => 'help', 'Payouts' => 'payout')); + return $dmenu; +} +# +function check() +{ + $dmenu = def_menu(); $menu = array( 'Home' => array( 'Home' => ''