0) { if ($_SERVER['HTTPS'] != 'on') { Header('Location: https://' . $fwConstruct . '/' . $_SERVER['REQUEST_URI']); exit; } } /* This is the menuaction driver for the multi-layered design */ if(isset($_REQUEST['menuaction'])) { list($mobileapp,$class,$method) = explode('.',@$_REQUEST['menuaction']); if(! $mobileapp || ! $class || ! $method) { $invalid_data = True; } } else { $mobileapp = 'home'; $invalid_data = True; } $GLOBALS['phpgw_info']['flags'] = array( 'noheader' => True, 'nonavbar' => True, 'currentapp' => 'mobile', 'mobileapp' => $mobileapp, ); include('../header.inc.php'); include('./mobile_header.inc.php'); if($mobileapp == 'home') { start_prefered_app(); } $GLOBALS[$class] = CreateObject(sprintf('%s.%s','mobile',$class)); $public_functions = $GLOBALS[$class]->public_functions; if((is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions[$method]) && ! $invalid_data) { $GLOBALS['phpgw_info']['mobiletemplate'] = CreateObject("mobile.mobiletemplate"); $GLOBALS['phpgw_info']['mobiletemplate'] -> print_page($class,$method); unset($mobileapp); unset($class); unset($method); unset($invalid_data); } else { if(!$mobileapp || !$class || !$method) { if(@is_object($GLOBALS['phpgw']->log)) { $GLOBALS['phpgw']->log->message(array( 'text' => 'W-BadmenuactionVariable, menuaction missing or corrupt: %1', 'p1' => $menuaction, 'line' => __LINE__, 'file' => __FILE__ )); } } if(!is_array($GLOBALS[$class]->public_functions) || ! $GLOBALS[$class]->public_functions[$method] && $method) { if(@is_object($GLOBALS['phpgw']->log)) { $GLOBALS['phpgw']->log->message(array( 'text' => 'W-BadmenuactionVariable, attempted to access private method: %1', 'p1' => $method, 'line' => __LINE__, 'file' => __FILE__ )); } } if(@is_object($GLOBALS['phpgw']->log)) { $GLOBALS['phpgw']->log->commit(); } start_prefered_app(); } ?>