📄 makepetconfig.php
字号:
<?phpif(!defined('IN_DISCUZ')){exit('Access Denied');} $petconfigtxt="";$mysettings = $db->get_one("SELECT * FROM {$tablepre}wxpetconfig WHERE 1 limit 0,1");$petconfigtxt.="<?php";$petconfigtxt.="\n//WuxinPet SystemConfig cache file, DO NOT modify me!";$petconfigtxt.="\n\$petsettings = Array(";foreach($mysettings as $colname => $values) { if(in_array($colname,array('version','opentime','openday','petgm','notice'))){ $petconfigtxt.="\n\t'".$colname."' => '".$values."',"; }else{ $petconfigtxt.="\n\t'".$colname."' => ".$values.","; }}$petconfigtxt=substr($petconfigtxt,0,strlen($petconfigtxt)-1);$petconfigtxt.="\n\t);";$petconfigtxt.="\n?>";@$fp = fopen(DISCUZ_ROOT.'./wxpet/system/petconfig.php','w');@flock($fp, 2);@fwrite($fp, $petconfigtxt);@fclose($fp);?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -