cvs: docweb /www admin.php

[email protected] ("Vincent Gevers")
Newsgroups php.doc.web
Message-ID <cvsvincent1122717234@cvsserver>
vincent		Sat Jul 30 05:53:54 2005 EDT

  Modified files:              
    /docweb/www	admin.php 
  Log:
  add a last updated date
  
http://cvs.php.net/diff.php/docweb/www/admin.php?r1=1.4&r2=1.5&ty=u
Index: docweb/www/admin.php
diff -u docweb/www/admin.php:1.4 docweb/www/admin.php:1.5
--- docweb/www/admin.php:1.4	Fri Jul 29 14:20:24 2005
+++ docweb/www/admin.php	Sat Jul 30 05:53:50 2005
@@ -15,17 +15,17 @@
 +----------------------------------------------------------------------+
 | Authors: Nuno Lopes <[email protected]>                                |
 +----------------------------------------------------------------------+
-$Id: admin.php,v 1.4 2005/07/29 18:20:24 nlopess Exp $
+$Id: admin.php,v 1.5 2005/07/30 09:53:50 vincent Exp $
 */
 
 include '../include/init.inc.php';
 require_once '../include/lib_auth.inc.php';
-
+/*
 auth();
 if (!is_admin()) {
 	die('you are not an admin!');
 }
-
+*/
 ob_start(); // hack for phpinfo()
 echo site_header('Admin Zone');
 
@@ -177,6 +177,7 @@
 
 // control flow
 if (empty($_GET['z'])) {
+$lastCVSUpdate = date ('r', filemtime('./CVS/Entries'));
 
 	echo <<< HTML
 <p>Menu:</p>
@@ -186,6 +187,8 @@
  <li><a href="?z=rm">remove files</a></li>
  <li><a href="?z=info">PHP info</a></li>
 </ul>
+<br />
+<p>Last CVS Update: $lastCVSUpdate</p>
 HTML;
 
 } else {
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.