📄 setpost.php
字号:
<?php!function_exists('adminmsg') && exit('Forbidden');$basename .= "&job=$job";if ($_POST['step']!=2) { if ($job == 'post') { $lenlimit = explode(',',$db_lenlimit); $ifcheckdb = array('postcheck' => $db_postcheck,'commentcheck' => $db_commentcheck,'copyctrl' => $db_copyctrl,'autoimg' => $db_autoimg,'articleurl' => $db_articleurl); ifcheck($ifcheckdb); } if ($job == 'att') { $db_uploadmaxsize = ceil($db_uploadmaxsize/1024); ifcheck(array('allowupload' => $db_allowupload)); } if ($job=='mini') { list($db_thumbw,$db_thumbh)=explode("\t",$db_thumbwh); ifcheck(array('thumbifopen' => $db_thumbifopen)); } if ($job=='code') { foreach ($db_post as $key => $value) { strpos($key,'if')!==false && $ifcheckdb['post'.$key] = $value; } foreach ($db_sign as $key => $value) { strpos($key,'if')!==false && $ifcheckdb['sign'.$key] = $value; } ifcheck($ifcheckdb); } if ($job=='credit') { list($credit_1,$credit_2,$credit_3,$credit_4,$credit_5,$credit_6) = explode(',',$db_credit); $credit_1 /= 10; $credit_3 /= 10; $credit_5 /= 10; } if ($job=='ajax') { $iconv = $spani = $recode_string = $spanr = $libiconv = $spanl = $mb_convert_encoding = $spanm = ''; if (!function_exists('iconv')) { $iconv = 'DISABLED'; $spaniconv = 'style="color:#FF0000"'; } if (!function_exists('recode_string')) { $recode_string = 'DISABLED'; $spanr = 'style="color:#FF0000"'; } if (!function_exists('libiconv')) { $libiconv = 'DISABLED'; $spanl = 'style="color:#FF0000"'; } if (!function_exists('mb_convert_encoding')) { $mb_convert_encoding = 'DISABLED'; $spanm = 'style="color:#FF0000"'; } !$db_charsetmod && $db_charsetmod = 'charset_string'; $db_charsetmod = str_replace('N_','',$db_charsetmod); !${$db_charsetmod} && ${$db_charsetmod} = 'CHECKED'; $span = ${$db_charsetmod} == 'DISABLED' ? 'style="color:#FF0"' : ''; !$db_iconvpre && $db_iconvpre = 'TRANSLIT'; !${$db_iconvpre} && ${$db_iconvpre} = 'CHECKED'; } include PrintEot('setpost');footer();} else { $job != 'credit' && $config = GetGP('config','P'); ($job == 'post' || $job=='code') && $config = CheckInt($config); if ($job == 'post') { $lenlimit = GetGP('lenlimit','P'); $config['lenlimit'] = implode(',',CheckInt($lenlimit)); } if ($job=='att') { $config['attachnum'] = (int)$config['attachnum']; $config['uploadmaxsize'] = (int)$config['uploadmaxsize']; $config['uploadmaxsize'] *= 1024; $config['uploadfiletype'] = ArrayTxt($config['uploadfiletype']); } if ($job=='mini') { $thumbwh = GetGP('thumbwh','P'); $config['thumbwh'] = implode("\t",CheckInt($thumbwh)); } if ($job=='credit') { $credit = GetGP('credit','P'); $credit[1] *= 10; $credit[3] *= 10; $credit[5] *= 10; $config['credit'] = implode(',',CheckInt($credit)); } !is_array($config) && $config = array(); updatesetting($config); adminmsg('operate_success');}?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -