admin/api_ucenter.php
(开头部分) 12KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('api_ucenter');
if(!function_exists('file_put_contents')){ function file_put_contents($filename, $s)
{
$fp = @fopen($filename, 'w');
@fwrite($fp, $s);
@fclose($fp);
return TRUE;
}}
require_once(DEDEINC.'/dedetemplate.class.php');
if(file_exists(DEDEROOT.'/uc_client/client.php'))
{
if(!defined('UC_API')) define('UC_API', '');
include_once DEDEROOT.'/uc_client/client.php';
}
else
{
ShowMsg('请安装UCenter模块!',-1);
exit();
}
$dopost = api_gpc('dopost','R');
$uc = new api_ucenter($dopost);
class api_ucenter
{
var $action;
var $dtp;
var $config;
//php5构造函数PHP>=5.0
function __construct($ac = '')
{
$action = 'uc_'.(empty($ac)||(!in_array($ac,array('install','edit'))) ? 'show' : trim($ac));
$this->dtp = new DedeTemplate();
$this->config = DEDEINC.'/common.inc.php';
$this->$action();
}
//构造类成员PHP<5.0
function api_ucenter($ac = '')
{
$this->__construct($ac);
}
function uc_install()
{
$uc_setings = api_gpc('uc_setings','P');
if(!isset($uc_setings['authkey']) || empty($uc_setings['authkey']))
{
ShowMsg('请填写uc创始人密码!',-1);
exit();
}
$uc_setings['ucapi'] = preg_replace("/\/$/", '', trim($uc_setings['ucapi']));
if(empty($uc_setings['ucapi']) || !preg_match("/^(http:\/\/)/i", $uc_setings['ucapi']))
后面还有 315 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。