View Single Post
Old 03-28-2010   View Single Post#40
compwhizii
options['contactuslink']))); } if (!$threadinfo['threadid'] OR $threadinfo['isdeleted'] OR (!$threadinfo['visible'] AND !can_moderate($threadinfo['forumid'], 'canmoderateposts'))) { eval(standard_error(fetch_error('invalidid', $vbphrase['thread'], $vbulletin->options['contactuslink']))); } if ($vbulletin->options['wordwrap']) { $threadinfo['title'] = fetch_word_wrapped_string($threadinfo['title']); } // get permissions info $_permsgetter_ = 'edit post'; $forumperms = fetch_permissions($threadinfo['forumid']); if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads']) OR (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND ($threadinfo['postuserid'] != $vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] == 0))) { print_no_permission(); } $foruminfo = fetch_foruminfo($threadinfo['forumid'], false); // check if there is a forum password and if so, ensure the user has it set verify_forum_password($foruminfo['forumid'], $foruminfo['password']); // need to get last post-type information cache_ordered_forums(1); // determine if we are allowed to be updating the thread's info $can_update_thread = ( $threadinfo['firstpostid'] == $postinfo['postid'] AND (can_moderate($threadinfo['forumid'], 'caneditthreads') OR ($postinfo['dateline'] + $vbulletin->options['editthreadtitlelimit'] * 60) > TIMENOW ) ); // ############################### start permissions checking ############################### if ($_REQUEST['do'] == 'deletepost') { // is post being deleted? if so check delete specific permissions if (!can_moderate($threadinfo['forumid'], 'candeleteposts')) { if (!$threadinfo['open']) { $vbulletin->url = fetch_seo_url('thread', $threadinfo); eval(print_standard_redirect('redirect_threadclosed')); } if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['candeletepost'])) { print_no_permission(); } else { if ($vbulletin->userinfo['userid'] != $postinfo['userid']) { // check user owns this post since they failed the Mod Delete permission check for this forum print_no_permission(); } } } } else { // otherwise, post is being edited if (!can_moderate($threadinfo['forumid'], 'caneditposts')) { // check for moderator if (!$threadinfo
 
compwhizii's Avatar
 
Aug 2009
Posts: 10

wheres all my posts i call shenanigans