Beispiel #1
0
        //删除关联的评论和引用
        $stritem1 = str_replace("id=", "logId=", $stritem);
        $sql = "delete from " . $DBPrefix . "comments where {$stritem1}";
        $DMC->query($sql);
        $sql = "delete from " . $DBPrefix . "trackbacks where {$stritem1}";
        $DMC->query($sql);
        settings_recount("logs");
        //更新Cache
        hottags_recache();
        categories_recache();
        settings_recache();
        recentLogs_recache();
        recentComments_recache();
        archives_recache();
        calendar_recache();
        attachments_recache();
        logsTitle_recache();
        logs_sidebar_recache($arrSideModule);
    }
}
//引用传送
if ($action == "sendtb") {
    $mark_id = $_GET['mark_id'];
    $quoteUrl = $_POST['quoteUrl'];
    $dataInfo = getRecordValue($DBPrefix . "logs", " id='{$mark_id}'");
    header("Content-Type: text/html; charset=utf-8");
    $pingurl = explode(";", $quoteUrl);
    $logurl = $settingInfo['blogUrl'] . "index.php?load=read&id={$mark_id}";
    foreach ($pingurl as $durl) {
        $result = send_trackback($durl, $dataInfo['logTitle'], $dataInfo['logContent'], $logurl);
        //echo $ActionMessage.=$durl." : ".$result."\n";
Beispiel #2
0
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);
}