main_screen('post'); break; case 'show_msg': result_screen('msg'); break; case 'msg': main_screen('msg'); break; case 'show_views': show_views(); break; case 'views': main_screen('views'); break; default: main_screen('reg'); break; } function show_views() { global $inbound, $month_names, $lang; $page_title = $lang['stats_ex_ptitle']; $page_detail = $lang['stats_ex_pdetail']; /* This function not available in this version, you need tbdev2010 */ stderr($lang['stats_ex_stderr'], $lang['stats_ex_stderr1']); if (!checkdate($inbound['to_month'], $inbound['to_day'], $inbound['to_year'])) { stderr($lang['stats_ex_ustderr'], $lang['stats_ex_ustderr1']); } if (!checkdate($inbound['from_month'], $inbound['from_day'], $inbound['from_year'])) { stderr($lang['stats_ex_ustderr'], $lang['stats_ex_dstderr']); }
/** * Determines what screen needs to be displayed to 'normal' users. Checks what's set in * $Pivot_Vars['func'] and $Pivot_Vars['func'], checks if if the function is set and the user is * allowed to go there, and then jumps to that function. * * Otherwise it displays main_screen() * * @see startAdmin(), main_screen() * */ function startNormal() { global $Pivot_Vars, $mainInternal; $func = $mainInternal[$Pivot_Vars['func']]; $func2 = $mainInternal[$Pivot_Vars['menu']]; if (isset($Pivot_Vars['func']) && isset($func) && function_exists($func)) { $func(); } else { if (isset($Pivot_Vars['menu']) && isset($func2) && function_exists($func2)) { $func2(); } else { main_screen(); } } }