function reAllCache() { global $arrSideModule; categories_recount(); categories_recache(); calendar_recache(); statistics_recache(); hottags_recache(); archives_recache(); links_recache(); filters_recache(); keywords_recache(); recentLogs_recache(); recentComments_recache(); recentGbooks_recache(); logsTitle_recache(); modulesSetting_recache(); download_recache(); attachments_recache(); members_recache(); skinlist_recache(); online_recache(); logs_sidebar_recache($arrSideModule); }
function reAllCache() { settings_recache(); modules_recache(); categories_recache(); hottags_recache(); archives_recache(); links_recache(); keywords_recache(); filters_recache(); recentLogs_recache(); recentGbooks_recache(); recentComments_recache(); calendar_recache(); statistics_recache(); categories_recount(); }
$rsscontent = readfromfile("../backup/{$rssname}"); } $rssCate = $autocate == 0 ? $_POST['rssCate'] : ""; $array_insert = rssAnalyse($rsscontent, $rssCate, $curtime); if (is_array($array_insert)) { foreach ($array_insert as $arr) { $posttime = $curtime == 1 ? time() : $arr['posttime']; $arr['content'] = str_replace("'", "'", $arr['content']); $sql = "INSERT INTO {$DBPrefix}logs(cateId,logTitle,logContent,author,postTime,isComment,isTrackback,isTop,weather,saveType,logsediter) VALUES ('{$arr['category']}','{$arr['title']}','{$arr['content']}','{$_SESSION['username']}','{$posttime}','1','1','0','sunny','1','tiny')"; $DMC->query($sql); } } //更新Cache settings_recount(); settings_recache(); categories_recount(); categories_recache(); calendar_recache(); archives_recache(); recentLogs_recache(); logsTitle_recache(); modules_recache(); $rssCate = ""; $ActionMessage = $strRssImportOption7; } ?> <script style="javascript"> <!-- function onclick_update(form) { if (isNull(form.rssfile, '<?php echo $strRssImportOption1;
function blogger_deletePost($values) { global $settingInfo, $DMC, $DBPrefix, $arrSideModule; global $strArrayMonth, $strArrayDay, $strYear, $strMonth, $arrWeek, $strDayLogs, $strCalendar; global $strModifyInfo, $strLogout, $strLoginSubmit, $strUserRegister; global $strSearchErr, $strKeyword, $strSearchTitle, $strSearchContent, $strSearchTitleContent, $strFind; $userdetail = check_user_pw($values['username'], $values['password']); $records = $DMC->fetchArray($DMC->query("SELECT * FROM `{$DBPrefix}logs` WHERE `id`='{$values['postid']}'")); if ($records['id'] == '') { xml_error("Entry does not exist."); } else { $DMC->query("DELETE FROM `{$DBPrefix}logs` WHERE `id`='{$values['postid']}'"); //更新Cache settings_recount("logs"); settings_recache(); categories_recount(); categories_recache(); recentLogs_recache(); archives_recache(); calendar_recache(); logsTitle_recache(); logs_sidebar_recache($arrSideModule); $xml_logContent = make_xml_piece("boolean", '1'); $body_xml = xml_generate($xml_logContent); //writetofile ("text2.xml", $body_xml); //For debug use send_response($body_xml); } }