Changeset 1158 in ExiteCMS for trunk/forum/post.php
- Timestamp:
- 12/03/07 21:40:54 (4 years ago)
- File:
-
- 1 edited
-
trunk/forum/post.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/forum/post.php
r1120 r1158 819 819 if ($data['lastpost'] < $pdata['post_datestamp']) 820 820 $result = dbquery("UPDATE ".$db_prefix."forums SET forum_lastpost='".$pdata['post_datestamp']."', forum_lastuser='".$pdata['post_author']."' WHERE forum_id='".$forum_id."'"); 821 // get the access group number for the new forum821 // get the access group number for the new forum 822 822 $result = dbquery("SELECT forum_access from ".$db_prefix."forums WHERE forum_id = ".$_POST['new_forum_id']); 823 823 $data = dbarray($result); 824 824 $group_id = $data['forum_access']; 825 // check for group inheritance826 $groups = array();827 getgroupmembers($group_id);825 // check for group inheritance 826 $groups = array(); 827 getgroupmembers($group_id); 828 828 // update the posts_unread pointers 829 829 $result = dbquery("SELECT * FROM ".$db_prefix."posts_unread WHERE post_id = '$post_id'"); … … 882 882 883 883 // get the data for the threads dropdown 884 $result = dbquery("SELECT * FROM ".$db_prefix."threads WHERE forum_id='".$_POST['new_forum_id']."' ORDER BY thread_lastpost DESC");884 $result = dbquery("SELECT * FROM ".$db_prefix."threads WHERE forum_id='".$_POST['new_forum_id']."' AND thread_id != '$thread_id' ORDER BY thread_lastpost DESC"); 885 885 $variables['threads'] = array(); 886 886 while ($data = dbarray($result)) { … … 928 928 $variables['forums'][] = $data2; 929 929 } 930 931 930 // define the panel 932 931 $template_panels[] = array('type' => 'body', 'name' => 'forum.movepost.1', 'template' => 'forum.post.move.tpl', 'locale' => array("forum.main", "forum.post"));
Note: See TracChangeset
for help on using the changeset viewer.
