示例#1
0
function DelBlogSubscribe($thread_id)
{
    require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/blogs.php";
    session_start();
    $uid = $_SESSION['uid'];
    $thread_id = intval($thread_id);
    $objResponse = new xajaxResponse();
    $blog = new blogs();
    if ($uid && $thread_id) {
        $blog->SetMail($thread_id, $uid, 'f');
        $objResponse->assign("blog_subscribe", "innerHTML", "Подписаться на тему");
        $objResponse->script("\$('blog_subscribe').onclick = function(){ xajax_SetBlogSubscribe({$thread_id}); }");
    }
    return $objResponse;
}