source/admin/module.ctrl.php
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class moduleControl extends skymvc{
function __construct(){
parent::__construct();
}
public function onDefault(){
$d=ROOT_PATH."module";
$mods=$this->getmods($d);
$this->smarty->assign(
array(
"mods"=>$mods,
)
);
$this->smarty->display("module/module.html");
}
public function onYun(){
$this->smarty->display("module/yun.html");
}
public function onDownInstall(){
$downcode=get_post('downcode','h');
$domain=getBaseDomain($_SERVER['HTTP_HOST']);
$data=file_get_contents("http://www.deitui.com/index.php?m=yunmodule&a=down&downcode={$downcode}&domain={$domain}");
$json=json_decode($data,true);
if(!$json || $json['error']){
$this->goAll("数据出错",1);
}else{
if(file_exists(ROOT_PATH."module/".$json['data']['appdir'])){
$this->goAll("该模块已经存在了",1);
}
$file=ROOT_PATH."module/{$downcode}.zip";
file_put_contents($file,file_get_contents($json['data']['downurl']));
$this->loadClass("pclzip",false,false);
$zip = new pclzip($file);
$zip->extract(ROOT_PATH."module");
//unlink($file);
$_GET['inmodule']=$json['data']['appdir'];
$this->onInstall();
$this->goAll("安装成功");
}
}
后面还有 195 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。