예제 #1
0
 }
 // UPDATE ENTRY VIEWS
 if ($user->user_info['user_id'] != $owner->user_info['user_id']) {
     $database->database_query("UPDATE se_blogentries SET blogentry_views=blogentry_views+1 WHERE blogentry_id='{$blogentry_info['blogentry_id']}'");
 }
 // GET ENTRY COMMENT PRIVACY
 $allowed_to_comment = TRUE;
 if (!($privacy_max & $blogentry_info['blogentry_comments'])) {
     $allowed_to_comment = FALSE;
 }
 // GET BLOG TRACKBACKS
 $tb_where = "blogtrackback_blogentry_id='{$blogentry_id}'";
 $trackback_total = $blog->blog_trackback_total($tb_where);
 $trackback_list = $blog->blog_trackback_list(NULL, NULL, NULL, $tb_where);
 // MAKE TRACKBACK DISCOVERY
 $trackback_rdf = $blog->blog_trackback_generate($blogentry_info);
 // UPDATE NOTIFICATIONS
 if ($is_subscribed) {
     $database->database_query("\r\n      DELETE FROM\r\n        se_notifys\r\n      USING\r\n        se_notifys\r\n      LEFT JOIN\r\n        se_notifytypes\r\n        ON se_notifys.notify_notifytype_id=se_notifytypes.notifytype_id\r\n      WHERE\r\n        se_notifys.notify_user_id='{$user->user_info['user_id']}' AND\r\n        se_notifytypes.notifytype_name='newblogsubscriptionentry' AND\r\n        notify_object_id='{$blogentry_id}'\r\n    ");
 }
 if ($user->user_info['user_id'] == $owner->user_info['user_id']) {
     $database->database_query("\r\n      DELETE FROM\r\n        se_notifys\r\n      USING\r\n        se_notifys\r\n      LEFT JOIN\r\n        se_notifytypes\r\n        ON se_notifys.notify_notifytype_id=se_notifytypes.notifytype_id\r\n      WHERE\r\n        se_notifys.notify_user_id='{$owner->user_info['user_id']}' AND\r\n        se_notifytypes.notifytype_name='blogcomment' AND\r\n        notify_object_id='{$blogentry_id}'\r\n    ");
 }
 // SET SEO STUFF
 $global_page_content = $blogentry_info['blogentry_title'];
 $global_page_content = cleanHTML(str_replace('>', '> ', $global_page_content), NULL);
 if (strlen($global_page_content) > 255) {
     $global_page_content = substr($global_page_content, 0, 251) . '...';
 }
 $global_page_content = addslashes(trim(preg_replace('/\\s+/', ' ', $global_page_content)));
 $global_page_title = array(1500125, $owner->user_displayname, $global_page_content);