[Phpcms-plugins-cvs] admin4phpCMS .cvsignore,1.2,1.3 Changelog,1.8,1.9 index.php,1.8,1.9
Brought to you by:
mjahn
From: Martin J. <mj...@us...> - 2004-12-07 06:35:01
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13210 Modified Files: .cvsignore Changelog index.php Log Message: prepration of first Alpha-Preview Index: .cvsignore =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/.cvsignore,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- .cvsignore 25 Aug 2004 21:21:02 -0000 1.2 +++ .cvsignore 7 Dec 2004 06:34:48 -0000 1.3 @@ -1,4 +1 @@ pear -efc_xfss-2003-08-22.tar.gz -md5.php -phpplugin-2004-06-13.tar.gz Index: Changelog =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/Changelog,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- Changelog 25 Aug 2004 21:16:47 -0000 1.8 +++ Changelog 7 Dec 2004 06:34:48 -0000 1.9 @@ -1,3 +1,8 @@ +December 06 2004 (mjahn) + * created simplier configuration and more flexibility to the framework and some modules + * changed the index.php for better integration into a phpCMS-contentfile + * better documented with phpDOC-comments + August 25 2004 (mjahn) * created structure of the filemanager-gui, includeing up-/download, archiving and clipboarding of files and directories @@ -8,8 +13,6 @@ * created structure of the phpcms-config-gui * created phpinfo in the help-module - - Juli 31 2004 (mjahn) * it seems to be simple to install this software, - simply copy it into the destination dir Index: index.php =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/index.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- index.php 25 Aug 2004 21:16:47 -0000 1.8 +++ index.php 7 Dec 2004 06:34:48 -0000 1.9 @@ -34,6 +34,9 @@ /* * $Log$ +* Revision 1.9 2004/12/07 06:34:48 mjahn +* prepration of first Alpha-Preview +* * Revision 1.8 2004/08/25 21:16:47 mjahn * step 1 is taken * @@ -58,45 +61,65 @@ */ /** -* Defines wether the debug-module shows its data or not -**/ -define ('DEBUG', false); -error_reporting (E_ALL); +* load only _one_ instance of Admin4phpCMS in the global namespace and only call +* it from there, if there is already an instance of it. This saves memory, +* because only one instance is needed for one single page, regardless of the +* times you call bb_script in your contentfile. +*/ +if (!isset ($GLOBALS ['admin4phpCMS'])) { -/** -* Set the path for including the pear-packages -**/ -define ('PEAR_DIR', dirname (__FILE__).'/pear/'); + define ('MODULE_PATH', '/cms/admin/modules/'); -if (!function_exists ('ini_set')) { - define ('PATH_TO_PEAR', PEAR_DIR); -} else { - $check = ini_set ('include_path', dirname(__FILE__).'/pear/'.PATH_SEPARATOR.ini_get ('include_path')); - if (empty ($check) || $check === false) { + define ('ADMIN4PHPCMS_VERSION', '$version v 1.8 2004/08/25 21:16:47'); + + /** + * Defines wether the debug-module shows its data or not + **/ + define ('DEBUG', false); + error_reporting (E_ALL); + + /** + * Set the path for including the pear-packages + **/ + define ('PEAR_DIR', dirname (__FILE__).'/pear/'); + + /** + * set the index-file-constant for action-parameter in forms and the + * href-parameter in the links + */ + if (isset ($_REQUEST ['file'])) { + define ('INDEX_FILE', $_GET ['file']); + } else { + define ('INDEX_FILE', basename (__FILE__)); + } + + /** + * set the path to the pear-directory + */ + if (!function_exists ('ini_set')) { define ('PATH_TO_PEAR', PEAR_DIR); } else { - define ('PATH_TO_PEAR', ''); + $check = ini_set ('include_path', dirname(__FILE__).'/pear/'.PATH_SEPARATOR.ini_get ('include_path')); + if (empty ($check) || $check === false) { + define ('PATH_TO_PEAR', PEAR_DIR); + } else { + define ('PATH_TO_PEAR', ''); + } } + + /** + * Include the framework-class + */ + include_once (dirname(__FILE__).'/include/class.framework.php'); + + /** + * Initialize a new framework + **/ + $GLOBALS ['admin4phpCMS'] = new framework(); } -/** -* Include the framework-class -**/ -include_once (dirname(__FILE__).'/include/class.framework.php'); - -/** -* Initialize a new framework -**/ -$a = new framework(); /** * Run the framework **/ -$a->run(); - -//print_r ($a); - -/** -* Clear the variable-scope -**/ -unset ($a); +$GLOBALS ['admin4phpCMS']->run (); ?> \ No newline at end of file |