All pastes #628930 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-07-21 19:55 UTC
rendered paste body
#
#-----[ OPEN ]------------------------------------------------
#
modcp.php

#
#-----[ FIND ]------------------------------------------------
#
include($phpbb_root_path . 'includes/functions_admin.'.$phpEx);

#
#-----[ AFTER, ADD ]------------------------------------------
#

// Log actions MOD Start
include($phpbb_root_path . 'includes/functions_log.'.$phpEx);
// Log actions MOD End

#
#-----[ FIND ]------------------------------------------------
#
message_die(GENERAL_ERROR, 'Could not delete posts', '', __LINE__, __FILE__, $sql);
}

#
#-----[ AFTER, ADD ]------------------------------------------
#

// Log actions MOD Start
log_action('delete', $topic_id_sql, $userdata['user_id'], $userdata['username']);
// Log actions MOD End

#
#-----[ FIND ]------------------------------------------------
#
message_die(GENERAL_ERROR, 'Could not insert shadow topic', '', __LINE__, __FILE__, $sql);
}
}

#
#-----[ AFTER, ADD ]------------------------------------------
#

// Log actions MOD Start
log_action('move', $topic_id, $userdata['user_id'], $userdata['username']);
// Log actions MOD End

#
#-----[ FIND ]------------------------------------------------
#
$sql = "UPDATE " . TOPICS_TABLE . " 
	SET topic_status = " . TOPIC_LOCKED . " 
	WHERE
		AND
		AND
	if (
{
	message_die(
}

#
#-----[ AFTER, ADD ]------------------------------------------
#

// Log actions MOD Start
log_action('lock', $topic_id_sql, $userdata['user_id'], $userdata['username']);
// Log actions MOD End

#
#-----[ FIND ]------------------------------------------------
#
$sql = "UPDATE " . TOPICS_TABLE . " 
	SET topic_status = " . TOPIC_UNLOCKED . " 
	WHERE
		AND
		AND
if (
{
	message_die(
}

#
#-----[ AFTER, ADD ]------------------------------------------
#

// Log actions MOD Start
log_action('unlock', $topic_id_sql, $userdata['user_id'], $userdata['username']);
// Log actions MOD End

#
#-----[ FIND ]------------------------------------------------
#
$new_topic_id = $db->sql_nextid();

#
#-----[ AFTER, ADD ]------------------------------------------
#

// Log actions MOD Start
log_action('split', $topic_id, $userdata['user_id'], $userdata['username']);
// Log actions MOD End