|
From: Jon O. <jon...@us...> - 2006-06-17 20:13:27
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/modules In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv22598/modules/mx_pafiledb/pafiledb/modules Modified Files: pa_download.php pa_file.php pa_license.php pa_main.php pa_mcp.php pa_post_comment.php pa_rate.php pa_search.php pa_stats.php pa_user_upload.php pa_viewall.php Log Message: Finalizing module Index: pa_viewall.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_viewall.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** pa_viewall.php 7 Jun 2006 20:29:52 -0000 1.14 --- pa_viewall.php 17 Jun 2006 20:13:22 -0000 1.15 *************** *** 94,105 **** $pafiledb_template->assign_vars( array( ! 'L_VIEWALL' => $lang['Viewall'], ! 'L_INDEX' => "<<", ! 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ), ! 'DOWNLOAD' => $pafiledb_config['module_name'] ) ! ); $this->display_files( $sort_method, $sort_order, $start, true ); --- 94,105 ---- $pafiledb_template->assign_vars( array( ! 'L_VIEWALL' => $lang['Viewall'], ! 'L_INDEX' => "<<", ! 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ), ! 'DOWNLOAD' => $pafiledb_config['module_name'] ! )); $this->display_files( $sort_method, $sort_order, $start, true ); *************** *** 112,115 **** } } - ?> \ No newline at end of file --- 112,114 ---- Index: pa_download.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_download.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** pa_download.php 7 Jun 2006 20:29:52 -0000 1.15 --- pa_download.php 17 Jun 2006 20:13:22 -0000 1.16 *************** *** 137,163 **** $pafiledb_template->assign_vars( array( ! 'L_INDEX' => "<<", ! 'L_MIRRORS' => $lang['Mirrors'], ! 'L_MIRROR_LOCATION' => $lang['Mirror_location'], ! 'L_DOWNLOAD' => $lang['Download_file'], ! 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD_HOME' => append_sid( pa_this_mxurl() ), ! 'FILE_NAME' => $file_data['file_name'], ! 'DOWNLOAD' => $pafiledb_config['module_name'] ) ! ); $pafiledb_template->assign_block_vars( 'mirror_row', array( ! 'U_DOWNLOAD' => append_sid( $pa_this_mxurl( 'action=download&file_id=' . $file_id . '&mirror_id=-1' ) ), ! 'MIRROR_LOCATION' => $board_config['sitename'] ) ! ); foreach( $mirrors_data as $mir_id => $mirror_data ) { $pafiledb_template->assign_block_vars( 'mirror_row', array( ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl( 'action=download&file_id=' . $file_id . '&mirror_id=' . $mir_id ) ), ! 'MIRROR_LOCATION' => $mirror_data['mirror_location'] ) ! ); } --- 137,163 ---- $pafiledb_template->assign_vars( array( ! 'L_INDEX' => "<<", ! 'L_MIRRORS' => $lang['Mirrors'], ! 'L_MIRROR_LOCATION' => $lang['Mirror_location'], ! 'L_DOWNLOAD' => $lang['Download_file'], ! 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD_HOME' => append_sid( pa_this_mxurl() ), ! 'FILE_NAME' => $file_data['file_name'], ! 'DOWNLOAD' => $pafiledb_config['module_name'] ! )); $pafiledb_template->assign_block_vars( 'mirror_row', array( ! 'U_DOWNLOAD' => append_sid( $pa_this_mxurl( 'action=download&file_id=' . $file_id . '&mirror_id=-1' ) ), ! 'MIRROR_LOCATION' => $board_config['sitename'] ! )); foreach( $mirrors_data as $mir_id => $mirror_data ) { $pafiledb_template->assign_block_vars( 'mirror_row', array( ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl( 'action=download&file_id=' . $file_id . '&mirror_id=' . $mir_id ) ), ! 'MIRROR_LOCATION' => $mirror_data['mirror_location'] ! )); } *************** *** 233,389 **** } } - // ========================================================================= - // this function Borrowed from Acyd Burn attachment mod, (thanks Acyd for this great mod) - // ========================================================================= - function send_file_to_browser( $real_filename, $mimetype, $physical_filename, $upload_dir ) - { - global $_SERVER, $HTTP_USER_AGENT, $HTTP_SERVER_VARS, $lang, $db, $pafiledb_functions; - - if ( $upload_dir == '' ) - { - $filename = $physical_filename; - } - else - { - $filename = $upload_dir . $physical_filename; - } - - $gotit = false; - - 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 - { - $gotit = true; - $size = @filesize( $filename ); - if ( $size > ( 1048575 * 6 ) ) - { - return false; - } - } - - // Determine the Browser the User is using, because of some nasty incompatibilities. - // Most of the methods used in this function are from phpMyAdmin. :) - - $user_agent = ( !empty( $_SERVER['HTTP_USER_AGENT'] ) ) ? $_SERVER['HTTP_USER_AGENT'] : ( ( !empty( $HTTP_SERVER_VARS['HTTP_USER_AGENT'] ) ) ? $HTTP_SERVER_VARS['HTTP_USER_AGENT'] : '' ); - - if ( ereg( 'Opera(/| )([0-9].[0-9]{1,2})', $user_agent, $log_version ) ) - { - $browser_version = $log_version[2]; - $browser_agent = 'opera'; - } - else if ( ereg( 'MSIE ([0-9].[0-9]{1,2})', $user_agent, $log_version ) ) - { - $browser_version = $log_version[1]; - $browser_agent = 'ie'; - } - else if ( ereg( 'OmniWeb/([0-9].[0-9]{1,2})', $user_agent, $log_version ) ) - { - $browser_version = $log_version[1]; - $browser_agent = 'omniweb'; - } - else if ( ereg( '(Konqueror/)(.*)(;)', $user_agent, $log_version ) ) - { - $browser_version = $log_version[2]; - $browser_agent = 'konqueror'; - } - else if ( ereg( 'Mozilla/([0-9].[0-9]{1,2})', $user_agent, $log_version ) && ereg( 'Safari/([0-9]*)', $user_agent, $log_version2 ) ) - { - $browser_version = $log_version[1] . '.' . $log_version2[1]; - $browser_agent = 'safari'; - } - else if ( ereg( 'Mozilla/([0-9].[0-9]{1,2})', $user_agent, $log_version ) ) - { - $browser_version = $log_version[1]; - $browser_agent = 'mozilla'; - } - else - { - $browser_version = 0; - $browser_agent = 'other'; - } - - // Correct the Mime Type, if it's an octetstream - - if ( ( $mimetype == 'application/octet-stream' ) || ( $mimetype == 'application/octetstream' ) ) - { - if ( ( $browser_agent == 'ie' ) || ( $browser_agent == 'opera' ) ) - { - $mimetype = 'application/octetstream'; - } - else - { - $mimetype = 'application/octet-stream'; - } - } - - @ob_end_clean(); - @ini_set( 'zlib.output_compression', 'Off' ); - header( 'Pragma: public' ); - header( 'Content-Transfer-Encoding: none' ); - - // Send out the Headers - - if ( $browser_agent == 'ie' ) - { - header( 'Content-Type: ' . $mimetype . '; name="' . $real_filename . '"' ); - header( 'Content-Disposition: inline; filename="' . $real_filename . '"' ); - } - else - { - header( 'Content-Type: ' . $mimetype . '; name="' . $real_filename . '"' ); - header( 'Content-Disposition: attachment; filename=' . $real_filename ); - } - - // Now send the File Contents to the Browser - - if ( $gotit ) - { - if ( $size ) - { - header( "Content-length: $size" ); - } - - $result = @readfile( $filename ); - - if ( !$result ) - { - return true; - } - } - else - { - return false; - } - - @flush(); - exit(); - } - - function pa_redirect( $file_url ) - { - global $pafiledb_cache, $db; - if ( isset( $db ) ) - { - $db->sql_close(); - } - - if ( isset( $pafiledb_cache ) ) - { - $pafiledb_cache->unload(); - } - // Redirect via an HTML form for PITA webservers - if ( @preg_match( '/Microsoft|WebSTAR|Xitami/', getenv( 'SERVER_SOFTWARE' ) ) ) - { - header( 'Refresh: 0; URL=' . $file_url ); - echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="refresh" content="0; url=' . $file_url . '"><title>Redirect</title></head><body><div align="center">If your browser does not support meta redirection please click <a href="' . $file_url . '">HERE</a> to be redirected</div></body></html>'; - exit; - } - // Behave as per HTTP/1.1 spec for others - Header( "Location: $file_url" ); - exit(); - } - ?> \ No newline at end of file --- 233,235 ---- Index: pa_post_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_post_comment.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** pa_post_comment.php 7 Jun 2006 20:29:52 -0000 1.14 --- pa_post_comment.php 17 Jun 2006 20:13:22 -0000 1.15 *************** *** 40,44 **** // Request vars // ! $cid = $mx_request_vars->request('cid', MX_TYPE_INT, ''); if ( $mx_request_vars->is_request('item_id') && $mx_request_vars->is_request('cat_id') ) --- 40,44 ---- // Request vars // ! $cid = $mx_request_vars->request('cid', MX_TYPE_INT, 0); if ( $mx_request_vars->is_request('item_id') && $mx_request_vars->is_request('cat_id') ) *************** *** 59,63 **** $message = ( !empty( $_POST['message'] ) ) ? htmlspecialchars( trim( stripslashes( $_POST['message'] ) ) ) : ''; ! $sql = "SELECT file_name, file_catid FROM " . PA_FILES_TABLE . " WHERE file_id = '" . $item_id . "'"; --- 59,63 ---- $message = ( !empty( $_POST['message'] ) ) ? htmlspecialchars( trim( stripslashes( $_POST['message'] ) ) ) : ''; ! $sql = "SELECT * FROM " . PA_FILES_TABLE . " WHERE file_id = '" . $item_id . "'"; *************** *** 393,469 **** if ( $submit ) { ! // ! // vars ! // ! $length = strlen( $_POST['message'] ); ! ! $title = ( !empty( $_POST['subject'] ) ) ? htmlspecialchars( trim ( $_POST['subject'] ) ) : ''; ! ! $comment_bbcode_uid = make_bbcode_uid(); ! $comments_text = str_replace( '<br />', "\n", $_POST['message'] ); ! $comments_text = prepare_message( trim($comments_text), $html_on, $bbcode_on, $smilies_on, $comment_bbcode_uid ); ! $comments_text = bbencode_first_pass( $comments_text, $comment_bbcode_uid ); ! ! 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'] . '' ); ! } ! ! if ( $mx_request_vars->is_request('cid') ) ! { ! if ( $this->comments[$file_data['file_catid']]['internal_comments'] ) ! { ! $sql = "UPDATE " . PA_COMMENTS_TABLE . " ! SET comments_text = '" . str_replace( "\'", "''", $comments_text ) . "', ! comments_title = '" . str_replace( "\'", "''", $title ) . "', ! comment_bbcode_uid = '" . $comment_bbcode_uid . "' ! WHERE comments_id = " . $mx_request_vars->request('cid', MX_TYPE_INT, 0) . " ! AND file_id = ". $item_id; ! } ! else ! { ! include( $module_root_path . 'pafiledb/includes/functions_comment.' . $phpEx ); ! $pafiledb_comments = new pafiledb_comments(); ! $pafiledb_comments->init( $item_id ); ! ! $pafiledb_comments->post( 'update', $cid, $title, $comments_text, $userdata['user_id'], $userdata['username'], 0, '', '', $comment_bbcode_uid); ! //$pafiledb_comments->insert_phpbb_post( $title, $comments_text, $forum_id, $userdata['user_id'], $userdata['username'], 0, $topic_id, $cid, '', '', $comment_bbcode_uid ); ! } ! ! } ! else ! { ! if ( $this->comments[$file_data['file_catid']]['internal_comments'] ) ! { ! $time = time(); ! $poster_id = intval( $userdata['user_id'] ); ! $sql = "INSERT INTO " . PA_COMMENTS_TABLE . "(file_id, comments_text, comments_title, comments_time, comment_bbcode_uid, poster_id) ! VALUES('$item_id','" . str_replace( "\'", "''", $comments_text ) . "','" . str_replace( "\'", "''", $title ) . "','$time', '$comment_bbcode_uid','$poster_id')"; ! } ! else ! { ! include( $module_root_path . 'pafiledb/includes/functions_comment.' . $phpEx ); ! $pafiledb_comments = new pafiledb_comments(); ! $pafiledb_comments->init( $item_id ); ! ! $pafiledb_comments->post( 'insert', '', $title, $comments_text, $userdata['user_id'], $userdata['username'], 0, '', '', $comment_bbcode_uid); ! //$pafiledb_comments->insert_phpbb_post( $title, $comments_text, $forum_id, $userdata['user_id'], $userdata['username'], 0, $topic_id, '', '', '', $comment_bbcode_uid ); ! ! } ! ! } ! ! // ! // Notification ! // ! ! ! // ! // Done ! // ! if ( !( $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Couldnt insert comments', '', __LINE__, __FILE__, $sql ); ! } $message = $lang['Comment_posted'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( pa_this_mxurl( 'action=file&file_id=' . $item_id ) ) . '">', '</a>' ); --- 393,397 ---- if ( $submit ) { ! $this->update_add_comment($file_data, $item_id, $cid, '', '', $html_on, $bbcode_on, $smilies_on); $message = $lang['Comment_posted'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( pa_this_mxurl( 'action=file&file_id=' . $item_id ) ) . '">', '</a>' ); Index: pa_user_upload.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_user_upload.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** pa_user_upload.php 7 Jun 2006 20:29:52 -0000 1.18 --- pa_user_upload.php 17 Jun 2006 20:13:22 -0000 1.19 *************** *** 27,31 **** function main( $action ) { ! global $_REQUEST, $_POST, $pafiledb_config, $phpbb_root_path; global $pafiledb_template, $db, $lang, $userdata, $user_ip, $phpEx, $pafiledb_functions; global $mx_root_path, $module_root_path, $is_block, $phpEx; --- 27,31 ---- function main( $action ) { ! global $_REQUEST, $_POST, $pafiledb_config, $board_config, $phpbb_root_path; global $pafiledb_template, $db, $lang, $userdata, $user_ip, $phpEx, $pafiledb_functions; global $mx_root_path, $module_root_path, $is_block, $phpEx; *************** *** 36,39 **** --- 36,51 ---- include( $module_root_path . 'pafiledb/includes/functions_field.' . $phpEx ); + // ********************************************************************** + // Read language definition + // ********************************************************************** + if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) + { + include( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); + } + else + { + include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); + } + $custom_field = new custom_field(); $custom_field->init(); *************** *** 88,91 **** --- 100,135 ---- if ( ( $this->auth[$file_info['file_catid']]['auth_delete_file'] && $file_info['user_id'] == $userdata['user_id'] ) || $this->auth[$file_info['file_catid']]['auth_mod'] ) { + // + // Notification + // + $this->update_add_file_notify($file_id, 'delete'); + + // + // Comments + // + if ($this->comments[$file_info['file_catid']]['activated'] && $pafiledb_config['del_topic']) + { + if ( $this->comments[$file_info['file_catid']]['internal_comments'] ) + { + $sql = 'DELETE FROM ' . PA_COMMENTS_TABLE . " + WHERE file_id = '" . $file_id . "'"; + + if ( !( $db->sql_query( $sql ) ) ) + { + mx_message_die( GENERAL_ERROR, 'Couldnt delete comments', '', __LINE__, __FILE__, $sql ); + } + } + else + { + if ( $file_info['topic_id'] ) + { + include( $module_root_path . 'pafiledb/includes/functions_comment.' . $phpEx ); + $mx_pa_comments = new pafiledb_comments(); + $mx_pa_comments->init( $file_info, 'phpbb'); + $mx_pa_comments->post('delete_all', $file_info['topic_id']); + } + } + } + $this->delete_files( $file_id ); $this->_pafiledb(); *************** *** 106,115 **** if ( !$file_id ) { ! $temp_id = $this->update_add_file(); ! $custom_field->file_update_data( $temp_id ); if ( $this->auth[$cat_id]['auth_approval'] || ( $this->auth[$cat_id]['auth_mod'] && $userdata['session_logged_in'] )) { ! $message = $lang['Fileadded'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( pa_this_mxurl( "action=file&file_id=" . $temp_id ) ) . '">', '</a>' ); } else --- 150,160 ---- if ( !$file_id ) { ! $pa_post_mode = 'add'; ! $file_id = $this->update_add_file(); ! $custom_field->file_update_data( $file_id ); if ( $this->auth[$cat_id]['auth_approval'] || ( $this->auth[$cat_id]['auth_mod'] && $userdata['session_logged_in'] )) { ! $message = $lang['Fileadded'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( pa_this_mxurl( "action=file&file_id=" . $file_id ) ) . '">', '</a>' ); } else *************** *** 119,180 **** $this->_pafiledb(); - - /* - $pa_pm = array(); - - // - // Populate the pa_pm variable - // - $pa_pm = pa_get_pm_data( $temp_id ); - - // - // Compose post header - // - $pa_message_tmp = pa_compose_pm( $pa_pm ); - $pa_message = $pa_message_tmp['message']; - $pa_update_message = $pa_message_tmp['update_message']; - - // - // PM notify - // - $pa_admins = pa_get_admins( true ); - - for ($i = 0; $i < count($pa_admins) || $i < 10; $i++) - { - pa_notify( $pafiledb_config['notify'], $pa_message, $pa_admins[$i]['user_id'], $pa_pm['file_editor_id'], $info = 'new' ); - } - */ } ! elseif ( $file_id != '' ) { $file_id = $this->update_add_file( $file_id ); $custom_field->file_update_data( $file_id ); - $this->_pafiledb(); ! $pa_pm = array(); ! // ! // Populate the pa_pm variable ! // ! $pa_pm = pa_get_pm_data( $file_id ); // ! // Compose post header // ! $pa_message_tmp = pa_compose_pm( $pa_pm ); ! $pa_message = $pa_message_tmp['message']; ! $pa_update_message = $pa_message_tmp['update_message']; // ! // PM notify // ! $pa_admins = pa_get_admins( true); ! ! for ($i = 0; $i < count($pa_admins) || $i < 10; $i++) ! { ! pa_notify( $pafiledb_config['notify'], $pa_message, $pa_admins[$i]['user_id'], $pa_pm['file_editor_id'], $info = 'edited' ); ! } ! ! $message = $lang['Fileedited'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( pa_this_mxurl( "action=file&file_id=" . $file_id ) ) . '">', '</a>' ); } --- 164,200 ---- $this->_pafiledb(); } ! else { + $pa_post_mode = 'edit'; $file_id = $this->update_add_file( $file_id ); $custom_field->file_update_data( $file_id ); ! $message = $lang['Fileedited'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( pa_this_mxurl( "action=file&file_id=" . $file_id ) ) . '">', '</a>' ); ! $this->_pafiledb(); ! } + // + // Notification + // + $this->update_add_file_notify($file_id, $pa_post_mode); + + // + // Auto comment + // + if ( $this->comments[$cat_id]['activated'] && $this->comments[$cat_id]['autogenerate_comments'] ) + { // ! // Autogenerate comment (duplicate the notification message) // ! $mx_pa_notification = new mx_pa_notification(); ! $mx_pa_notification->init( $file_id ); ! $mx_pa_notification->_compose_auto_note($pa_post_mode == 'add' ? MX_NEW_NOTIFICATION : MX_EDITED_NOTIFICATION); // ! // Generate comment // ! $this->update_add_comment('', $file_id, 0, addslashes(trim($mx_pa_notification->subject)), addslashes(trim($mx_pa_notification->message))); } *************** *** 258,336 **** $pafiledb_template->assign_vars( array( ! 'S_ADD_FILE_ACTION' => append_sid( pa_this_mxurl() ), ! ! 'DOWNLOAD' => $pafiledb_config['module_name'], ! 'FILESIZE' => intval( $pafiledb_config['max_file_size'] ), ! 'FILE_NAME' => $file_name, ! 'FILE_DESC' => $file_desc, ! 'FILE_LONG_DESC' => $file_long_desc, ! 'FILE_AUTHOR' => $file_author, ! 'FILE_VERSION' => $file_version, ! 'FILE_SSURL' => $file_ssurl, ! 'FILE_WEBSITE' => $file_website, ! 'FILE_DLURL' => $file_url, ! 'FILE_DOWNLOAD' => $file_download, ! 'CUSTOM_EXIST' => $custom_exist, ! 'AUTH_APPROVAL' => false, ! 'APPROVED_CHECKED_YES' => $approved_checked_yes, ! 'APPROVED_CHECKED_NO' => $approved_checked_no, ! 'SS_CHECKED_YES' => $ss_checked_yes, ! 'SS_CHECKED_NO' => $ss_checked_no, ! 'PIN_CHECKED_YES' => $pin_checked_yes, ! 'PIN_CHECKED_NO' => $pin_checked_no, ! 'L_INDEX' => "<<", ! 'L_UPLOAD' => $lang['User_upload'], ! 'L_FILE_TITLE' => $l_title, ! 'L_FILE_APPROVED' => $lang['Approved'], ! 'L_FILE_APPROVED_INFO' => $lang['Approved_info'], ! 'L_ADDTIONAL_FIELD' => $lang['Addtional_field'], ! 'L_SCREENSHOT' => $lang['Scrsht'], ! 'L_FILES' => $lang['Files'], ! 'L_FILE_NAME' => $lang['Filename'], ! 'L_FILE_NAME_INFO' => $lang['Filenameinfo'], ! 'L_FILE_SHORT_DESC' => $lang['Filesd'], ! 'L_FILE_SHORT_DESC_INFO' => $lang['Filesdinfo'], ! 'L_FILE_LONG_DESC' => $lang['Fileld'], ! 'L_FILE_LONG_DESC_INFO' => $lang['Fileldinfo'], ! 'L_FILE_AUTHOR' => $lang['Filecreator'], ! 'L_FILE_AUTHOR_INFO' => $lang['Filecreatorinfo'], ! 'L_FILE_VERSION' => $lang['Fileversion'], ! 'L_FILE_VERSION_INFO' => $lang['Fileversioninfo'], ! 'L_FILESS' => $lang['Filess'], ! 'L_FILESSINFO' => $lang['Filessinfo'], ! 'L_FILESS_UPLOAD' => $lang['Filess_upload'], ! 'L_FILESSINFO_UPLOAD' => $lang['Filessinfo_upload'], ! 'L_FILE_SSLINK' => $lang['Filess_link'], ! 'L_FILE_SSLINK_INFO' => $lang['Filess_link_info'], ! 'L_FILESSUPLOAD' => $lang['Filessupload'], ! 'L_FILE_WEBSITE' => $lang['Filedocs'], ! 'L_FILE_WEBSITE_INFO' => $lang['Filedocsinfo'], ! 'L_FILE_URL' => $lang['Fileurl'], ! 'L_FILE_UPLOAD' => $lang['File_upload'], ! 'L_FILEINFO_UPLOAD' => $lang['Fileinfo_upload'], ! 'L_FILE_URL_INFO' => $lang['Fileurlinfo'], ! 'L_FILE_POSTICONS' => $lang['Filepi'], ! 'L_FILE_POSTICONS_INFO' => $lang['Filepiinfo'], ! 'L_FILE_CAT' => $lang['Filecat'], ! 'L_FILE_CAT_INFO' => $lang['Filecatinfo'], ! 'L_FILE_LICENSE' => $lang['Filelicense'], ! 'L_NONE' => $lang['None'], ! 'L_FILE_LICENSE_INFO' => $lang['Filelicenseinfo'], ! 'L_FILE_PINNED' => $lang['Filepin'], ! 'L_FILE_PINNED_INFO' => $lang['Filepininfo'], ! 'L_FILE_DOWNLOAD' => $lang['Filedls'], ! 'L_NO' => $lang['No'], ! 'L_YES' => $lang['Yes'], ! 'S_POSTICONS' => $file_posticons, ! 'S_LICENSE_LIST' => $file_license, ! 'S_CAT_LIST' => $file_cat_list, ! 'S_HIDDEN_FIELDS' => $s_hidden_fields, ! 'MODE' => $mode, ! 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ) ) ! ); $this->display( $lang['Download'], 'pa_file_add.tpl' ); --- 278,355 ---- $pafiledb_template->assign_vars( array( ! 'S_ADD_FILE_ACTION' => append_sid( pa_this_mxurl() ), ! 'DOWNLOAD' => $pafiledb_config['module_name'], ! 'FILESIZE' => intval( $pafiledb_config['max_file_size'] ), ! 'FILE_NAME' => $file_name, ! 'FILE_DESC' => $file_desc, ! 'FILE_LONG_DESC' => $file_long_desc, ! 'FILE_AUTHOR' => $file_author, ! 'FILE_VERSION' => $file_version, ! 'FILE_SSURL' => $file_ssurl, ! 'FILE_WEBSITE' => $file_website, ! 'FILE_DLURL' => $file_url, ! 'FILE_DOWNLOAD' => $file_download, ! 'CUSTOM_EXIST' => $custom_exist, ! 'AUTH_APPROVAL' => false, ! 'APPROVED_CHECKED_YES' => $approved_checked_yes, ! 'APPROVED_CHECKED_NO' => $approved_checked_no, ! 'SS_CHECKED_YES' => $ss_checked_yes, ! 'SS_CHECKED_NO' => $ss_checked_no, ! 'PIN_CHECKED_YES' => $pin_checked_yes, ! 'PIN_CHECKED_NO' => $pin_checked_no, ! 'L_INDEX' => "<<", ! 'L_UPLOAD' => $lang['User_upload'], ! 'L_FILE_TITLE' => $l_title, ! 'L_FILE_APPROVED' => $lang['Approved'], ! 'L_FILE_APPROVED_INFO' => $lang['Approved_info'], ! 'L_ADDTIONAL_FIELD' => $lang['Addtional_field'], ! 'L_SCREENSHOT' => $lang['Scrsht'], ! 'L_FILES' => $lang['Files'], ! 'L_FILE_NAME' => $lang['Filename'], ! 'L_FILE_NAME_INFO' => $lang['Filenameinfo'], ! 'L_FILE_SHORT_DESC' => $lang['Filesd'], ! 'L_FILE_SHORT_DESC_INFO' => $lang['Filesdinfo'], ! 'L_FILE_LONG_DESC' => $lang['Fileld'], ! 'L_FILE_LONG_DESC_INFO' => $lang['Fileldinfo'], ! 'L_FILE_AUTHOR' => $lang['Filecreator'], ! 'L_FILE_AUTHOR_INFO' => $lang['Filecreatorinfo'], ! 'L_FILE_VERSION' => $lang['Fileversion'], ! 'L_FILE_VERSION_INFO' => $lang['Fileversioninfo'], ! 'L_FILESS' => $lang['Filess'], ! 'L_FILESSINFO' => $lang['Filessinfo'], ! 'L_FILESS_UPLOAD' => $lang['Filess_upload'], ! 'L_FILESSINFO_UPLOAD' => $lang['Filessinfo_upload'], ! 'L_FILE_SSLINK' => $lang['Filess_link'], ! 'L_FILE_SSLINK_INFO' => $lang['Filess_link_info'], ! 'L_FILESSUPLOAD' => $lang['Filessupload'], ! 'L_FILE_WEBSITE' => $lang['Filedocs'], ! 'L_FILE_WEBSITE_INFO' => $lang['Filedocsinfo'], ! 'L_FILE_URL' => $lang['Fileurl'], ! 'L_FILE_UPLOAD' => $lang['File_upload'], ! 'L_FILEINFO_UPLOAD' => $lang['Fileinfo_upload'], ! 'L_FILE_URL_INFO' => $lang['Fileurlinfo'], ! 'L_FILE_POSTICONS' => $lang['Filepi'], ! 'L_FILE_POSTICONS_INFO' => $lang['Filepiinfo'], ! 'L_FILE_CAT' => $lang['Filecat'], ! 'L_FILE_CAT_INFO' => $lang['Filecatinfo'], ! 'L_FILE_LICENSE' => $lang['Filelicense'], ! 'L_NONE' => $lang['None'], ! 'L_FILE_LICENSE_INFO' => $lang['Filelicenseinfo'], ! 'L_FILE_PINNED' => $lang['Filepin'], ! 'L_FILE_PINNED_INFO' => $lang['Filepininfo'], ! 'L_FILE_DOWNLOAD' => $lang['Filedls'], ! 'L_NO' => $lang['No'], ! 'L_YES' => $lang['Yes'], ! 'S_POSTICONS' => $file_posticons, ! 'S_LICENSE_LIST' => $file_license, ! 'S_CAT_LIST' => $file_cat_list, ! 'S_HIDDEN_FIELDS' => $s_hidden_fields, ! 'MODE' => $mode, ! 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ) ! )); $this->display( $lang['Download'], 'pa_file_add.tpl' ); *************** *** 338,341 **** } } - ?> \ No newline at end of file --- 357,359 ---- Index: pa_file.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_file.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** pa_file.php 7 Jun 2006 20:29:52 -0000 1.18 --- pa_file.php 17 Jun 2006 20:13:22 -0000 1.19 *************** *** 34,38 **** --- 34,40 ---- // Request vars // ======================================================= + $start = $mx_request_vars->get('start', MX_TYPE_INT, 0); $file_id = $mx_request_vars->request('file_id', MX_TYPE_INT, ''); + $page_num = $mx_request_vars->request('page_num', MX_TYPE_INT, 1) - 1; if ( empty( $file_id ) ) *************** *** 101,112 **** $pafiledb_template->assign_vars( array( ! 'L_INDEX' => "<<", ! 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD_HOME' => append_sid( pa_this_mxurl() ), ! 'FILE_NAME' => $file_data['file_name'], ! 'DOWNLOAD' => $pafiledb_config['module_name'] ) ! ); // =================================================== --- 103,114 ---- $pafiledb_template->assign_vars( array( ! 'L_INDEX' => "<<", ! 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD_HOME' => append_sid( pa_this_mxurl() ), ! 'FILE_NAME' => $file_data['file_name'], ! 'DOWNLOAD' => $pafiledb_config['module_name'] ! )); // =================================================== *************** *** 178,183 **** 'U_EDIT' => append_sid( pa_this_mxurl( 'action=user_upload&file_id=' . $file_id ) ), ! 'U_EMAIL' => append_sid( pa_this_mxurl( 'action=email&file_id=' . $file_id ) ) ) ! ); include( $module_root_path . 'pafiledb/includes/functions_field.' . $phpEx ); --- 180,185 ---- 'U_EDIT' => append_sid( pa_this_mxurl( 'action=user_upload&file_id=' . $file_id ) ), ! 'U_EMAIL' => append_sid( pa_this_mxurl( 'action=email&file_id=' . $file_id ) ) ! )); include( $module_root_path . 'pafiledb/includes/functions_field.' . $phpEx ); *************** *** 223,227 **** // Instatiate comments // ! include( $module_root_path . 'pafiledb/includes/functions_comment.' . $phpEx ); $pafiledb_comments = new pafiledb_comments(); $pafiledb_comments->init( $file_data, $comments_type ); --- 225,229 ---- // Instatiate comments // ! include_once( $module_root_path . 'pafiledb/includes/functions_comment.' . $phpEx ); $pafiledb_comments = new pafiledb_comments(); $pafiledb_comments->init( $file_data, $comments_type ); *************** *** 245,248 **** } } - ?> \ No newline at end of file --- 247,249 ---- Index: pa_license.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_license.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** pa_license.php 7 Jun 2006 20:29:52 -0000 1.15 --- pa_license.php 17 Jun 2006 20:13:22 -0000 1.16 *************** *** 107,112 **** 'FILE_NAME' => $file_data['file_name'], 'LE_TEXT' => nl2br( $license['license_text'] ), ! 'DOWNLOAD' => $pafiledb_config['module_name'] ) ! ); // =================================================== --- 107,112 ---- 'FILE_NAME' => $file_data['file_name'], 'LE_TEXT' => nl2br( $license['license_text'] ), ! 'DOWNLOAD' => $pafiledb_config['module_name'] ! )); // =================================================== *************** *** 118,121 **** } } - ?> \ No newline at end of file --- 118,120 ---- Index: pa_mcp.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_mcp.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** pa_mcp.php 7 Jun 2006 20:29:52 -0000 1.12 --- pa_mcp.php 17 Jun 2006 20:13:22 -0000 1.13 *************** *** 31,34 **** --- 31,46 ---- global $mx_root_path, $module_root_path, $is_block, $phpEx; + // ********************************************************************** + // Read language definition + // ********************************************************************** + if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) + { + include( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); + } + else + { + include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); + } + $this->init(); *************** *** 38,41 **** --- 50,54 ---- $mode = ( isset( $_REQUEST['mode'] ) ) ? htmlspecialchars( $_REQUEST['mode'] ) : ''; + $mode_notification = ( isset( $_REQUEST['mode'] ) ) ? htmlspecialchars( $_REQUEST['mode'] ) : ''; $mode_js = ( isset( $_REQUEST['mode_js'] ) ) ? htmlspecialchars( $_REQUEST['mode_js'] ) : ''; $mode = ( isset( $_POST['approve'] ) ) ? 'do_approve' : $mode; *************** *** 143,173 **** { $this->file_approve( $mode, $temp_file_id ); - - if ( $pafiledb_config['notify'] ) - { - $pa_pm = array(); - - // - // Populate the pa_pm variable - // - $pa_pm = pa_get_pm_data( $temp_file_id ); - - // - // Compose post header - // - $pa_message_tmp = pa_compose_pm( $pa_pm ); - $pa_message = $pa_message_tmp['message']; - $pa_update_message = $pa_message_tmp['update_message']; - - // - // PM notify - // - $pa_admins = pa_get_admins( true ); - - for ($i = 0; $i < count($pa_admins) || $i < 10; $ii) - { - pa_notify( $pafiledb_config['notify'], $pa_message, $pa_admins[$i]['user_id'], $pa_pm['file_editor_id'], $info = $mode_temp ); - } - } } } --- 156,159 ---- *************** *** 176,205 **** $this->file_approve( $mode, $file_id ); - if ( $pafiledb_config['notify'] ) - { - $pa_pm = array(); - - // - // Populate the pa_pm variable - // - $pa_pm = pa_get_pm_data( $file_id ); - - // - // Compose post header - // - $pa_message_tmp = pa_compose_pm( $pa_pm ); - $pa_message = $pa_message_tmp['message']; - $pa_update_message = $pa_message_tmp['update_message']; - - // - // PM notify - // - $pa_admins = pa_get_admins( true ); - - for ($i = 0; $i < count($pa_admins) || $i < 10; $ii) - { - pa_notify( $pafiledb_config['notify'], $pa_message, $pa_admins[$i]['user_id'], $pa_pm['file_editor_id'], $info = $mode_temp ); - } - } } --- 162,165 ---- *************** *** 217,232 **** $s_hidden_fields = '<input type="hidden" name="cat_id" value="' . $cat_id . '">'; ! $pafiledb_template->assign_vars( array( 'L_INDEX' => "<<", ! 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD_HOME' => append_sid( pa_this_mxurl() ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ), ! 'DOWNLOAD' => $pafiledb_config['module_name'], ! 'L_MCP_TITLE' => $l_title, ! 'L_MCP_EXPLAIN' => $l_explain, ! 'L_ADD_FILE' => $lang['Afiletitle'], ! 'S_HIDDEN_FIELDS' => $s_hidden_fields, ! 'S_FILE_ACTION' => append_sid( pa_this_mxurl( "action=mcp" ) ) ) ! ); if ( in_array( $mode, array( '', 'approved', 'broken', 'do_approve', 'do_unapprove', 'file_cat', 'all_file' ) ) ) --- 177,193 ---- $s_hidden_fields = '<input type="hidden" name="cat_id" value="' . $cat_id . '">'; ! $pafiledb_template->assign_vars( array( ! 'L_INDEX' => "<<", ! 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD_HOME' => append_sid( pa_this_mxurl() ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ), ! 'DOWNLOAD' => $pafiledb_config['module_name'], ! 'L_MCP_TITLE' => $l_title, ! 'L_MCP_EXPLAIN' => $l_explain, ! 'L_ADD_FILE' => $lang['Afiletitle'], ! 'S_HIDDEN_FIELDS' => $s_hidden_fields, ! 'S_FILE_ACTION' => append_sid( pa_this_mxurl( "action=mcp" ) ) ! )); if ( in_array( $mode, array( '', 'approved', 'broken', 'do_approve', 'do_unapprove', 'file_cat', 'all_file' ) ) ) *************** *** 337,341 **** if ( $mode == '' ) { ! $global_array = array( 0 => array( 'lang_var' => $lang['Approved_files'], 'row_set' => $approved_file_rowset, 'approval' => 'approve' ), --- 298,303 ---- if ( $mode == '' ) { ! $global_array = array( ! 0 => array( 'lang_var' => $lang['Approved_files'], 'row_set' => $approved_file_rowset, 'approval' => 'approve' ), *************** *** 349,353 **** elseif ( $mode == 'all_file' ) { ! $global_array = array( 0 => array( 'lang_var' => $lang['Approved_files'], 'row_set' => $approved_file_rowset, 'approval' => 'approve' ), --- 311,316 ---- elseif ( $mode == 'all_file' ) { ! $global_array = array( ! 0 => array( 'lang_var' => $lang['Approved_files'], 'row_set' => $approved_file_rowset, 'approval' => 'approve' ), *************** *** 466,469 **** --- 429,438 ---- } + // + // Notification + // + $fileId = !empty($file_id) ? $file_id : $file_ids; + $this->update_add_file_notify($fileId, $mode_notification); + $pafiledb_template->assign_vars( array( 'ERROR' => ( sizeof( $this->error ) ) ? implode( '<br />', $this->error ) : '' ) ); *************** *** 472,475 **** } } - ?> \ No newline at end of file --- 441,443 ---- Index: pa_main.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_main.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** pa_main.php 7 Jun 2006 20:29:52 -0000 1.13 --- pa_main.php 17 Jun 2006 20:13:22 -0000 1.14 *************** *** 30,41 **** $pafiledb_template->assign_vars( array( ! 'L_INDEX' => "<<", ! ! 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ), ! 'DOWNLOAD' => $pafiledb_config['module_name'], ! 'TREE' => $menu_output ) ! ); // =================================================== --- 30,40 ---- $pafiledb_template->assign_vars( array( ! 'L_INDEX' => "<<", ! 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ), ! 'DOWNLOAD' => $pafiledb_config['module_name'], ! 'TREE' => $menu_output ! )); // =================================================== *************** *** 43,50 **** // =================================================== $this->display_categories(); - $this->display( $lang['Download'], 'pa_main_body.tpl' ); } } - ?> \ No newline at end of file --- 42,47 ---- Index: pa_search.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_search.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** pa_search.php 7 Jun 2006 20:29:52 -0000 1.16 --- pa_search.php 17 Jun 2006 20:13:22 -0000 1.17 *************** *** 269,275 **** { $sql = "SELECT file_id ! FROM " . PA_COMMENTS_TABLE . " ! WHERE (comments_title LIKE '$match_word' ! OR comments_text LIKE '$match_word')"; if ( !( $result = $db->sql_query( $sql ) ) ) --- 269,275 ---- { $sql = "SELECT file_id ! FROM " . PA_COMMENTS_TABLE . " ! WHERE (comments_title LIKE '$match_word' ! OR comments_text LIKE '$match_word')"; if ( !( $result = $db->sql_query( $sql ) ) ) *************** *** 344,351 **** { $sql = "SELECT file_id, file_catid ! FROM " . PA_FILES_TABLE . " ! WHERE file_id IN (" . implode( ", ", $search_ids ) . ") ! $where_sql ! GROUP BY file_id"; } else --- 344,351 ---- { $sql = "SELECT file_id, file_catid ! FROM " . PA_FILES_TABLE . " ! WHERE file_id IN (" . implode( ", ", $search_ids ) . ") ! $where_sql ! GROUP BY file_id"; } else *************** *** 361,368 **** $sql = "SELECT f.file_id, f.file_catid ! FROM $from_sql ! WHERE f.file_id IN (" . implode( ", ", $search_ids ) . ") $where_sql ! GROUP BY f.file_id"; } --- 361,368 ---- $sql = "SELECT f.file_id, f.file_catid ! FROM $from_sql ! WHERE f.file_id IN (" . implode( ", ", $search_ids ) . ") $where_sql ! GROUP BY f.file_id"; } *************** *** 658,661 **** } } - ?> \ No newline at end of file --- 658,660 ---- Index: pa_rate.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_rate.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** pa_rate.php 7 Jun 2006 20:29:52 -0000 1.13 --- pa_rate.php 17 Jun 2006 20:13:22 -0000 1.14 *************** *** 107,120 **** $pafiledb_template->assign_vars( array( ! 'L_INDEX' => "<<", ! 'L_RATE' => $lang['Rate'], ! 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD_HOME' => append_sid( pa_this_mxurl() ), ! 'U_FILE_NAME' => append_sid( pa_this_mxurl( 'action=file&file_id=' . $file_id ) ), ! 'FILE_NAME' => $file_data['file_name'], ! 'DOWNLOAD' => $pafiledb_config['module_name'] ) ! ); if ( isset( $_POST['submit'] ) ) --- 107,120 ---- $pafiledb_template->assign_vars( array( ! 'L_INDEX' => "<<", ! 'L_RATE' => $lang['Rate'], ! 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD_HOME' => append_sid( pa_this_mxurl() ), ! 'U_FILE_NAME' => append_sid( pa_this_mxurl( 'action=file&file_id=' . $file_id ) ), ! 'FILE_NAME' => $file_data['file_name'], ! 'DOWNLOAD' => $pafiledb_config['module_name'] ! )); if ( isset( $_POST['submit'] ) ) *************** *** 143,162 **** $pafiledb_template->assign_vars( array( ! 'S_RATE_ACTION' => append_sid( pa_this_mxurl( 'action=rate&file_id=' . $file_id ) ), ! 'L_RATE' => $lang['Rate'], ! 'L_RERROR' => $lang['Rerror'], ! 'L_R1' => $lang['R1'], ! 'L_R2' => $lang['R2'], ! 'L_R3' => $lang['R3'], ! 'L_R4' => $lang['R4'], ! 'L_R5' => $lang['R5'], ! 'L_R6' => $lang['R6'], ! 'L_R7' => $lang['R7'], ! 'L_R8' => $lang['R8'], ! 'L_R9' => $lang['R9'], ! 'L_R10' => $lang['R10'], ! 'RATEINFO' => $rate_info, ! 'ID' => $file_id ) ! ); } --- 143,162 ---- $pafiledb_template->assign_vars( array( ! 'S_RATE_ACTION' => append_sid( pa_this_mxurl( 'action=rate&file_id=' . $file_id ) ), ! 'L_RATE' => $lang['Rate'], ! 'L_RERROR' => $lang['Rerror'], ! 'L_R1' => $lang['R1'], ! 'L_R2' => $lang['R2'], ! 'L_R3' => $lang['R3'], ! 'L_R4' => $lang['R4'], ! 'L_R5' => $lang['R5'], ! 'L_R6' => $lang['R6'], ! 'L_R7' => $lang['R7'], ! 'L_R8' => $lang['R8'], ! 'L_R9' => $lang['R9'], ! 'L_R10' => $lang['R10'], ! 'RATEINFO' => $rate_info, ! 'ID' => $file_id ! )); } *************** *** 165,172 **** // =================================================== $this->generate_navigation( $file_data['file_catid'] ); - $this->display( $lang['Download'], 'pa_rate_body.tpl' ); } } - ?> \ No newline at end of file --- 165,170 ---- Index: pa_stats.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_stats.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** pa_stats.php 7 Jun 2006 20:29:52 -0000 1.18 --- pa_stats.php 17 Jun 2006 20:13:22 -0000 1.19 *************** *** 330,333 **** } } - ?> \ No newline at end of file --- 330,332 ---- |