cvs: docweb /scripts checkent.php
| From: | Vincent Gevers | Date: | Fri, 21 Jan 2005 17:17:58 +0000 |
| Subject: | cvs: docweb /scripts checkent.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-512@lists.php.net to get a copy of this message | ||
vincent Fri Jan 21 12:17:58 2005 EDT
Modified files:
/docweb/scripts checkent.php
Log:
Add a check to avoid file not found warnings
http://cvs.php.net/diff.php/docweb/scripts/checkent.php?r1=1.8&r2=1.9&ty=u
Index: docweb/scripts/checkent.php
diff -u docweb/scripts/checkent.php:1.8 docweb/scripts/checkent.php:1.9
--- docweb/scripts/checkent.php:1.8 Thu Jan 20 17:29:47 2005
+++ docweb/scripts/checkent.php Fri Jan 21 12:17:57 2005
@@ -18,7 +18,7 @@
* | Docweb port: Nuno Lopes <nlopess@php.net> |
* | Mehdi Achour <didou@php.net> |
* +----------------------------------------------------------------------+
- * $Id: checkent.php,v 1.8 2005/01/20 22:29:47 nlopess Exp $
+ * $Id: checkent.php,v 1.9 2005/01/21 17:17:57 vincent Exp $
*/
set_time_limit(0);
@@ -86,7 +86,12 @@
}
-if (!$file = file_get_contents($filename)) {
+if (!$file = @file_get_contents($filename)) {
+ // ouput the html
+ echo "<?php include_once '../include/init.inc.php';
+ echo site_header('docweb.common.header.checkent');
+ echo '<h1>No entities found</h1>';
+ echo site_footer(); ?>";
exit;
}