|
From: Jon O. <jon...@us...> - 2006-06-17 20:46:30
|
Update of /cvsroot/mxbb/mx_dev_startkit/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv4620/modules/mx_dev_startkit/includes Modified Files: startkit_constants.php startkit_functions.php Log Message: security Index: startkit_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_dev_startkit/includes/startkit_constants.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** startkit_constants.php 5 Apr 2006 20:55:19 -0000 1.3 --- startkit_constants.php 17 Jun 2006 20:46:27 -0000 1.4 *************** *** 8,12 **** * */ ! // ---------------------------------------------------------------------START // This file defines specific constants for the module --- 8,17 ---- * */ ! ! if( !defined('IN_PORTAL') || !is_object($mx_block)) ! { ! die("Hacking attempt"); ! } ! // ---------------------------------------------------------------------START // This file defines specific constants for the module *************** *** 27,31 **** // ------------------------------------------------------------------------- $mx_user->extend(); ! $mx_page->add_copyright( 'mxBB Dev Startkit Module' ); } --- 32,36 ---- // ------------------------------------------------------------------------- $mx_user->extend(); ! $mx_page->add_copyright( 'mxBB Dev Startkit Module' ); } Index: startkit_functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_dev_startkit/includes/startkit_functions.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** startkit_functions.php 5 Apr 2006 20:55:19 -0000 1.3 --- startkit_functions.php 17 Jun 2006 20:46:27 -0000 1.4 *************** *** 9,12 **** --- 9,17 ---- */ + if( !defined('IN_PORTAL') || !is_object($mx_block)) + { + die("Hacking attempt"); + } + // // Module functions class *************** *** 18,22 **** // Public Methods // ! /********************************************************************************\ | Double --- 23,27 ---- // Public Methods // ! /********************************************************************************\ | Double *************** *** 25,29 **** { $new_number = $number + $number; ! return $new_number; } --- 30,34 ---- { $new_number = $number + $number; ! return $new_number; } |