2 /**************************************************************************\
3 * phpGroupWare - Notes *
4 * http://www.phpgroupware.org *
5 * Written by Bettina Gille [ceb@phpgroupware.org] *
6 * ----------------------------------------------- *
7 * This program is free software; you can redistribute it and/or modify it *
8 * under the terms of the GNU General Public License as published by the *
9 * Free Software Foundation; either version 2 of the License, or (at your *
10 * option) any later version. *
11 \**************************************************************************/
12 /* $Id: index.php,v 1.48.4.1 2003/11/04 15:06:35 ceb Exp $ */
14 $GLOBALS['phpgw_info']['flags'] = array
16 'currentapp' => '3rd',
20 include('../header.inc.php');
22 if (@isset($_GET['menuaction']))
24 list($app,$class,$method) = explode('.',$_GET['menuaction']);
25 if (! $app || ! $class || ! $method)
37 $GLOBALS['obj'] = CreateObject(sprintf('%s.%s',$app,$class));
38 $GLOBALS[$class] = $GLOBALS['obj'];
39 if ((is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions[$method]) && ! $invalid_data)
41 execmethod($_GET['menuaction']);
47 unset($api_requested);
51 if (! $app || ! $class || ! $method)
53 $GLOBALS['phpgw']->log->message(array(
54 'text' => 'W-BadmenuactionVariable, menuaction missing or corrupt: %1',
61 if (! is_array($obj->public_functions) || ! $obj->public_functions[$method] && $method)
63 $GLOBALS['phpgw']->log->message(array(
64 'text' => 'W-BadmenuactionVariable, attempted to access private method: %1',
70 //$GLOBALS['phpgw']->log->commit();
72 //$GLOBALS['phpgw']->redirect_link('/3rd/index.php?menuaction=3rd.3rd.ht_view');
75 //$obj = CreateObject('3rd.3rd');
77 //$GLOBALS['phpgw']->common->phpgw_footer();