|
From: Jon O. <jon...@us...> - 2006-06-17 20:50:18
|
Update of /cvsroot/mxbb/mx_quotations In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv6753/modules/mx_quotations Modified Files: mx_last_quotations.php mx_quotations.php Log Message: security Index: mx_last_quotations.php =================================================================== RCS file: /cvsroot/mxbb/mx_quotations/mx_last_quotations.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** mx_last_quotations.php 5 Apr 2006 23:04:07 -0000 1.8 --- mx_last_quotations.php 17 Jun 2006 20:50:15 -0000 1.9 *************** *** 8,12 **** * */ ! // // Set $limit to the number of quotes you want to display --- 8,17 ---- * */ ! ! if( !defined('IN_PORTAL') || !is_object($mx_block)) ! { ! die("Hacking attempt"); ! } ! // // Set $limit to the number of quotes you want to display *************** *** 54,58 **** $author = array(); ! $template->set_filenames( array( "mx_last_quotations" => "mx_last_quotations.tpl" ) ); --- 59,63 ---- $author = array(); ! $template->set_filenames( array( "mx_last_quotations" => "mx_last_quotations.tpl" ) ); *************** *** 77,82 **** 'AUTHOR' => $author, 'POSTER' => $poster, ! 'POST_TIME' => $post_time ! ) ); } --- 82,87 ---- 'AUTHOR' => $author, 'POSTER' => $poster, ! 'POST_TIME' => $post_time ! ) ); } *************** *** 85,89 **** { $no_quotes_msg = ( !empty( $lang['No_quotes'] ) ? $lang['No_quotes'] : 'Sorry No Quotes' ); ! $template->assign_vars( array( 'L_NO_QUOTES' => $no_quotes_msg ) ); --- 90,94 ---- { $no_quotes_msg = ( !empty( $lang['No_quotes'] ) ? $lang['No_quotes'] : 'Sorry No Quotes' ); ! $template->assign_vars( array( 'L_NO_QUOTES' => $no_quotes_msg ) ); *************** *** 97,101 **** 'BLOCK_SIZE' => ( !empty( $block_size ) ? $block_size : '100%' ), 'L_TITLE' => ( !empty( $lang[$title] ) ? $lang[$title] : $title ), ! 'L_POSTED_BY' => ( !empty( $lang['Posted_by'] ) ? $lang['Posted_by'] : 'Posted by:' ) ) ); --- 102,106 ---- 'BLOCK_SIZE' => ( !empty( $block_size ) ? $block_size : '100%' ), 'L_TITLE' => ( !empty( $lang[$title] ) ? $lang[$title] : $title ), ! 'L_POSTED_BY' => ( !empty( $lang['Posted_by'] ) ? $lang['Posted_by'] : 'Posted by:' ) ) ); Index: mx_quotations.php =================================================================== RCS file: /cvsroot/mxbb/mx_quotations/mx_quotations.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** mx_quotations.php 2 May 2006 23:28:43 -0000 1.12 --- mx_quotations.php 17 Jun 2006 20:50:15 -0000 1.13 *************** *** 30,33 **** --- 30,37 ---- else { + if( !defined('IN_PORTAL') || !is_object($mx_block)) + { + die("Hacking attempt"); + } // // Read Block Settings |