|
From: Jon O. <jon...@us...> - 2005-10-24 20:18:17
|
Update of /cvsroot/mxbb/mx_profilecp/includes/mods_settings In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1692/modules/mx_profilecp/includes/mods_settings Modified Files: mod_profile_control_panel.php Log Message: replaced all message_die with mx_message_die Index: mod_profile_control_panel.php =================================================================== RCS file: /cvsroot/mxbb/mx_profilecp/includes/mods_settings/mod_profile_control_panel.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** mod_profile_control_panel.php 1 Oct 2005 14:16:27 -0000 1.2 --- mod_profile_control_panel.php 24 Oct 2005 20:18:06 -0000 1.3 *************** *** 475,484 **** if ( !$result = $db->sql_query($sql) ) { ! message_die(GENERAL_ERROR, 'Could not obtain admin user information', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($sql); if ( empty($row['user_id']) ) { ! message_die(GENERAL_ERROR, 'Could not obtain another admin user'); } else --- 475,484 ---- if ( !$result = $db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'Could not obtain admin user information', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($sql); if ( empty($row['user_id']) ) { ! mx_message_die(GENERAL_ERROR, 'Could not obtain another admin user'); } else *************** *** 496,500 **** if ( !$result = $db->sql_query($sql) ) { ! message_die(GENERAL_ERROR, 'Could not obtain group information for this user', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); --- 496,500 ---- if ( !$result = $db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'Could not obtain group information for this user', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); *************** *** 508,512 **** if ( !$db->sql_query($sql) ) { ! message_die(GENERAL_ERROR, 'Could not update posts for this user', '', __LINE__, __FILE__, $sql); } --- 508,512 ---- if ( !$db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'Could not update posts for this user', '', __LINE__, __FILE__, $sql); } *************** *** 517,521 **** if ( !$db->sql_query($sql) ) { ! message_die(GENERAL_ERROR, 'Could not update topics for this user', '', __LINE__, __FILE__, $sql); } --- 517,521 ---- if ( !$db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'Could not update topics for this user', '', __LINE__, __FILE__, $sql); } *************** *** 526,530 **** if ( !$db->sql_query($sql) ) { ! message_die(GENERAL_ERROR, 'Could not update votes for this user', '', __LINE__, __FILE__, $sql); } --- 526,530 ---- if ( !$db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'Could not update votes for this user', '', __LINE__, __FILE__, $sql); } *************** *** 535,539 **** if ( !($result = $db->sql_query($sql)) ) { ! message_die(GENERAL_ERROR, 'Could not select groups where user was moderator', '', __LINE__, __FILE__, $sql); } while ( $row_group = $db->sql_fetchrow($result) ) --- 535,539 ---- if ( !($result = $db->sql_query($sql)) ) { ! mx_message_die(GENERAL_ERROR, 'Could not select groups where user was moderator', '', __LINE__, __FILE__, $sql); } while ( $row_group = $db->sql_fetchrow($result) ) *************** *** 550,554 **** if ( !$db->sql_query($sql) ) { ! message_die(GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql); } } --- 550,554 ---- if ( !$db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql); } } *************** *** 558,562 **** if ( !$db->sql_query($sql) ) { ! message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql); } --- 558,562 ---- if ( !$db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql); } *************** *** 565,569 **** if ( !$db->sql_query($sql) ) { ! message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql); } --- 565,569 ---- if ( !$db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql); } *************** *** 572,576 **** if ( !$db->sql_query($sql) ) { ! message_die(GENERAL_ERROR, 'Could not delete user from topic watch table', '', __LINE__, __FILE__, $sql); } --- 572,576 ---- if ( !$db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'Could not delete user from topic watch table', '', __LINE__, __FILE__, $sql); } *************** *** 579,583 **** if ( !$db->sql_query($sql) ) { ! message_die(GENERAL_ERROR, 'Could not delete user from banlist table', '', __LINE__, __FILE__, $sql); } --- 579,583 ---- if ( !$db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'Could not delete user from banlist table', '', __LINE__, __FILE__, $sql); } *************** *** 589,593 **** if ( !$result = $db->sql_query($sql) ) { ! message_die(GENERAL_ERROR, 'Could not select all users private messages', '', __LINE__, __FILE__, $sql); } --- 589,593 ---- if ( !$result = $db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'Could not select all users private messages', '', __LINE__, __FILE__, $sql); } *************** *** 604,608 **** if ( !$db->sql_query($sql) ) { ! message_die(GENERAL_ERROR, 'Could not delete private message text', '', __LINE__, __FILE__, $sql); } --- 604,608 ---- if ( !$db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'Could not delete private message text', '', __LINE__, __FILE__, $sql); } *************** *** 610,614 **** if ( !$db->sql_query($sql) ) { ! message_die(GENERAL_ERROR, 'Could not delete private message info', '', __LINE__, __FILE__, $sql); } } --- 610,614 ---- if ( !$db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'Could not delete private message info', '', __LINE__, __FILE__, $sql); } } *************** *** 618,622 **** if( !$db->sql_query($sql) ) { ! message_die(GENERAL_ERROR, 'Could not delete user from user_group table', '', __LINE__, __FILE__, $sql); } --- 618,622 ---- if( !$db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'Could not delete user from user_group table', '', __LINE__, __FILE__, $sql); } *************** *** 625,629 **** if ( !$db->sql_query($sql) ) { ! message_die(GENERAL_ERROR, 'Could not delete user', '', __LINE__, __FILE__, $sql); } --- 625,629 ---- if ( !$db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'Could not delete user', '', __LINE__, __FILE__, $sql); } |