first
This commit is contained in:
25
modules/post/action/a.config.php
Normal file
25
modules/post/action/a.config.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
checkAdmin(0);
|
||||
|
||||
$badword = trim($badword);
|
||||
$badword = str_replace("\r\n","",$badword);
|
||||
$badword = str_replace("\n","",$badword);
|
||||
|
||||
$fdset = array('layout','m_layout','skin_main','skin_mobile','comment_main','comment_mobile','perm_g_write','perm_l_write','perm_g_category','perm_l_category','perm_g_goods','perm_l_goods','denylikemy','hitcount','badword','badword_action','badword_escape','singo_del','singo_del_num','singo_del_act','recnum','rownum','newtime');
|
||||
|
||||
$gfile = $g['path_var'].'site/'.$r.'/'.$m.'.var.php';
|
||||
$fp = fopen($gfile,'w');
|
||||
fwrite($fp, "<?php\n");
|
||||
foreach ($fdset as $val)
|
||||
{
|
||||
fwrite($fp, "\$d['post']['".$val."'] = \"".trim(${$val})."\";\n");
|
||||
}
|
||||
fwrite($fp, "?>");
|
||||
fclose($fp);
|
||||
@chmod($gfile,0707);
|
||||
|
||||
setrawcookie('post_config_result', rawurlencode('<i class="fa fa-check" aria-hidden="true"></i> 설정이 변경 되었습니다.|success')); // 처리여부 cookie 저장
|
||||
getLink('reload','parent.','','');
|
||||
?>
|
||||
Reference in New Issue
Block a user