|
From: Jon O. <jon...@us...> - 2005-10-24 20:18:45
|
Update of /cvsroot/mxbb/mx_quotations/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2039/modules/mx_quotations/includes Modified Files: mx_quotations_add.php mx_quotations_del.php mx_quotations_edit.php Log Message: replaced all message_die with mx_message_die Index: mx_quotations_add.php =================================================================== RCS file: /cvsroot/mxbb/mx_quotations/includes/mx_quotations_add.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** mx_quotations_add.php 1 Oct 2005 14:16:59 -0000 1.5 --- mx_quotations_add.php 24 Oct 2005 20:18:37 -0000 1.6 *************** *** 26,30 **** if ( $userdata[user_id] == ANONYMOUS ) { ! message_die( GENERAL_ERROR, "Hacking attempt" ); } --- 26,30 ---- if ( $userdata[user_id] == ANONYMOUS ) { ! mx_message_die( GENERAL_ERROR, "Hacking attempt" ); } *************** *** 35,39 **** if ( !isset( $HTTP_POST_VARS['quote'] ) || ( !isset( $HTTP_POST_VARS['author'] ) ) ) { ! message_die( GENERAL_ERROR, $lang['Fill_in_all_fields'] ); } else --- 35,39 ---- if ( !isset( $HTTP_POST_VARS['quote'] ) || ( !isset( $HTTP_POST_VARS['author'] ) ) ) { ! mx_message_die( GENERAL_ERROR, $lang['Fill_in_all_fields'] ); } else *************** *** 53,61 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldn´t write quote', '', __LINE__, __FILE__, $sql ); } else { ! message_die( GENERAL_MESSAGE, "<b>" . $lang['Quote_correctly_added'] . "</b> <br /><br /> <b>" . $lang['Quote'] . ":</b> " . stripslashes( $quote ) . "<br /><b>" . $lang['Author'] . ":</b> " . stripslashes( $author ) . '<meta http-equiv="refresh" content="3; url=' . $base_url . '">' ); } } --- 53,61 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldn´t write quote', '', __LINE__, __FILE__, $sql ); } else { ! mx_message_die( GENERAL_MESSAGE, "<b>" . $lang['Quote_correctly_added'] . "</b> <br /><br /> <b>" . $lang['Quote'] . ":</b> " . stripslashes( $quote ) . "<br /><b>" . $lang['Author'] . ":</b> " . stripslashes( $author ) . '<meta http-equiv="refresh" content="3; url=' . $base_url . '">' ); } } Index: mx_quotations_del.php =================================================================== RCS file: /cvsroot/mxbb/mx_quotations/includes/mx_quotations_del.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** mx_quotations_del.php 1 Oct 2005 14:16:59 -0000 1.4 --- mx_quotations_del.php 24 Oct 2005 20:18:37 -0000 1.5 *************** *** 33,37 **** if ( !isset( $HTTP_GET_VARS['quote_id'] ) ) { ! message_die( GENERAL_ERROR, $lang['Quote_not_specified'] ); } $quote_id = $HTTP_GET_VARS['quote_id']; --- 33,37 ---- if ( !isset( $HTTP_GET_VARS['quote_id'] ) ) { ! mx_message_die( GENERAL_ERROR, $lang['Quote_not_specified'] ); } $quote_id = $HTTP_GET_VARS['quote_id']; *************** *** 43,47 **** if ( !( $result1 = $db->sql_query( $sql1 ) ) ) { ! message_die( GENERAL_ERROR, "Could not obtain Quotations Information:<br>$sql1" ); } --- 43,47 ---- if ( !( $result1 = $db->sql_query( $sql1 ) ) ) { ! mx_message_die( GENERAL_ERROR, "Could not obtain Quotations Information:<br>$sql1" ); } *************** *** 62,70 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldn´t write quote', '', __LINE__, __FILE__, $sql ); } else { ! message_die( GENERAL_MESSAGE, $lang['Quote_correctly_deleted'] . '<meta http-equiv="refresh" content="3; url=' . $base_url . '">' ); } } --- 62,70 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldn´t write quote', '', __LINE__, __FILE__, $sql ); } else { ! mx_message_die( GENERAL_MESSAGE, $lang['Quote_correctly_deleted'] . '<meta http-equiv="refresh" content="3; url=' . $base_url . '">' ); } } Index: mx_quotations_edit.php =================================================================== RCS file: /cvsroot/mxbb/mx_quotations/includes/mx_quotations_edit.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** mx_quotations_edit.php 1 Oct 2005 14:16:59 -0000 1.5 --- mx_quotations_edit.php 24 Oct 2005 20:18:37 -0000 1.6 *************** *** 33,37 **** if ( !isset( $HTTP_GET_VARS['quote_id'] ) ) { ! message_die( GENERAL_ERROR, $lang['Quote_not_specified'] ); } $quote_id = $HTTP_GET_VARS['quote_id']; --- 33,37 ---- if ( !isset( $HTTP_GET_VARS['quote_id'] ) ) { ! mx_message_die( GENERAL_ERROR, $lang['Quote_not_specified'] ); } $quote_id = $HTTP_GET_VARS['quote_id']; *************** *** 43,47 **** if ( !( $result1 = $db->sql_query( $sql1 ) ) ) { ! message_die( GENERAL_ERROR, "Could not obtain Quotations Information:<br>$sql1" ); } --- 43,47 ---- if ( !( $result1 = $db->sql_query( $sql1 ) ) ) { ! mx_message_die( GENERAL_ERROR, "Could not obtain Quotations Information:<br>$sql1" ); } *************** *** 59,63 **** if ( !isset( $HTTP_POST_VARS['new_quote'] ) || ( !isset( $HTTP_POST_VARS['new_author'] ) ) ) { ! message_die( GENERAL_ERROR, $lang['Fill_in_all_fields'] ); } else --- 59,63 ---- if ( !isset( $HTTP_POST_VARS['new_quote'] ) || ( !isset( $HTTP_POST_VARS['new_author'] ) ) ) { ! mx_message_die( GENERAL_ERROR, $lang['Fill_in_all_fields'] ); } else *************** *** 76,84 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldn´t write quote', '', __LINE__, __FILE__, $sql ); } else { ! message_die( GENERAL_MESSAGE, "<b>" . $lang['Quote_correctly_edited'] . "</b> <br /><br />" . $lang['Quote'] . ": " . stripslashes( $new_quote ) . "<br />" . $lang['Author'] . ": " . stripslashes( $new_author ) . '<meta http-equiv="refresh" content="3; url=' . $base_url . '">' ); } } --- 76,84 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldn´t write quote', '', __LINE__, __FILE__, $sql ); } else { ! mx_message_die( GENERAL_MESSAGE, "<b>" . $lang['Quote_correctly_edited'] . "</b> <br /><br />" . $lang['Quote'] . ": " . stripslashes( $new_quote ) . "<br />" . $lang['Author'] . ": " . stripslashes( $new_author ) . '<meta http-equiv="refresh" content="3; url=' . $base_url . '">' ); } } |