|
From: Jon O. <jon...@us...> - 2006-07-04 22:35:18
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/modules In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv13662/modules/mx_pafiledb/pafiledb/modules Modified Files: pa_category.php pa_rate.php Log Message: fixes Index: pa_category.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_category.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** pa_category.php 4 Jul 2006 18:02:12 -0000 1.14 --- pa_category.php 4 Jul 2006 22:35:12 -0000 1.15 *************** *** 163,166 **** } } - ?> \ No newline at end of file --- 163,165 ---- Index: pa_rate.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_rate.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** pa_rate.php 17 Jun 2006 20:13:22 -0000 1.14 --- pa_rate.php 4 Jul 2006 22:35:12 -0000 1.15 *************** *** 28,32 **** { global $pafiledb_template, $lang, $board_config, $phpEx, $pafiledb_config, $db, $userdata; ! global $_REQUEST, $_POST, $phpbb_root_path, $pafiledb_user, $pafiledb_functions; global $mx_root_path, $module_root_path, $is_block, $phpEx, $mx_request_vars; --- 28,32 ---- { global $pafiledb_template, $lang, $board_config, $phpEx, $pafiledb_config, $db, $userdata; ! global $phpbb_root_path, $pafiledb_user, $pafiledb_functions; global $mx_root_path, $module_root_path, $is_block, $phpEx, $mx_request_vars; *************** *** 70,109 **** } - $ipaddy = getenv ( "REMOTE_ADDR" ); - - if ( $kb_config['votes_check_ip'] == 1 ) - { - $sql = "SELECT * FROM " . KB_VOTES_TABLE . " WHERE votes_ip = '" . $ipaddy . "' AND votes_file = '" . $article_id . "'"; - if ( !( $result = $db->sql_query( $sql ) ) ) - { - mx_message_die( GENERAL_ERROR, 'Couldnt Query rate ip', '', __LINE__, __FILE__, $sql ); - } - - if ( $db->sql_numrows( $result ) > 0 ) - { - $template->assign_vars( array( "META" => '<meta http-equiv="refresh" content="3;url=' . append_sid( this_kb_mxurl( "action=url&k=" . $article_id ) ) . '">' ) - ); - $message = $lang['Rerror'] . "<br /><br />" . sprintf( $lang['Click_return_rate'], "<a href=\"" . append_sid( this_kb_mxurl( "mode=article&k=$article_id" ) ) . "\">", "</a>" ); - mx_message_die( GENERAL_MESSAGE, $message ); - } - } - - if ( $kb_config['votes_check_userid'] == 1 ) - { - $sql = "SELECT * FROM " . KB_VOTES_TABLE . " WHERE votes_userid = '" . $userdata['user_id'] . "' AND votes_file = '" . $article_id . "'"; - if ( !( $result = $db->sql_query( $sql ) ) ) - { - mx_message_die( GENERAL_ERROR, 'Couldnt Query rate ip', '', __LINE__, __FILE__, $sql ); - } - - if ( $db->sql_numrows( $result ) > 0 ) - { - $template->assign_vars( array( "META" => '<meta http-equiv="refresh" content="3;url=' . append_sid( this_kb_mxurl( "action=url&k=" . $article_id ) ) . '">' ) - ); - $message = $lang['Rerror'] . "<br /><br />" . sprintf( $lang['Click_return_rate'], "<a href=\"" . append_sid( this_kb_mxurl( "mode=article&k=$article_id" ) ) . "\">", "</a>" ); - mx_message_die( GENERAL_MESSAGE, $message ); - } - } - $pafiledb_template->assign_vars( array( 'L_INDEX' => "<<", --- 70,73 ---- *************** *** 135,139 **** $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>' ) . '<br /><br />' . sprintf( $lang['Click_return_forum'], '<a href="' . append_sid( $mx_root_path . 'index.' . $phpEx ) . '">', '</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( pa_this_mxurl( 'action=file&file_id=' . $file_id ) ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); } |