cvs: docweb /scripts checkent.php
[email protected] ("Sean Coates")
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <cvssean1106404223@cvsserver> |
sean Sat Jan 22 09:30:23 2005 EDT
Modified files:
/docweb/scripts checkent.php
Log:
removed superfluous HTML output (now templated via SQLite)
http://cvs.php.net/diff.php/docweb/scripts/checkent.php?r1=1.13&r2=1.14&ty=u
Index: docweb/scripts/checkent.php
diff -u docweb/scripts/checkent.php:1.13 docweb/scripts/checkent.php:1.14
--- docweb/scripts/checkent.php:1.13 Sat Jan 22 01:56:59 2005
+++ docweb/scripts/checkent.php Sat Jan 22 09:30:23 2005
@@ -19,7 +19,7 @@
| Mehdi Achour <[email protected]> |
| Sean Coates <[email protected]> |
+----------------------------------------------------------------------+
-$Id: checkent.php,v 1.13 2005/01/22 06:56:59 sean Exp $
+$Id: checkent.php,v 1.14 2005/01/22 14:30:23 sean Exp $
*/
set_time_limit(0);
@@ -157,183 +157,4 @@
";
sqlite_query($sqlite, $sql);
-// ouput the html
-echo "<?php include_once '../include/init.inc.php';
-echo site_header('docweb.common.header.checkent');
-?><p>Last check: " . date('r') . "<br/>
-Supported Protocols: " . implode(', ', $schemes) . '</p><p> </p>';
-
-if (isset($errors[UNKNOWN_HOST])) {
- echo '<h2>Unknown host (' . count($errors[UNKNOWN_HOST]) . ')</h2>' .
- '<table>
- <tr class="blue">
- <th>Entity Name</th>
- <th>URL</th>
- </tr>';
-
- foreach ($errors[UNKNOWN_HOST] as $infos) {
- echo '<tr>
- <td>' . $entity_names[$infos[0]] . '</td>
- <td><a href="' . $entity_urls[$infos[0]] . '">' . $entity_urls[$infos[0]] . '</a></td>
- </tr>';
- }
-
- echo '</table>';
-}
-
-if (isset($errors[HTTP_CONNECT])) {
- echo '<h2>HTTP Failed to connect (' . count($errors[HTTP_CONNECT]) . ')</h2>' .
- '<table>
- <tr class="blue">
- <th>Entity Name</th>
- <th>URL</th>
- </tr>';
-
- foreach ($errors[HTTP_CONNECT] as $infos) {
- echo '<tr>
- <td>' . $entity_names[$infos[0]] . '</td>
- <td><a href="' . $entity_urls[$infos[0]] . '">' . $entity_urls[$infos[0]] . '</a></td>
- </tr>';
- }
-
- echo '</table>';
-}
-
-if (isset($errors[FTP_CONNECT])) {
- echo '<h2>FTP Failed to connect (' . count($errors[FTP_CONNECT]) . ')</h2>' .
- '<table>
- <tr class="blue">
- <th>Entity Name</th>
- <th>URL</th>
- </tr>';
-
- foreach ($errors[FTP_CONNECT] as $infos) {
- echo '<tr>
- <td>' . $entity_names[$infos[0]] . '</td>
- <td><a href="' . $entity_urls[$infos[0]] . '">' . $entity_urls[$infos[0]] . '</a></td>
- </tr>';
- }
-
- echo '</table>';
-}
-
-if (isset($errors[FTP_LOGIN])) {
- echo '<h2>FTP Cannot login (' . count($errors[FTP_LOGIN]) . ')</h2>' .
- '<table>
- <tr class="blue">
- <th>Entity Name</th>
- <th>URL</th>
- </tr>';
-
-
- foreach ($errors[FTP_LOGIN] as $infos) {
- echo '<tr>
- <td>' . $entity_names[$infos[0]] . '</td>
- <td><a href="' . $entity_urls[$infos[0]] . '">' . $entity_urls[$infos[0]] . '</a></td>
- </tr>';
- }
-
- echo '</table>';
-}
-
-if (isset($errors[FTP_NO_FILE])) {
- echo '<h2>FTP File not found (' . count($errors[FTP_NO_FILE]) . ')</h2>' .
- '<table>
- <tr class="blue">
- <th>Entity Name</th>
- <th>URL</th>
- </tr>';
-
-
- foreach ($errors[FTP_NO_FILE] as $infos) {
- echo '<tr>
- <td>' . $entity_names[$infos[0]] . '</td>
- <td><a href="' . $entity_urls[$infos[0]] . '">' . $entity_urls[$infos[0]] . '</a></td>
- </tr>';
- }
-
- echo '</table>';
-}
-
-
-if (isset($errors[HTTP_INTERNAL_ERROR])) {
- echo '<h2>HTTP Internal error (' . count($errors[HTTP_INTERNAL_ERROR]) . ')</h2>' .
- '<table>
- <tr class="blue">
- <th>Entity Name</th>
- <th>URL</th>
- </tr>';
-
- foreach ($errors[HTTP_INTERNAL_ERROR] as $infos) {
- echo '<tr>
- <td>' . $entity_names[$infos[0]] . '</td>
- <td><a href="' . $entity_urls[$infos[0]] . '">' . $entity_urls[$infos[0]] . '</a></td>
- </tr>';
- }
-
- echo '</table>';
-}
-
-if (isset($errors[HTTP_NOT_FOUND])) {
- echo '<h2>HTTP 404 Not Found (' . count($errors[HTTP_NOT_FOUND]) . ')</h2>' .
- '<table>
- <tr class="blue">
- <th>Entity Name</th>
- <th>URL</th>
- </tr>';
-
- foreach ($errors[HTTP_NOT_FOUND] as $infos) {
- echo '<tr>
- <td>' . $entity_names[$infos[0]] . '</td>
- <td><a href="' . $entity_urls[$infos[0]] . '">' . $entity_urls[$infos[0]] . '</a></td>
- </tr>';
- }
-
- echo '</table>';
-}
-
-if (isset($errors[HTTP_MOVED])) {
- echo '<h2>HTTP Moved files (' . count($errors[HTTP_MOVED]) . ')</h2>' .
- '<table>
- <tr class="blue">
- <th>Entity Name</th>
- <th>Entity URL</th>
- <th>Redirected to</th>
- </tr>';
-
- foreach ($errors[HTTP_MOVED] as $infos) {
- echo '<tr>
- <td>' . $entity_names[$infos[0]] . '</td>
- <td><a href="' . $entity_urls[$infos[0]] . '">' . $entity_urls[$infos[0]] . '</a></td>
- <td><a href="' . $infos[1] . '">' . $infos[1] . '</a></td>
- </tr>';
- }
-
- echo '</table>';
-}
-
-if (isset($errors[HTTP_WRONG_HEADER])) {
- echo '<h2>HTTP Error (' . count($errors[HTTP_WRONG_HEADER]) . ')</h2>' .
- '<table>
- <tr class="blue">
- <th>Entity Name</th>
- <th>Unreconized header</th>
- </tr>';
-
- foreach ($errors[HTTP_WRONG_HEADER] as $infos) {
- echo '<tr>
- <td><a href="' . $entity_urls[$infos[0]] . '">' . $entity_names[$infos[0]] . '</a></td>
- <td><a href="' . $infos[1] . '">' . $infos[1] . '</a></td>
- </tr>';
- }
- echo '</table>';
-}
-
-if (!count($errors)) {
- echo '<p><b>No problems found!</b></p>';
-}
-
-echo '<p>Checked ' . $numb . ' urls</p>';
-echo '<?php echo site_footer(); ?>';
-
?>