cvs: docweb /www admin.php

[email protected] ("Philip Olson")
Newsgroups php.doc.web
Message-ID <cvsphilip1157496630@cvsserver>
philip		Tue Sep  5 22:50:30 2006 UTC

  Modified files:              
    /docweb/www	admin.php 
  Log:
  Added ability to use PEAR_Info
  
  
http://cvs.php.net/viewvc.cgi/docweb/www/admin.php?r1=1.6&r2=1.7&diff_format=u
Index: docweb/www/admin.php
diff -u docweb/www/admin.php:1.6 docweb/www/admin.php:1.7
--- docweb/www/admin.php:1.6	Sat Jul 30 09:56:00 2005
+++ docweb/www/admin.php	Tue Sep  5 22:50:30 2006
@@ -15,7 +15,7 @@
 +----------------------------------------------------------------------+
 | Authors: Nuno Lopes <[email protected]>                                |
 +----------------------------------------------------------------------+
-$Id: admin.php,v 1.6 2005/07/30 09:56:00 vincent Exp $
+$Id: admin.php,v 1.7 2006/09/05 22:50:30 philip Exp $
 */
 
 include '../include/init.inc.php';
@@ -38,6 +38,13 @@
 	exit;
 }
 
+function pearinfo() {
+    ob_end_clean();
+    require_once 'PEAR/Info.php';
+    $info = new PEAR_Info('/usr/local/share/pear');
+    $info->show();
+    exit;
+}
 
 function print_file_list($base)
 {
@@ -186,6 +193,7 @@
  <li><a href="?z=chmodf">chmod</a></li>
  <li><a href="?z=rm">remove files</a></li>
  <li><a href="?z=info">PHP info</a></li>
+ <li><a href="?z=pearinfo">PEAR info</a></li>
 </ul>
 <br />
 <p>Last CVS Update: $lastCVSUpdate</p>
@@ -197,6 +205,7 @@
 		case 'chmodf':
 		case 'rm':
 		case 'info':
+		case 'pearinfo':
 			$_GET['z']();
 			break;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.