<td>' . date('Y-m-d H:i', $re['time']) . '</td> <td>' . date('Y-m-d H:i', $re['last']) . '</td> <td>' . $re['down'] . '次</td> </tr> '; } $FFS['html']['tag']['{html:data}'] = !empty($_GET['data']) ? $_GET['data'] : ''; $FFS['html']['tag']['{html:counts}'] = $resc; $FFS['html']['tag']['{html:filelist}'] = $filelist; $FFS['html']['tag']['{html:pages}'] = $page_li; $FFS['html']['tag']['{html:nextpage}'] = $nextpage; $FFS['html']['tag']['{html:previouspage}'] = $previouspage; if (!empty($_POST['files_del'])) { if ($_POST['files_del']) { $select = $_POST['select']; if ($select != "") { $del_num = count($select); for ($i = 0; $i <= $del_num; $i++) { FILE_DELETE($select[$i]); } STR_EDITNOTICE('Delete_Files_Is_Ok!'); FILE_MAKEDB(); } } } } } } else { ERROR('运行提示', '当前系统核心版本过低,请升级到C-110924'); } }
if (RUN && ADMIN) { include_once MOP . 'config.php'; if (ACT == 'index') { /*创建页面数组*/ $FFS['html']['path'] = MOP . 'admin.html'; $FFS['html']['tag']['{html:SWF_LIT}'] = SWF_LIT; $FFS['html']['tag']['{html:SWF_DMT}'] = SWF_DMT; $FFS['html']['tag']['{html:LINK_COUNTDOWN}'] = LINK_COUNTDOWN; $FFS['html']['tag']['{html:SWF_DSP}'] = SWF_DSP; $FFS['html']['tag']['{html:SWF_LSP}'] = SWF_LSP; $FFS['html']['tag']['{html:SWF_LMT}'] = SWF_LMT; $FFS['html']['tag']['{html:AD}'] = stripslashes(AD); if ($_POST) { $context = '<?php ' . "\n"; unset($_POST['swf_update']); $post = array_keys($_POST); foreach ($post as $key) { if (!get_magic_quotes_gpc()) { $context = $context . 'define(\'' . strtoupper($key) . '\',\'' . addslashes($_POST[$key]) . '\'); ' . "\n"; } else { $context = $context . 'define(\'' . strtoupper($key) . '\',\'' . $_POST[$key] . '\'); ' . "\n"; } } $context = $context . ' ?>'; if (file_put_contents(MOP . 'config.php', $context)) { STR_EDITNOTICE('swf_config_update_success'); } else { } } } }
/*创建页面数组*/ $FFS['html']['path'] = MOP . 'admin.html'; $FFS['html']['tag']['{html:PLAY_LIT}'] = PLAY_LIT; $FFS['html']['tag']['{html:PLAY_DMT}'] = PLAY_DMT; $FFS['html']['tag']['{html:LINK_COUNTDOWN}'] = LINK_COUNTDOWN; $FFS['html']['tag']['{html:PLAY_DSP}'] = PLAY_DSP; $FFS['html']['tag']['{html:PLAY_LSP}'] = PLAY_LSP; $FFS['html']['tag']['{html:PLAY_LMT}'] = PLAY_LMT; $FFS['html']['tag']['{html:AD}'] = stripslashes(AD); if ($_POST) { $context = '<?php ' . "\n"; unset($_POST['mp_update']); $post = array_keys($_POST); foreach ($post as $key) { if ($key == 'SAVE_DIR') { rename(SYS, ROT . $_POST[$key]); } if (!get_magic_quotes_gpc()) { $context = $context . 'define(\'' . strtoupper($key) . '\',\'' . addslashes($_POST[$key]) . '\'); ' . "\n"; } else { $context = $context . 'define(\'' . strtoupper($key) . '\',\'' . $_POST[$key] . '\'); ' . "\n"; } } $context = $context . ' ?>'; if (file_put_contents(MOP . 'config.php', $context)) { STR_EDITNOTICE('The_Action_Is_Ok!'); } else { } } } }
<?php if (RUN && ADMIN) { include_once MOP . 'config.php'; if (ACT == 'index') { /*创建页面数组*/ $FFS['html']['path'] = MOP . 'admin.html'; $FFS['html']['tag']['{html:SEARCH_NUM}'] = SEARCH_NUM; $FFS['html']['tag']['{html:SO_MAX}'] = SO_MAX; if ($_POST) { $context = '<?php ' . "\n"; unset($_POST['so_update']); $post = array_keys($_POST); foreach ($post as $key) { if (!get_magic_quotes_gpc()) { $context = $context . 'define(\'' . strtoupper($key) . '\',\'' . addslashes($_POST[$key]) . '\'); ' . "\n"; } else { $context = $context . 'define(\'' . strtoupper($key) . '\',\'' . $_POST[$key] . '\'); ' . "\n"; } } $context = $context . ' ?>'; if (file_put_contents(MOP . 'config.php', $context)) { chmod(MOP . 'config.php', 0777); STR_EDITNOTICE('so_config_update_success'); } else { STR_EDITNOTICE('so_config_update_false'); } } } }
if (ACT == 'index') { /*创建页面数组*/ $FFS['html']['path'] = MOP . 'admin.html'; $FFS['html']['tag']['{html:INDEX_INFO}'] = stripslashes(INDEX_INFO); $FFS['html']['tag']['{html:INDEX_AD}'] = stripslashes(INDEX_AD); $FFS['html']['tag']['{html:INDEX_UPDATE}'] = INDEX_UPDATE; $FFS['html']['tag']['{html:INDEX_UPDATE_NUMS}'] = INDEX_UPDATE_NUMS; $FFS['html']['tag']['{html:INDEX_FRIENDLINK_TURN}'] = INDEX_FRIENDLINK_TURN; $FFS['html']['tag']['{html:INDEX_FRIENDLINK}'] = INDEX_FRIENDLINK; if ($_POST) { $context = '<?php ' . "\n"; unset($_POST['index_update']); $post = array_keys($_POST); foreach ($post as $key) { if ($key == 'SAVE_DIR') { rename(SYS, ROT . $_POST[$key]); } if (!get_magic_quotes_gpc()) { $context = $context . 'define(\'' . strtoupper($key) . '\',\'' . addslashes($_POST[$key]) . '\'); ' . "\n"; } else { $context = $context . 'define(\'' . strtoupper($key) . '\',\'' . $_POST[$key] . '\'); ' . "\n"; } } $context = $context . ' ?>'; if (file_put_contents(MOP . 'config.php', $context)) { STR_EDITNOTICE('index_config_update_success'); } else { } } } }
/*创建页面数组*/ $FFS['html']['path'] = MOP . 'admin.html'; $FFS['html']['tag']['{html:UPLOAD_SIZE}'] = UPLOAD_SIZE; $FFS['html']['tag']['{html:UPLOAD_TYPE}'] = UPLOAD_TYPE; $FFS['html']['tag']['{html:UPLOAD_MAX}'] = UPLOAD_MAX; $FFS['html']['tag']['{html:UPLOAD_EMAIL}'] = UPLOAD_EMAIL; $FFS['html']['tag']['{html:NOW_UPLOAD_SIZE}'] = ini_get('upload_max_filesize') > ini_get('post_max_size') ? ini_get('post_max_size') : ini_get('upload_max_filesize'); if ($_POST) { $context = '<?php ' . "\n"; unset($_POST['up_update']); $post = array_keys($_POST); foreach ($post as $key) { if ($key == 'SAVE_DIR') { rename(SYS, ROT . $_POST[$key]); } if (!get_magic_quotes_gpc()) { $context = $context . 'define(\'' . strtoupper($key) . '\',\'' . addslashes($_POST[$key]) . '\'); ' . "\n"; } else { $context = $context . 'define(\'' . strtoupper($key) . '\',\'' . $_POST[$key] . '\'); ' . "\n"; } } $context = $context . ' ?>'; if (file_put_contents(MOP . 'config.php', $context)) { chmod(MOP . 'config.php', 0777); STR_EDITNOTICE('upload_config_update_success'); } else { STR_EDITNOTICE('upload_config_update_false'); } } } }
function MAIL_TEST() { $smtpemailto = trim($_POST['SMTPMAILTO']); $smtpusermail = trim($_POST['SMTPUSERMAIL']); $mailsubject = "=?UTF-8?B?" . base64_encode('FFS MINI 测试邮件标题') . "?="; $mailtype = trim($_POST['MAILTYPE']); $mailbody = 'FFS MINI 测试邮件主题'; //邮件内容 $mailway = $_POST['MAILWAY']; if ($mailway == 'mail') { if ($mailtype == 'TXT') { $mail = mail($smtpemailto, $mailsubject, $mailbody); } if ($mailtype == 'HTML') { $mail = mail($smtpemailto, $mailsubject, $mailbody, "MIME-Version: 1.0" . "\r\n" . "Content-type:text/html;charset=utf-8" . "\r\n"); } if ($mail) { STR_EDITNOTICE('The_Email_Is_Send!'); } else { STR_EDITNOTICE('The_Email_Can_Not_Send!'); } } else { require_once "glob/admin/email/email.class.php"; //########################################## $smtpserver = trim($_POST['SMTPSERVER']); $smtpserverport = trim($_POST['SMTPSERVERPORT']); $smtpuser = trim($_POST['SMTPUSER']); $smtppass = trim($_POST['SMTPPASS']); //########################################## @($smtp = new smtp($smtpserver, $smtpserverport, true, $smtpuser, $smtppass)); //这里面的一个true是表示使用身份验证,否则不使用身份验证. $smtp->debug = false; //是否显示发送的调试信息 if (@$smtp->sendmail($smtpemailto, $smtpusermail, $mailsubject, $mailbody, $mailtype)) { STR_EDITNOTICE('The_Email_Is_Send!'); } else { STR_EDITNOTICE('The_Email_Can_Not_Send!'); } } }
if (RUN && ADMIN) { include_once MOP . 'config.php'; if (ACT == 'index') { /*创建页面数组*/ $FFS['html']['path'] = MOP . 'admin.html'; $FFS['html']['tag']['{html:PIC_LIT}'] = PIC_LIT; $FFS['html']['tag']['{html:PIC_DMT}'] = PIC_DMT; $FFS['html']['tag']['{html:LINK_COUNTDOWN}'] = LINK_COUNTDOWN; $FFS['html']['tag']['{html:PIC_DSP}'] = PIC_DSP; $FFS['html']['tag']['{html:PIC_DSP_LINK}'] = PIC_DSP_LINK; $FFS['html']['tag']['{html:PIC_F_EXPIRED}'] = PIC_F_EXPIRED; $FFS['html']['tag']['{html:P_AD}'] = stripslashes(P_AD); if ($_POST) { $context = '<?php ' . "\n"; unset($_POST['pic_update']); $post = array_keys($_POST); foreach ($post as $key) { if (!get_magic_quotes_gpc()) { $context = $context . 'define(\'' . strtoupper($key) . '\',\'' . addslashes($_POST[$key]) . '\'); ' . "\n"; } else { $context = $context . 'define(\'' . strtoupper($key) . '\',\'' . $_POST[$key] . '\'); ' . "\n"; } } $context = $context . ' ?>'; if (file_put_contents(MOP . 'config.php', $context)) { STR_EDITNOTICE('pic_config_update_success'); } else { } } } }
} else { $FFS['html']['tag']['{html:SITELIST_BANA}'] = ''; $FFS['html']['tag']['{html:SITELIST_BANB}'] = ' checked="checked"'; } if (!empty($_POST['down_update'])) { $context = '<?php ' . "\n"; unset($_POST['down_update']); unset($_POST['try_ldn']); $post = array_keys($_POST); foreach ($post as $key) { if ($key == 'SAVE_DIR') { rename(SYS, ROT . $_POST[$key]); } if (!get_magic_quotes_gpc()) { $context = $context . 'define(\'' . strtoupper($key) . '\',\'' . addslashes($_POST[$key]) . '\'); ' . "\n"; } else { $context = $context . 'define(\'' . strtoupper($key) . '\',\'' . $_POST[$key] . '\'); ' . "\n"; } } $context = $context . ' ?>'; if (file_put_contents(MOP . 'config.php', $context)) { FILE_SYNC(trim($_POST['LDN'])); STR_EDITNOTICE('file_config_update_success'); } else { } } elseif (!empty($_POST['try_ldn'])) { echo FILE_SYNC_TRY(trim($_POST['LDN'])); STR_EDITNOTICE(''); } } }