|
From: Jon O. <jon...@us...> - 2005-10-24 20:17:16
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1468/modules/mx_pafiledb/pafiledb/modules Modified Files: pa_category.php pa_download.php pa_email.php pa_file.php pa_license.php pa_mcp.php pa_post_comment.php pa_quickdl.php pa_rate.php pa_search.php pa_stats.php pa_toplist.php pa_user_upload.php pa_viewall.php Log Message: replaced all message_die with mx_message_die Index: pa_viewall.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_viewall.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** pa_viewall.php 1 Oct 2005 14:15:20 -0000 1.10 --- pa_viewall.php 24 Oct 2005 20:16:56 -0000 1.11 *************** *** 86,90 **** if ( !$pafiledb_config['settings_viewall'] ) { ! message_die( GENERAL_MESSAGE, $lang['viewall_disabled'] ); } elseif ( !$this->auth_global['auth_viewall'] ) --- 86,90 ---- if ( !$pafiledb_config['settings_viewall'] ) { ! mx_message_die( GENERAL_MESSAGE, $lang['viewall_disabled'] ); } elseif ( !$this->auth_global['auth_viewall'] ) *************** *** 96,100 **** $message = sprintf( $lang['Sorry_auth_viewall'], $this->auth_global['auth_viewall_type'] ); ! message_die( GENERAL_MESSAGE, $message ); } --- 96,100 ---- $message = sprintf( $lang['Sorry_auth_viewall'], $this->auth_global['auth_viewall_type'] ); ! mx_message_die( GENERAL_MESSAGE, $message ); } Index: pa_download.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_download.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** pa_download.php 1 Oct 2005 14:15:20 -0000 1.11 --- pa_download.php 24 Oct 2005 20:16:56 -0000 1.12 *************** *** 44,48 **** else { ! message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } --- 44,48 ---- else { ! mx_message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } *************** *** 55,59 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt select download', '', __LINE__, __FILE__, $sql ); } // ========================================================================= --- 55,59 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt select download', '', __LINE__, __FILE__, $sql ); } // ========================================================================= *************** *** 62,66 **** if ( !$file_data = $db->sql_fetchrow( $result ) ) { ! message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } --- 62,66 ---- if ( !$file_data = $db->sql_fetchrow( $result ) ) { ! mx_message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } *************** *** 81,85 **** $message = sprintf( $lang['Sorry_auth_download'], $this->auth[$file_data['file_catid']]['auth_download_type'] ); ! message_die( GENERAL_MESSAGE, $message ); } // ========================================================================= --- 81,85 ---- $message = sprintf( $lang['Sorry_auth_download'], $this->auth[$file_data['file_catid']]['auth_download_type'] ); ! mx_message_die( GENERAL_MESSAGE, $message ); } // ========================================================================= *************** *** 125,129 **** if ( $errored ) { ! message_die( GENERAL_MESSAGE, $lang['Directly_linked'] ); } } --- 125,129 ---- if ( $errored ) { ! mx_message_die( GENERAL_MESSAGE, $lang['Directly_linked'] ); } } *************** *** 136,140 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt select download', '', __LINE__, __FILE__, $sql ); } --- 136,140 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt select download', '', __LINE__, __FILE__, $sql ); } *************** *** 223,227 **** else { ! message_die( GENERAL_MESSAGE, 'Mirror doesn\'t exist' ); } // ========================================================================= --- 223,227 ---- else { ! mx_message_die( GENERAL_MESSAGE, 'Mirror doesn\'t exist' ); } // ========================================================================= *************** *** 236,240 **** if ( !( $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt Update Files table', '', __LINE__, __FILE__, $sql ); } // ========================================================================= --- 236,240 ---- if ( !( $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt Update Files table', '', __LINE__, __FILE__, $sql ); } // ========================================================================= *************** *** 264,268 **** if(!send_file_to_browser($real_filename, $mimetype, $physical_filename, $module_root_path . $upload_dir)) { ! message_die(GENERAL_ERROR, $lang['Error_no_download'] . '<br /><br /><b>404 File Not Found:</b> The File <i>' . $real_filename . '</i> does not exist.'); } } --- 264,268 ---- if(!send_file_to_browser($real_filename, $mimetype, $physical_filename, $module_root_path . $upload_dir)) { ! mx_message_die(GENERAL_ERROR, $lang['Error_no_download'] . '<br /><br /><b>404 File Not Found:</b> The File <i>' . $real_filename . '</i> does not exist.'); } } *************** *** 289,293 **** if ( @!file_exists( @$pafiledb_functions->pafiledb_realpath( $filename ) ) ) { ! message_die( GENERAL_ERROR, $lang['Error_no_download'] . '<br /><br /><b>404 File Not Found:</b> The File <i>' . $filename . '</i> does not exist.' ); } else --- 289,293 ---- if ( @!file_exists( @$pafiledb_functions->pafiledb_realpath( $filename ) ) ) { ! mx_message_die( GENERAL_ERROR, $lang['Error_no_download'] . '<br /><br /><b>404 File Not Found:</b> The File <i>' . $filename . '</i> does not exist.' ); } else Index: pa_post_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_post_comment.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** pa_post_comment.php 1 Oct 2005 14:15:20 -0000 1.10 --- pa_post_comment.php 24 Oct 2005 20:16:56 -0000 1.11 *************** *** 43,47 **** else { ! message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } --- 43,47 ---- else { ! mx_message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } *************** *** 65,74 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt select download', '', __LINE__, __FILE__, $sql ); } if ( !$file_data = $db->sql_fetchrow( $result ) ) { ! message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } --- 65,74 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt select download', '', __LINE__, __FILE__, $sql ); } if ( !$file_data = $db->sql_fetchrow( $result ) ) { ! mx_message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } *************** *** 87,91 **** $message = sprintf( $lang['Sorry_auth_download'], $this->auth[$file_data['file_catid']]['auth_post_comment_type'] ); ! message_die( GENERAL_MESSAGE, $message ); } --- 87,91 ---- $message = sprintf( $lang['Sorry_auth_download'], $this->auth[$file_data['file_catid']]['auth_post_comment_type'] ); ! mx_message_die( GENERAL_MESSAGE, $message ); } *************** *** 103,107 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldn\'t get file info', '', __LINE__, __FILE__, $sql ); } $file_info = $db->sql_fetchrow( $result ); --- 103,107 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldn\'t get file info', '', __LINE__, __FILE__, $sql ); } $file_info = $db->sql_fetchrow( $result ); *************** *** 114,128 **** if ( !( $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt delete comment', '', __LINE__, __FILE__, $sql ); } $this->_pafiledb(); $message = $lang['Comment_deleted'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( pa_this_mxurl( "action=file&file_id=$file_id" ) ) . '">', '</a>' ); ! message_die( GENERAL_MESSAGE, $message ); } else { $message = sprintf( $lang['Sorry_auth_delete'], $this->auth[$cat_id]['auth_upload_type'] ); ! message_die( GENERAL_MESSAGE, $message ); } } --- 114,128 ---- if ( !( $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt delete comment', '', __LINE__, __FILE__, $sql ); } $this->_pafiledb(); $message = $lang['Comment_deleted'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( pa_this_mxurl( "action=file&file_id=$file_id" ) ) . '">', '</a>' ); ! mx_message_die( GENERAL_MESSAGE, $message ); } else { $message = sprintf( $lang['Sorry_auth_delete'], $this->auth[$cat_id]['auth_upload_type'] ); ! mx_message_die( GENERAL_MESSAGE, $message ); } } *************** *** 307,311 **** if ( $length > $pafiledb_config['max_comment_chars'] ) { ! message_die( GENERAL_ERROR, 'Your comment is too long!<br/>The maximum length allowed in characters is ' . $pafiledb_config['max_comment_chars'] . '' ); } --- 307,311 ---- if ( $length > $pafiledb_config['max_comment_chars'] ) { ! mx_message_die( GENERAL_ERROR, 'Your comment is too long!<br/>The maximum length allowed in characters is ' . $pafiledb_config['max_comment_chars'] . '' ); } *************** *** 314,318 **** if ( !( $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt insert comments', '', __LINE__, __FILE__, $sql ); } --- 314,318 ---- if ( !( $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt insert comments', '', __LINE__, __FILE__, $sql ); } *************** *** 322,326 **** // MX $message = $lang['Comment_posted'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( pa_this_mxurl( 'action=file&file_id=' . $file_id ) ) . '">', '</a>' ); ! message_die( GENERAL_MESSAGE, $message ); } $this->display( $lang['Download'], 'pa_comment_posting.tpl' ); --- 322,326 ---- // MX $message = $lang['Comment_posted'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( pa_this_mxurl( 'action=file&file_id=' . $file_id ) ) . '">', '</a>' ); ! mx_message_die( GENERAL_MESSAGE, $message ); } $this->display( $lang['Download'], 'pa_comment_posting.tpl' ); Index: pa_user_upload.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_user_upload.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** pa_user_upload.php 1 Oct 2005 14:15:20 -0000 1.12 --- pa_user_upload.php 24 Oct 2005 20:16:56 -0000 1.13 *************** *** 70,74 **** $message = sprintf( $lang['Sorry_auth_upload'], $this->auth[$cat_id]['auth_upload_type'] ); ! message_die( GENERAL_MESSAGE, $message ); } } --- 70,74 ---- $message = sprintf( $lang['Sorry_auth_upload'], $this->auth[$cat_id]['auth_upload_type'] ); ! mx_message_die( GENERAL_MESSAGE, $message ); } } *************** *** 87,91 **** $message = sprintf( $lang['Sorry_auth_upload'], $this->auth[$cat_id]['auth_upload_type'] ); ! message_die( GENERAL_MESSAGE, $message ); } } --- 87,91 ---- $message = sprintf( $lang['Sorry_auth_upload'], $this->auth[$cat_id]['auth_upload_type'] ); ! mx_message_die( GENERAL_MESSAGE, $message ); } } *************** *** 100,104 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldn\'t get file info', '', __LINE__, __FILE__, $sql ); } $file_info = $db->sql_fetchrow( $result ); --- 100,104 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldn\'t get file info', '', __LINE__, __FILE__, $sql ); } $file_info = $db->sql_fetchrow( $result ); *************** *** 109,118 **** $this->_pafiledb(); $message = $lang['Filedeleted'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( pa_this_mxurl( "" ) ) . '">', '</a>' ); ! message_die( GENERAL_MESSAGE, $message ); } else { $message = sprintf( $lang['Sorry_auth_delete'], $this->auth[$cat_id]['auth_upload_type'] ); ! message_die( GENERAL_MESSAGE, $message ); } } --- 109,118 ---- $this->_pafiledb(); $message = $lang['Filedeleted'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( pa_this_mxurl( "" ) ) . '">', '</a>' ); ! mx_message_die( GENERAL_MESSAGE, $message ); } else { $message = sprintf( $lang['Sorry_auth_delete'], $this->auth[$cat_id]['auth_upload_type'] ); ! mx_message_die( GENERAL_MESSAGE, $message ); } } *************** *** 187,191 **** */ // MX ! message_die( GENERAL_MESSAGE, $message ); } else --- 187,191 ---- */ // MX ! mx_message_die( GENERAL_MESSAGE, $message ); } else *************** *** 225,229 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldn\'t get file info', '', __LINE__, __FILE__, $sql ); } $file_info = $db->sql_fetchrow( $result ); --- 225,229 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldn\'t get file info', '', __LINE__, __FILE__, $sql ); } $file_info = $db->sql_fetchrow( $result ); *************** *** 233,237 **** { $message = sprintf( $lang['Sorry_auth_edit'], $this->auth[$cat_id]['auth_upload_type'] ); ! message_die( GENERAL_MESSAGE, $message ); } --- 233,237 ---- { $message = sprintf( $lang['Sorry_auth_edit'], $this->auth[$cat_id]['auth_upload_type'] ); ! mx_message_die( GENERAL_MESSAGE, $message ); } Index: pa_file.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_file.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** pa_file.php 1 Oct 2005 14:15:20 -0000 1.13 --- pa_file.php 24 Oct 2005 20:16:56 -0000 1.14 *************** *** 43,47 **** else { ! message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } // ======================================================= --- 43,47 ---- else { ! mx_message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } // ======================================================= *************** *** 77,81 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt Query file info', '', __LINE__, __FILE__, $sql ); } // =================================================== --- 77,81 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt Query file info', '', __LINE__, __FILE__, $sql ); } // =================================================== *************** *** 84,88 **** if ( !$file_data = $db->sql_fetchrow( $result ) ) { ! message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } $db->sql_freeresult( $result ); --- 84,88 ---- if ( !$file_data = $db->sql_fetchrow( $result ) ) { ! mx_message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } $db->sql_freeresult( $result ); *************** *** 101,105 **** // } $message = sprintf( $lang['Sorry_auth_view'], $this->auth[$file_data['file_catid']]['auth_view_file_type'] ); ! message_die( GENERAL_MESSAGE, $message ); } --- 101,105 ---- // } $message = sprintf( $lang['Sorry_auth_view'], $this->auth[$file_data['file_catid']]['auth_view_file_type'] ); ! mx_message_die( GENERAL_MESSAGE, $message ); } Index: pa_license.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_license.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** pa_license.php 1 Oct 2005 14:15:20 -0000 1.11 --- pa_license.php 24 Oct 2005 20:16:56 -0000 1.12 *************** *** 44,48 **** else { ! message_die( GENERAL_MESSAGE, $lang['License_not_exist'] ); } --- 44,48 ---- else { ! mx_message_die( GENERAL_MESSAGE, $lang['License_not_exist'] ); } *************** *** 53,57 **** else { ! message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } --- 53,57 ---- else { ! mx_message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } *************** *** 62,71 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt Query file info', '', __LINE__, __FILE__, $sql ); } if ( !$file_data = $db->sql_fetchrow( $result ) ) { ! message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } --- 62,71 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt Query file info', '', __LINE__, __FILE__, $sql ); } if ( !$file_data = $db->sql_fetchrow( $result ) ) { ! mx_message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } *************** *** 84,88 **** $message = sprintf( $lang['Sorry_auth_download'], $this->auth[$file_data['file_catid']]['auth_download_type'] ); ! message_die( GENERAL_MESSAGE, $message ); } --- 84,88 ---- $message = sprintf( $lang['Sorry_auth_download'], $this->auth[$file_data['file_catid']]['auth_download_type'] ); ! mx_message_die( GENERAL_MESSAGE, $message ); } *************** *** 93,102 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt Query license info for this file', '', __LINE__, __FILE__, $sql ); } if ( !$license = $db->sql_fetchrow( $result ) ) { ! message_die( GENERAL_MESSAGE, $lang['License_not_exist'] ); } --- 93,102 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt Query license info for this file', '', __LINE__, __FILE__, $sql ); } if ( !$license = $db->sql_fetchrow( $result ) ) { ! mx_message_die( GENERAL_MESSAGE, $lang['License_not_exist'] ); } Index: pa_mcp.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_mcp.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** pa_mcp.php 1 Oct 2005 14:15:20 -0000 1.8 --- pa_mcp.php 24 Oct 2005 20:16:56 -0000 1.9 *************** *** 67,71 **** // } $message = sprintf( $lang['Sorry_auth_mcp'], $this->auth[$cat_id]['auth_mod'] ); ! message_die( GENERAL_MESSAGE, $message ); } --- 67,71 ---- // } $message = sprintf( $lang['Sorry_auth_mcp'], $this->auth[$cat_id]['auth_mod'] ); ! mx_message_die( GENERAL_MESSAGE, $message ); } *************** *** 209,213 **** { $message = sprintf( $lang['Sorry_auth_approve'], $this->auth[$cat_id]['auth_mod'] ); ! message_die( GENERAL_MESSAGE, $message ); } } --- 209,213 ---- { $message = sprintf( $lang['Sorry_auth_approve'], $this->auth[$cat_id]['auth_mod'] ); ! mx_message_die( GENERAL_MESSAGE, $message ); } } *************** *** 249,253 **** if ( ( !$result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldn\'t get file info', '', __LINE__, __FILE__, $sql ); } --- 249,253 ---- if ( ( !$result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldn\'t get file info', '', __LINE__, __FILE__, $sql ); } *************** *** 257,261 **** if ( !( $result = $pafiledb_functions->sql_query_limit( $sql, $pafiledb_config['settings_file_page'], $start ) ) ) { ! message_die( GENERAL_ERROR, 'Couldn\'t get file info', '', __LINE__, __FILE__, $sql ); } while ( $row = $db->sql_fetchrow( $result ) ) --- 257,261 ---- if ( !( $result = $pafiledb_functions->sql_query_limit( $sql, $pafiledb_config['settings_file_page'], $start ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldn\'t get file info', '', __LINE__, __FILE__, $sql ); } while ( $row = $db->sql_fetchrow( $result ) ) *************** *** 290,294 **** if ( ( !$result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldn\'t get file info', '', __LINE__, __FILE__, $sql ); } --- 290,294 ---- if ( ( !$result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldn\'t get file info', '', __LINE__, __FILE__, $sql ); } *************** *** 298,302 **** if ( !( $result = $pafiledb_functions->sql_query_limit( $sql, $limit, $temp_start ) ) ) { ! message_die( GENERAL_ERROR, 'Couldn\'t get file info', '', __LINE__, __FILE__, $sql ); } --- 298,302 ---- if ( !( $result = $pafiledb_functions->sql_query_limit( $sql, $limit, $temp_start ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldn\'t get file info', '', __LINE__, __FILE__, $sql ); } *************** *** 319,323 **** if ( ( !$result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldn\'t get file info', '', __LINE__, __FILE__, $sql ); } --- 319,323 ---- if ( ( !$result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldn\'t get file info', '', __LINE__, __FILE__, $sql ); } *************** *** 327,331 **** if ( !( $result = $pafiledb_functions->sql_query_limit( $sql, $limit, $temp_start ) ) ) { ! message_die( GENERAL_ERROR, 'Couldn\'t get file info', '', __LINE__, __FILE__, $sql ); } --- 327,331 ---- if ( !( $result = $pafiledb_functions->sql_query_limit( $sql, $limit, $temp_start ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldn\'t get file info', '', __LINE__, __FILE__, $sql ); } Index: pa_category.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_category.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** pa_category.php 1 Oct 2005 14:15:20 -0000 1.9 --- pa_category.php 24 Oct 2005 20:16:56 -0000 1.10 *************** *** 44,48 **** else { ! message_die( GENERAL_MESSAGE, $lang['Cat_not_exist'] ); } --- 44,48 ---- else { ! mx_message_die( GENERAL_MESSAGE, $lang['Cat_not_exist'] ); } *************** *** 124,133 **** $message = sprintf( $lang['Sorry_auth_view'], $this->auth[$cat_id]['auth_read_type'] ); ! message_die( GENERAL_MESSAGE, $message ); } if ( !isset( $this->cat_rowset[$cat_id] ) ) { ! message_die( GENERAL_MESSAGE, $lang['Cat_not_exist'] ); } --- 124,133 ---- $message = sprintf( $lang['Sorry_auth_view'], $this->auth[$cat_id]['auth_read_type'] ); ! mx_message_die( GENERAL_MESSAGE, $message ); } if ( !isset( $this->cat_rowset[$cat_id] ) ) { ! mx_message_die( GENERAL_MESSAGE, $lang['Cat_not_exist'] ); } Index: pa_email.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_email.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** pa_email.php 1 Oct 2005 14:15:20 -0000 1.10 --- pa_email.php 24 Oct 2005 20:16:56 -0000 1.11 *************** *** 44,48 **** else { ! message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } --- 44,48 ---- else { ! mx_message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } *************** *** 53,62 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt Query file info', '', __LINE__, __FILE__, $sql ); } if ( !$file_data = $db->sql_fetchrow( $result ) ) { ! message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } --- 53,62 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt Query file info', '', __LINE__, __FILE__, $sql ); } if ( !$file_data = $db->sql_fetchrow( $result ) ) { ! mx_message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } *************** *** 75,79 **** $message = sprintf( $lang['Sorry_auth_email'], $this->auth[$file_data['file_catid']]['auth_email_type'] ); ! message_die( GENERAL_MESSAGE, $message ); } --- 75,79 ---- $message = sprintf( $lang['Sorry_auth_email'], $this->auth[$file_data['file_catid']]['auth_email_type'] ); ! mx_message_die( GENERAL_MESSAGE, $message ); } *************** *** 83,87 **** if ( !isset( $_POST['sid'] ) || $_POST['sid'] != $userdata['session_id'] ) { ! message_die( GENERAL_ERROR, 'Invalid_session' ); } --- 83,87 ---- if ( !isset( $_POST['sid'] ) || $_POST['sid'] != $userdata['session_id'] ) { ! mx_message_die( GENERAL_ERROR, 'Invalid_session' ); } *************** *** 191,200 **** $message = $lang['Econf'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( pa_this_mxurl( 'action=file&id=' . $file_id ) ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_forum'], '<a href="' . append_sid( $mx_root_path . 'index.' . $phpEx ) . '">', '</a>' ); ! message_die( GENERAL_MESSAGE, $message ); } if ( $error ) { ! message_die( GENERAL_MESSAGE, $error_msg ); } } --- 191,200 ---- $message = $lang['Econf'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( pa_this_mxurl( 'action=file&id=' . $file_id ) ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_forum'], '<a href="' . append_sid( $mx_root_path . 'index.' . $phpEx ) . '">', '</a>' ); ! mx_message_die( GENERAL_MESSAGE, $message ); } if ( $error ) { ! mx_message_die( GENERAL_MESSAGE, $error_msg ); } } Index: pa_search.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_search.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** pa_search.php 1 Oct 2005 14:15:20 -0000 1.11 --- pa_search.php 24 Oct 2005 20:16:56 -0000 1.12 *************** *** 50,54 **** $message = sprintf( $lang['Sorry_auth_search'], $this->auth_global['auth_search_type'] ); ! message_die( GENERAL_MESSAGE, $message ); } --- 50,54 ---- $message = sprintf( $lang['Sorry_auth_search'], $this->auth_global['auth_search_type'] ); ! mx_message_die( GENERAL_MESSAGE, $message ); } *************** *** 158,162 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, "Couldn't obtain list of matching users (searching for: $search_author)", "", __LINE__, __FILE__, $sql ); } --- 158,162 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, "Couldn't obtain list of matching users (searching for: $search_author)", "", __LINE__, __FILE__, $sql ); } *************** *** 172,176 **** else { ! message_die( GENERAL_MESSAGE, $lang['No_search_match'] ); } --- 172,176 ---- else { ! mx_message_die( GENERAL_MESSAGE, $lang['No_search_match'] ); } *************** *** 181,185 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Could not obtain matched files list', '', __LINE__, __FILE__, $sql ); } --- 181,185 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Could not obtain matched files list', '', __LINE__, __FILE__, $sql ); } *************** *** 242,246 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Could not obtain matched files list', '', __LINE__, __FILE__, $sql ); } --- 242,246 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Could not obtain matched files list', '', __LINE__, __FILE__, $sql ); } *************** *** 285,289 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Could not obtain matched files list', '', __LINE__, __FILE__, $sql ); } --- 285,289 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Could not obtain matched files list', '', __LINE__, __FILE__, $sql ); } *************** *** 379,383 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Could not obtain file ids', '', __LINE__, __FILE__, $sql ); } --- 379,383 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Could not obtain file ids', '', __LINE__, __FILE__, $sql ); } *************** *** 395,399 **** else { ! message_die( GENERAL_MESSAGE, $lang['No_search_match'] ); } --- 395,399 ---- else { ! mx_message_die( GENERAL_MESSAGE, $lang['No_search_match'] ); } *************** *** 420,424 **** if ( !$result = $db->sql_query( $sql ) ) { ! message_die( GENERAL_ERROR, 'Could not delete old search id sessions', '', __LINE__, __FILE__, $sql ); } } --- 420,424 ---- if ( !$result = $db->sql_query( $sql ) ) { ! mx_message_die( GENERAL_ERROR, 'Could not delete old search id sessions', '', __LINE__, __FILE__, $sql ); } } *************** *** 451,455 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Could not insert search results', '', __LINE__, __FILE__, $sql ); } } --- 451,455 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Could not insert search results', '', __LINE__, __FILE__, $sql ); } } *************** *** 466,470 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Could not obtain search results', '', __LINE__, __FILE__, $sql ); } --- 466,470 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Could not obtain search results', '', __LINE__, __FILE__, $sql ); } *************** *** 515,519 **** if ( !$result = $db->sql_query( $sql ) ) { ! message_die( GENERAL_ERROR, 'Could not obtain search results', '', __LINE__, __FILE__, $sql ); } --- 515,519 ---- if ( !$result = $db->sql_query( $sql ) ) { ! mx_message_die( GENERAL_ERROR, 'Could not obtain search results', '', __LINE__, __FILE__, $sql ); } *************** *** 643,647 **** else { ! message_die( GENERAL_MESSAGE, $lang['No_search_match'] ); } } --- 643,647 ---- else { ! mx_message_die( GENERAL_MESSAGE, $lang['No_search_match'] ); } } Index: pa_quickdl.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_quickdl.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** pa_quickdl.php 12 Oct 2005 15:40:20 -0000 1.3 --- pa_quickdl.php 24 Oct 2005 20:16:56 -0000 1.4 *************** *** 146,155 **** $message = sprintf( $lang['Sorry_auth_view'], $this->auth[$pa_cat_id]['auth_read_type'] ); ! message_die( GENERAL_MESSAGE, $message ); } if ( !isset( $this->cat_rowset[$pa_cat_id] ) ) { ! message_die( GENERAL_MESSAGE, $lang['Cat_not_exist'] ); } // =================================================== --- 146,155 ---- $message = sprintf( $lang['Sorry_auth_view'], $this->auth[$pa_cat_id]['auth_read_type'] ); ! mx_message_die( GENERAL_MESSAGE, $message ); } if ( !isset( $this->cat_rowset[$pa_cat_id] ) ) { ! mx_message_die( GENERAL_MESSAGE, $lang['Cat_not_exist'] ); } // =================================================== Index: pa_rate.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_rate.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** pa_rate.php 1 Oct 2005 14:15:20 -0000 1.9 --- pa_rate.php 24 Oct 2005 20:16:56 -0000 1.10 *************** *** 44,48 **** else { ! message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } --- 44,48 ---- else { ! mx_message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } *************** *** 55,64 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt Query file info', '', __LINE__, __FILE__, $sql ); } if ( !$file_data = $db->sql_fetchrow( $result ) ) { ! message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } --- 55,64 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt Query file info', '', __LINE__, __FILE__, $sql ); } if ( !$file_data = $db->sql_fetchrow( $result ) ) { ! mx_message_die( GENERAL_MESSAGE, $lang['File_not_exist'] ); } *************** *** 77,81 **** $message = sprintf( $lang['Sorry_auth_rate'], $this->auth[$file_data['file_catid']]['auth_rate_type'] ); ! message_die( GENERAL_MESSAGE, $message ); } --- 77,81 ---- $message = sprintf( $lang['Sorry_auth_rate'], $this->auth[$file_data['file_catid']]['auth_rate_type'] ); ! mx_message_die( GENERAL_MESSAGE, $message ); } *************** *** 111,115 **** if ( ( $rating <= 0 ) or ( $rating > 10 ) ) { ! message_die( GENERAL_ERROR, 'Bad submited value' ); } --- 111,115 ---- if ( ( $rating <= 0 ) or ( $rating > 10 ) ) { ! mx_message_die( GENERAL_ERROR, 'Bad submited value' ); } *************** *** 131,135 **** // MX $message = $result_msg . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( pa_this_mxurl( 'action=file&file_id=' . $file_id ) ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_forum'], '<a href="' . append_sid( $mx_root_path . 'index.' . $phpEx ) . '">', '</a>' ); ! message_die( GENERAL_MESSAGE, $message ); } else --- 131,135 ---- // MX $message = $result_msg . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( pa_this_mxurl( 'action=file&file_id=' . $file_id ) ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_forum'], '<a href="' . append_sid( $mx_root_path . 'index.' . $phpEx ) . '">', '</a>' ); ! mx_message_die( GENERAL_MESSAGE, $message ); } else Index: pa_toplist.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_toplist.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** pa_toplist.php 22 Oct 2005 10:56:15 -0000 1.12 --- pa_toplist.php 24 Oct 2005 20:16:56 -0000 1.13 *************** *** 46,50 **** $message = sprintf( $lang['Sorry_auth_toplist'], $this->auth_global['auth_toplist_type'] ); ! message_die( GENERAL_MESSAGE, $message ); } --- 46,50 ---- $message = sprintf( $lang['Sorry_auth_toplist'], $this->auth_global['auth_toplist_type'] ); ! mx_message_die( GENERAL_MESSAGE, $message ); } *************** *** 106,110 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); } --- 106,110 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); } *************** *** 257,261 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); } --- 257,261 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); } *************** *** 385,389 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt Query category info for parent categories', '', __LINE__, __FILE__, $sql ); } --- 385,389 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt Query category info for parent categories', '', __LINE__, __FILE__, $sql ); } *************** *** 481,485 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt Query category info for parent categories', '', __LINE__, __FILE__, $sql ); } } --- 481,485 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt Query category info for parent categories', '', __LINE__, __FILE__, $sql ); } } Index: pa_stats.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_stats.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** pa_stats.php 1 Oct 2005 14:15:20 -0000 1.12 --- pa_stats.php 24 Oct 2005 20:16:56 -0000 1.13 *************** *** 50,54 **** $message = sprintf( $lang['Sorry_auth_stats'], $this->auth_global['auth_stats_type'] ); ! message_die( GENERAL_MESSAGE, $message ); } --- 50,54 ---- $message = sprintf( $lang['Sorry_auth_stats'], $this->auth_global['auth_stats_type'] ); ! mx_message_die( GENERAL_MESSAGE, $message ); } *************** *** 61,65 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); } --- 61,65 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); } *************** *** 74,78 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); } --- 74,78 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); } *************** *** 87,91 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); } --- 87,91 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); } *************** *** 102,106 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); } $popular = $db->sql_fetchrow( $result ); --- 102,106 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); } $popular = $db->sql_fetchrow( $result ); *************** *** 116,120 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); } --- 116,120 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); } *************** *** 135,139 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); } --- 135,139 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); } *************** *** 148,152 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); } --- 148,152 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); } *************** *** 160,164 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); } --- 160,164 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); } *************** *** 238,242 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Could not obtain downloads info', '', __LINE__, __FILE__, $sql ); } --- 238,242 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Could not obtain downloads info', '', __LINE__, __FILE__, $sql ); } *************** *** 292,296 **** if ( !( $result = $db->sql_query( $sql ) ) ) { ! message_die( GENERAL_ERROR, 'Could not obtain downloads info', '', __LINE__, __FILE__, $sql ); } --- 292,296 ---- if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Could not obtain downloads info', '', __LINE__, __FILE__, $sql ); } |