com web/doc: Removed tools other than revcheck: www/checkent.php www/entities.php www/missing_examples.php www/notes_sta ts.php www/undoc_functions.php
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <[email protected]> |
Commit: 2f643491bcc27c4947203b194bec840df1fc5484 Author: Sobak <[email protected]> Sat, 22 Mar 2014 06:14:17 +0100 Parents: cc2113bb79d2619f18ad16c12fb156945a74173b Branches: master Link: http://git.php.net/?p=web/doc.git;a=commitdiff;h=2f643491bcc27c4947203b194bec840df1fc5484 Log: Removed tools other than revcheck Changed paths: D www/checkent.php D www/entities.php D www/missing_examples.php D www/notes_stats.php D www/undoc_functions.php
diff_2f643491bcc27c4947203b194bec840df1fc5484.txt
(text/plain, 12.5 KB)
diff --git a/www/checkent.php b/www/checkent.php deleted file mode 100644 index a24edcc..0000000 --- a/www/checkent.php +++ /dev/null @@ -1,94 +0,0 @@ -<?php -/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: -+----------------------------------------------------------------------+ -| PHP Documentation Site Source Code | -+----------------------------------------------------------------------+ -| Copyright (c) 1997-2011 The PHP Group | -+----------------------------------------------------------------------+ -| This source file is subject to version 3.0 of the PHP license, | -| that is bundled with this package in the file LICENSE, and is | -| available at through the world-wide-web at | -| http://www.php.net/license/3_0.txt. | -| If you did not receive a copy of the PHP license and are unable to | -| obtain it through the world-wide-web, please send a note to | -| [email protected] so we can mail you a copy immediately. | -+----------------------------------------------------------------------+ -| Authors: Nuno Lopes <[email protected]> | -| Mehdi Achour <[email protected]> | -| Sean Coates <[email protected]> | -+----------------------------------------------------------------------+ -$Id$ -*/ - -require_once '../include/init.inc.php'; - -$entType = SITE; -require_once '../include/lib_url_entities.inc.php'; - -if (!$sqlite = url_ent_sqlite_open()) { - echo site_header('docweb.common.header.checkent'); - echo '<p>checkent not found!</p>'; // @@@ template this - echo site_footer(); - exit(); -} - -$sql = " - SELECT - start_time, end_time, schemes - FROM - meta_info -"; - -$metaQ = sqlite_query($sqlite, $sql); -if (!$metaQ) { - echo site_header('docweb.common.header.checkent'); - echo '<p>No meta info about this project was found to check.</p>'; // @@@ template this - echo site_footer(); - exit(); - -} - -list($startTime, $endTime, $schemes) = sqlite_fetch_array($metaQ); - -$entData = array(); -$sql = " - SELECT - url_num, entity, url, check_result, return_val - FROM - checked_urls - WHERE - check_result > 0 - ORDER BY - check_result, entity -"; - -$urlsQ = sqlite_query($sqlite, $sql); -if (!$urlsQ) { - echo site_header('docweb.common.header.checkent'); - echo '<p>No URLs for this project were found to check.</p>'; // @@@ template this - echo site_footer(); - exit(); - -} - -while ($row = sqlite_fetch_array($urlsQ)) { - $entData[$row['check_result']][] = $row; -} - - -echo site_header('docweb.common.header.checkent'); -echo DocWeb_Template::get( - 'checkent.tpl.php', - array( - 'startTime' => $startTime, - 'isComplete' => $endTime ? TRUE : FALSE, - 'schemes' => $schemes, - 'entData' => $entData, - 'resultLkp' => $urlResultLookup, - 'extraCol' => $urlResultExtraCol, - 'wideMode' => isset($_REQUEST['wideMode']) && $_REQUEST['wideMode'], - ) - ); -echo site_footer(); - -?> diff --git a/www/entities.php b/www/entities.php deleted file mode 100644 index 63344b4..0000000 --- a/www/entities.php +++ /dev/null @@ -1,63 +0,0 @@ -<?php -/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: -+----------------------------------------------------------------------+ -| PHP Documentation Site Source Code | -+----------------------------------------------------------------------+ -| Copyright (c) 1997-2011 The PHP Group | -+----------------------------------------------------------------------+ -| This source file is subject to version 3.0 of the PHP license, | -| that is bundled with this package in the file LICENSE, and is | -| available at through the world-wide-web at | -| http://www.php.net/license/3_0.txt. | -| If you did not receive a copy of the PHP license and are unable to | -| obtain it through the world-wide-web, please send a note to | -| [email protected] so we can mail you a copy immediately. | -+----------------------------------------------------------------------+ -| Authors: Sean Coates <[email protected]> | -+----------------------------------------------------------------------+ -$Id$ -*/ - -require_once '../include/init.inc.php'; - -$entType = SITE; -require_once '../include/lib_url_entities.inc.php'; - -if (!$sqlite = ent_sqlite_open()) { - echo site_header('docweb.common.header.entities'); - echo '<p>entities not found!</p>'; // @@@ template this - echo site_footer(); - exit(); -} - -$entData = array(); -$sql = " - SELECT - entid, value - FROM - ents - WHERE - is_file = 0 - ORDER BY - entid -"; -$entsQ = sqlite_query($sqlite, $sql); -while ($row = sqlite_fetch_array($entsQ)) { - $entData[$row['entid']] = strip_tags($row['value']); - if (substr($row['entid'], 0, 4) == 'url.') { - $entData[$row['entid']] = ent_link($entData[$row['entid']]); - } else { - $entData[$row['entid']] = ent_anchors(ent_link($entData[$row['entid']])); - } -} - -echo site_header('docweb.common.header.entities'); -echo DocWeb_Template::get( - 'entities.tpl.php', - array( - 'entData' => $entData, - ) - ); -echo site_footer(); - -?> diff --git a/www/missing_examples.php b/www/missing_examples.php deleted file mode 100644 index c721769..0000000 --- a/www/missing_examples.php +++ /dev/null @@ -1,56 +0,0 @@ -<?php -/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: -+----------------------------------------------------------------------+ -| PHP Documentation Site Source Code | -+----------------------------------------------------------------------+ -| Copyright (c) 1997-2011 The PHP Group | -+----------------------------------------------------------------------+ -| This source file is subject to version 3.0 of the PHP license, | -| that is bundled with this package in the file LICENSE, and is | -| available at through the world-wide-web at | -| http://www.php.net/license/3_0.txt. | -| If you did not receive a copy of the PHP license and are unable to | -| obtain it through the world-wide-web, please send a note to | -| [email protected] so we can mail you a copy immediately. | -+----------------------------------------------------------------------+ -| Authors: Matthew Li <[email protected]> | -+----------------------------------------------------------------------+ -*/ - -require_once '../include/init.inc.php'; -define('DOCWEB_DAO_DB_FILE', SQLITE_DIR . 'docweb.sqlite'); - -$entType = SITE; - -if (!$sqlite = @sqlite_open(DOCWEB_DAO_DB_FILE, 0666)) { - echo site_header('docweb.common.header.missing-examples'); - echo '<p>Missing examples list not found!</p>'; // templating is your friend - echo site_footer(); - exit(); -} - -$missingEgData = array(); -$missingEgCount = 0; -$sql = " - SELECT - extension, function - FROM - missing_examples -"; -$undocQ = sqlite_query($sqlite, $sql); -while ($row = sqlite_fetch_array($undocQ)) { - $missingEgData[$row['extension']][] = $row['function']; - $missingEgCount++; -} - -echo site_header('docweb.common.header.missing-examples'); -echo DocWeb_Template::get( - 'missingexamples.tpl.php', - array( - 'missingEgData' => $missingEgData, - 'missingEgCount' => $missingEgCount, - ) - ); -echo site_footer(); - -?> diff --git a/www/notes_stats.php b/www/notes_stats.php deleted file mode 100644 index dd6e1df..0000000 --- a/www/notes_stats.php +++ /dev/null @@ -1,61 +0,0 @@ -<?php -/* -+----------------------------------------------------------------------+ -| PHP Documentation Site Source Code | -+----------------------------------------------------------------------+ -| Copyright (c) 1997-2011 The PHP Group | -+----------------------------------------------------------------------+ -| This source file is subject to version 3.0 of the PHP license, | -| that is bundled with this package in the file LICENSE, and is | -| available at through the world-wide-web at | -| http://www.php.net/license/3_0.txt. | -| If you did not receive a copy of the PHP license and are unable to | -| obtain it through the world-wide-web, please send a note to | -| [email protected] so we can mail you a copy immediately. | -+----------------------------------------------------------------------+ -| Authors: Sean Coates <[email protected]> | -| Credits: Vincent Gevers <[email protected]> | -+----------------------------------------------------------------------+ -$Id$ -*/ - - -require_once('../include/init.inc.php'); - -@include('notes_stats-data.php'); - -if (!isset($notesData) || !is_array($notesData) || !$notesData) { - echo DocWeb_Template::get( - 'shared/error_msg.tpl.php', - array( - 'header' => 'docweb.common.header.stats-not-available', - 'body' => array( - '&docweb.common.error.stats-not-available;', - false - ) - ) - ); - return; -} elseif ($notesData['last_article'] < 50000) { - echo DocWeb_Template::get( - 'shared/error_msg.tpl.php', - array( - 'header' => 'docweb.common.header.stats-not-available-yet', - 'body' => array( - '&docweb.common.error.stats-not-available-yet;', - false - ) - ) - ); - return; -} - - -echo site_header("docweb.common.header.notes-stats"); -echo DocWeb_Template::get( - 'notes_stats.tpl.php', - $notesData - ); -echo site_footer(); - -?> diff --git a/www/undoc_functions.php b/www/undoc_functions.php deleted file mode 100644 index 56e5497..0000000 --- a/www/undoc_functions.php +++ /dev/null @@ -1,56 +0,0 @@ -<?php -/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: -+----------------------------------------------------------------------+ -| PHP Documentation Site Source Code | -+----------------------------------------------------------------------+ -| Copyright (c) 1997-2011 The PHP Group | -+----------------------------------------------------------------------+ -| This source file is subject to version 3.0 of the PHP license, | -| that is bundled with this package in the file LICENSE, and is | -| available at through the world-wide-web at | -| http://www.php.net/license/3_0.txt. | -| If you did not receive a copy of the PHP license and are unable to | -| obtain it through the world-wide-web, please send a note to | -| [email protected] so we can mail you a copy immediately. | -+----------------------------------------------------------------------+ -| Authors: Matthew Li <[email protected]> | -+----------------------------------------------------------------------+ -*/ - -require_once '../include/init.inc.php'; -define('DOCWEB_DAO_DB_FILE', SQLITE_DIR . 'docweb.sqlite'); - -$entType = SITE; - -if (!$sqlite = @sqlite_open(DOCWEB_DAO_DB_FILE, 0666)) { - echo site_header('docweb.common.header.undoc-functions'); - echo '<p>Undocumented function list not found!</p>'; // templating is your friend - echo site_footer(); - exit(); -} - -$undocData = array(); -$undocCount = 0; -$sql = " - SELECT - extension, function - FROM - undocumented_functions -"; -$undocQ = sqlite_query($sqlite, $sql); -while ($row = sqlite_fetch_array($undocQ)) { - $undocData[$row['extension']][] = $row['function']; - $undocCount++; -} - -echo site_header('docweb.common.header.undoc-functions'); -echo DocWeb_Template::get( - 'undocfuncs.tpl.php', - array( - 'undocData' => $undocData, - 'undocCount' => $undocCount, - ) - ); -echo site_footer(); - -?>