-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuserinfo.php
43 lines (30 loc) · 963 Bytes
/
userinfo.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
<?php
@ini_set("display_errors","1");
@ini_set("display_startup_errors","1");
require_once("include/dbcommon.php");
require_once('include/xtempl.php');
require_once('classes/userinfopage.php');
add_nocache_headers();
if( !UserInfoPage::processUserInfoPageSecurity( $strTableName ) )
return;
// render all necessary layouts
$xt = new Xtempl();
$id = postvalue_number("id");
$id = intval($id) == 0 ? 1 : $id;
//array of params for classes
$params = array();
$params["id"] = $id;
$params["xt"] = &$xt;
$params["pageType"] = PAGE_USERINFO;
$params["pageName"] = postvalue("page");
$params["tName"] = $cLoginTable;
$params["pageTable"] = GLOBAL_PAGES;
$params["action"] = postvalue("a");
;
$params["captchaName"] = "captcha_1209xre";
$params["captchaValue"] = postvalue("value_captcha_1209xre_" . $id);
$params["mode"] = UserInfoPage::readPageModeFromRequest();
$pageObject = new UserInfoPage($params);
$pageObject->init();
$pageObject->process();
?>