示例#1
0
        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";
    }
    if ($result == "ok") {
        $quoteUrl = $dataInfo['quoteUrl'] == "" ? $quoteUrl : $dataInfo['quoteUrl'] . ";" . $quoteUrl;
        $modify_sql = "UPDATE " . $DBPrefix . "logs set quoteUrl='{$quoteUrl}' WHERE id='{$mark_id}'";
        $DMC->query($modify_sql);
        $ActionMessage = "{$strSendTbSucc}";
        $action = "";
    } else {
        $ActionMessage = "{$strSendTbError}" . $result;
        $action = "trackback";
    }
}
if ($action == "all") {
    $seekname = "";
示例#2
0
                mb_convert_variables($cfg['mysql_lang'], "auto", $name, $category, $comment);
            }
            // Update query
            $sql = 'UPDATE ' . $log_table . " SET `name` = '{$name}', `href` = '{$href}', `category` = '{$category}', `comment` = '{$comment}'";
            if (isset($_POST['no_update_mod'])) {
                $mod = $_POST['mod'];
                $sql .= ", `mod` = '{$mod}'";
            } else {
                $cmod = gmdate('YmdHis', time() + $cfg['tz'] * 3600);
                $sql .= ", `mod` = '{$cmod}'";
            }
            // Make private
            if (isset($_POST['private'])) {
                $sql .= ", `draft` = '1'";
            }
            $sql .= "WHERE `id` = '{$id}'";
            mysql_query($sql) or die("<h2>MySQL error</h2> " . mysql_errno() . " : " . mysql_error());
            $new_id = $id;
            $contents = log_updated('index', 'check');
            $contents .= file_uploaded();
            $contents .= send_trackback();
            xhtml_output('');
        }
    } else {
        header('Location: ' . $http . '://' . $_SERVER['HTTP_HOST'] . $cfg['root_path'] . 'index.php');
        exit;
    }
} else {
    header('Location: ' . $http . '://' . $_SERVER['HTTP_HOST'] . $cfg['root_path'] . 'index.php');
    exit;
}
示例#3
0
    // make the data sql save
    $post = prep_new_post();
    $res = $bBlog->new_post($post);
    if (is_numeric($res)) {
        $bBlog->assign('post_message', "Post #{$res} Added :)");
        if (strlen(C_PING) > 0) {
            include BBLOGROOT . 'libs/rpc.php';
            // include stuff needed to ping
            register_shutdown_function('ping');
            // who wants to wait for 4
            // requests before the page loads ?
        }
        if (isset($_POST['send_trackback']) && $_POST['send_trackback'] == "TRUE") {
            // send a trackback
            include "./trackback.php";
            send_trackback($bBlog->_get_entry_permalink($res), $_POST['title_text'], $_POST['excerpt'], $_POST['tburl']);
        }
    } else {
        $bBlog->assign('post_message', "Sorry, error adding post: {$res}");
    }
}
// get modifiers
$bBlog->get_modifiers();
$bBlog->assign('selected_modifier', C_DEFAULT_MODIFIER);
if (C_DEFAULT_STATUS == 'draft') {
    $bBlog->assign('statusdraft', 'checked="checked"');
} else {
    $bBlog->assign('statuslive', 'checked="checked"');
}
if (isset($_REQUEST['popup']) && $_REQUEST['popup'] == 'true') {
    include 'inc/bookmarkletstuff.php';
示例#4
0
            }
        }
    }
    $unique_email = array_unique($array_email);
    $unique_email = array_values($unique_email);
    for ($i = 0; $i < count($unique_email); $i++) {
        mailer($wr_name, $wr_email, $unique_email[$i], $subject, $content, 1);
    }
}
// 사용자 코드 실행
@(include_once "{$board_skin_path}/write_update.skin.php");
// 트랙백 주소가 있다면
if ($w != "u" && $wr_trackback || $w == "u" && $wr_trackback && $re_trackback) {
    $trackback_url = "{$g4['url']}/{$g4['bbs']}/tb.php/{$bo_table}/{$wr_id}";
    $msg = "";
    $msg = send_trackback($wr_trackback, $trackback_url, $wr_subject, $board[bo_subject], $_POST[wr_content]);
    if ($msg) {
        echo "<meta http-equiv='content-type' content='text/html; charset={$g4['charset']}'>\n";
        echo "<script type='text/javascript'>alert('{$msg} {$wr_trackback}');</script>";
    }
}
@(include_once "{$board_skin_path}/write_update.tail.skin.php");
if ($g4[https_url]) {
    $https_url = "{$g4['url']}/{$g4['bbs']}";
} else {
    $https_url = ".";
}
if ($file_upload_msg) {
    alert($file_upload_msg, "{$https_url}/board.php?bo_table={$bo_table}&wr_id={$wr_id}&page={$page}" . $qstr);
} else {
    goto_url("{$https_url}/board.php?bo_table={$bo_table}&wr_id={$wr_id}&page={$page}" . $qstr);