-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathajax.php
32 lines (26 loc) · 890 Bytes
/
ajax.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
<?php
/*
Copyright (c) 2009
$Id: index.php 399 2009-10-14 07:11:04Z techice $
*/
$name = empty($_GET['n'])?'index':$_GET['n'];
//note ���ؿ�����ò���
require 'config.php';
//定义FROMEWORK,为false表示从前台来,true表示从后台来
define('FROMEWORK',false);
//note ���ؿ��
require 'framwork/MooPHP.php';
//����ķ���
$names = array('login', 'index', 'register', 'lostpasswd', 'inputpwd','sns', 'viewspace', 'relatekw', 'ajax', 'seccode', 'sendmail', 'myaccount','service','lovestyle','loveing','payment','space','activity','chat','material');
if(!in_array($name, $names)) {
echo 'noaccess';
}
//用户信息
$MooUid = 0;
MooUserInfo();
$user_arr=UserInfo();
$userid =$MooUid;//=$user_arr['uid'];
include "module/".strtolower($name)."/ajax.php";
$_MooClass['MooMySQL']->close();
@ $memcached->close();
@ $fastdb->close();