|
From: Jon O. <jon...@us...> - 2006-07-05 22:50:27
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/modules In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv7415/modules/mx_pafiledb/pafiledb/modules Modified Files: pa_category.php pa_download.php pa_email.php pa_file.php pa_license.php pa_main.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: massive update Index: pa_viewall.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_viewall.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** pa_viewall.php 17 Jun 2006 20:13:22 -0000 1.15 --- pa_viewall.php 5 Jul 2006 22:50:22 -0000 1.16 *************** *** 98,102 **** 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ), 'DOWNLOAD' => $pafiledb_config['module_name'] --- 98,102 ---- 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( $this->this_mxurl() ), 'DOWNLOAD' => $pafiledb_config['module_name'] Index: pa_download.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_download.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** pa_download.php 17 Jun 2006 20:13:22 -0000 1.16 --- pa_download.php 5 Jul 2006 22:50:22 -0000 1.17 *************** *** 66,70 **** if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".pa_this_mxurl("action=download&file_id=" . $file_id), true)); } --- 66,70 ---- if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".$this->this_mxurl("action=download&file_id=" . $file_id), true)); } *************** *** 143,147 **** 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD_HOME' => append_sid( pa_this_mxurl() ), 'FILE_NAME' => $file_data['file_name'], --- 143,147 ---- 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD_HOME' => append_sid( $this->this_mxurl() ), 'FILE_NAME' => $file_data['file_name'], *************** *** 150,154 **** $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'] )); --- 150,154 ---- $pafiledb_template->assign_block_vars( 'mirror_row', array( ! 'U_DOWNLOAD' => append_sid( $$this->this_mxurl( 'action=download&file_id=' . $file_id . '&mirror_id=-1' ) ), 'MIRROR_LOCATION' => $board_config['sitename'] )); *************** *** 157,161 **** { $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'] )); --- 157,161 ---- { $pafiledb_template->assign_block_vars( 'mirror_row', array( ! 'U_DOWNLOAD' => append_sid( $this->this_mxurl( 'action=download&file_id=' . $file_id . '&mirror_id=' . $mir_id ) ), 'MIRROR_LOCATION' => $mirror_data['mirror_location'] )); *************** *** 205,209 **** // Update downloader Info for the given file // ========================================================================= ! $pafiledb_user->update_downloader_info( $file_id ); if ( !empty( $file_url ) ) --- 205,209 ---- // Update downloader Info for the given file // ========================================================================= ! $pafiledb_user->update_info( $file_id ); if ( !empty( $file_url ) ) Index: pa_post_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_post_comment.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** pa_post_comment.php 29 Jun 2006 13:14:48 -0000 1.18 --- pa_post_comment.php 5 Jul 2006 22:50:22 -0000 1.19 *************** *** 70,74 **** if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".pa_this_mxurl("action=post_comment&item_id=" . $item_id), true)); } --- 70,74 ---- if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".$this->this_mxurl("action=post_comment&item_id=" . $item_id), true)); } *************** *** 133,137 **** // ! // Instantiate the mx_text class // include_once($mx_root_path . 'includes/mx_functions_tools.'.$phpEx); --- 133,137 ---- // ! // Instantiate the mx_text and mx_text_formatting classes // include_once($mx_root_path . 'includes/mx_functions_tools.'.$phpEx); *************** *** 139,142 **** --- 139,144 ---- $mx_text->init($html_on, $bbcode_on, $smilies_on); + $mx_text_formatting = new mx_text_formatting(); + // // Allow all html tags *************** *** 182,186 **** $this->_pafiledb(); ! $message = $lang['Comment_deleted'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( pa_this_mxurl( "action=file&file_id=$item_id" ) ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); } --- 184,188 ---- $this->_pafiledb(); ! $message = $lang['Comment_deleted'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( $this->this_mxurl( "action=file&file_id=$item_id" ) ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); } *************** *** 199,214 **** $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>' ); mx_message_die( GENERAL_MESSAGE, $message ); } - // ======================================================= - // Main - // ======================================================= - // - // Instatiate text tools - // - $mx_pa_text_tools = new mx_pa_text_tools(); - // // Generate smilies listing for page output --- 201,208 ---- $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( $this->this_mxurl( 'action=file&file_id=' . $item_id ) ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); } // // Generate smilies listing for page output *************** *** 232,236 **** if (!$pa_config['allow_images'] || !$pa_config['allow_links']) { ! $preview_text = $mx_pa_text_tools->remove_images_links( $preview_text, $pa_config['allow_images'], $pa_config['no_image_message'], $pa_config['allow_links'], $pa_config['no_link_message'] ); } --- 226,230 ---- if (!$pa_config['allow_images'] || !$pa_config['allow_links']) { ! $preview_text = $mx_text_formatting->remove_images_links( $preview_text, $pa_config['allow_images'], $pa_config['no_image_message'], $pa_config['allow_links'], $pa_config['no_link_message'] ); } *************** *** 355,362 **** '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&item_id=' . $item_id ) ), ! 'S_POST_ACTION' => append_sid( pa_this_mxurl() ), 'S_HIDDEN_FORM_FIELDS' => $hidden_form_fields ) ); --- 349,356 ---- 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD_HOME' => append_sid( $this->this_mxurl() ), ! 'U_FILE_NAME' => append_sid( $this->this_mxurl( 'action=file&item_id=' . $item_id ) ), ! 'S_POST_ACTION' => append_sid( $this->this_mxurl() ), 'S_HIDDEN_FORM_FIELDS' => $hidden_form_fields ) ); Index: pa_user_upload.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_user_upload.php,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** pa_user_upload.php 17 Jun 2006 20:13:22 -0000 1.19 --- pa_user_upload.php 5 Jul 2006 22:50:22 -0000 1.20 *************** *** 64,68 **** if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".pa_this_mxurl("action=user_upload&cat_id=" . $cat_id), true)); } --- 64,68 ---- if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".$this->this_mxurl("action=user_upload&cat_id=" . $cat_id), true)); } *************** *** 77,81 **** if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".pa_this_mxurl("action=user_upload"), true)); } --- 77,81 ---- if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".$this->this_mxurl("action=user_upload"), true)); } *************** *** 134,138 **** $this->delete_files( $file_id ); $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 ); } --- 134,138 ---- $this->delete_files( $file_id ); $this->_pafiledb(); ! $message = $lang['Filedeleted'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( $this->this_mxurl( "" ) ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); } *************** *** 156,164 **** 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 { ! $message = $lang['Fileadded_not_validated'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( pa_this_mxurl( "action=category&cat_id=" . $cat_id ) ) . '">', '</a>' ); } --- 156,164 ---- 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( $this->this_mxurl( "action=file&file_id=" . $file_id ) ) . '">', '</a>' ); } else { ! $message = $lang['Fileadded_not_validated'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( $this->this_mxurl( "action=category&cat_id=" . $cat_id ) ) . '">', '</a>' ); } *************** *** 171,175 **** $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(); --- 171,175 ---- $custom_field->file_update_data( $file_id ); ! $message = $lang['Fileedited'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( $this->this_mxurl( "action=file&file_id=" . $file_id ) ) . '">', '</a>' ); $this->_pafiledb(); *************** *** 278,282 **** $pafiledb_template->assign_vars( array( ! 'S_ADD_FILE_ACTION' => append_sid( pa_this_mxurl() ), 'DOWNLOAD' => $pafiledb_config['module_name'], --- 278,282 ---- $pafiledb_template->assign_vars( array( ! 'S_ADD_FILE_ACTION' => append_sid( $this->this_mxurl() ), 'DOWNLOAD' => $pafiledb_config['module_name'], *************** *** 350,354 **** 'MODE' => $mode, 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ) )); --- 350,354 ---- 'MODE' => $mode, 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( $this->this_mxurl() ) )); Index: pa_file.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_file.php,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** pa_file.php 17 Jun 2006 20:13:22 -0000 1.19 --- pa_file.php 5 Jul 2006 22:50:22 -0000 1.20 *************** *** 95,99 **** if ( !$userdata['session_logged_in'] ) { ! mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".pa_this_mxurl("action=file&file_id=" . $file_id), true)); } */ --- 95,99 ---- if ( !$userdata['session_logged_in'] ) { ! mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".$this->this_mxurl("action=file&file_id=" . $file_id), true)); } */ *************** *** 106,110 **** 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD_HOME' => append_sid( pa_this_mxurl() ), 'FILE_NAME' => $file_data['file_name'], --- 106,110 ---- 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD_HOME' => append_sid( $this->this_mxurl() ), 'FILE_NAME' => $file_data['file_name'], *************** *** 122,126 **** $file_screenshot_url = trim( $file_data['file_ssurl'] ); $file_website_url = trim( $file_data['file_docsurl'] ); ! $file_download_link = ( $file_data['file_license'] > 0 ) ? append_sid( pa_this_mxurl( 'action=license&license_id=' . $file_data['file_license'] . '&file_id=' . $file_id ) ) : append_sid( pa_this_mxurl( 'action=download&file_id=' . $file_id, 1 ) ); $file_size = $pafiledb_functions->get_file_size( $file_id, $file_data ); --- 122,126 ---- $file_screenshot_url = trim( $file_data['file_ssurl'] ); $file_website_url = trim( $file_data['file_docsurl'] ); ! $file_download_link = ( $file_data['file_license'] > 0 ) ? append_sid( $this->this_mxurl( 'action=license&license_id=' . $file_data['file_license'] . '&file_id=' . $file_id ) ) : append_sid( $this->this_mxurl( 'action=download&file_id=' . $file_id, 1 ) ); $file_size = $pafiledb_functions->get_file_size( $file_id, $file_data ); *************** *** 177,184 **** 'U_DOWNLOAD' => $file_download_link, ! 'U_DELETE' => append_sid( pa_this_mxurl( 'action=user_upload&do=delete&file_id=' . $file_id ) ), ! '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 ) ) )); --- 177,184 ---- 'U_DOWNLOAD' => $file_download_link, ! 'U_DELETE' => append_sid( $this->this_mxurl( 'action=user_upload&do=delete&file_id=' . $file_id ) ), ! 'U_EDIT' => append_sid( $this->this_mxurl( 'action=user_upload&file_id=' . $file_id ) ), ! 'U_EMAIL' => append_sid( $this->this_mxurl( 'action=email&file_id=' . $file_id ) ) )); *************** *** 211,215 **** // 'RATE_IMG' => $rate_img, ! 'U_RATE' => append_sid( pa_this_mxurl( 'action=rate&file_id=' . $file_id ) ), )); } --- 211,215 ---- // 'RATE_IMG' => $rate_img, ! 'U_RATE' => append_sid( $this->this_mxurl( 'action=rate&file_id=' . $file_id ) ), )); } Index: pa_license.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_license.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** pa_license.php 17 Jun 2006 20:13:22 -0000 1.16 --- pa_license.php 5 Jul 2006 22:50:22 -0000 1.17 *************** *** 69,73 **** if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . 'login.'.$phpEx.'?redirect='.pa_this_mxurl('action=license&license_id=' . $license_id . '&file_id=' . $file_id), true)); } --- 69,73 ---- if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . 'login.'.$phpEx.'?redirect='.$this->this_mxurl('action=license&license_id=' . $license_id . '&file_id=' . $file_id), true)); } *************** *** 100,106 **** '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 ) ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl( 'action=download&file_id=' . $file_id, 1 ) ), 'LE_NAME' => $license['license_name'], --- 100,106 ---- 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD_HOME' => append_sid( $this->this_mxurl() ), ! 'U_FILE_NAME' => append_sid( $this->this_mxurl( 'action=file&file_id=' . $file_id ) ), ! 'U_DOWNLOAD' => append_sid( $this->this_mxurl( 'action=download&file_id=' . $file_id, 1 ) ), 'LE_NAME' => $license['license_name'], Index: pa_mcp.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_mcp.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** pa_mcp.php 17 Jun 2006 20:13:22 -0000 1.13 --- pa_mcp.php 5 Jul 2006 22:50:22 -0000 1.14 *************** *** 180,185 **** '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, --- 180,185 ---- 'L_INDEX' => "<<", 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD_HOME' => append_sid( $this->this_mxurl() ), ! 'U_DOWNLOAD' => append_sid( $this->this_mxurl() ), 'DOWNLOAD' => $pafiledb_config['module_name'], 'L_MCP_TITLE' => $l_title, *************** *** 188,192 **** 'S_HIDDEN_FIELDS' => $s_hidden_fields, ! 'S_FILE_ACTION' => append_sid( pa_this_mxurl( "action=mcp" ) ) )); --- 188,192 ---- 'S_HIDDEN_FIELDS' => $s_hidden_fields, ! 'S_FILE_ACTION' => append_sid( $this->this_mxurl( "action=mcp" ) ) )); *************** *** 378,382 **** 'L_NO_FILES' => $lang['No_file'], ! 'PAGINATION' => generate_pagination( append_sid( pa_this_mxurl( "action=mcp&mode=$mode&sort_method=$sort_method&sort_order=$sort_order&cat_id=$cat_id" ) ), $total_files, $pafiledb_config['pagination'], $start ), 'PAGE_NUMBER' => sprintf( $lang['Page_of'], ( floor( $start / $pafiledb_config['pagination'] ) + 1 ), ceil( $total_files / $pafiledb_config['pagination'] ) ), --- 378,382 ---- 'L_NO_FILES' => $lang['No_file'], ! 'PAGINATION' => generate_pagination( append_sid( $this->this_mxurl( "action=mcp&mode=$mode&sort_method=$sort_method&sort_order=$sort_order&cat_id=$cat_id" ) ), $total_files, $pafiledb_config['pagination'], $start ), 'PAGE_NUMBER' => sprintf( $lang['Page_of'], ( floor( $start / $pafiledb_config['pagination'] ) + 1 ), ceil( $total_files / $pafiledb_config['pagination'] ) ), *************** *** 419,425 **** 'FILE_NUMBER' => $i++, 'FILE_ID' => $file_data['file_id'], ! 'U_FILE_EDIT' => append_sid( pa_this_mxurl( "action=user_upload&mode=edit&file_id={$file_data['file_id']}" ) ), ! 'U_FILE_DELETE' => append_sid( pa_this_mxurl( "action=user_upload&do=delete&file_id={$file_data['file_id']}" ) ), ! 'U_FILE_APPROVE' => append_sid( pa_this_mxurl( "action=mcp&mode=$approve_mode&cat_id=$cat_id&file_id={$file_data['file_id']}" ) ), 'L_APPROVE' => ( $file_data['file_approved'] ) ? $lang['Unapprove'] : $lang['Approve'] ) ); --- 419,425 ---- 'FILE_NUMBER' => $i++, 'FILE_ID' => $file_data['file_id'], ! 'U_FILE_EDIT' => append_sid( $this->this_mxurl( "action=user_upload&mode=edit&file_id={$file_data['file_id']}" ) ), ! 'U_FILE_DELETE' => append_sid( $this->this_mxurl( "action=user_upload&do=delete&file_id={$file_data['file_id']}" ) ), ! 'U_FILE_APPROVE' => append_sid( $this->this_mxurl( "action=mcp&mode=$approve_mode&cat_id=$cat_id&file_id={$file_data['file_id']}" ) ), 'L_APPROVE' => ( $file_data['file_approved'] ) ? $lang['Unapprove'] : $lang['Approve'] ) ); Index: pa_category.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_category.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** pa_category.php 4 Jul 2006 22:35:12 -0000 1.15 --- pa_category.php 5 Jul 2006 22:50:22 -0000 1.16 *************** *** 109,113 **** if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=". pa_this_mxurl("action=category&cat_id=" . $cat_id, true), true)); } --- 109,113 ---- if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=". $this->this_mxurl("action=category&cat_id=" . $cat_id, true), true)); } *************** *** 125,129 **** 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ), 'DOWNLOAD' => $pafiledb_config['module_name'] ) --- 125,129 ---- 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( $this->this_mxurl() ), 'DOWNLOAD' => $pafiledb_config['module_name'] ) Index: pa_email.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_email.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** pa_email.php 7 Jun 2006 20:29:52 -0000 1.14 --- pa_email.php 5 Jul 2006 22:50:22 -0000 1.15 *************** *** 60,64 **** if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".pa_this_mxurl("action=email&file_id=" . $file_id), true)); } --- 60,64 ---- if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".$this->this_mxurl("action=email&file_id=" . $file_id), true)); } *************** *** 171,175 **** $emailer->reset(); ! $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 ); } --- 171,175 ---- $emailer->reset(); ! $message = $lang['Econf'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( $this->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 ); } *************** *** 183,187 **** $pafiledb_template->assign_vars( array( 'USER_LOGGED' => ( !$userdata['session_logged_in'] ) ? true : false, ! 'S_EMAIL_ACTION' => append_sid( pa_this_mxurl() ), 'S_HIDDEN_FIELDS' => '<input type="hidden" name="sid" value="' . $userdata['session_id'] . '" />', --- 183,187 ---- $pafiledb_template->assign_vars( array( 'USER_LOGGED' => ( !$userdata['session_logged_in'] ) ? true : false, ! 'S_EMAIL_ACTION' => append_sid( $this->this_mxurl() ), 'S_HIDDEN_FIELDS' => '<input type="hidden" name="sid" value="' . $userdata['session_id'] . '" />', *************** *** 202,207 **** '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'], --- 202,207 ---- 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD_HOME' => append_sid( $this->this_mxurl() ), ! 'U_FILE_NAME' => append_sid( $this->this_mxurl( 'action=file&file_id=' . $file_id ) ), 'FILE_NAME' => $file_data['file_name'], Index: pa_main.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_main.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** pa_main.php 4 Jul 2006 18:02:12 -0000 1.15 --- pa_main.php 5 Jul 2006 22:50:22 -0000 1.16 *************** *** 32,36 **** 'L_INDEX' => "<<", 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ), 'DOWNLOAD' => $pafiledb_config['module_name'], --- 32,36 ---- 'L_INDEX' => "<<", 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( $this->this_mxurl() ), 'DOWNLOAD' => $pafiledb_config['module_name'], Index: pa_search.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_search.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** pa_search.php 17 Jun 2006 20:13:22 -0000 1.17 --- pa_search.php 5 Jul 2006 22:50:22 -0000 1.18 *************** *** 35,39 **** if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".pa_this_mxurl("action=stats"), true)); } --- 35,39 ---- if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".$this->this_mxurl("action=stats"), true)); } *************** *** 522,527 **** for( $i = 0; $i < count( $searchset ); $i++ ) { ! $cat_url = append_sid( pa_this_mxurl( 'action=category&cat_id=' . $searchset[$i]['cat_id'] ) ); ! $file_url = append_sid( pa_this_mxurl( 'action=file&file_id=' . $searchset[$i]['file_id'] ) ); // =================================================== // Format the date for the given file --- 522,527 ---- for( $i = 0; $i < count( $searchset ); $i++ ) { ! $cat_url = append_sid( $this->this_mxurl( 'action=category&cat_id=' . $searchset[$i]['cat_id'] ) ); ! $file_url = append_sid( $this->this_mxurl( 'action=file&file_id=' . $searchset[$i]['file_id'] ) ); // =================================================== // Format the date for the given file *************** *** 579,583 **** ); } ! $base_url = append_sid( pa_this_mxurl( "action=search&search_id=$search_id" ) ); $pafiledb_template->assign_vars( array( --- 579,583 ---- ); } ! $base_url = append_sid( $this->this_mxurl( "action=search&search_id=$search_id" ) ); $pafiledb_template->assign_vars( array( *************** *** 587,591 **** 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ), 'L_INDEX' => "<<", --- 587,591 ---- 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( $this->this_mxurl() ), 'L_INDEX' => "<<", *************** *** 612,616 **** $pafiledb_template->assign_vars( array( ! 'S_SEARCH_ACTION' => append_sid( pa_this_mxurl() ), 'S_CAT_MENU' => $dropmenu, --- 612,616 ---- $pafiledb_template->assign_vars( array( ! 'S_SEARCH_ACTION' => append_sid( $this->this_mxurl() ), 'S_CAT_MENU' => $dropmenu, *************** *** 618,622 **** 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ), 'L_YES' => $lang['Yes'], --- 618,622 ---- 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( $this->this_mxurl() ), 'L_YES' => $lang['Yes'], Index: pa_quickdl.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_quickdl.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** pa_quickdl.php 27 Jun 2006 21:38:43 -0000 1.8 --- pa_quickdl.php 5 Jul 2006 22:50:22 -0000 1.9 *************** *** 141,145 **** if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".pa_this_mxurl("actionqdl=category&cat_id=" . $cat_id), true)); } --- 141,145 ---- if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".$this->this_mxurl("actionqdl=category&cat_id=" . $cat_id), true)); } *************** *** 164,168 **** $pafiledb_template->assign_vars( array( ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl( 'actionqdl=quickdl&cat_id=' . $pafiledb_quickdl['pa_quick_cat'] . $map_xtra ) ), 'DOWNLOAD' => $quickdl['cat_name'], 'BACK' => $quickdl_back --- 164,168 ---- $pafiledb_template->assign_vars( array( ! 'U_DOWNLOAD' => append_sid( $this->this_mxurl( 'actionqdl=quickdl&cat_id=' . $pafiledb_quickdl['pa_quick_cat'] . $map_xtra ) ), 'DOWNLOAD' => $quickdl['cat_name'], 'BACK' => $quickdl_back Index: pa_rate.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_rate.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** pa_rate.php 4 Jul 2006 22:35:12 -0000 1.15 --- pa_rate.php 5 Jul 2006 22:50:22 -0000 1.16 *************** *** 63,67 **** if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".pa_this_mxurl("action=rate&file_id=" . $file_id), true)); } --- 63,67 ---- if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".$this->this_mxurl("action=rate&file_id=" . $file_id), true)); } *************** *** 75,80 **** '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'], --- 75,80 ---- 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD_HOME' => append_sid( $this->this_mxurl() ), ! 'U_FILE_NAME' => append_sid( $this->this_mxurl( 'action=file&file_id=' . $file_id ) ), 'FILE_NAME' => $file_data['file_name'], *************** *** 93,97 **** } ! $pafiledb_user->update_voter_info( $file_id, $rating ); $rate_info = $pafiledb_functions->get_rating( $file_id ); --- 93,97 ---- } ! $this->update_voter_info( $file_id, $rating ); $rate_info = $pafiledb_functions->get_rating( $file_id ); *************** *** 99,103 **** $result_msg = str_replace( "{newrating}", $rate_info, $result_msg ); ! $message = $result_msg . '<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 ); } --- 99,103 ---- $result_msg = str_replace( "{newrating}", $rate_info, $result_msg ); ! $message = $result_msg . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( $this->this_mxurl( 'action=file&file_id=' . $file_id ) ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); } *************** *** 107,111 **** $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'], --- 107,111 ---- $pafiledb_template->assign_vars( array( ! 'S_RATE_ACTION' => append_sid( $this->this_mxurl( 'action=rate&file_id=' . $file_id ) ), 'L_RATE' => $lang['Rate'], 'L_RERROR' => $lang['Rerror'], Index: pa_toplist.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_toplist.php,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** pa_toplist.php 27 Jun 2006 21:38:43 -0000 1.19 --- pa_toplist.php 5 Jul 2006 22:50:22 -0000 1.20 *************** *** 65,72 **** 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ), ! 'U_NEWEST_FILE' => append_sid( pa_this_mxurl( 'action=toplist&mode=newest' ) ), ! 'U_MOST_POPULAR' => append_sid( pa_this_mxurl( 'action=toplist&mode=downloads' ) ), ! 'U_TOP_RATED' => append_sid( pa_this_mxurl( 'action=toplist&mode=rating' ) ), 'L_CURRENT_TOPLIST' => $l_current_toplist, --- 65,72 ---- 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( $this->this_mxurl() ), ! 'U_NEWEST_FILE' => append_sid( $this->this_mxurl( 'action=toplist&mode=newest' ) ), ! 'U_MOST_POPULAR' => append_sid( $this->this_mxurl( 'action=toplist&mode=downloads' ) ), ! 'U_TOP_RATED' => append_sid( $this->this_mxurl( 'action=toplist&mode=rating' ) ), 'L_CURRENT_TOPLIST' => $l_current_toplist, *************** *** 142,148 **** 'L_NEW_FILES' => sprintf( $lang['New_Files'], $days ), ! 'U_ONE_WEEK' => append_sid( pa_this_mxurl( 'action=toplist&mode=newest&days=7' ) ), ! 'U_TWO_WEEK' => append_sid( pa_this_mxurl( 'action=toplist&mode=newest&days=14' ) ), ! 'U_30_DAYS' => append_sid( pa_this_mxurl( 'action=toplist&mode=newest&days=30' ) ) ) ); --- 142,148 ---- 'L_NEW_FILES' => sprintf( $lang['New_Files'], $days ), ! 'U_ONE_WEEK' => append_sid( $this->this_mxurl( 'action=toplist&mode=newest&days=7' ) ), ! 'U_TWO_WEEK' => append_sid( $this->this_mxurl( 'action=toplist&mode=newest&days=14' ) ), ! 'U_30_DAYS' => append_sid( $this->this_mxurl( 'action=toplist&mode=newest&days=30' ) ) ) ); *************** *** 164,168 **** $pafiledb_template->assign_block_vars( 'files_date', array( ! 'U_DATES' => append_sid( pa_this_mxurl( 'action=toplist&mode=newest&days=7&selected_date=' . $day_time ) ), 'DATES' => date( 'F d, Y', $day_time ), 'TOTAL_DOWNLOADS' => $file_num ) --- 164,168 ---- $pafiledb_template->assign_block_vars( 'files_date', array( ! 'U_DATES' => append_sid( $this->this_mxurl( 'action=toplist&mode=newest&days=7&selected_date=' . $day_time ) ), 'DATES' => date( 'F d, Y', $day_time ), 'TOTAL_DOWNLOADS' => $file_num ) *************** *** 258,263 **** for ( $i = 0; $i < count( $file_rowset ); $i++ ) { ! $cat_url = append_sid( pa_this_mxurl( 'action=category&cat_id=' . $file_rowset[$i]['file_catid'] ) ); ! $file_url = append_sid( pa_this_mxurl( 'action=file&file_id=' . $file_rowset[$i]['file_id'] ) ); // =================================================== // Format the date for the given file --- 258,263 ---- for ( $i = 0; $i < count( $file_rowset ); $i++ ) { ! $cat_url = append_sid( $this->this_mxurl( 'action=category&cat_id=' . $file_rowset[$i]['file_catid'] ) ); ! $file_url = append_sid( $this->this_mxurl( 'action=file&file_id=' . $file_rowset[$i]['file_id'] ) ); // =================================================== // Format the date for the given file *************** *** 387,397 **** 'L_CATEGORY' => $lang['Category'], ! 'U_TOP_10' => append_sid( pa_this_mxurl( 'action=toplist&mode=' . $mode . '&most_type=num&most_num=10' ) ), ! 'U_TOP_25' => append_sid( pa_this_mxurl( 'action=toplist&mode=' . $mode . '&most_type=num&most_num=25' ) ), ! 'U_TOP_50' => append_sid( pa_this_mxurl( 'action=toplist&mode=' . $mode . '&most_type=num&most_num=50' ) ), ! 'U_TOP_PER_1' => append_sid( pa_this_mxurl( 'action=toplist&mode=' . $mode . '&most_type=per&most_num=1' ) ), ! 'U_TOP_PER_5' => append_sid( pa_this_mxurl( 'action=toplist&mode=' . $mode . '&most_type=per&most_num=5' ) ), ! 'U_TOP_PER_10' => append_sid( pa_this_mxurl( 'action=toplist&mode=' . $mode . '&most_type=per&most_num=10' ) ) ) ); --- 387,397 ---- 'L_CATEGORY' => $lang['Category'], ! 'U_TOP_10' => append_sid( $this->this_mxurl( 'action=toplist&mode=' . $mode . '&most_type=num&most_num=10' ) ), ! 'U_TOP_25' => append_sid( $this->this_mxurl( 'action=toplist&mode=' . $mode . '&most_type=num&most_num=25' ) ), ! 'U_TOP_50' => append_sid( $this->this_mxurl( 'action=toplist&mode=' . $mode . '&most_type=num&most_num=50' ) ), ! 'U_TOP_PER_1' => append_sid( $this->this_mxurl( 'action=toplist&mode=' . $mode . '&most_type=per&most_num=1' ) ), ! 'U_TOP_PER_5' => append_sid( $this->this_mxurl( 'action=toplist&mode=' . $mode . '&most_type=per&most_num=5' ) ), ! 'U_TOP_PER_10' => append_sid( $this->this_mxurl( 'action=toplist&mode=' . $mode . '&most_type=per&most_num=10' ) ) ) ); *************** *** 458,463 **** } ! $cat_url = append_sid( pa_this_mxurl( 'action=category&cat_id=' . $searchset[$i]['cat_id'] ) ); ! $file_url = append_sid( pa_this_mxurl( 'action=file&file_id=' . $searchset[$i]['file_id'] ) ); // =================================================== // Format the date for the given file --- 458,463 ---- } ! $cat_url = append_sid( $this->this_mxurl( 'action=category&cat_id=' . $searchset[$i]['cat_id'] ) ); ! $file_url = append_sid( $this->this_mxurl( 'action=file&file_id=' . $searchset[$i]['file_id'] ) ); // =================================================== // Format the date for the given file Index: pa_stats.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_stats.php,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** pa_stats.php 17 Jun 2006 20:13:22 -0000 1.19 --- pa_stats.php 5 Jul 2006 22:50:22 -0000 1.20 *************** *** 35,39 **** if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".pa_this_mxurl("action=stats"), true)); } --- 35,39 ---- if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".$this->this_mxurl("action=stats"), true)); } *************** *** 167,186 **** $lang['Stats_text'] = str_replace( "{total_categories}", $num['cats'], $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{total_downloads}", $totaldls, $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_newest_file}", append_sid( pa_this_mxurl( "action=file&file_id=" . $newest['file_id'] ) ), $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{newest_file}", $newest['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_oldest_file}", append_sid( pa_this_mxurl( "action=file&file_id=" . $oldest['file_id'] ) ), $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{oldest_file}", $oldest['file_name'], $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{average}", $avg, $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_popular}", append_sid( pa_this_mxurl( "action=file&file_id=" . $popular['file_id'] ) ), $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{popular}", $popular['file_name'], $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{most}", round( $popular['rating'], 2 ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_lpopular}", append_sid( pa_this_mxurl( "action=file&file_id=" . $lpopular['file_id'] ) ), $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{lpopular}", $lpopular['file_name'], $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{least}", round( $lpopular['rating'], 2 ), $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{avg_dls}", $avgdls, $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_most_dl}", append_sid( pa_this_mxurl( "action=file&file_id=" . $mostdl['file_id'] ) ), $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{most_dl}", $mostdl['file_name'], $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{most_no}", $mostdl['file_dls'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_least_dl}", append_sid( pa_this_mxurl( "action=file&file_id=" . $leastdl['file_id'] ) ), $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{least_dl}", $leastdl['file_name'], $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{least_no}", $leastdl['file_dls'], $lang['Stats_text'] ); --- 167,186 ---- $lang['Stats_text'] = str_replace( "{total_categories}", $num['cats'], $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{total_downloads}", $totaldls, $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_newest_file}", append_sid( $this->this_mxurl( "action=file&file_id=" . $newest['file_id'] ) ), $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{newest_file}", $newest['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_oldest_file}", append_sid( $this->this_mxurl( "action=file&file_id=" . $oldest['file_id'] ) ), $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{oldest_file}", $oldest['file_name'], $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{average}", $avg, $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_popular}", append_sid( $this->this_mxurl( "action=file&file_id=" . $popular['file_id'] ) ), $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{popular}", $popular['file_name'], $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{most}", round( $popular['rating'], 2 ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_lpopular}", append_sid( $this->this_mxurl( "action=file&file_id=" . $lpopular['file_id'] ) ), $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{lpopular}", $lpopular['file_name'], $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{least}", round( $lpopular['rating'], 2 ), $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{avg_dls}", $avgdls, $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_most_dl}", append_sid( $this->this_mxurl( "action=file&file_id=" . $mostdl['file_id'] ) ), $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{most_dl}", $mostdl['file_name'], $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{most_no}", $mostdl['file_dls'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_least_dl}", append_sid( $this->this_mxurl( "action=file&file_id=" . $leastdl['file_id'] ) ), $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{least_dl}", $leastdl['file_name'], $lang['Stats_text'] ); $lang['Stats_text'] = str_replace( "{least_no}", $leastdl['file_dls'], $lang['Stats_text'] ); *************** *** 303,307 **** $pafiledb_template->assign_vars( array( ! 'S_ACTION_CHART' => append_sid( pa_this_mxurl( 'action=stats' ) ), 'L_STATISTICS' => $lang['Statistics'], --- 303,307 ---- $pafiledb_template->assign_vars( array( ! 'S_ACTION_CHART' => append_sid( $this->this_mxurl( 'action=stats' ) ), 'L_STATISTICS' => $lang['Statistics'], *************** *** 314,318 **** 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ), 'U_VOTE_LCAP' => $images['mx_vote_lcap'], --- 314,318 ---- 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( $this->this_mxurl() ), 'U_VOTE_LCAP' => $images['mx_vote_lcap'], |