'tc', 'noheader' => True, 'nonavbar' => True ); include('../header.inc.php'); if (@isset($_GET['menuaction'])) { list($app,$class,$method) = explode('.',$_GET['menuaction']); if (! $app || ! $class || ! $method) { $invalid_data = True; } } else { $app = 'tc'; $class = 'tc'; $invalid_data = True; } $GLOBALS['obj'] = CreateObject(sprintf('%s.%s',$app,$class)); $GLOBALS[$class] = $GLOBALS['obj']; if ((is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions[$method]) && ! $invalid_data) { execmethod($_GET['menuaction']); unset($app); unset($obj); unset($class); unset($method); unset($invalid_data); unset($api_requested); } else { if (! $app || ! $class || ! $method) { $GLOBALS['phpgw']->log->message(array( 'text' => 'W-BadmenuactionVariable, menuaction missing or corrupt: %1', 'p1' => $menuaction, 'line' => __LINE__, 'file' => __FILE__ )); } if (! is_array($obj->public_functions) || ! $obj->public_functions[$method] && $method) { $GLOBALS['phpgw']->log->message(array( 'text' => 'W-BadmenuactionVariable, attempted to access private method: %1', 'p1' => $method, 'line' => __LINE__, 'file' => __FILE__ )); } //$GLOBALS['phpgw']->log->commit(); //$GLOBALS['phpgw']->redirect_link('/tc/index.php?menuaction=tc.tc.ht_view'); } //$obj = CreateObject('tc.tc'); //$obj->ht_view(); //$GLOBALS['phpgw']->common->phpgw_footer(); ?>