array( 'Home' => '' ), 'Account' => array( 'Workers' => 'workers', 'Payments' => 'payments', 'Settings' => 'settings' ), 'Pool' => array( 'Stats' => 'stats' ), 'gap' => NULL, 'Help' => array( 'Help' => 'help', 'Payouts' => 'payout' ) ); if ($user == 'Kano' || $user == 'ckolivas') $menu['Help']['ckp'] = 'ckp'; if ($user == 'Kano' || $user == 'ckolivas' || $user == 'wvr2') $menu['Pool']['PPLNS'] = 'pplns'; $page = ''; $n = ''; foreach ($menu as $item => $options) if ($options !== NULL) foreach ($options as $name => $pagename) if ($pagename === $p) { $page = $p; $n = " - $name"; } if ($page === '') showPage('index', $menu, '', $user); else showPage($page, $menu, $n, $user); } # function check() { tryLogInOut(); $who = loggedIn(); if ($who === false) { if (requestRegister() == true) showPage('reg', NULL, '', $who); else showIndex(); } else { $p = getparam('k', true); process($p, $who); } } # check(); # ?>