You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
965 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
// 第三方登录插件调用如有BUG请联系作者
/*===========================================================
**/
if(!function_exists('json_encode'))
{
include_once('../cls_json.php');
function json_encode($value)
{
$json = new JSON;
return $json->encode($value);
}
}
if(!function_exists('json_decode'))
{
include_once('../cls_json.php');
function json_decode($json , $um = false)
{
$json = new JSON;
return $json->decode($json , $um);
}
}
function & website($type)
{
$path = dirname(__FILE__);
if(!file_exists($path.'/config/'.$type.'_config.php') || !file_exists($path.'/'.$type.'.php') || !file_exists($path.'/cls_http.php'))
{
return false;
}
include_once($path.'/config/'.$type.'_config.php'); // 装载第三方申请的东西
if(!defined('RANK_ID')) // 尚未安装
{
return false;
}
include_once($path.'/'.$type.'.php');
return new website();
}
?>