[Openfirst-cvscommit] base/includes BaseModule.php,1.2,1.3
Brought to you by:
xtimg
From: Jamie <ast...@us...> - 2005-10-26 20:10:46
|
Update of /cvsroot/openfirst/base/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17294/includes Modified Files: BaseModule.php Log Message: Directory is "config", not "/config" Index: BaseModule.php =================================================================== RCS file: /cvsroot/openfirst/base/includes/BaseModule.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** BaseModule.php 19 Oct 2005 03:57:21 -0000 1.2 --- BaseModule.php 26 Oct 2005 20:10:35 -0000 1.3 *************** *** 1,55 **** ! <?php ! /* ! * openFIRST.base - includes/BaseModule.php ! * ! * Copyright (C) 2005, ! * openFIRST Project ! * Original Author: Jamie Bliss <ja...@op...> ! * ! * 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 ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. ! * ! * You should have received a copy of the GNU General Public License ! * along with this program; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! * ! */ ! // Purpose: Defines the BaseModule class, which extends Module for openfirst.base ! // and serves as a default for $ogCurrentModule. ! ! require_once('Module.php'); ! ! ! class BaseModule extends Module { ! function BaseModule($dir=false) { ! $this->mName = 'openFIRST'; ! $this->mID = 'openfirst.base'; ! $this->mDir = '/config'; ! $this->mVersion = 'CVS'; ! $this->mDate = time(); // Definitive date please? ! $this->mAuthor = 'The openFIRST Team'; ! $this->mMaintainer = 'The openFIRST Team'; ! ! $this->mIncludes = array(); ! $this->mNavBar = false; ! $this->mAdminBar = ofReplaceVariables('<a href="$BasePath/config/index.php" title="Configuration summary">Configuration</a> | ! <a href="$BasePath/config/install.php" title="Install new openFIRST modules">Install Modules</a> | ! <a href="$BasePath/config/modules.php" title="Change basic module options">Module Admin</a> | ! <a href="$BasePath/config/version.php" title="Check for updates to openFIRST and modules">Version Check</a> | ! <a href="http://bugzilla.openfirst.org/" title="Go to Bugzilla and report a problem">Report Bug</a>', $this->getDir()); ! $this->mShow = false; ! $this->mActive = true; ! } ! ! /*static*/ function createFromDir($Dir) { ! return new BaseModule($Dir); ! } ! } ?> \ No newline at end of file --- 1,55 ---- ! <?php ! /* ! * openFIRST.base - includes/BaseModule.php ! * ! * Copyright (C) 2005, ! * openFIRST Project ! * Original Author: Jamie Bliss <ja...@op...> ! * ! * 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 ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. ! * ! * You should have received a copy of the GNU General Public License ! * along with this program; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! * ! */ ! // Purpose: Defines the BaseModule class, which extends Module for openfirst.base ! // and serves as a default for $ogCurrentModule. ! ! require_once('Module.php'); ! ! ! class BaseModule extends Module { ! function BaseModule($dir=false) { ! $this->mName = 'openFIRST'; ! $this->mID = 'openfirst.base'; ! $this->mDir = 'config'; ! $this->mVersion = 'CVS'; ! $this->mDate = time(); // Definitive date please? ! $this->mAuthor = 'The openFIRST Team'; ! $this->mMaintainer = 'The openFIRST Team'; ! ! $this->mIncludes = array(); ! $this->mNavBar = false; ! $this->mAdminBar = ofReplaceVariables('<a href="$BasePath/config/index.php" title="Configuration summary">Configuration</a> | ! <a href="$BasePath/config/install.php" title="Install new openFIRST modules">Install Modules</a> | ! <a href="$BasePath/config/modules.php" title="Change basic module options">Module Admin</a> | ! <a href="$BasePath/config/version.php" title="Check for updates to openFIRST and modules">Version Check</a> | ! <a href="http://bugzilla.openfirst.org/" title="Go to Bugzilla and report a problem">Report Bug</a>', $this->getDir()); ! $this->mShow = false; ! $this->mActive = true; ! } ! ! /*static*/ function createFromDir($Dir) { ! return new BaseModule($Dir); ! } ! } ?> \ No newline at end of file |