Пример #1
0
        $DMC->query($sql);
        //删除关联的评论和引用
        $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);
Пример #2
0
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();
}
Пример #3
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);
}
Пример #4
0
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);
    }
}