|
From: Markus P. <mar...@us...> - 2005-04-26 18:17:29
|
Update of /cvsroot/mxbb/core/modules/mx_textblocks/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14187 Modified Files: admin_edit.php Log Message: Code cleanup and removed debug code. Index: admin_edit.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_textblocks/admin/admin_edit.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** admin_edit.php 9 Jan 2005 21:53:02 -0000 1.3 --- admin_edit.php 26 Apr 2005 18:17:19 -0000 1.4 *************** *** 13,17 **** */ ! /** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by --- 13,17 ---- */ ! /** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by *************** *** 19,40 **** * (at your option) any later version. */ - - $no_page_header = true; ! if ( !empty( $setmodules ) ) { return; } ! define( 'IN_PORTAL', 1 ); ! $mx_root_path = "../../../"; ! // Security and page header ! require( $mx_root_path . 'admin/pagestart.php' ); ! ! mx_message_die( GENERAL_MESSAGE, 'Sorry, but this block is NOT designed to be configured in the AdminCP <br /> - please use the EDIT feature in normal portal mode instead.' ); ! include_once( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ?> \ No newline at end of file --- 19,40 ---- * (at your option) any later version. */ ! if( !empty($setmodules) ) { return; } ! // // Security and page header + // + define('IN_PORTAL', 1); + $mx_root_path = '../../../'; + $no_page_header = true; + include($mx_root_path . 'extension.inc'); + require($mx_root_path . "admin/pagestart.$phpEx"); ! mx_message_die(GENERAL_MESSAGE, 'Sorry, but this block is NOT designed to be configured in the AdminCP <br /> - please use the EDIT feature in normal portal mode instead.'); ! include_once($mx_root_path . 'admin/page_footer_admin.' . $phpEx); ?> \ No newline at end of file |