|
From: Paul S. O. <ps...@us...> - 2002-02-08 01:30:25
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv20349
Modified Files:
modcp.php
Log Message:
Updated for first_topic_id
Index: modcp.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/modcp.php,v
retrieving revision 1.55
retrieving revision 1.56
diff -C2 -r1.55 -r1.56
*** modcp.php 18 Jan 2002 23:27:31 -0000 1.55
--- modcp.php 8 Feb 2002 01:30:21 -0000 1.56
***************
*** 67,71 ****
$confirm = ( $HTTP_POST_VARS['confirm'] ) ? TRUE : 0;
- $cancel = ( $HTTP_POST_VARS['cancel'] ) ? TRUE : 0;
//
--- 67,70 ----
***************
*** 73,77 ****
// If they did not, forward them to the last page they were on
//
! if( $cancel )
{
if( $topic_id )
--- 72,76 ----
// If they did not, forward them to the last page they were on
//
! if( isset($HTTP_POST_VARS['cancel']) )
{
if( $topic_id )
***************
*** 95,102 ****
$start = ( isset($HTTP_GET_VARS['start']) ) ? $HTTP_GET_VARS['start'] : 0;
! $delete = ($HTTP_POST_VARS['delete']) ? TRUE : FALSE;
! $move = ($HTTP_POST_VARS['move']) ? TRUE : FALSE;
! $lock = ($HTTP_POST_VARS['lock']) ? TRUE : FALSE;
! $unlock = ($HTTP_POST_VARS['unlock']) ? TRUE : FALSE;
if( isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode']) )
--- 94,101 ----
$start = ( isset($HTTP_GET_VARS['start']) ) ? $HTTP_GET_VARS['start'] : 0;
! $delete = (isset($HTTP_POST_VARS['delete'])) ? TRUE : FALSE;
! $move = (isset($HTTP_POST_VARS['move'])) ? TRUE : FALSE;
! $lock = (isset($HTTP_POST_VARS['lock'])) ? TRUE : FALSE;
! $unlock = (isset($HTTP_POST_VARS['unlock'])) ? TRUE : FALSE;
if( isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode']) )
***************
*** 257,262 ****
}
-
-
if( $post_id_sql != "" )
{
--- 256,259 ----
***************
*** 435,440 ****
{
// Insert topic in the old forum that indicates that the forum has moved.
! $sql = "INSERT INTO " . TOPICS_TABLE . " (forum_id, topic_title, topic_poster, topic_time, topic_status, topic_type, topic_vote, topic_views, topic_replies, topic_last_post_id, topic_moved_id)
! VALUES ($old_forum_id, '" . addslashes(str_replace("\'", "''", $row[$i]['topic_title'])) . "', '" . str_replace("\'", "''", $row[$i]['topic_poster']) . "', " . $row[$i]['topic_time'] . ", " . TOPIC_MOVED . ", " . POST_NORMAL . ", " . $row[$i]['topic_vote'] . ", " . $row[$i]['topic_views'] . ", " . $row[$i]['topic_replies'] . ", " . $row[$i]['topic_last_post_id'] . ", $topic_id)";
if( !$result = $db->sql_query($sql) )
{
--- 432,437 ----
{
// Insert topic in the old forum that indicates that the forum has moved.
! $sql = "INSERT INTO " . TOPICS_TABLE . " (forum_id, topic_title, topic_poster, topic_time, topic_status, topic_type, topic_vote, topic_views, topic_replies, topic_first_post_id, topic_last_post_id, topic_moved_id)
! VALUES ($old_forum_id, '" . addslashes(str_replace("\'", "''", $row[$i]['topic_title'])) . "', '" . str_replace("\'", "''", $row[$i]['topic_poster']) . "', " . $row[$i]['topic_time'] . ", " . TOPIC_MOVED . ", " . POST_NORMAL . ", " . $row[$i]['topic_vote'] . ", " . $row[$i]['topic_views'] . ", " . $row[$i]['topic_replies'] . ", " . $row[$i]['topic_first_post_id'] . ", " . $row[$i]['topic_last_post_id'] . ", $topic_id)";
if( !$result = $db->sql_query($sql) )
{
|