-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.php
53 lines (36 loc) · 1.01 KB
/
menu.php
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
<?php
@ini_set("display_errors","1");
@ini_set("display_startup_errors","1");
require_once("include/dbcommon.php");
require_once('classes/menupage.php');
Security::processLogoutRequest();
if( !isLogged() || isLoggedAsGuest() )
{
Security::tryRelogin();
}
if( !isLogged() )
{
HeaderRedirect("login");
return;
}
if (($_SESSION["MyURL"] == "") || (!isLoggedAsGuest())) {
Security::saveRedirectURL();
}
require_once('include/xtempl.php');
require_once(getabspath("classes/cipherer.php"));
include_once(getabspath("include/calonppdb_events.php"));
$tableEvents["calonppdb"] = new eventclass_calonppdb;
$xt = new Xtempl();
//array of params for classes
$params = array();
$params["id"] = postvalue_number("id");
$params["xt"] = &$xt;
$params["tName"] = GLOBAL_PAGES;
$params["pageType"] = PAGE_MENU;
$params["isGroupSecurity"] = $isGroupSecurity;
$params["needSearchClauseObj"] = false;
$params["pageName"] = postvalue("page");
$pageObject = new MenuPage($params);
$pageObject->init();
$pageObject->process();
?>