Files
Pichome/dzz/index/index.php
2024-01-31 01:00:33 +08:00

34 lines
1.5 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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');
}
//Hook::listen('check_login');//检查是否登录,未登录跳转到登录界面
//设置默认首页
$configfile = DZZ_ROOT.'data/cache/default_mod.php';
$configarr = array();
//$vapp=DB::fetch_first("select * from %t where 1",array('vapp'));
$configarr['default_mod' ]='banner';
@file_put_contents($configfile,"<?php \t\n return ".var_export($configarr,true).";");
C::t('setting')->update('default_mod','banner');
include_once libfile('function/cache');
updatecache('setting');
/*//修改地址
$file=realpath(DZZ_ROOT.'./dzz/imageTool/js/widgets.js');
$file1=(DZZ_ROOT.'./dzz/imageTool/js/widgets.min.js');
$content=file_get_contents($file);
$content=str_replace('http://127.0.0.2',rtrim($_G['siteurl'],'/'),$content);
file_put_contents($file1,$content);*/
// dheader("location: ".$_G['siteurl'].'index.php?mod=pichome');
exit();
//Hook::listen("adminlogin");
// <!-- require_once('vue/dist/index.html'); -->