[Fusionforge-commits] r9495 - trunk/gforge/www/admin

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Wed Apr 14 22:13:11 CEST 2010


Author: aljeux
Date: 2010-04-14 22:13:11 +0200 (Wed, 14 Apr 2010)
New Revision: 9495

Added:
   trunk/gforge/www/admin/pi.php
Modified:
   trunk/gforge/www/admin/index.php
Log:
Add phpinfo() page in the site admin menu

Modified: trunk/gforge/www/admin/index.php
===================================================================
--- trunk/gforge/www/admin/index.php	2010-04-14 19:50:19 UTC (rev 9494)
+++ trunk/gforge/www/admin/index.php	2010-04-14 20:13:11 UTC (rev 9495)
@@ -158,7 +158,7 @@
 	<li><a href="cronman.php"><?php echo _('Cron Manager'); ?></a></li>
 	<li><a href="pluginman.php"><?php echo _('Plugin Manager'); ?></a></li>
 	<li><a href="configman.php"><?php echo _('Config Manager'); ?></a></li>
-	
+	<li><a href="pi.php">PHPinfo()</a></li>
 	<?php plugin_hook("site_admin_option_hook", false); ?>
 </ul>
 

Added: trunk/gforge/www/admin/pi.php
===================================================================
--- trunk/gforge/www/admin/pi.php	                        (rev 0)
+++ trunk/gforge/www/admin/pi.php	2010-04-14 20:13:11 UTC (rev 9495)
@@ -0,0 +1,55 @@
+<?php 
+/*
+ * Site Admin phpinfo() page
+ *
+ * Copyright (C) 2007 Alain Peyrat, Alcatel-Lucent
+ *
+ * This file is part of FusionForge.
+ *
+ * FusionForge 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.
+ *
+ * FusionForge 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 FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ * USA
+ */
+
+/*
+ * Standard Alcatel-Lucent disclaimer for contributing to open source
+ *
+ * "The provided file ("Contribution") has not been tested and/or
+ * validated for release as or in products, combinations with products or
+ * other commercial use. Any use of the Contribution is entirely made at
+ * the user's own responsibility and the user can not rely on any features,
+ * functionalities or performances Alcatel-Lucent has attributed to the
+ * Contribution.
+ *
+ * THE CONTRIBUTION BY ALCATEL-LUCENT IS PROVIDED AS IS, WITHOUT WARRANTY
+ * OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
+ * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, COMPLIANCE,
+ * NON-INTERFERENCE AND/OR INTERWORKING WITH THE SOFTWARE TO WHICH THE
+ * CONTRIBUTION HAS BEEN MADE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL
+ * ALCATEL-LUCENT BE LIABLE FOR ANY DAMAGES OR OTHER LIABLITY, WHETHER IN
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * CONTRIBUTION OR THE USE OR OTHER DEALINGS IN THE CONTRIBUTION, WHETHER
+ * TOGETHER WITH THE SOFTWARE TO WHICH THE CONTRIBUTION RELATES OR ON A STAND
+ * ALONE BASIS."
+ */
+
+require_once('../env.inc.php');
+require_once $gfwww.'include/pre.php';
+require_once $gfwww.'admin/admin_utils.php';
+
+session_require(array('group'=>'1','admin_flags'=>'A'));
+
+phpinfo();
+
+?>




More information about the Fusionforge-commits mailing list