-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.common.php
53 lines (38 loc) · 1.51 KB
/
profile.common.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
/*******************************************************************************
* profile.common.php
* profile参数信息文件
* profile parameter file
* 功能描述
检查用户权限
初始化语言变量
初始化xajax类
预定义xajaxGrid中需要使用的一些参数
* Function Desc
authority
initialize localization class
initialize xajax class
define xajaxGrid parameters
* Revision 0.0057 2009/03/28 15:47:00 last modified by donnie
* Desc: page created
********************************************************************************/
header('Content-Type: text/html; charset=utf-8');
header('Expires: Sat, 01 Jan 2000 00:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: post-check=0, pre-check=0',false);
header('Pragma: no-cache');
session_cache_limiter('public, no-store');
session_set_cookie_params(0);
if (!session_id()) session_start();
setcookie('PHPSESSID', session_id());
if ($_SESSION['curuser']['usertype'] != 'reseller' && $_SESSION['curuser']['usertype'] != 'groupadmin')
header("Location: admin.php");
require_once ("include/xajax.inc.php");
require_once ('include/localization.class.php');
$GLOBALS['locate']=new Localization($_SESSION['curuser']['country'],$_SESSION['curuser']['language'],'profile');
$xajax = new xajax("profile.server.php");
$xajax->registerFunction("init");
$xajax->registerFunction("rechargeByPaypal");
$xajax->registerFunction("resellerPaymentInfoEdit");
$xajax->registerFunction("resellerPaymentInfoUpdate");
?>