Browse Source

php - show the default menu on error pages

master
kanoi 10 years ago
parent
commit
79953adf59
  1. 8
      pool/base.php
  2. 8
      pool/prime.php

8
pool/base.php

@ -177,7 +177,7 @@ function dbd($data, $user)
# #
function dbdown() function dbdown()
{ {
gopage(NULL, 'dbd', 'dbd', NULL, '', '', true, false, false); gopage(NULL, 'dbd', 'dbd', def_menu(), '', '', true, false, false);
} }
# #
function syse($data, $user) function syse($data, $user)
@ -187,7 +187,7 @@ function syse($data, $user)
# #
function syserror() function syserror()
{ {
gopage(NULL, 'syse', 'syse', NULL, '', '', true, false, false); gopage(NULL, 'syse', 'syse', def_menu(), '', '', true, false, false);
} }
# #
function f404($data) function f404($data)
@ -197,7 +197,7 @@ function f404($data)
# #
function do404() 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) function showPage($page, $menu, $name, $user)
@ -216,7 +216,7 @@ function showPage($page, $menu, $name, $user)
# #
function showIndex() function showIndex()
{ {
showPage('index', NULL, '', false); showPage('index', def_menu(), '', false);
} }
# #
function offline() function offline()

8
pool/prime.php

@ -36,12 +36,18 @@ function process($p, $user, $menu)
showPage($page, $menu, $n, $user); showPage($page, $menu, $n, $user);
} }
# #
function check() function def_menu()
{ {
$dmenu = array('Home' => array('Home' => ''), $dmenu = array('Home' => array('Home' => ''),
'gap' => NULL, 'gap' => NULL,
'Help' => array('Help' => 'help', 'Help' => array('Help' => 'help',
'Payouts' => 'payout')); 'Payouts' => 'payout'));
return $dmenu;
}
#
function check()
{
$dmenu = def_menu();
$menu = array( $menu = array(
'Home' => array( 'Home' => array(
'Home' => '' 'Home' => ''

Loading…
Cancel
Save