[Openfirst-cvscommit] base/config index.php,1.12,1.13
Brought to you by:
xtimg
From: Astronouth7303 <ast...@us...> - 2005-06-30 02:29:50
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12228/config Modified Files: index.php Log Message: Updated for OOP DB Index: index.php =================================================================== RCS file: /cvsroot/openfirst/base/config/index.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** index.php 26 May 2005 21:00:02 -0000 1.12 --- index.php 30 Jun 2005 02:29:42 -0000 1.13 *************** *** 1,96 **** ! <?php ! /* ! * openFIRST.base - config/index.php ! * ! * Copyright (C) 2003, ! * openFIRST Project ! * Original Author: Tim Ginn <tim...@po...> ! * ! * 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. ! * 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: Provide a control center for configuration activities. ! ! include("../includes/globals.php"); ! include($Header); ! if(isset($user->user) == true && $user->membertype == "administrator") { ! ?> ! <h1>openFIRST Configuration Area</h1> ! ! <table width="50%"> ! <tr> ! <th>Administrative Options</th> ! </tr> ! </table> ! ! <?php ! if(is_writable("$fBasePath/includes/globals.php") && file_exists("$fBasePath/includes/first.php")) { ! echo("<p><strong>Warning</strong>: Your globals.php file is writable by the web user. Also, first.php is still in existance. After you have setup the openFIRST web portal system, it is safe to remove first.php. Removing first.php prevents the accidental reset of configuration information and prevents external users from altering your configuration. For maximal security, you should also change the filesystem permissions so that globals.php is not writable by the web user."); ! } elseif(is_writable("$fBasePath/includes/globals.php")) { ! echo("<p><strong>Warning</strong>: Your globals.php file is writable by the web user. For maximal security, you should change the filesystem permissions to correct this.</p>"); ! } ! ?> ! ! <table> ! <tr> ! <th colspan="2">Statistics</th> ! </tr> ! <tr> ! <th>Database Version</th><td> ! <?php ! // The statistics feature is loosely inspired by that of phpBB. ! echo ofirst_dbname_version(); ! ?></td> ! </tr> ! <tr> ! <th>Database Size</th><td> ! <?php ! echo ofirst_dbsize(); ! ?> ! </td> ! </tr> ! <tr><th>openFIRST Project Statistics</th><td> ! <?php include_once("http://bugzilla.openfirst.org/openfirst/bugcrushers.php"); ?> ! </td></tr> ! </table> ! ! <br> ! <table width="50%"> ! <tr> ! <td width="30%" valign="top"><a href="version.php">Version Check</a></td> ! <td width="70%" valign="top">Ensure that your version of the openFIRST web ! portal software and any 3rd party extensions is up to date</td> ! </tr> ! <tr> ! <td valign="top"><a href="install.php">Install Component</a></td> ! <td valign="top">Required to install several new openFIRST modules.</td> ! </tr> ! <tr> ! <td valign="top"><a href="modules.php">Module Administrator</a></td> ! <td valign="top">Required to manage openFIRST modules.</td> ! </tr> ! </table> ! <p> ! <?php ! } else { ! showlogin(); ! } ! include($Footer); ! ?> ! </p> --- 1,96 ---- ! <?php ! /* ! * openFIRST.base - config/index.php ! * ! * Copyright (C) 2003, ! * openFIRST Project ! * Original Author: Tim Ginn <tim...@po...> ! * ! * 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. ! * 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: Provide a control center for configuration activities. ! ! include("../includes/globals.php"); ! include($Header); ! if(isset($user->user) == true && $user->membertype == "administrator") { ! ?> ! <h1>openFIRST Configuration Area</h1> ! ! <table width="50%"> ! <tr> ! <th>Administrative Options</th> ! </tr> ! </table> ! ! <?php ! if(is_writable("$fBasePath/includes/sitesettings.php") && file_exists("$fBasePath/includes/first.php")) { ! echo("<p><strong>Warning</strong>: Your sitesettings.php file is writable by the web user. Also, first.php is still in existance. After you have setup the openFIRST web portal system, it is safe to remove first.php. Removing first.php prevents the accidental reset of configuration information and prevents external users from altering your configuration. For maximal security, you should also change the filesystem permissions so that sitesettings.php is not writable by the web user."); ! } elseif(is_writable("$fBasePath/includes/sitesettings.php")) { ! echo("<p><strong>Warning</strong>: Your sitesettings.php file is writable by the web user. For maximal security, you should change the filesystem permissions to correct this.</p>"); ! } ! ?> ! ! <table> ! <tr> ! <th colspan="2">Statistics</th> ! </tr> ! <tr> ! <th>Database Version</th><td> ! <?php ! // The statistics feature is loosely inspired by that of phpBB. ! echo $ofDB->getVersion(); ! ?></td> ! </tr> ! <tr> ! <th>Database Size</th><td> ! <?php ! echo $ofDB->getSize(); ! ?> ! </td> ! </tr> ! <tr><th>openFIRST Project Statistics</th><td> ! <script type='application/x-javascript' src='http://bugzilla.openfirst.org/openfirst/bugcrushers.php?style=true'></script> ! </td></tr> ! </table> ! ! <br> ! <table width="50%"> ! <tr> ! <td width="30%" valign="top"><a href="version.php">Version Check</a></td> ! <td width="70%" valign="top">Ensure that your version of the openFIRST web ! portal software and any 3rd party extensions is up to date</td> ! </tr> ! <tr> ! <td valign="top"><a href="install.php">Install Component</a></td> ! <td valign="top">Required to install several new openFIRST modules.</td> ! </tr> ! <tr> ! <td valign="top"><a href="modules.php">Module Administrator</a></td> ! <td valign="top">Required to manage openFIRST modules.</td> ! </tr> ! </table> ! <p> ! <?php ! } else { ! showlogin(); ! } ! include($Footer); ! ?> ! </p> |