-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
79 lines (72 loc) · 2.34 KB
/
index.php
File metadata and controls
79 lines (72 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
/**************************************************************************\
* phpGroupWare - Notes *
* http://www.phpgroupware.org *
* Written by Bettina Gille [ceb@phpgroupware.org] *
* ----------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id: index.php,v 1.48.4.1 2003/11/04 15:06:35 ceb Exp $ */
$GLOBALS['phpgw_info']['flags'] = array
(
'currentapp' => '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();
?>