34 lines
1.1 KiB
PHP
34 lines
1.1 KiB
PHP
<?php
|
||
/*
|
||
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
|
||
* @license https://www.oaooa.com/licenses/
|
||
*
|
||
* @link https://www.oaooa.com
|
||
* @author zyx(zyx@oaooa.com)
|
||
*/
|
||
//此页的调用地址 index.php?mod=test;
|
||
//同目录的其他php文件调用 index.php?mod=test&op=test1;
|
||
|
||
if (!defined('IN_OAOOA')) {//所有的php文件必须加上此句,防止被外部调用
|
||
exit('Access Denied');
|
||
}
|
||
$overt = getglobal('setting/overt');
|
||
if (!$overt) {
|
||
Hook::listen('check_login');//检查是否登录,未登录跳转到登录界面
|
||
}
|
||
|
||
$operation = isset($_GET['operation']) ? trim($_GET['operation']) : '';
|
||
if($operation == 'fetch'){
|
||
$rid = isset($_GET['rid']) ? trim($_GET['rid']) : '';
|
||
if (!$rid) {
|
||
exit(json_encode(array('error' => false)));
|
||
}
|
||
$resourcesdata = C::t('pichome_resources')->fetch_by_rid($rid);
|
||
exit(json_encode(array('resourcesdata' => $resourcesdata)));
|
||
|
||
}else{
|
||
$theme = GetThemeColor();
|
||
include template('page/details');
|
||
}
|
||
|