-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi_callback.php
More file actions
26 lines (21 loc) · 959 Bytes
/
Copy pathapi_callback.php
File metadata and controls
26 lines (21 loc) · 959 Bytes
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
<?php
// +----------------------------------------------------------------------
// | Fanwe 方维p2p借贷系统
// +----------------------------------------------------------------------
// | Copyright (c) 2011 http://www.fanwe.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: 云淡风轻(88522820@qq.com)
// +----------------------------------------------------------------------
//用于处理 api同步登录的回调
require './system/common.php';
require './app/Lib/app_init.php';
$api_class = trim(addslashes($_REQUEST['c']));
if(file_exists(APP_ROOT_PATH.'system/api_login/'.$api_class.'_api.php'))
{
$api = $GLOBALS['db']->getRow("select * from ".DB_PREFIX."api_login where class_name='".$api_class."'");
require_once APP_ROOT_PATH.'system/api_login/'.$api_class.'_api.php';
$api_class = $api['class_name']."_api";
$api_obj = new $api_class($api);
$api_obj->callback();
}
?>