htcheck-php-2.0.0~rc1.orig/0000755000000000000000000000000011245716447012353 5ustar htcheck-php-2.0.0~rc1.orig/qryachecks.php0000644000000000000000000002252411245716447015226 0ustar // // $Id: qryachecks.php,v 1.5 2004/06/11 11:26:45 angusgb Exp $ /////// // Global settings /////// include ("./include/global.inc.php"); if (!isset($dbname)) { // Error DisplayErrMsg($strErrorNoDBSelected); echo "" . $strMainPage . ""; die; } $strSection=$strListAchecks; $pagetitle = "Database: $dbname - " . $strSection; eval("\$strhome = \"$strDBHome \";"); $linkbar = "". $strhome.""; // A database has been selected include ("./include/header.inc.php"); if (isset ($cmd)) { if (!isset($initpage)) $initpage=0; if (!isset($pagesize)) $pagesize=30; $otherinfo = '&cmd=' . urlencode($cmd); $strwhere = " WHERE 1 "; if (isset($doctype) && $doctype!="AllDocTypes") { if ($doctype == 'NULL') { if ($whatdoctype == '!=') $whatdoctypetmp = 'not'; $strwhere = $strwhere . " AND Url.DocType is $whatdoctypetmp $doctype "; } else { $strwheretmp = "Url.DocType $whatdoctype '$doctype'"; if ($whatcharset == '!=') $strwhere .= " AND ($strwheretmp OR Url.DocType is NULL) "; else $strwhere .= " AND $strwheretmp "; } $otherinfo = $otherinfo . '&whatdoctype=' . urlencode($whatdoctype) . '&doctype=' . urlencode($doctype); } $num=count($url); // Count the elements // Set the URL filter for ($i=0; $i<$num; $i++) { if (isset($url[$i]) && $url[$i] && strlen($url[$i]) > 0) { if(isset($whaturl[$i])) { $strwhere = $strwhere . " AND Url.Url " . $whaturl[$i] . " '" . $url[$i] . "' "; $otherinfo = $otherinfo . "&whaturl[$i]=" . urlencode($whaturl[$i]) . "&url[$i]=" . urlencode ($url[$i]); } } } $num=count($acheckcode); // Count the elements // Set the Accessibility Code filter // Codice dell'errore di accessibilit if (isset($acheckcode)) { $strwhere .= " AND ("; $a = 0; while (list($chiave, $valore) = each($acheckcode)) { $a++; $strwhere .= " Accessibility.Code = $acheckcode[$chiave] "; $otherinfo .= "&acheckcode[$chiave]=" . $chiave; if ($a < $num) $strwhere .= " OR "; else $strwhere .= ") "; } } // Server if (!empty($server)) { $strwhere .= " AND Url.IDServer = $server "; $otherinfo .= "&server=$server"; } $strwhere .= " AND Url.IDUrl = Accessibility.IDUrl "; // Show all the URLs, retrieved ones as well as not $strGenSQL = "SELECT Accessibility.*, Statement, Url FROM Url, Accessibility " . "LEFT JOIN HtmlStatement USING (IDUrl, TagPosition) " . $strwhere . " ORDER BY Url.Url ASC" . " LIMIT " . $initpage . ", " . $pagesize; if (!isset($count)) { $strCountSQL="select count(*) from Url, Accessibility " . "LEFT JOIN HtmlStatement USING (IDUrl, TagPosition) " . $strwhere; $count = $MyDB->CountEntries($strCountSQL,$dbname,true); if ($count<0) { DisplayErrMsg($MyDB->errmsg); return; } $MyDB->Free(); } // HTTP results ?>

$count?$count:$initpage+$pagesize), number_format($count)); ?>

Query($dbname, $strGenSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($MyDB->NumRows()) { // At least one occurrence found ?> FetchArray()) { // Get next row $i++; ($i % 2)? $trclass='odd':$trclass='even'; ?>
N. ID Url \

: <>
&TagPosition=&AttrPosition=&acheckcode=">

Free(); } else { ?>

:

Query($dbname, $strSQL); if ($result == 0) { ?> Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($MyDB->NumRows()) { ?> Free(); // Retrieving all the Check codes found $strSQL="SELECT count(*) as Count, Code " . "FROM Accessibility GROUP BY Code " . "ORDER BY Code ASC"; $result=$MyDB->Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($MyDB->NumRows()) { ?> Free(); ?>
:
:
:

FetchArray()) { $code = $row['Code']; ?> " id="acheckcode[]">


htcheck-php-2.0.0~rc1.orig/showtidy.php0000644000000000000000000001014111245716447014733 0ustar // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: showtidy.php,v 1.7 2003/12/30 09:39:23 angusgb Exp $ /////// // Global settings /////// include ("./include/global.inc.php"); include ("./include/header.inc.php"); if (!isset($dbname)) { // Error DisplayErrMsg($strErrorNoDBSelected); die; } else { if (!isset($IDUrl)) { DisplayErrMsg($strErrorNoUrlSelected); die; } // Check whether tidy is properly set if (!isset($Tidy) || !is_executable($Tidy)) { DisplayErrMsg($strErrorNoTidy); die; } // Retrieve Information from the DB $strSQL = "Select Url, Contents" . " FROM Url" . " WHERE IDUrl=" . $IDUrl . ' AND Contents IS NOT NULL'; $result=$MyDB->Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($MyDB->NumRows()>1) { DisplayErrMsg($strErrorDuplicateKey); die; } else if ($MyDB->NumRows()==0) { ?>

FetchArray(); $MyDB->Free(); $URLName = $row["Url"]; $pagetitle = "Database: $dbname - " . $strShowUrlSource . ": " . $URLName; // Creates a temporary file for placing the content of the URL srand(time()); if (!is_dir($TidyDirTmp)) { DisplayErrMsg($strErrorNoDirTmp); die; } $filename = $TidyDirTmp . '/' . md5(rand()) . '.htcheck.tmp'; if (!$fp = fopen($filename, 'w')) { DisplayErrMsg($strErrorFileTmp); die; } fputs($fp, $row['Contents']); fclose($fp); // Execute the tidy command, putting the output in an array exec ("cat $filename | " . $Tidy . ' -q 2>&1', $outarray, $rv); unlink($filename); // erases the temporary file ?>

  1. / :


htcheck-php-2.0.0~rc1.orig/showacheck.php0000644000000000000000000001006711245716447015207 0ustar // // $Id: showacheck.php,v 1.2 2004/05/26 09:38:56 angusgb Exp $ /////// // Global settings /////// include ("./include/global.inc.php"); eval("\$strhome = \"$strDBHome \";"); $linkbar = "". $strhome .""; $linkbar .= " | " . $strBack . ""; include ("./include/header.inc.php"); if (!isset($dbname)) { // Error DisplayErrMsg($strErrorNoDBSelected); echo "" . $strMainPage . ""; die; } else { if (!isset($IDUrl) || !isset($acheckcode)) { // Error DisplayErrMsg($strMissingInfo); echo "". $strhome.""; die; } $strselect = ''; $strfrom = ''; $strwhere = ''; if (!empty($AttrPosition)) { $strselect .= ", ha.Attribute, ha.Content"; $strfrom .= " JOIN HtmlAttribute ha USING (IDUrl, TagPosition, AttrPosition)"; $strwhere .= " AND a.AttrPosition = " . $AttrPosition; } else $strwhere .= " AND a.AttrPosition IS NULL"; if (!empty($TagPosition)) { $strselect .= ", hs.Statement, hs.Row"; $strfrom .= " JOIN HtmlStatement hs USING (IDUrl, TagPosition)"; $strwhere .= " AND a.TagPosition = " . $TagPosition; } else $strwhere .= " AND a.TagPosition IS NULL"; $strSQL = "SELECT Url.Url" . $strselect . " FROM Url, Accessibility a" . $strfrom . " WHERE a.IDUrl =" . $IDUrl . " AND a.Code =" . $acheckcode . $strwhere . " AND Url.IDUrl =" . $IDUrl; $result=$MyDB->Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if (! $num=$MyDB->NumRows()) { DisplayErrMsg($strNoOccurrencies); die; } $row = $MyDB->FetchArray(); include ("./include/header.inc.php"); ?>

: <>
: =""
:

:
:
:

    Free(); $strSQL = "Select IDUrl from Url WHERE IDUrl=$IDUrl AND Contents IS NOT NULL"; $result=$MyDB->Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($num=$MyDB->NumRows()) $DisplaySource = true; else $DisplaySource = false; $MyDB->Free(); if ($DisplaySource) { ?>
htcheck-php-2.0.0~rc1.orig/listurls.php0000644000000000000000000001050511245716447014746 0ustar // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: listurls.php,v 1.19 2004/05/26 09:38:56 angusgb Exp $ /////// // Global settings /////// include ("./include/global.inc.php"); if (!isset($dbname)) { // Error DisplayErrMsg($strErrorNoDBSelected); echo "" . $strMainPage . ""; die; } else { if (!isset($initpage)) $initpage=0; if (!isset($pagesize)) $pagesize=30; if ($all) { // Show all the URLs, retrieved ones as well as not $strGenSQL = "Select Schedule.IDUrl, Schedule.Url, Url.StatusCode, Url.ReasonPhrase, Url.ConnStatus" . " from Schedule LEFT JOIN Url ON Schedule.IDUrl=Url.IDUrl" . " order by Schedule.Status, Schedule.HopCount, Schedule.IDServer" . " LIMIT " . $initpage . ", " . $pagesize; $strCountSQL="select count(*) from Schedule"; $strSection=$strListofAllUrls; $otherinfo="&all=1"; // Keeps on showing the complete list } else { // Shows only the retrieved URLs $otherinfo=""; $strSection=$strListofUrls; if (isset($StatusCode)) { $strWhere=" WHERE StatusCode=" .$StatusCode; $otherinfo=$otherinfo . "&StatusCode=" . $StatusCode; $strSection = $strSection . " - " . $strStatusCode . "=" . $StatusCode; } else $strWhere=""; $strGenSQL = "Select IDUrl, Url, StatusCode, ReasonPhrase, ConnStatus" . " from Url" . $strWhere . " ORDER BY Url ASC " . " LIMIT " . $initpage . ", " . $pagesize; $strCountSQL="select count(*) from Url" . $strWhere; } $pagetitle = "Database: $dbname - " . $strSection; eval("\$strhome = \"$strDBHome \";"); $linkbar = "". $strhome.""; if (!isset($count)) { $count = $MyDB->CountEntries($strCountSQL,$dbname,true); if ($count<0) { DisplayErrMsg($MyDB->errmsg); return; } $MyDB->Free(); } ?>

$count?$count:$initpage+$pagesize), number_format($count)); ?>

Query($dbname, $strGenSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($MyDB->NumRows()) { // At least one occurrence found ?> FetchArray()) { // Get next row $i++; ($i % 2)? $trclass='odd':$trclass='even'; ?>
N. ID Url &
"> -

Free(); } ?>
htcheck-php-2.0.0~rc1.orig/css/0000755000000000000000000000000011245716447013143 5ustar htcheck-php-2.0.0~rc1.orig/css/print.css0000644000000000000000000000012511245716447015007 0ustar .noprint { display: none; } #header { display: none; } #footer { display: none; } htcheck-php-2.0.0~rc1.orig/css/main.css0000755000000000000000000000423511245716447014610 0ustar htcheck-php-2.0.0~rc1.orig/COPYING0000644000000000000000000004311011245716447013405 0ustar GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. htcheck-php-2.0.0~rc1.orig/showurl.php0000644000000000000000000004315111245716447014573 0ustar // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: showurl.php,v 1.35 2006/08/24 12:53:21 angusgb Exp $ /////// // Global settings /////// include ("./include/global.inc.php"); if (!isset($dbname)) { // Error DisplayErrMsg($strErrorNoDBSelected); echo "" . $strMainPage . ""; die; } else { eval("\$strhome = \"$strDBHome \";"); if (!isset($IDUrl)) { // Error DisplayErrMsg($strErrorNoUrlSelected); echo "". $strhome.""; die; } // Retrieve Information from the DB $strSQL = "Select Schedule.Url as SUrl, Schedule.HopCount," . " Schedule.IDReferer, Schedule.IDServer as SIDServer, Url.*" . " from Schedule" . " LEFT JOIN Url ON Schedule.IDUrl=Url.IDUrl" . " WHERE Schedule.IDUrl=" . $IDUrl; $result=$MyDB->Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($MyDB->NumRows()>1) { DisplayErrMsg($strErrorDuplicateKey); die; } else if ($MyDB->NumRows()==0) { ?>

FetchArray(); $MyDB->Free(); $strSQL = "Select IDUrl from Url WHERE IDUrl=" . $IDUrl . ' AND Contents IS NOT NULL'; $result=$MyDB->Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($num=$MyDB->NumRows()) $DisplaySource = true; else $DisplaySource = false; $MyDB->Free(); $Server=""; // Get the server name if ($row["SIDServer"]) { // Get the server name, if any $strSQL = "SELECT Server" . " FROM Server" . " WHERE IDServer=" . $row["SIDServer"]; $result=$MyDB->Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($servrow = $MyDB->FetchArray()) $Server=$servrow["Server"]; $MyDB->Free(); } $RefererUrl=""; // Get the referer if ($row["IDReferer"]) { $strSQL = "Select Schedule.Url" . " from Schedule" . " WHERE Schedule.IDUrl=" . $row["IDReferer"] ; $result=$MyDB->Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } $refrow = $MyDB->FetchArray(); $RefererUrl=$refrow["Url"]; $MyDB->Free(); } $URLName = $row["SUrl"]; $pagetitle = "Database: $dbname - " . $strShowUrl . ": " . $URLName; $linkbar = "". $strhome.""; $linkbar = $linkbar . " | " . "" . $strBack . ""; ?>

' .  var_dump($row) . '
'; ?>

:

:
Server:
:
:
:
:
:
:
:
:
:
:

:

:
:
:
:
:
Query($dbname, $strSQL); if ($resultloc) { DisplayErrMsg($MyDB->errmsg); die; } $rowloc = $MyDB->FetchArray(); $IDLocation=$rowloc["IDUrl"]; $MyDB->Free(); ?> :
:
:

:

: = 0) { ?> Bytes
: Bytes
: Bytes

  • ()
Query($dbname, $strSQL)) { DisplayErrMsg($MyDB->errmsg); die; } else { $row = $MyDB->FetchRow(); $NumWSM_OL=$row[0]; } // Get the number of ingoing links to the current URL $strSQL = "SELECT COUNT(*) " . " FROM Link" . " WHERE Link.IDUrlDest=$IDUrl" . " AND Link.LinkType='Normal'"; if ($result=$MyDB->Query($dbname, $strSQL)) { DisplayErrMsg($MyDB->errmsg); die; } else { $row = $MyDB->FetchRow(); $NumWSM_IL=$row[0]; } // Get the number of documents in outgoing links from the current URL $strSQL = "SELECT DISTINCT IDUrlDest " . " FROM Link" . " WHERE Link.IDUrlSrc=$IDUrl" . " AND Link.LinkType='Normal'"; if ($result=$MyDB->Query($dbname, $strSQL)) { DisplayErrMsg($MyDB->errmsg); die; } else $NumWSM_OD = $MyDB->NumRows(); // Get the number of documents in ingoing links from the current URL $strSQL = "SELECT DISTINCT IDUrlSrc " . " FROM Link" . " WHERE Link.IDUrlDest=$IDUrl" . " AND Link.LinkType='Normal'"; if ($result=$MyDB->Query($dbname, $strSQL)) { DisplayErrMsg($MyDB->errmsg); die; } else $NumWSM_ID = $MyDB->NumRows(); // Calculates the total number of documents from links and links themselves // Obviously documents from links are always <= than links $NumWSM_L = $NumWSM_OL + $NumWSM_IL; $NumWSM_D = $NumWSM_OD + $NumWSM_ID; $ProWSM_OL = ($NumWSM_L > 0)?($NumWSM_OL / $NumWSM_L):0; $ProWSM_IL = ($NumWSM_L > 0)?($NumWSM_IL / $NumWSM_L):0; $ProWSM_OD = ($NumWSM_D > 0)?($NumWSM_OD / $NumWSM_D):0; $ProWSM_ID = ($NumWSM_D > 0)?($NumWSM_ID / $NumWSM_D):0; ?>

:   [ ]

:   0) : ?> 0) : ?> <?php
   echo $strWSM_ProOL . ': ' . number_format($ProWSM_OL, 2); ?> 0) : ?><?php
   echo $strWSM_ProIL . ': ' . number_format($ProWSM_IL, 2); ?> -
:   0) : ?> 0) : ?> <?php
   echo $strWSM_ProOD . ': ' . number_format($ProWSM_OD, 2); ?> 0) : ?><?php
   echo $strWSM_ProID . ': ' . number_format($ProWSM_ID, 2); ?> -
<?php
   echo $strWSM_ExplaOut; ?>   -   <?php
   echo $strWSM_ExplaIn; ?>
:   0) echo number_format(($NumWSM_OL / $NumWSM_IL), 2); else echo '-'; ?>
:   0) echo number_format(($NumWSM_OD / $NumWSM_ID), 2); else echo '-'; ?>
Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } ?>

:

NumRows()) { ?> :
FetchArray()) { ++$i; ($i % 2)? $trclass='odd':$trclass='even'; ?>
Url
"> &TagPosition=&AttrPosition=">


:

Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($num=$MyDB->NumRows()) { ?> :
FetchArray()) { ++$i; ($i % 2)? $trclass='odd':$trclass='even'; ?>
Url
"> &TagPosition=&AttrPosition=">


htcheck-php-2.0.0~rc1.orig/showsource.php0000644000000000000000000000442311245716447015270 0ustar // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: showsource.php,v 1.9 2003/12/30 09:39:23 angusgb Exp $ /////// // Global settings /////// include ("./include/global.inc.php"); include ("./include/header.inc.php"); if (!isset($dbname)) { // Error DisplayErrMsg($strErrorNoDBSelected); die; } else { if (!isset($IDUrl)) { DisplayErrMsg($strErrorNoUrlSelected); die; } // Retrieve Information from the DB $strSQL = "Select Url, Contents" . " FROM Url" . " WHERE IDUrl=" . $IDUrl . ' AND Contents IS NOT NULL'; $result=$MyDB->Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($MyDB->NumRows()>1) { DisplayErrMsg($strErrorDuplicateKey); die; } else if ($MyDB->NumRows()==0) { ?>

FetchArray(); $MyDB->Free(); $URLName = WriteHTML($row["Url"]); $pagetitle = "Database: $dbname - " . $strShowUrlSource . ": " . $URLName; ?>

htcheck-php-2.0.0~rc1.orig/index.php0000644000000000000000000001325511245716447014201 0ustar // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: index.php,v 1.22 2004/05/26 09:38:56 angusgb Exp $ include ("./include/global.inc.php"); // // Show Summary function // Declaration for PHP3 compatibility // function ShowSummary($dbname, $strSQL, $strHeader) { global $MyDB; ?>

CreateHTMLTable($strSQL, $dbname, true); if ($result<0) { DisplayErrMsg($MyDB->errmsg); return; } else if (!result): ?>

" . $strMainPage . ""; $linkbar = $linkbar . " | " . "" . $strDBDeletion . ""; } else { $pagetitle = $strMainPage; $linkbar=""; } ?> GetHtCheckDBList()) { DisplayErrMsg($MyDB->errmsg); return; } // Redirect the dinamically created list to the managed one $dblist = $MyDB->HtDBs; // Set the number of databases $numdbs = count ($dblist); } if ($numdbs) { if ($numdbs == 1) $dbname = $dblist[0]; else { // At least one database found eval ("\$strNumDBs=\"$strNumDBs\";"); ?>

:


:

Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($MyDB->NumRows()) { $row = $MyDB->FetchArray(); ?> :
:
:
Free(); $result=$MyDB->GetGeneralInfo($dbname); if ($result<0) { DisplayErrMsg($MyDB->errmsg); return; } else { ?> : Info["Server"]); ?>
: Info["Schedule"]); ?>
: Info["Url"]); ?>
: Info["HtmlStatement"]); ?> (: Info["HtmlAttribute"]); ?>)
: Info["Link"]); ?>

:

1" . " order by Requests DESC"; ShowSummary($dbname, $strSQL, $strServersSeenOrdIDServer); // Connection results $strSQL = "Select ConnStatus as '". $strConnectionStatus . "'," . " count(*) as 'Num.' from Url group by ConnStatus"; ShowSummary($dbname, $strSQL, $strConnectionResults); // Content-Type results $strSQL = "Select ContentType as 'Content Type'," . " count(*) as '". $strNumber . "' from Url group by ContentType"; ShowSummary($dbname, $strSQL, $strContentTypeResults); // Cookies $strSQL = "SELECT Name, Value, Path, Domain, SrcUrl as '$strUrl' from Cookies"; ShowSummary($dbname, $strSQL, $strCookiesReport); } } ?>
htcheck-php-2.0.0~rc1.orig/showlink.php0000644000000000000000000001422411245716447014725 0ustar // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: showlink.php,v 1.26 2003/12/30 09:39:23 angusgb Exp $ /////// // Global settings /////// include ("./include/global.inc.php"); if (!isset($dbname)) { // Error DisplayErrMsg($strErrorNoDBSelected); echo "" . $strMainPage . ""; die; } else { eval("\$strhome = \"$strDBHome \";"); if (!isset($IDUrl) || !isset($TagPosition) || !isset($AttrPosition)) { // Error DisplayErrMsg($strMissingInfo); echo "". $strhome.""; die; } $strSQL = "Select Schedule.Url as DestUrl, SrcUrl.Url as SourceUrl," . " Schedule.Status, Link.IDUrlSrc, Link.IDUrlDest," . " Link.LinkType, LinkResult, LinkDomain, Link.Anchor, " . " Url.Url, Url.StatusCode, Url.ReasonPhrase, Url.ContentType," . " HtmlStatement.Statement, HtmlStatement.Row," . " HtmlAttribute.Attribute, HtmlAttribute.Content" . " from Url AS SrcUrl, Schedule, Link, HtmlStatement, HtmlAttribute" . " LEFT JOIN Url ON Url.IDUrl=Link.IDUrlDest " . " WHERE Link.IDUrlSrc=" . $IDUrl . " AND " . " Link.TagPosition=" . $TagPosition . " AND " . " Link.AttrPosition=" . $AttrPosition . " AND " . " SrcUrl.IDUrl=Link.IDUrlSrc AND " . " HtmlStatement.IDUrl=" . $IDUrl . " AND " . " HtmlAttribute.IDUrl=" . $IDUrl . " AND " . " HtmlStatement.TagPosition=Link.TagPosition AND " . " HtmlAttribute.TagPosition=Link.TagPosition AND " . " HtmlAttribute.AttrPosition=Link.AttrPosition AND " . " Schedule.IDUrl=Link.IDUrlDest"; $result=$MyDB->Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if (! $num=$MyDB->NumRows()) { DisplayErrMsg($strNoOccurrencies); die; } // Information retrieved $link = $MyDB->FetchArray(); $URLName = $link["SourceUrl"]; $DestLink = $link["DestUrl"]; $ShowURLName = GetURL($URLName); $ShowDestLink = GetURL($DestLink); if (strlen($link["Anchor"])) { $DestLink .= "#" . $link["Anchor"]; $ShowDestLink .= "#" . $link["Anchor"]; } $pagetitle = "Database: $dbname - " . $strShowLink . ": " . $URLName; $linkbar = "". $strhome .""; $linkbar = $linkbar . " | " . "" . $strBack . ""; ?>

:

: ">
: ">
:
:
:
: .png" alt="" width="40" height="35" border=1" bordercolor="black" align="middle" hspace="5">
:

: - : - :

Free(); $strSQL = "Select IDUrl from Url WHERE IDUrl=" . $link['IDUrlSrc'] . ' AND Contents IS NOT NULL'; $result=$MyDB->Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($num=$MyDB->NumRows()) $DisplaySource = true; else $DisplaySource = false; $MyDB->Free(); ?>

: <>
:
: =""


htcheck-php-2.0.0~rc1.orig/include/0000755000000000000000000000000011245716447013776 5ustar htcheck-php-2.0.0~rc1.orig/include/functions.inc.php0000644000000000000000000000726211245716447017276 0ustar // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: functions.inc.php,v 1.13 2004/06/29 11:00:39 angusgb Exp $ if ( defined( '__FUNCTIONS_INC' ) ) return; define( '__FUNCTIONS_INC', 1 ); include ("./include/global.inc.php"); // Get the translation table for characters $XSS_table = get_html_translation_table(HTML_ENTITIES); $XSS_table['('] = '('; $XSS_table[')'] = ')'; // Function for XSS safe writing (www.cgisecurity.com) function WriteHTML($str) { global $XSS_table; return strtr($str, $XSS_table); } function DisplayErrMsg($errmsg) { ?>
= 1) { $justone=true; if ($initpage != 0) { // Show the first page Link global $strFirst; ?> | | 1) { echo ' | ' . $numpag . ''; } else $justone=false; if ($count > ($initpage + $pagesize)) { $max = $numpag + 4; if ($max > $pag) $max = $pag; for ($i = $numpag + 1; $i <= $max ; ++$i) { ?> | | 1) { // Show the full list Link ?> 0 && strlen($url) > $MaxURLStrLength) return WriteHTML(substr($url, 0, $MaxURLStrLength) . '[...]'); else return WriteHTML($url); } ?> htcheck-php-2.0.0~rc1.orig/include/it.inc.php0000644000000000000000000003770011245716447015702 0ustar // // $Id: it.inc.php,v 1.23 2006/08/24 12:53:21 angusgb Exp $ if ( defined( '__ITALIAN_INC' ) ) return; define( '__ITALIAN_INC', 1 ); /* Main Page */ $strMainPage = "Home Page"; $strNumDBs = "\$numdbs database di ht://Check sono stati trovati su \$hostname"; $strNoDBs = "Mi dispiace. Nessun database di ht://Check stato trovato su \$hostname"; $strChooseaDB = "Scelta"; $strSelectaDB = "Scegli un database"; /* Main page of a database */ $strDBSelected = "Database '\$dbname' selezionato"; $strGeneralInfo = "Informazioni generali"; $strServersEncountered = "Server visitati"; $strScheduledURLS = "URL trovati (sia visitati che scartati)"; $strRetrievedURLS = "URL effettivamente recuperati"; $strHTMLStatements = "Istruzioni HTML"; $strHTMLAttributes = "Attributi HTML"; $strLinks = "Link"; $strShowListUrls = "Mostra la lista completa degli URL trovati"; $strShowListUrlsSeen = "Mostra la lista degli URL recuperati"; $strShowNotFoundUrls = "Mostra la lista degli URL non trovati (Codice di stato 404)"; $strShowListLinks = "Mostra la lista dei link"; $strShowListUrlsFltr = "Mostra la lista degli URL recuperati" . " (con possibilit di filtro)"; $strHTTPRequestsResults = "Riepilogo dei risultati delle richieste HTTP"; $strServersSeenOrdIDServer = "Riepilogo dei server visitati (ordinati per richieste)"; $strConnectionResults = "Riepilogo dei risultati di connessione"; $strContentTypeResults = "Riepilogo dei Content-type riscontrati"; $strCookiesReport = "Riepilogo dei cookie riscontrati"; $strUser = "Utente MySQL che ha eseguito la scansione"; $strStartTime = "Orario di inizio di htcheck"; $strEndTime = "Orario di inizio di fine"; /* Sections */ $strListofUrls = "Lista degli URL recuperati"; $strListofAllUrls = "Lista di tutti gli URL trovati"; $strListofLinks = "Lista dei link"; $strShowUrl = "Informazioni sull'URL"; $strShowLink = "Informazioni sul link"; $strShowUrlSource = "Sorgente dell'URL"; $strDBHome = "Home Page '\$dbname'"; $strDBDeletion = "Cancellazione Database"; $strDBDeleted = "Database '\$dbname' cancellato"; /* General */ $strUrl = "URL"; $strRequests = "Richieste"; $strProtocol = "Protocollo"; $strConnectionStatus = "Stato della connessione"; $strContentType = "Content type"; $strCharset = "Set di caratteri (charset)"; $strDocType = "Tipo di documento (doctype)"; $strContentLanguage = "Linguaggio del contenuto"; $strTransferEncoding = "Codifica di trasferimento"; $strStatusCode = "Codice di stato"; $strReasonPhrase = "Risultato"; $strNumber = "Numero"; $strNoOccurrencies = "Nessun elemento trovato"; $strWebServerInfo = "Informazioni sul server web"; $strLastModified = "Data dell'ultima modifica"; $strNoLastModified = "non disponibile"; $strLastAccess = "Data dell'ultimo accesso"; $strNoLastAccess = "non disponibile"; $strLocation = "URL redirottato"; $strSize = "Dimensione"; $strTitle = "Titolo della pagina"; $strDescription = "Descrizione della pagina"; $strKeywords = "Parole chiave della pagina"; $strSizeAdd = "Dimensione aggiuntiva (compreso immagini, ...)"; $strPageWeight = "Dimensione complessiva della pagina (supponendo utilizzo cache)"; $strRetrievingFlag = "URL contrassegnato come"; $strLinkType = "Tipo di link (normale, diretto o redirezione HTTP)"; $strLinkResult = "Risultato del Link"; $strLinkDomain = "Dominio del Link"; $strHTMLStatement = "Istruzione HTML"; $strHTMLStatementRow = "Numero di riga della istruzione HTML"; $strHTMLAttribute = "Attributo HTML"; $strAnchor = "Ancora"; $strReferer = "URL richiamante"; $strHopCount = "Distanza in click dalla pagina iniziale"; $strUnknown = "Informazione mancante"; $strOther = "Altro"; $strNull = "Non definito"; $strServer = "Seleziona un server"; /* Page Management */ $strRecordFound = "Elementi trovati:"; $strListPageInfo = "Lista dal num. %s al %s su %s elementi trovati"; $strNext = "Prossimo"; $strPrevious = "Precedente"; $strFirst = "Inizio"; $strLast = "Fine"; $strBack = "Indietro"; $strAll = "Elenco completo"; /* Filters */ $strFilterLinks = "Imposta il filtro per la ricerca dei link"; $strLike = "Uguale a"; $strNotLike = "Diverso da"; $strRegExp = "Espr. Reg."; $strNotRegExp = "Non Espr. Reg."; $strLinkSubmit = "Interroga il database"; $strGt = "Maggiore di"; $strLt = "Minore di"; /* List of links page */ $strAllLinks = "Tutti"; $strOK = "OK"; $strNotChecked = "Non controllato"; $strBroken = "Link Rotto"; $strRedirected = "Link Redirottato"; $strAnchorNotFound = "Ancora non trovata"; $strNotAuthorized = "Non autorizzato"; $strEMail = "Indirizzo e-m@il"; $strJavascript = "Javascript"; $strBadEncoded = "Errore di codifica URL"; $strNormal = "Normale"; $strDirect = "Diretto"; $strRedirection = "Redirezione HTTP"; $strSameServer = "Stesso server"; $strInternal = "Interno al dominio"; $strExternal = "Esterno al dominio"; $strHelpOnString = "E' possibile specificare stringhe di caratteri da ricercare " . "attraverso '$strLike' e '$strNotLike'. La prima " . "restituisce come risultato quei record che soddisfano " . "il criterio di ricerca impostato nel pattern SQL, " . "mentre restituisce il contrario. " . "E' possibile utilizzare caratteri speciali come " . "'%' (qualsiasi sequenza di caratteri) e '_' (qualsiasi " . "singolo carattere)."; $strHelpOnRegExp = "Scegliendo '$strRegExp', possibile utilizzare le " . "espressioni regolari nelle interrogazioni. " . "Vengono restituiti i record che soddisfano i criteri " . "di ricerca impostati. Per ottenere l'inverso, " . "utilizzare '$strNotRegExp'."; /* Show Url page */ $strFilterUrls = "Imposta il filtro per la ricerca degli URL"; $strInfoAvailable = "Informazioni disponibili"; $strSizeInfo = "Informazioni riguardanti le dimensioni della risorsa"; $strRetrievingInfo = "Informazioni sul processo di recupero della risorsa"; $strOutgoingLinks = "Informazioni riguardanti i link 'in uscita' (da questa risorsa)"; $strIncomingLinks = "Informazioni riguardanti i link 'in entrata' (verso questa risorsa)"; $strNotRetrieved = "URL non recuperato"; $strShow = "Visualizza"; $strAllCTypes = "Tutti"; $strAllCharsets = "Tutti"; $strAllDocTypes = "Tutti"; $strAllSCodes = "Tutti"; /* Show Link page */ $strReferencingUrl = "URL richiamante"; $strReferencedUrl = "URL richiamato"; $strLinkIssued = "Questo link stato creato da"; $strOperations = "Operazioni disponibili"; $strOpenThisUrl = "Apri l'URL in un'altra finestra"; $strShowThisUrlSource = "Mostra il sorgente dell'URL in un'altra finestra"; $strShowTidyReport = "Mostra il report generato da 'tidy' per questo URL"; $strOpenReferencingUrl = "Apri l'URL richiamante in un'altra finestra"; $strOpenReferencedUrl = "Apri l'URL richiamato in un'altra finestra"; /* Database Drop Page */ $strDBDropSure = "Sei sicuro vuoi cancellare il database? " . "Tutti i dati verranno persi per sempre."; $strDBDrop = "S, voglio eliminare il database"; $strDBCancel = "No, ci ho ripensato ..."; /* Web structure mining indexes */ $strWSM_Notes = 'Note'; $strWSM_Indexes = "Indici di Web Structure Mining"; $strWSM_L = "L: link sia in entrata (da documenti diversi) che in uscita relativi a questo URL"; $strWSM_D = "D: documenti correlati al presente URL da link sia in entrata che in uscita"; $strWSM_OL = "LU: link in uscita verso documenti diversi da questo URL"; $strWSM_IL = "LE: link in entrata da documenti diversi verso questo URL"; $strWSM_OD = "DU: documenti che sono collegati a questo URL da link in esso presenti"; $strWSM_ID = "DE: documenti che hanno al loro interno un link a questo URL"; $strWSM_NumOL = "Numero di LU"; $strWSM_NumIL = "Numero di LE"; $strWSM_NumOD = "Numero di DU"; $strWSM_NumID = "Numero di DE"; $strWSM_ProOL = "LU/L"; $strWSM_ProIL = "LE/L"; $strWSM_ProOD = "DU/D"; $strWSM_ProID = "DE/D"; $strWSM_RatioL = "LU/LE"; $strWSM_RatioD = "DU/DE"; $strWSM_ExplaL = "Caratteristiche dei link"; $strWSM_ExplaD = "Caratteristiche dei documenti collegati"; $strWSM_ExplaIn = "In entrata"; $strWSM_ExplaOut = "In Uscita"; $strWSM_Ratios = "Rapporti"; /* Tidy support */ $strTidyMessages = "L'esecuzione di 'tidy' ha prodotto i seguenti 'messaggi'"; $strTidyWarnings = "L'esecuzione di 'tidy' ha prodotto le seguenti 'warning'"; $strTidyErrors = "L'esecuzione di 'tidy' ha prodotto i seguenti 'errori'"; $strTidyHTML = "Ecco il sorgente HTML proposto da 'tidy'"; $strTidyRow = "riga"; $strTidyColumn = "colonna"; $strErrorNoTidy = "Errore! Il programma per la validazione HTML (tidy) non correttamente impostato."; $strErrorNoDirTmp = "Errore! La directory temporanea per tidy non valida"; $strErrorFileTmp = "Errore! Impossibile scrivere il file temporaneo per tidy"; /* Errors */ $strErrorNoDBSelected = "Errore! Nessun database stato selezionato. Torna indietro."; $strErrorNoUrlSelected = "Errore! Nessun URL stato selezionato. Torna indietro."; $strErrorMissingInfo = "Errore! Informazioni mancanti. Torna indietro."; /* Open Accessibility Checks (http://checker.atrc.utoronto.ca/) */ $strShowListAchecks = 'Mostra la lista degli url con errori di accessibilit' . ' (con possibilit di filtro)'; $strListAchecks = "Lista degli errori di accessibilit individuati"; $strAcheckInfo = 'Informazioni disponibili sull\'errore rilevato'; $strAcheckError = 'Errore'; $strAcheckDescription = 'Descrizione OAC'; $strAcheckHowToRepair = 'Come riparare l\'errore'; $strAcheckCode = "Codice dell'errore"; $strSelectAchecks = "Scegli fra gli errori di accessibilit da cercare"; $strAchecks = array(); // OAC #1 $strAchecks[1] = array( 'description' => 'L\'elemento IMG deve avere un attributo ALT', 'error' => 'IMG senza attributo ALT', 'repair' => 'Aggiungere l\'attributo ALT all\'elemento IMG' ); // OAC #2 $strAchecks[2] = array( 'description' => 'L\'attributo ALT non pu contenere ' . 'lo stesso valore dell\'attributo SRC', 'error' => 'ALT contenente il nome del file', 'repair' => 'Modificare l\'attributo ALT' ); // OAC #3 $strAchecks[3] = array( 'description' => 'L\'attributo ALT dell\'elemento IMG non deve essere ' . 'pi lungo di 150 caratteris', 'error' => 'Attributo ALT troppo lungo (pi di 150 caratteri)', 'repair' => 'Modificare l\'attributo ALT' ); // OAC # 7 $strAchecks[7] = array( 'description' => 'Se l\'elemento IMG un link, l\'attributo ALT non pu ' . 'essere vuoto o valorizzato con uno spazio', 'error' => 'ALT non valido per IMG usata come link', 'repair' => 'Modificare l\'attributo ALT dell\'elemento IMG' ); // OAC #27 $strAchecks[27] = array( 'description' => 'Questo errore generato per tutti gli elementi BLINK', 'error' => 'Elemento BLINK', 'repair' => 'Rimuovere l\'elemento BLINK (sostituirlo con STRONG o EM)' ); // OAC #37 $strAchecks[37] = array( 'description' => '', 'error' => 'Annidamento sbagliato degli header - H2 non segue un H1', 'repair' => 'Modificare i livelli degli header in modo che H2 segua H1' ); // OAC #38 $strAchecks[38] = array( 'description' => 'Il primo elemento header che precede un H3 deve essere un elemento H2', 'error' => 'Annidamento sbagliato degli header - H3 non segue un H2', 'repair' => 'Modificare i livelli degli header in modo che H3 segua H2' ); // OAC #39 $strAchecks[39] = array( 'description' => 'Il primo elemento header che precede un H4 deve essere un elemento H3', 'error' => 'Annidamento sbagliato degli header - H4 non segue un H3', 'repair' => 'Modificare i livelli degli header in modo che H4 segua H3' ); // OAC #40 $strAchecks[40] = array( 'description' => 'Il primo elemento header che precede un H5 deve essere un elemento H4', 'error' => 'Annidamento sbagliato degli header - H5 non segue un H4', 'repair' => 'Modificare i livelli degli header in modo che H5 segua H4' ); // OAC #41 $strAchecks[41] = array( 'description' => 'Il primo elemento header che precede un H6 deve essere un elemento H5', 'error' => 'Annidamento sbagliato degli header - H6 non segue un H5', 'repair' => 'Modificare i livelli degli header in modo che H6 segua H5' ); // OAC #48 $strAchecks[48] = array( 'description' => 'L\'elemento HTML deve contenere un attributo LANG', 'error' => 'Linguaggio del documento non identificato', 'repair' => 'Aggiungere un attributo LANG all\'elemento HTML del tuo ' . 'documento. L\'attributo LANG deve essere un codice di linguaggio ' . 'di 2 o 3 lettere come viene definito nelle specifiche ISO 639' ); // OAC #50 $strAchecks[50] = array( 'description' => 'L\'elemento TITLE deve essere presente nella sezione HEAD del documento', 'error' => 'Mancanza del TITLE nel documento', 'repair' => 'Aggiungere un elemento TITLE nella sezione HEAD del tuo documento' ); // OAC #51 $strAchecks[51] = array( 'description' => 'L\'elemento TITLE non pu essere vuoto o contenere solo spazi', 'error' => 'TITLE vuoto', 'repair' => 'Aggiungere del testo all\'elemento TITLE' ); // OAC #52 $strAchecks[52] = array( 'description' => 'L\'elemento TITLE deve contenere meno di 150 caratteri', 'error' => 'TITLE troppo lungo', 'repair' => 'Modificare l\'elemento TITLE' ); // OAC #58 $strAchecks[58] = array( 'description' => 'L\'elemento INPUT element che contiene un attributo TYPE ' . 'valorizzato a "image" deve avere anche un attributo ALT', 'error' => 'ALT mancante in un\'immagine usata come bottone INPUT', 'repair' => 'Aggiungere un attributo ALT che descriva l\'immagine del bottone INPUT' ); // OAC #61 $strAchecks[61] = array( 'description' => 'L\'elemento INPUT di tipo immagine non pu avere come ' . 'valore dell\'attributo ALT il nome del file impostato come SRC', 'error' => 'Immagine utilizzata come elemento INPUT - ' . 'Testo alternativo sospetto (uguale al nome del file)', 'repair' => '' ); // OAC #69 $strAchecks[69] = array( 'description' => '', 'error' => 'Elemento MARQUEE', 'repair' => '' ); // OAC #71 $strAchecks[71] = array( 'description' => '', 'error' => 'Auto-redirect', 'repair' => '' ); // OAC #72 $strAchecks[72] = array( 'description' => '', 'error' => 'Auto-refresh', 'repair' => '' ); // OAC #116 $strAchecks[116] = array( 'description' => 'Questo errore generato per tutti gli elementi B', 'error' => 'Elemento B', 'repair' => 'Sostituire l\'elemento B con EM o STRONG' ); // OAC #117 $strAchecks[117] = array( 'description' => 'Questo errore generato per tutti gli elementi I', 'error' => 'Elemento I', 'repair' => 'Sostituire l\'elemento I con EM o STRONG' ); /* // OAC #NUM $strAchecks[NUM] = array( 'description' => 'TXT', 'error' => 'TXT', 'repair' => 'TXT' ); */ /* ht://Dig notification system */ $strHtDigEmail = 'Servizio di notifica di ht://Dig - campo email'; $strHtDigEmailSubject = 'Servizio di notifica di ht://Dig - campo oggetto'; $strHtDigNotificationDate = 'Servizio di notifica di ht://Dig - campo scadenza'; ?> htcheck-php-2.0.0~rc1.orig/include/db.inc.php0000644000000000000000000000373211245716447015651 0ustar // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: db.inc.php,v 1.4 2003/12/30 09:39:23 angusgb Exp $ if ( defined( '__DB_INC' ) ) return; define( '__DB_INC', 1 ); class DB { // Class attributes var $hostname; // Host to connect to var $username; // User name of the connection var $password; // Password of the user var $HtDBs; // Variable containing the updated list of the htcheck databases var $Info; // General info (array) // Get general crawling info function GetGeneralInfo($DBName) { // Select the Database if ($this->SelectDB) return -1; // Array of table names $tblnames=array("Schedule", "HtmlAttribute", "HtmlStatement", "Link", "Server", "Url"); $num = count($tblnames); // Store all the tables record numbers for ($i=0; $i < $num; $i++) { $strSQL="SELECT count(*) from " . $tblnames[$i]; $numsched=$this->CountEntries($strSQL,$DBName); if ( $numsched <0 ) return $numsched; else $this->Info[$tblnames[$i]]=$numsched; } } function CountEntries ($strSQL, $DBName, $Select=false) { if ($Select && $this->SelectDB($DBName)) // We must select the db first of all return -1; // Error // Database selected, let's query it if ($this->Query($DBName, $strSQL)) return -2; // Let's fetch the row if ($row = $this->FetchRow()) $total = $row[0]; else $total = -3; return $total; } } ?> htcheck-php-2.0.0~rc1.orig/include/footer.inc.php0000644000000000000000000000153411245716447016560 0ustar // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: footer.inc.php,v 1.5 2003/12/30 09:39:23 angusgb Exp $ if ( defined( '__FOOTER_INC' ) ) return; define( '__FOOTER_INC', 1 ); ?>
htcheck-php-2.0.0~rc1.orig/include/en.inc.php0000644000000000000000000003606011245716447015666 0ustar // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: en.inc.php,v 1.23 2006/08/24 12:53:21 angusgb Exp $ if ( defined( '__ENGLISH_INC' ) ) return; define( '__ENGLISH_INC', 1 ); /* Main Page */ $strMainPage = "Main Page"; $strNumDBs = "\$numdbs ht://Check databases have been found on \$hostname"; $strNoDBs = "Sorry. No ht://Check databases have been found on \$hostname"; $strChooseaDB = "Choose"; $strSelectaDB = "Select a database"; /* Main page of a database */ $strDBSelected = "Database '\$dbname' selected"; $strGeneralInfo = "General info"; $strServersEncountered = "Servers encountered"; $strScheduledURLS = "Scheduled URLS (both visited and discarded)"; $strRetrievedURLS = "Retrieved URLS"; $strHTMLStatements = "HTML statements"; $strHTMLAttributes = "HTML attributes"; $strLinks = "Links"; $strShowListUrls = "Show the complete URLs list"; $strShowListUrlsSeen = "Show the list of URLs that have been seen"; $strShowNotFoundUrls = "Show the list of not found URLs (Status code 404)"; $strShowListLinks = "Show the list of links retrieved"; $strShowListUrlsFltr = "Show the retrieved URLs list (with filter)"; $strHTTPRequestsResults = "Summary of HTTP requests results"; $strServersSeenOrdIDServer = "Summary of HTTP Servers that have been seen (ordered by requests)"; $strConnectionResults = "Summary of Connection results"; $strContentTypeResults = "Summary of Content-Type encountered"; $strCookiesReport = "Summary of the cookies retrieved"; $strUser = "MySQL user who performed the crawl"; $strStartTime = "Start Time"; $strEndTime = "End Time"; /* Sections */ $strListofUrls = "List of retrieved Urls"; $strListofAllUrls = "List of retrieved and not retrieved Urls"; $strListofLinks = "List of the links"; $strShowUrl = "URL info"; $strShowLink = "Link info"; $strShowUrlSource = "URL Source"; $strDBHome = "'\$dbname' Home Page"; $strDBDeletion = "Database deletion"; $strDBDeleted = "Database '\$dbname' dropped"; /* General */ $strUrl = "URL"; $strRequests = "Requests"; $strProtocol = "Protocol"; $strConnectionStatus = "Connection Status"; $strContentType = "Content type"; $strCharset = "Charset"; $strDocType = "DocType"; $strContentLanguage = "Content language"; $strTransferEncoding = "Transfer Encoding"; $strStatusCode = "Status Code"; $strReasonPhrase = "Reason Phrase"; $strNumber = "Number"; $strNoOccurrencies = "No occurrencies"; $strWebServerInfo = "Web Server Info"; $strLastModified = "Last modified time"; $strNoLastModified = "not available"; $strLastAccess = "Last access time"; $strNoLastAccess = "not available"; $strLocation = "Location"; $strSize = "Size"; $strTitle = "Page title"; $strDescription = "Page description"; $strKeywords = "Page keywords"; $strSizeAdd = "Size of resources loaded together (images, sounds, ...)"; $strPageWeight = "Total weight of the page (caching supposed)"; $strRetrievingFlag = "URL marked as"; $strLinkType = "Link type"; $strLinkResult = "Result"; $strLinkDomain = "Link domain"; $strHTMLStatement = "HTML statement"; $strHTMLStatementRow = "Row number of HTML statement"; $strHTMLAttribute = "HTML attribute"; $strAnchor = "Anchor"; $strReferer = "Referer URL"; $strHopCount = "Hop count (distance in clicks from the starting page)"; $strUnknown = "Unknown"; $strOther = "Other"; $strNull = "Not defined"; $strServer = "Select a server"; /* Page Management */ $strRecordFound = "Records found:"; $strListPageInfo = "List from n. %s to %s out of %s records found"; $strNext = "Next"; $strPrevious = "Previous"; $strFirst = "First"; $strLast = "Last"; $strBack = "Back"; $strAll = "Full list"; /* Filters */ $strFilterLinks = "Set the filter for the list of links"; $strLike = "Like"; $strNotLike = "Not like"; $strRegExp = "RegExp"; $strNotRegExp = "Not RegExp"; $strGt = "Greater than"; $strLt = "Less than"; /* List of links page */ $strLinkSubmit = "Submit"; $strAllLinks = "All of them"; $strOK = "OK"; $strNotChecked = "Not checked"; $strBroken = "Broken link"; $strRedirected = "Redirected link"; $strAnchorNotFound = "Anchor not found"; $strNotAuthorized = "Not Authorized"; $strEMail = "E-m@il address"; $strJavascript = "Javascript URL"; $strBadEncoded = "Bad encoded URL"; $strNormal = "Normal link"; $strDirect = "Direct link"; $strRedirection = "HTTP Redirection"; $strSameServer = "Same Web server (host:port)"; $strInternal = "Internal"; $strExternal = "External"; $strHelpOnString = "You can set patterns to be matched with '$strLike' " . "and '$strNotLike'. The first, gives you back results that " . "match your SQL pattern, whereas the latter gives back those " . "that don't match it. You can use wildcard characters like " . "'%' (any sequence of characters) and '_' (any single " . "character)."; $strHelpOnRegExp = "By choosing the '$strRegExp' option, you can use the extended " . "regular expression match. Results that match your expression " . "are given back. In order to obtain those records that " . "don't match your regular expression, use '$strNotRegExp'."; /* Show Url page */ $strFilterUrls = "Set the filter for the list of URLs"; $strInfoAvailable = "Info available"; $strSizeInfo = "Info about the size of the resource"; $strRetrievingInfo = "Info about the retrieving process"; $strOutgoingLinks = "Info about outgoing links"; $strIncomingLinks = "Info about incoming links"; $strNotRetrieved = "URL not retrieved"; $strShow = "Show"; $strAllCTypes = "All"; $strAllCharsets = "All"; $strAllDocTypes = "All"; $strAllSCodes = "All"; /* Show Link page */ $strReferencingUrl = "Referencing URL"; $strReferencedUrl = "Referenced URL"; $strLinkIssued = "This link has been issued by"; $strOperations = "Available operations"; $strOpenThisUrl = "Open this URL in a new window"; $strShowThisUrlSource = "Show the HTML source of this URL in a new window"; $strShowTidyReport = "Show the output generated by 'tidy' for this URL"; $strOpenReferencingUrl = "Open referencing URL in a new window"; $strOpenReferencedUrl = "Open referenced URL in a new window"; /* Database Drop Page */ $strDBDropSure = "Are you sure you want to drop the database? " . "All data will be lost forever"; $strDBDrop = "Yes, I want to drop the database"; $strDBCancel = "No, I'd better keep it alive"; /* Web structure mining indexes */ $strWSM_Notes = 'Notes'; $strWSM_Indexes = "Indexes of Web Structure Mining"; $strWSM_L = "L: links, both ingoing (from different documents) and outgoing for this URL"; $strWSM_D = "D: documents, related to this URL by both outgoing and incoming links"; $strWSM_OL = "OL: outgoing links from this URL to others"; $strWSM_IL = "IL: incoming links coming to this URL from different ones"; $strWSM_OD = "OD: documents linked to this URL by outgoing links within it"; $strWSM_ID = "ID: documents which have links to this URL"; $strWSM_NumOL = "Number of OL"; $strWSM_NumIL = "Number of IL"; $strWSM_NumOD = "Number of OD"; $strWSM_NumID = "Number of ID"; $strWSM_ProOL = "OL/L"; $strWSM_ProIL = "IL/L"; $strWSM_ProOD = "OD/D"; $strWSM_ProID = "ID/D"; $strWSM_RatioL = "OL/IL"; $strWSM_RatioD = "OD/ID"; $strWSM_ExplaL = "Characteristics of links"; $strWSM_ExplaD = "Characteristics of linked documents"; $strWSM_ExplaIn = "Incoming"; $strWSM_ExplaOut = "Outgoing"; $strWSM_Ratios = "Rapporti"; /* Tidy support */ $strTidyMessages = "The execution of 'tidy' produced the following 'messages'"; $strTidyWarnings = "The execution of 'tidy' produced the following 'warnings'"; $strTidyErrors = "The execution of 'tidy' produced the following 'errors'"; $strTidyHTML = "Here is the HTML source code proposed by 'tidy'"; $strTidyRow = "row"; $strTidyColumn = "column"; $strErrorNoTidy = "Error! The application for the validation of the HTML source code (tidy) is not properly set. Look at the configuration file"; $strErrorNoDirTmp = "Error! The temporary directory for tidy is not valid. Check the configuration file"; $strErrorFileTmp = "Error! It is impossibile to write a temporary file for tidy. Check the permissions for the user the Web server is running as, in the temporary directory"; /* Errors */ $strErrorNoDBSelected = "Error! No database has been selected. Go back."; $strErrorNoUrlSelected = "Error! No Url has been selected. Go back."; $strErrorMissingInfo = "Error! Missing Info. Go back."; /* Open Accessibility Checks (http://checker.atrc.utoronto.ca/) */ $strShowListAchecks = "Show the list of accessibility checks (with filter)"; $strListAchecks = 'List of the accessibility errors that have been discovered'; $strAcheckInfo = 'Information regarding the accessibility error'; $strAcheckError = 'Error'; $strAcheckDescription = 'OAC description'; $strAcheckHowToRepair = 'How to repair'; $strAcheckCode = "Error code:"; $strSelectAchecks = 'Choose which accessibility errors to search'; $strAchecks = array(); // OAC #1 $strAchecks[1] = array( 'description' => 'All IMG elements must have an ALT attribute', 'error' => 'IMG missing ALT attribute', 'repair' => 'Add an ALT attribute to your IMG element' ); // OAC #2 $strAchecks[2] = array( 'description' => 'IMG element cannot have ALT attribute value ' . 'that is the same as its SRC attribute', 'error' => 'Suspicious ALT text (same as filename)', 'repair' => '' ); // OAC #3 $strAchecks[3] = array( 'description' => 'IMG element must have ALT attribute value of ' . 'less than 150 characters (English)', 'error' => 'ALT text may be too long (greater than 150 characters)', 'repair' => '' ); // OAC # 7 $strAchecks[7] = array( 'description' => 'IMG element cannot have ALT attribute value of ' . 'null or whitespace if the IMG element is contained by an ' . 'A element', 'error' => 'Image used as anchor is missing valid ALT text', 'repair' => 'Modify the text in the ALT attribute to your IMG element' ); // OAC #27 $strAchecks[27] = array( 'description' => 'This error is generated for all BLINK elements', 'error' => 'BLINK element used', 'repair' => 'Remove the BLINK element (replace with STRONG or EM)' ); // OAC #37 $strAchecks[37] = array( 'description' => 'First heading element prior to H2 element must be ' . 'an H1 element', 'error' => 'Header nesting - H2 does not follow an H1', 'repair' => 'Modify the header levels so H2 follows H1' ); // OAC #38 $strAchecks[38] = array( 'description' => 'First heading element prior to H3 element must be ' . 'an H2 element', 'error' => 'Header nesting - H3 does not follow an H2', 'repair' => 'Modify the header levels so H3 follows H2' ); // OAC #39 $strAchecks[39] = array( 'description' => 'First heading element prior to H4 element must be ' . 'an H3 element', 'error' => 'Header nesting - H4 does not follow an H3', 'repair' => 'Modify the header levels so H4 follows H3' ); // OAC #40 $strAchecks[40] = array( 'description' => 'First heading element prior to H5 element must be ' . 'an H4 element', 'error' => 'Header nesting - H5 does not follow an H4', 'repair' => 'Modify the header levels so H5 follows H4' ); // OAC #41 $strAchecks[41] = array( 'description' => 'First heading element prior to H6 element must be ' . 'an H5 element', 'error' => 'Header nesting - H6 does not follow an H5', 'repair' => 'Modify the header levels so H6 follows H5' ); // OAC #48 $strAchecks[48] = array( 'description' => 'HTML element must contain a LANG attribute', 'error' => 'Document language not identified', 'repair' => 'Add a LANG attribute to the HTML element of your ' . 'document. The LANG attribute must be set to a valid 2 or ' . '3 letter language code as defined in the ISO specification 639' ); // OAC #50 $strAchecks[50] = array( 'description' => 'TITLE element must be present in HEAD section of document', 'error' => 'Document missing TITLE element', 'repair' => 'Add a TITLE element to the HEAD section of your document' ); // OAC #51 $strAchecks[51] = array( 'description' => 'TITLE element content cannot be empty or whitespace', 'error' => 'TITLE element is empty', 'repair' => 'Add text to the TITLE element' ); // OAC #52 $strAchecks[52] = array( 'description' => 'TITLE element content must be less than 150 ' . 'characters (English)', 'error' => 'TITLE text may be too long', 'repair' => '' ); // OAC #58 $strAchecks[58] = array( 'description' => 'INPUT element that contains a TYPE attribute ' . 'value of "image" must have an ALT attribute', 'error' => 'Image used for INPUT control is missing ALT text', 'repair' => 'Add an ALT attribute that describes the image to INPUT control' ); // OAC #61 $strAchecks[61] = array( 'description' => 'INPUT elements cannot have ALT attribute values ' . 'that are the same as their SRC attribute values', 'error' => 'Image used in INPUT element - ' . 'Suspicious Alt text (same as filename)', 'repair' => '' ); // OAC #69 $strAchecks[69] = array( 'description' => '', 'error' => 'MARQUEE element should not be used', 'repair' => '' ); // OAC #71 $strAchecks[71] = array( 'description' => '', 'error' => 'Auto-redirect should not be used', 'repair' => '' ); // OAC #72 $strAchecks[72] = array( 'description' => '', 'error' => 'Auto-refresh should not be used', 'repair' => '' ); // OAC #116 $strAchecks[116] = array( 'description' => 'This error will be generated for all B elements', 'error' => 'B element used (use EM or STRONG instead)', 'repair' => 'Replace your B elements with EM or STRONG' ); // OAC #117 $strAchecks[117] = array( 'description' => 'This error will be generated for all I elements', 'error' => 'I element used (use EM or STRONG instead)', 'repair' => 'Replace your I elements with EM or STRONG' ); /* // OAC #NUM $strAchecks[NUM] = array( 'description' => 'TXT', 'error' => 'TXT', 'repair' => 'TXT' ); */ /* ht://Dig notification system */ $strHtDigEmail = 'ht://Dig notify - email address'; $strHtDigEmailSubject = 'ht://Dig notify - subject'; $strHtDigNotificationDate = 'ht://Dig notify - date'; ?> htcheck-php-2.0.0~rc1.orig/include/mysqldb.inc.php0000644000000000000000000001263411245716447016740 0ustar // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: mysqldb.inc.php,v 1.8 2003/04/25 18:06:17 angusgb Exp $ if ( defined( '__MYSQLDB_INC' ) ) return; define( '__MYSQLDB_INC', 1 ); include ("./include/db.inc.php"); class MySQLDB extends DB { // Class attributes var $linkid; // DB Connection ID var $result; // Result of a query var $errno; // Error number var $errmsg; // Error string // Constructor function MySQLDB($strhostname, $strusername, $strpassword) { $this->hostname = $strhostname; $this->username = $strusername; $this->password = $strpassword; $linkid = 0; $result = 0; } // Database dropping function Drop($DBName) { if ($this->Connect()) // Try to connect return $this->errno; // Failed if (! $this->result = mysql_query ("DROP DATABASE $DBName")) { $this->GenerateError(104); } else $this->errno = 0; // Inizializza il codice d'errore return $this->errno; } // Query execution function Query($DBName, $StrSQL) { if ($this->SelectDB($DBName)) // Select the database return $this->errno; // Failed if (! $this->result = @mysql_query ($StrSQL)) { $this->GenerateError(103); } else $this->errno = 0; // Inizializza il codice d'errore return $this->errno; } // Function for connecting function Connect() { if (! ($this->linkid = mysql_pconnect ($this->hostname, $this->username, $this->password))) { $this->GenerateError(101); } else $this->errno = 0; // Inizializza il codice d'errore return $this->errno; } // Selection of the database function SelectDB($DBName) { if (! $this->linkid ) // Not connected yet { if ($this->Connect()) // Try to connect return $this->errno; // Failed } if (! @mysql_select_db ($DBName, $this->linkid)) { $this->GenerateError(102); } else $this->errno = 0; // Inizializza il codice d'errore return $this->errno; } // Generate function GenerateError($errno) { $this->errmsg = mysql_error(); $this->errno = $errno; } function FetchObject() { return mysql_fetch_object($this->result); } function FetchRow() { return mysql_fetch_row($this->result); } function FetchArray() { return mysql_fetch_array($this->result); } function Free() { return mysql_free_result($this->result); } function NumRows() { return mysql_num_rows($this->result); } // This function retrieves the htcheck database on the MySQL server function GetHtCheckDBList() { unset($this->HtDBs); // initialize the contents if (! $this->linkid ) // Not connected yet { if ($this->Connect()) // Try to connect return $this->errno; // Failed } if (! $dbtable = @mysql_list_dbs ()) { $this->GenerateError(102); } else { $this->errno = 0; // Inizializza il codice d'errore $numdbs = mysql_num_rows($dbtable); for ($i=0; $i < $numdbs; $i++) { // For every database we look if it's a htcheck one $dbname= mysql_tablename ($dbtable, $i); $found = false; if (! $this->Query($dbname, "show tables")) { // Fetch every row while (!$found && $row = $this->FetchRow()) { if ($row[0]=="HtmlStatement") $found=true; } } if ($found) $this->HtDBs[] = $dbname; } } return $this->errno; } function CreateHTMLTable($strSQL, $DBName, $Select=false) { if ($Select && $this->SelectDB($DBName)) // We must select the db first of all return -1; // Error // Database selected, let's query it if ($this->Query($DBName, $strSQL)) return -2; $result=$this->result; $num=mysql_num_rows($result); if ($num) { // Header $numfields=mysql_num_fields($result); echo "\n"; echo "\n"; echo " \n"; for ($j=0; $j<$numfields; $j++) { ?> \n"; // Loop $i=0; while ($row = $this->FetchRow()) { $i++; echo "\n"; echo " \n"; for ($j=0; $j<$numfields; $j++) { ?> "; } echo "
N.
$i
"; } $this->Free(); return $num; } } ?> htcheck-php-2.0.0~rc1.orig/include/registerglobals.inc.php0000644000000000000000000000464211245716447020455 0ustar // // Copyright (c) 2003 - Gabriele Bartolini /////////////////////////////////////////////////////////// // $Id: registerglobals.inc.php,v 1.9 2006/08/24 12:53:21 angusgb Exp $ /////////////////////////////////////////////////////////// if ( defined( '__REGISTERGLOBALS_INC' ) ) return; define( '__REGISTERGLOBALS_INC', 1 ); // This function simply gets global any variable we want // and which was usually shipped through the GET method // and used as globals before register_globals was turned off function HtCheck_SetGlobal($var) { eval ("if (isset(\$_GET['$var'])) \$GLOBALS['$var'] = &\$_GET['$var'];"); } // Current version of PHP (numeric form) $curver=intval(str_replace('.', '',phpversion())); // Let's check if our current PHP version is greater than 4.1.0 // that is to say when the $_GET superarray has been added if ($curver >= 410) { // List of variables to be rendered globals $vars=array( 'anchor', 'acheckcode', 'charset', 'cmd', 'confirmed', 'count', 'ctype', 'dbname', 'description', 'dest', 'doctype', 'initpage', 'linkdomain', 'linkresult', 'linktype', 'keywords', 'htdigemail', 'htdigemailsubject', 'pagesize', 'scode', 'server', 'size', 'sizeadd', 'src', 'title', 'url', 'whatanchor', 'whatcharset', 'whatctype', 'whatdescription', 'whatdest', 'whatdoctype', 'whatlinkdomain', 'whatlinkresult', 'whatlinktype', 'whatkeywords', 'whathtdigemail', 'whathtdigemailsubject', 'whatscode', 'whatsrc', 'whatsize', 'whatsizeadd', 'whattitle', 'whaturl', 'AttrPosition', 'IDUrl', 'StatusCode', 'TagPosition', 'RowNumber', ); for ($i=0; $i < count($vars); ++$i) htCheck_SetGlobal($vars[$i]); // Accept language $HTTP_ACCEPT_LANGUAGE=&$_SERVER['HTTP_ACCEPT_LANGUAGE']; // PHP_SELF $PHP_SELF = &$_SERVER['PHP_SELF']; } ?> htcheck-php-2.0.0~rc1.orig/include/header.inc.php0000644000000000000000000000266011245716447016513 0ustar // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: header.inc.php,v 1.9 2004/06/29 10:06:39 angusgb Exp $ if ( defined( '__HEADER_INC' ) ) return; define( '__HEADER_INC', 1 ); ?> ht://Check <?php echo $Organisation; ?> / <?php echo $pagetitle; ?>
htcheck-php-2.0.0~rc1.orig/include/global.inc.php0000644000000000000000000000577611245716447016536 0ustar // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: global.inc.php,v 1.7 2003/12/30 09:39:23 angusgb Exp $ if ( defined( '__GLOBAL_INC' ) ) return; define( '__GLOBAL_INC', 1 ); // Checks for register_globals activation include ("./include/registerglobals.inc.php"); /////// // General Info /////// $Organisation = "PO-Net Rete Civica di Prato"; /////// // Language /////// // Language file: automatic detection if (eregi('^it', $HTTP_ACCEPT_LANGUAGE)) $Language='it'; else if (eregi('^de', $HTTP_ACCEPT_LANGUAGE)) $Language='de'; else $Language='en'; // Include it include ("./include/$Language.inc.php"); /////// // Common functions /////// include ("./include/functions.inc.php"); /////// // Database settings /////// include ("./include/mysqldb.inc.php"); $hostname = "localhost"; $username = ""; $password = ""; // List of database to connect to // This is a simple array in which you can put the list // of database you want to connect to. If you leave this // empty or comment this line out, the script tries to // recognize a list of ht://Check databases from the // server specified above. By default this is empty, // however you can fill it like this: // $dblist = array ('htcheck', 'htdig'); // Multiple choices must be separated by commas and included // between single quotes - or even double. $dblist = array (); // Create a global instance of the database $MyDB = new MySQLDB ($hostname, $username, $password); /////// // Session settings /////// $CookieLifetime = time() + 120; // Set the lifetime of a cookie /////// // List of links setting /////// $NumFilterRows = 4; //Set the number of filter rows in the listlinks.php page $MaxTagStrLength = 70; // Set the max length of the tag in the list $MaxURLStrLength = 70; // Set the max length of the URL in the list. This will truncate the URL // name if it is longer than the specified value. Put -1 if you don't want // to snip the rest of the string. $ShowIcons = true; // D'u want to see the icons or just // the text for link results // HTML validation tool: tidy (http://tidy.sourceforge.net/) unset ($Tidy); // Never uncomment this line. It can lead to serious security hole. Indeed // $Tidy is a string containing the path to the executable file to be // launched for HTML source code validation. If you wanna use it // just uncomment the following line or set it to empty. //$Tidy = '/usr/bin/tidy'; // 'tidy' program command (write the complete path) $TidyDirTmp = '/tmp'; // do not change it - this directory must be existant - for security reasons ?> htcheck-php-2.0.0~rc1.orig/include/de.inc.php0000644000000000000000000003746111245716447015662 0ustar // Provided by: Stenitzer Michael // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: de.inc.php,v 1.25 2006/08/24 12:53:21 angusgb Exp $ if ( defined( '__GERMAN_INC' ) ) return; define( '__GERMAN_INC', 1 ); /* Main Page */ $strMainPage = "Main Page"; $strNumDBs = "\$numdbs; ht://Check Databank/en wurde/n am ausgewählten Host gefunden."; $strNoDBs = "Sorry. Es wurden keine ht://Check Datenbanken am ausgew¨hlten Host gefunden."; $strChooseaDB = "Wählen Sie die gewünschte ht://Check Datenbank"; $strSelectaDB = "Wählen Sie eine Datenbank"; /* Main page of a database */ $strDBSelected = "Datenbank '\$dbname;' gewählt"; $strGeneralInfo = "Allgemeine Informationen"; $strServersEncountered = "Anzahl der gefundenen Server"; $strScheduledURLS = "Gefundene URLS (überprüfte und verworfene)"; $strRetrievedURLS = "Geladene URLS"; $strHTMLStatements = "HTML Elemente"; $strHTMLAttributes = "HTML Attribute"; $strLinks = "Links"; $strShowListUrls = "Vollständige Liste der URLs anzeigen"; $strShowListUrlsSeen = "Liste der URLs die überprüft wurden"; $strShowNotFoundUrls = "Liste der nicht gefundenen URLs (Status Code 404)"; $strShowListLinks = "Liste der überprüften Links anzeigen"; $strShowListUrlsFltr = "Liste der geladenen URLs anzeigen (mit Filter)"; $strHTTPRequestsResults = "Zusammenfassung der Ergebnisse der HTTP Requests"; $strServersSeenOrdIDServer = "Zusammenfassung der HTTP Server die gefunden wurden (in der Reihenfolge der Abfrage)"; $strConnectionResults = "Zusammenfassung der Ergebnisse der Verbindungen"; $strContentTypeResults = "Zusammenfassung der gefundenen Content-Types"; $strCookiesReport = "Zusammenfassung der gefundenen 'cookies'"; $strUser = "MySQL User"; $strStartTime = "Start"; $strEndTime = "Ende"; /* Sections */ $strListofUrls = "Liste der geladenen Urls"; $strListofAllUrls = "Liste der geladenen und nicht geladenen Urls"; $strListofLinks = "Liste der Links"; $strShowUrl = "URL info"; $strShowLink = "Link info"; $strShowUrlSource = "URL Quelltext"; $strDBHome = "'\$dbname;' Home Page"; $strDBDeletion = "Datenbank löschen"; $strDBDeleted = "Datenbank '\$dbname;' gelöscht"; /* General */ $strUrl = "URL"; $strRequests = "Requests"; $strProtocol = "Protokoll"; $strConnectionStatus = "Verbindungsstatus"; $strContentType = "Content type"; $strCharset = "Charset"; $strDoctype = "Doctype"; $strContentLanguage = "Content language"; $strTransferEncoding = "Transfer Encoding"; $strStatusCode = "Status Code"; $strReasonPhrase = "Beschreibung"; $strNumber = "Nummer"; $strNoOccurrencies = "Kein Eintrag gefunden"; $strWebServerInfo = "Webserver Info"; $strLastModified = "Zeit der letzten Aktualisierung"; $strNoLastModified = "nicht verfügbar"; $strLastAccess = "Zeit des letzten Zugriffs"; $strNoLastAccess = "nicht verfügbar"; $strLocation = "Ort"; $strSize = "Größe"; $strTitle = "Seitentitel"; $strDescription = "Page description"; $strKeywords = "Page keywords"; $strSizeAdd = "Größe der zusätzlichen Dateien (Bilder, Sounds, ...)"; $strPageWeight = "Gesamtgröße der Seite inkl. zusätzlicher Dateien (Caching vorausgesetzt)"; $strRetrievingFlag = "URL Status"; $strLinkType = "Link typ"; $strLinkResult = "Ergebnis"; $strLinkDomain = "Link domain"; $strHTMLStatement = "HTML Element"; $strHTMLStatementRow = "zeilennummer des HTML-Elements"; $strHTMLAttribute = "HTML Attribut"; $strAnchor = "Anker"; $strReferer = "Referer-URL (Referenzierende URL)"; $strHopCount = "Anzahl der Hops (Anzahl der Klicks von der Startseite)"; $strUnknown = "Unbekannt"; $strOther = "Other"; $strNull = "NULL"; /* Page Management */ $strRecordFound = "Anzahl der gefundenen Einträge:"; $strListPageInfo = "Einträge No. %s bis %s von %s gefundenen Einträgen"; $strNext = "Nächste"; $strPrevious = "Vorherige"; $strFirst = "Erste"; $strLast = "Letzte"; $strBack = "Zurück"; $strAll = "Full list"; /* Filters */ $strFilterLinks = "Filter für die Liste der Links"; $strLike = "gleich"; $strNotLike = "nicht gleich"; $strRegExp = "RegExp"; $strNotRegExp = "Negierte RegExp"; $strGt = "größer als"; $strLt = "kleiner als"; /* List of links page */ $strLinkSubmit = "Ausgeben"; $strAllLinks = "Alle"; $strOK = "OK"; $strNotChecked = "Nicht überprüft"; $strBroken = "Fehlerhafter Link (broken link)"; $strRedirected = "Umgeleiteter Link (redirected link)"; $strAnchorNotFound = "Anker nicht gefunden"; $strNotAuthorized = "Nicht erlaubt (not authorized)"; $strEMail = "E-mail Adresse"; $strJavascript = "Javascript URL"; $strBadEncoded = "Falsch codierte URL"; $strNormal = "Normaler Link"; $strDirect = "Direkter Link"; $strRedirection = "HTTP Umleitung (HTTP redirection)"; $strSameServer = "Same Web server (host:port)"; $strInternal = "Internal"; $strExternal = "External"; $strHelpOnString = "Sie können Abfragefilter definieren und diese " . "über '\$strLike;' und '\$strNotLike;' verknüpfen. " . "Erstere liefert alle Resultate die dem angegebenen " . "Abfragefilterentsprechen, zweitere all jene Resultate, " . "die nicht dem Abfragefilter entsprechen. Sie können " . "dafür 'Wildcard-Zeichen' ('Joker') wie '%' (eine " . "beliebige und beliebig lange Zeichenfolge) und '_' (ein " . "beliebiges einzelnes Zeichen)."; $strHelpOnRegExp = "Wenn Sie die Option '\$strRegExp;' wählen, " . "könne Sie erweiterte Regular Expression Suchfilter " . "verwenden. Es erhalten damit alle jene Datensätze die " . "Ihrer Regular Expression entsprechen. Um alle Datensätze " . "zu erhalten, die nicht Ihrer Regular Expression entsprechen, " . "können Sie diese mit '\$strNotRegExp;' negieren."; /* Show Url page */ $strFilterUrls = "Definieren Sie ein Abfragefilter für die Liste der URLs"; $strInfoAvailable = "Verfügbare Informationen"; $strSizeInfo = "Informationen über die Größe der Dateien"; $strRetrievingInfo = "Informationen über den Empfangsprozess"; $strOutgoingLinks = "Informationen über ausgehende Links"; $strIncomingLinks = "Informationen über eingehende Links"; $strNotRetrieved = "URL nicht geladen"; $strShow = "Anzeigen"; $strAllCTypes = "Alle"; $strAllCharsets = "Alle"; $strAllDocTypes = "Alle"; $strAllSCodes = "Alle"; /* Show Link page */ $strReferencingUrl = "Referenzierender URL (Quell-URL)"; $strReferencedUrl = "Ziel-URL"; $strLinkIssued = "HTML-Element des Links"; $strOperations = "Verfügbare weitere Informationen"; $strOpenThisUrl = "Diesen URL in einem neuen Browserfenster öffnen"; $strShowThisUrlSource = "HTML-Quelltext dieser URL anzeigen"; $strOpenReferencingUrl = "Referenzierenden URL (Quell-URL) in einem neuen Browserfenster öffnen"; $strOpenReferencedUrl = "Ziel-URL in einem neuen Browserfenster öffnen"; /* Database Drop Page */ $strDBDropSure = "Sind Sie sicher, dass Sie die gewählte " . "Datenbank löschen wollen? Alle Daten gehen dabei " . "unwiederbringlich verloren"; $strDBDrop = "Ja, die Datenbank löschen"; $strDBCancel = "Nein, die Datenbank besser nicht löschen"; /* Web structure mining indexes */ $strWSM_Notes = 'Notes'; $strWSM_Indexes = "Indexes of Web Structure Mining"; $strWSM_L = "L: links, both ingoing (from different documents) and outgoing for this URL"; $strWSM_D = "D: documents, related to this URL by both outgoing and incoming links"; $strWSM_OL = "OL: outgoing links from this URL to others"; $strWSM_IL = "IL: incoming links coming to this URL from different ones"; $strWSM_OD = "OD: documents linked to this URL by outgoing links within it"; $strWSM_ID = "ID: documents which have links to this URL"; $strWSM_NumOL = "Number of OL"; $strWSM_NumIL = "Number of IL"; $strWSM_NumOD = "Number of OD"; $strWSM_NumID = "Number of ID"; $strWSM_ProOL = "OL/L"; $strWSM_ProIL = "IL/L"; $strWSM_ProOD = "OD/D"; $strWSM_ProID = "ID/D"; $strWSM_RatioL = "OL/IL"; $strWSM_RatioD = "OD/ID"; $strWSM_ExplaL = "Characteristics of links"; $strWSM_ExplaD = "Characteristics of linked documents"; $strWSM_ExplaIn = "Incoming"; $strWSM_ExplaOut = "Outgoing"; $strWSM_Ratios = "Rapporti"; /* Tidy support */ $strTidyMessages="Diagnose von 'HTML Tidy'"; $strTidyWarnings="Warnungen von 'HTML Tidy'"; $strTidyErrors="Fehlermeldungen von 'HTML Tidy'"; $strTidyHTML="'HTML Tidy' schlägt den folgenden Quellcode vor"; $strTidyRow="Zeile"; $strTidyColumn="Spalte"; $strErrorNoTidy="Fehler! Das Programm zur Überprüfung des" . " HTML Quellcodes ('HTML Tidy') wurde nicht korrekt konfiguriert." . " Überprüfen Sie die Konfigurationsdatei"; $strErrorNoDirTmp="Fehler! Das temporäre Verzeichnis von 'HTML" . " Tidy' ist ungütig. Überprüfen Sie die Konfigurationsdatei"; $strErrorFileTmp = "Fehler! 'HTML Tidy' kann die temporären" . " Dateien nicht erstellen. Überprüfen Sie die Benutzerrechte " . " für das temporäre Verzeichnis von 'HTML Tidy' (Die" . " Benutzerrechte müssen jenen des Webservers entsprechen)"; /* Errors */ $strErrorNoDBSelected = "Fehler! Es wurde keine Datenbank ausgewählt. " . "Gehen Sie zur Auswahl zurück."; $strErrorNoUrlSelected = "Fehler Es wurde kein URL ausgewählt. " . "Gehen Sie zur Auswahl zurück."; $strErrorMissingInfo = "Fehler! Fehlende Angaben. Gehen Sie zur Auswahl zurück."; /* Open Accessibility Checks (http://checker.atrc.utoronto.ca/) */ $strShowListAchecks = "Show the list of accessibility checks (with filter)"; $strListAchecks = 'List of the accessibility errors that have been discovered'; $strAcheckInfo = 'Information regarding the accessibility error'; $strAcheckError = 'Error'; $strAcheckDescription = 'OAC description'; $strAcheckHowToRepair = 'How to repair'; $strAcheckCode = "Error code:"; $strSelectAchecks = 'Choose which accessibility errors to search'; $strAchecks = array(); // OAC #1 $strAchecks[1] = array( 'description' => 'All IMG elements must have an ALT attribute', 'error' => 'IMG missing ALT attribute', 'repair' => 'Add an ALT attribute to your IMG element' ); // OAC #2 $strAchecks[2] = array( 'description' => 'IMG element cannot have ALT attribute value ' . 'that is the same as its SRC attribute', 'error' => 'Suspicious ALT text (same as filename)', 'repair' => '' ); // OAC #3 $strAchecks[3] = array( 'description' => 'IMG element must have ALT attribute value of ' . 'less than 150 characters (English)', 'error' => 'ALT text may be too long (greater than 150 characters)', 'repair' => '' ); // OAC # 7 $strAchecks[7] = array( 'description' => 'IMG element cannot have ALT attribute value of ' . 'null or whitespace if the IMG element is contained by an ' . 'A element', 'error' => 'Image used as anchor is missing valid ALT text', 'repair' => 'Modify the text in the ALT attribute to your IMG element' ); // OAC #27 $strAchecks[27] = array( 'description' => 'This error is generated for all BLINK elements', 'error' => 'BLINK element used', 'repair' => 'Remove the BLINK element (replace with STRONG or EM)' ); // OAC #37 $strAchecks[37] = array( 'description' => 'First heading element prior to H2 element must be ' . 'an H1 element', 'error' => 'Header nesting - H2 does not follow an H1', 'repair' => 'Modify the header levels so H2 follows H1' ); // OAC #38 $strAchecks[38] = array( 'description' => 'First heading element prior to H3 element must be ' . 'an H2 element', 'error' => 'Header nesting - H3 does not follow an H2', 'repair' => 'Modify the header levels so H3 follows H2' ); // OAC #39 $strAchecks[39] = array( 'description' => 'First heading element prior to H4 element must be ' . 'an H3 element', 'error' => 'Header nesting - H4 does not follow an H3', 'repair' => 'Modify the header levels so H4 follows H3' ); // OAC #40 $strAchecks[40] = array( 'description' => 'First heading element prior to H5 element must be ' . 'an H4 element', 'error' => 'Header nesting - H5 does not follow an H4', 'repair' => 'Modify the header levels so H5 follows H4' ); // OAC #41 $strAchecks[41] = array( 'description' => 'First heading element prior to H6 element must be ' . 'an H5 element', 'error' => 'Header nesting - H6 does not follow an H5', 'repair' => 'Modify the header levels so H6 follows H5' ); // OAC #48 $strAchecks[48] = array( 'description' => 'HTML element must contain a LANG attribute', 'error' => 'Document language not identified', 'repair' => 'Add a LANG attribute to the HTML element of your ' . 'document. The LANG attribute must be set to a valid 2 or ' . '3 letter language code as defined in the ISO specification 639' ); // OAC #50 $strAchecks[50] = array( 'description' => 'TITLE element must be present in HEAD section of document', 'error' => 'Document missing TITLE element', 'repair' => 'Add a TITLE element to the HEAD section of your document' ); // OAC #51 $strAchecks[51] = array( 'description' => 'TITLE element content cannot be empty or whitespace', 'error' => 'TITLE element is empty', 'repair' => 'Add text to the TITLE element' ); // OAC #52 $strAchecks[52] = array( 'description' => 'TITLE element content must be less than 150 ' . 'characters (English)', 'error' => 'TITLE text may be too long', 'repair' => '' ); // OAC #58 $strAchecks[58] = array( 'description' => 'INPUT element that contains a TYPE attribute ' . 'value of "image" must have an ALT attribute', 'error' => 'Image used for INPUT control is missing ALT text', 'repair' => 'Add an ALT attribute that describes the image to INPUT control' ); // OAC #69 $strAchecks[69] = array( 'description' => '', 'error' => 'MARQUEE element should not be used', 'repair' => '' ); // OAC #71 $strAchecks[71] = array( 'description' => '', 'error' => 'Auto-redirect should not be used', 'repair' => '' ); // OAC #72 $strAchecks[72] = array( 'description' => '', 'error' => 'Auto-refresh should not be used', 'repair' => '' ); // OAC #116 $strAchecks[116] = array( 'description' => 'This error will be generated for all B elements', 'error' => 'B element used (use EM or STRONG instead)', 'repair' => 'Replace your B elements with EM or STRONG' ); // OAC #117 $strAchecks[117] = array( 'description' => 'This error will be generated for all I elements', 'error' => 'I element used (use EM or STRONG instead)', 'repair' => 'Replace your I elements with EM or STRONG' ); /* // OAC #NUM $strAchecks[NUM] = array( 'description' => 'TXT', 'error' => 'TXT', 'repair' => 'TXT' ); */ /* ht://Dig notification system */ $strHtDigEmail = 'ht://Dig notify - email address'; $strHtDigEmailSubject = 'ht://Dig notify - subject'; $strHtDigNotificationDate = 'ht://Dig notify - date'; ?> htcheck-php-2.0.0~rc1.orig/README0000644000000000000000000000221411245716447013232 0ustar ht://Check 2.0.0 README Website: http://htcheck.sourceforge.net/ Copyright (c) 1999-2006 Comune di Prato - Prato - Italy Some Portions Copyright (c) 1995-2003 The ht://Dig Group Some Portions Copyright (c) 2008 Devise.IT srl Author: Gabriele Bartolini - Prato - Italy $Id$ ht://Check is distributed under the GNU General Public License (GPL). See the COPYING file for license information. =========================================================================== PHP Interface -------------- The PHP interface lets you perform: - Queries regarding URLs, by choosing many discrimineting criterias such as pattern matching, status code, content-type, size. - Queries regarding links, with pattern matching on both source and destination URLs (also with regular expressions), the results (broken, ok, anchor not found, redirected) and their type (normal, direct, redirected). - Info regarding specific URLs (outgoing and ingoing links, last modify datetime, etc ... - Info regarding specific links (broken or ok) and the HTML instruction that issued it - Statistics on documents retrieved htcheck-php-2.0.0~rc1.orig/listlinks.php0000644000000000000000000003072711245716447015111 0ustar // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: listlinks.php,v 1.25 2004/06/29 10:06:25 angusgb Exp $ /////// // Global settings /////// include ("./include/global.inc.php"); if (!isset($dbname)) { // Error DisplayErrMsg($strErrorNoDBSelected); echo "" . $strMainPage . ""; die; } $strSection=$strListofLinks; $pagetitle = "Database: $dbname - " . $strSection; eval("\$strhome = \"$strDBHome \";"); $linkbar = "". $strhome.""; // A database has been selected include ("./include/header.inc.php"); if (isset ($cmd)) { if (!isset($initpage)) $initpage=0; if (!isset($pagesize)) $pagesize=30; $strwhere = ""; $otherinfo = '&cmd=' . urlencode($cmd); if (isset($linkresult) && $linkresult!="AllLinks") { $strwhere = $strwhere . "AND Link.LinkResult $whatlinkresult '$linkresult' "; $otherinfo = $otherinfo . '&whatlinkresult=' . urlencode($whatlinkresult) . '&linkresult=' . urlencode($linkresult); } if (isset($linktype) && $linktype!="AllLinks") { $strwhere = $strwhere . "AND Link.LinkType $whatlinktype '$linktype' "; $otherinfo = $otherinfo . '&whatlinktype=' . urlencode($whatlinktype) . '&linktype=' . urlencode($linktype); } if (isset($linkdomain) && $linkdomain!="AllLinks") { $strwhere = $strwhere . "AND Link.LinkDomain $whatlinkdomain '$linkdomain' "; $otherinfo = $otherinfo . '&whatlinkdomain=' . urlencode($whatlinkdomain) . '&linkdomain=' . urlencode($linkdomain); } $num=count($src); // Count the elements // Set the source filter for ($i=0; $i<$num; $i++) { if (isset($src[$i]) && $src[$i] && strlen($src[$i]) > 0) { if(isset($whatsrc[$i])) { $strwhere = $strwhere . "AND Url.Url " . $whatsrc[$i] . " '" . $src[$i] . "' "; $otherinfo = $otherinfo . "&whatsrc[$i]=" . urlencode($whatsrc[$i]) . "&src[$i]=" . urlencode($src[$i]); } } } $num=count($dest); // Count the elements // Set the destination filter for ($i=0; $i<$num; $i++) { if (isset($dest[$i]) && $dest[$i] && strlen($dest[$i]) > 0) { if(isset($whatdest[$i])) { $strwhere = $strwhere . "AND Schedule.Url " . $whatdest[$i] . " '" . $dest[$i] . "' "; $otherinfo = $otherinfo . "&whatdest[$i]=" . urlencode($whatdest[$i]) . "&dest[$i]=" . urlencode($dest[$i]); } } } $num=count($anchor); // Count the elements // Set the destination filter for ($i=0; $i<$num; $i++) { if (isset($anchor[$i]) && $anchor[$i] && strlen($anchor[$i]) > 0) { if(isset($whatanchor[$i])) { $strwhere = $strwhere . "AND Link.Anchor " . $whatanchor[$i] . " '" . $anchor[$i] . "' "; $otherinfo = $otherinfo . "&whatanchor[$i]=" . urlencode($whatanchor[$i]) . "&anchor[$i]=" . urlencode($anchor[$i]); } } } // Show all the URLs, retrieved ones as well as not $strGenSQL = "SELECT Link.*, " . "Url.Url as UrlSrc, " . "Schedule.Url as UrlDest, " . "HtmlStatement.Statement " . "FROM Url, Schedule, Link " . "LEFT JOIN HtmlStatement " . "ON HtmlStatement.IDUrl = Link.IDUrlSrc " . "AND HtmlStatement.TagPosition = Link.TagPosition " . "WHERE Schedule.IDUrl = Link.IDUrlDest " . "AND Url.IDUrl = Link.IDUrlSrc " . $strwhere . " ORDER BY UrlSrc ASC " . " LIMIT " . $initpage . ", " . $pagesize; if (!isset($count)) { $strCountSQL="select count(*) from Schedule, Url, Link " . "LEFT JOIN HtmlStatement " . "ON HtmlStatement.IDUrl = Link.IDUrlSrc " . "AND HtmlStatement.TagPosition = Link.TagPosition " . "WHERE Schedule.IDUrl = Link.IDUrlDest " . "AND Url.IDUrl = Link.IDUrlSrc " . $strwhere; $count = $MyDB->CountEntries($strCountSQL,$dbname,true); if ($count<0) { DisplayErrMsg($MyDB->errmsg); return; } $MyDB->Free(); } ?>

$count?$count:$initpage+$pagesize), number_format($count)); ?>

Query($dbname, $strGenSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($MyDB->NumRows()) { // At least one occurrence found ?> FetchArray()) { // Get next row $i++; // If HTML statement to be shown is too large, we cut it, depending // on MaxTagStrLenght setting in 'global.inc' $htmlstat = $row["Statement"]; if (empty($htmlstat)) $htmlstat = $strRedirection; else if (strlen($htmlstat) > $MaxTagStrLength) $htmlstat = '' . substr($htmlstat, 0, $MaxTagStrLength) . '...'; ($i % 2)? $trclass='odd':$trclass='even'; ?>
N. \ \
: ">
: ">
:
.png" alt="" width="40" height="35" border=1" bordercolor="black"> &TagPosition=&AttrPosition=">

Free(); } else { ?>

:

Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($MyDB->NumRows()) { ?> Free(); // Retrieving all the LinkType found $strSQL="SELECT count(*) as Count, LinkType " . "FROM Link GROUP BY LinkType " . "ORDER BY LinkType ASC"; $result=$MyDB->Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($MyDB->NumRows()) { ?> Free(); // Retrieving all the LinkDomain found $strSQL="SELECT count(*) as Count, LinkDomain " . "FROM Link GROUP BY LinkDomain " . "ORDER BY LinkDomain ASC"; $result=$MyDB->Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($MyDB->NumRows()) { ?> Free(); ?>
:
:
:
: :
:


htcheck-php-2.0.0~rc1.orig/img/0000755000000000000000000000000011245716447013127 5ustar htcheck-php-2.0.0~rc1.orig/img/BadEncoded.png0000644000000000000000000000152111245716447015604 0ustar PNG  IHDR(#縜gAMA7tEXtSoftwareAdobe ImageReadyqe<`PLTE㸹Tg̣<<< )QQ2J½xxxvܡԷ܏wIDATxb' hDB"Z!@ V@D+ P0D.W@ @1&&&ʁřa ( @9fvQB^ff&in>Bbbaagfbᗇ(db* #$ /#X!HE X$yxDx%$y&2sH 8xxYyxEy!b*dca @Z YyYyyR4 `&22,HrH B @P7U;$;; 0p@ ub"<RR`y ,Pl@,RR, 07$fXgF H!k3ـ 38 @D66IZ `cddf\,@7p愦4(% `)fG$'7,I, Jb* X2[N@CKOKL!@\P'@B "wN DB"Z!@?z ?IENDB`htcheck-php-2.0.0~rc1.orig/img/AnchorNotFound.png0000755000000000000000000000135511245716447016533 0ustar PNG  IHDR(#縜gAMA7tEXtSoftwareAdobe ImageReadyqe<0PLTE?- cܖϢn½qneDzCIDATxbG,l, XY90BVVB6LM!@)dcR h M!+37H=37BB]!@{ j V> dF @a(gc`eP@ 8$\<@U \hfB. >JT,f$@(aJ26\L( D`0310(~.TݍL\ P |ǀ3l@5@pN^lpS O py  c&\n5\p\!81 mHFc@cee)`u@HQʪ }(Y 㚅 ( JČ PP`,؀83@'3>6f`Y sn @Ɍ>>ܯ o`@~ ]]^I$ tRNSS% IDATxb?@1`޾w8 8/F;g9i9w@;ebC3uoys@RC0!gf+Ok܏v@;tQ_}3&`MЀδi yAyB `id?U -޶y3ud}*P~x~0eyMTP j s>ynIohᙶzC B6aϏ _pyi6<Bu^W3^W:|<Bure7.j3A7 X ds^f%ٺgIz Zc s^yA\kA߿9-k Ou<hPF3Wg{6t; H@1e-k7fn##\f䄐&>zQALu7]$E߿I@-&vD>_-!<B˹P/`. t ^^ !aH.oW\0UHQ@2 v_5G^I:#O%i;ɟNJBK2j7:u"Ui'{/`?ﰶH\DXUg-~ݿg^bɮb=uЊS_+,d=UXX'Urb+: i'Fy.7K"qZ俕Wc?OsN^1ҥK.gRIE]J2JVP`=p'vt+\yJzv!} GH@d;RDN {LgΈC o3[L/4wsiũ5GkXO$1S5P@("@]U2|?N ?$=ɼ4$>6P!L1{gq|yi|F:_8ob)࿨0ʙ@W@COO8z (1@ ([! 3eEۨq-u)  . Oki?Kmgвղ9(NZ۶K+N+z(0N|zS  3k˩)駘St\׽_Gs98ɞҥJ9z]sR;Š{ȿ+n 000H2^ZV0Jnnn))N}u y!;ˉSz?e)KO;+?@*5X9_`mz <|z@i]]Lm6.-*0q}ַ絀q[w1pq67w` Zq)Q }O8R۸b[X  ΃,^*vFuu@?x.<ϱjn;]ٵt.Bs^p7IS -5K,,gO]TWvJlF'SFkN1i3IJO?."2&?@ h%DAENP4Rf g`,gNs,(U 6HihUnp>|Fa}ڣ+NS8Vpj0 `ŞSZ@򩇶1 ]y RVw\]XOeX@͍q'mp-b,i4UC93r|,WaSڠл =SiiL ШT$(m1:0ԁH`=BjPÊڤ[ p-/LI17ۀ4JF&0K_f $>=Nh9;';t.S lϟ?BvȂciN-fk`ڋ9oxu%`\Hp vCwÑ ݀ʥ_.]PQP(ڮyVyaMa{Rff5 킭81^8x;N6FSim`ɩ=69[~Eʧ0:{)@гehY)6`,bnqxŶ ih G98.h~ LC ?IA)!Nku:OK뒳90.\?e\,O:qz[۳S:@r.$t-0 q3W)y 漬E~ |y8]w2E|[ /M wYxɖCF-6eԆޯ3.Sb"@ڠ[pA888Ԁ;d9C/X>:qA?@!* ̙&ջz=$W=a|}Q0xOuV89΃ێIKsQKɉX'n&5`}|TE.(۶Iq+$N߿Q@n0 ?sBWK,),bBK7Sx ^-2 -7DX_`UuѣTc.9 @ p"~c @ACoW50}*4Yl"U't:c~+|+fg{Cs_8ZᜅpX+0^؅ k.Qs,q`kePsIíkLg! X~o_h$ BUhg bHK``pR>NʠHN@=}z)sr[ߗ }a/WRa8 #'Lz ʆ3ss33b\U!/E!3B`fyy9X/?@aU8BJ^^j^@X` BQȅ   V`gIڅpIENDB`htcheck-php-2.0.0~rc1.orig/img/in.png0000755000000000000000000000021411245716447014243 0ustar PNG  IHDR(4gAMA7tEXtSoftwareAdobe ImageReadyqe<PLTEu$ IDATxb`0OmYIENDB`htcheck-php-2.0.0~rc1.orig/img/OK.png0000755000000000000000000000135711245716447014157 0ustar PNG  IHDR(#縜gAMA7tEXtSoftwareAdobe ImageReadyqe<0PLTEcJCm]sͯųbT&&M{sKCAEIDATxb' h]!/@1`Wτ&@Xr6<,l6,lRU! ' @ad"'; @a P! gB6 ]!?fBn^`0 B^^^vv&v&&V&VN^dB!'#7#  +3" @0,\|@ Tl@IF>>J*d(ddfvv~V(H@Arqs3p//#3#H!\!@Acgl5 /7D?X!66&FY@ H2s@2 1 6sr0ЍPupPnvv..FC xLpsAyncde+deD fff` b"/Q %3  #.kNH\c <8c( d XAx5=pU3rz  @7r?Dti@D+ BIENDB`htcheck-php-2.0.0~rc1.orig/img/out.png0000755000000000000000000000021411245716447014444 0ustar PNG  IHDR(4gAMA7tEXtSoftwareAdobe ImageReadyqe<PLTE3 IDATxb`0OmYIENDB`htcheck-php-2.0.0~rc1.orig/img/EMail.png0000755000000000000000000000126711245716447014635 0ustar PNG  IHDR(#縜gAMA7tEXtSoftwareAdobe ImageReadyqe<0PLTECSbn~ٟ 1…%7Iu IDATxb' hDB"Z!@ 022ppK U x||PY8MI 2AP,Y!<399*yYAlz`aa&~f&,@Ar0Cl`f``ag* BV&^V>>  9L^ LL\|@X!//76?3??+B!@A233ss13s01s"@y>$T! 7IB(eFV SvB4@rp!|6 .>&||L\< `,\̜ T2.V. @ @AʘJxd5QT@ @'U2qU1222UrqsrM x8Bx ppp<A . U! Z~fB I!2N6fyA"0Bh\+aWȌ?b@ @ V@||b:gf1yANey @1sR /;+'7#; ; '0C0Ff.NF~^plr5q1 I.s+?;?|$lPv XC! T!@} M!(P!3/3z^nF.^Ff.^.G@A@ d*JL2B< 3/Jd Bd hIyhr3'IENDB`htcheck-php-2.0.0~rc1.orig/img/htcheck.ico0000755000000000000000000000204411245716447015237 0ustar BM$"(  mdd#*!aVR[XWd_]#! WSQcXJ~ȴa`^[YT}""!HII--45`isu  j$v#Vcs #~YR/gGmlig3NY_c7X %*-NSV,I+H123?@A 445'*AC)'64-"T;,<6#8mk59( BtDM=('&3bG>!d:2 /0o$+jvL17.xgu F y@n]Z_hi`l{^WWVX[qz ?|SQNOY\s HJIPYf%KERUerpcaw}~htcheck-php-2.0.0~rc1.orig/img/NotRetrieved.png0000755000000000000000000000122311245716447016250 0ustar PNG  IHDR(#縜gAMA7tEXtSoftwareAdobe ImageReadyqe<0PLTEƭuoݒע[TXVIDATxb' ]! + teLLLLLJM!;' 3RBW *]!#X/Jb@U 0rrpUjfvF*VFFFNJFJN`cC1 0d$L  @T R  Qr/7=QÉ 0Age W@Vʈ 0qrcxPx!FT I(gD PBF^:N t@00 ?@aJ>( 0= LchFI d.Tō: lM%@)7r @l C!;+(BNp(b@1 FLpF Fi@ AB#+CIENDB`htcheck-php-2.0.0~rc1.orig/qryurls.php0000644000000000000000000004326311245716447014615 0ustar // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: qryurls.php,v 1.20 2006/08/24 12:53:21 angusgb Exp $ /////// // Global settings /////// include ("./include/global.inc.php"); if (!isset($dbname)) { // Error DisplayErrMsg($strErrorNoDBSelected); echo "" . $strMainPage . ""; die; } $strSection=$strListofUrls; $pagetitle = "Database: $dbname - " . $strSection; eval("\$strhome = \"$strDBHome \";"); $linkbar = "". $strhome.""; // A database has been selected include ("./include/header.inc.php"); if (isset ($cmd)) { if (!isset($initpage)) $initpage=0; if (!isset($pagesize)) $pagesize=30; $strwhere = "WHERE 1 "; $otherinfo = '&cmd=' . urlencode($cmd); if (isset($ctype) && $ctype!="AllCTypes") { $strwhere = $strwhere . "AND Url.ContentType $whatctype '$ctype' "; $otherinfo = $otherinfo . '&whatctype=' . urlencode($whatctype) . '&ctype=' . urlencode($ctype); } if (isset($charset) && $charset!="AllCharsets") { if ($charset == 'NULL') { if ($whatcharset == '!=') $whatcharsettmp = 'not'; $strwhere = $strwhere . "AND Url.Charset is $whatcharsettmp $charset "; } else { $strwheretmp = "Url.Charset $whatcharset '$charset'"; if ($whatcharset == '!=') $strwhere .= "AND ($strwheretmp OR Url.Charset is NULL)"; else $strwhere .= "AND $strwheretmp "; } $otherinfo = $otherinfo . '&whatcharset=' . urlencode($whatcharset) . '&charset=' . urlencode($charset); } if (isset($doctype) && $doctype!="AllDocTypes") { if ($doctype == 'NULL') { if ($whatdoctype == '!=') $whatdoctypetmp = 'not'; $strwhere = $strwhere . "AND Url.DocType is $whatdoctypetmp $doctype "; } else { $strwheretmp = "Url.DocType $whatdoctype '$doctype'"; if ($whatcharset == '!=') $strwhere .= "AND ($strwheretmp OR Url.DocType is NULL)"; else $strwhere .= "AND $strwheretmp "; } $otherinfo = $otherinfo . '&whatdoctype=' . urlencode($whatdoctype) . '&doctype=' . urlencode($doctype); } if (isset($scode) && $scode!="AllSCodes") { $strwhere = $strwhere . "AND Url.StatusCode $whatscode '$scode' "; $otherinfo = $otherinfo . '&whatscode=' . urlencode($whatscode) . '&scode=' . urlencode($scode); } if (isset($size) && strlen($size) && settype($size, "integer")) { $size *= 1024; $strwhere = $strwhere . "AND Url.Size $whatsize $size AND Url.Size >= 0 "; $otherinfo = $otherinfo . '&whatsize=' . urlencode($whatsize) . '&size=' . urlencode ($size); } if (isset($sizeadd) && strlen($sizeadd) && settype($sizeadd, "integer")) { $sizeadd *= 1024; $strwhere = $strwhere . "AND (Url.SizeAdd + Url.Size) $whatsizeadd $sizeadd " . "AND Url.Size >= 0 "; $otherinfo = $otherinfo . '&whatsizeadd=' . urlencode($whatsizeadd) . '&sizeadd=' . urlencode ($sizeadd); } $num=count($url); // Count the elements // Set the URL filter for ($i=0; $i<$num; $i++) { if (isset($url[$i]) && $url[$i] && strlen($url[$i]) > 0) { if(isset($whaturl[$i])) { $strwhere = $strwhere . "AND Url.Url " . $whaturl[$i] . " '" . $url[$i] . "' "; $otherinfo = $otherinfo . "&whaturl[$i]=" . urlencode($whaturl[$i]) . "&url[$i]=" . urlencode ($url[$i]); } } } $num=count($title); // Count the elements // Set the title filter for ($i=0; $i<$num; $i++) { if (isset($title[$i]) && $title[$i] && strlen($title[$i]) > 0) { if(isset($whattitle[$i])) { $strwhere = $strwhere . "AND Url.Title " . $whattitle[$i] . " '" . $title[$i] . "' "; $otherinfo = $otherinfo . "&whattitle[$i]=" . urlencode($whattitle[$i]) ."&title[$i]=" . urlencode($title[$i]); } } } $num=count($description); // Count the elements // Set the description filter for ($i=0; $i<$num; $i++) { if (isset($description[$i]) && $description[$i] && strlen($description[$i]) > 0) { if(isset($whatdescription[$i])) { $strwhere = $strwhere . "AND Url.Description " . $whatdescription[$i] . " '" . $description[$i] . "' "; $otherinfo = $otherinfo . "&whatdescription[$i]=" . urlencode($whatdescription[$i]) ."&description[$i]=" . urlencode($description[$i]); } } } $num=count($keywords); // Count the elements // Set the keywords filter for ($i=0; $i<$num; $i++) { if (isset($keywords[$i]) && $keywords[$i] && strlen($keywords[$i]) > 0) { if(isset($whatkeywords[$i])) { $strwhere = $strwhere . "AND Url.Keywords " . $whatkeywords[$i] . " '" . $keywords[$i] . "' "; $otherinfo = $otherinfo . "&whatkeywords[$i]=" . urlencode($whatkeywords[$i]) ."&keywords[$i]=" . urlencode($keywords[$i]); } } } $num=count($htdigemail); // Count the elements // Set the htdigemail filter for ($i=0; $i<$num; $i++) { if (isset($htdigemail[$i]) && $htdigemail[$i] && strlen($htdigemail[$i]) > 0) { if(isset($whathtdigemail[$i])) { $strwhere = $strwhere . "AND Url.HtDigEmail " . $whathtdigemail[$i] . " '" . $htdigemail[$i] . "' "; $otherinfo = $otherinfo . "&whathtdigemail[$i]=" . urlencode($whathtdigemail[$i]) ."&htdigemail[$i]=" . urlencode($htdigemail[$i]); } } } $num=count($htdigemailsubject); // Count the elements // Set the htdigemailsubject filter for ($i=0; $i<$num; $i++) { if (isset($htdigemailsubject[$i]) && $htdigemailsubject[$i] && strlen($htdigemailsubject[$i]) > 0) { if(isset($whathtdigemailsubject[$i])) { $strwhere = $strwhere . "AND Url.HtDigEmailSubject " . $whathtdigemailsubject[$i] . " '" . $htdigemailsubject[$i] . "' "; $otherinfo = $otherinfo . "&whathtdigemailsubject[$i]=" . urlencode($whathtdigemailsubject[$i]) ."&htdigemailsubject[$i]=" . urlencode($htdigemailsubject[$i]); } } } // Show all the URLs, retrieved ones as well as not $strGenSQL = "SELECT * " . "FROM Url " . $strwhere . " LIMIT " . $initpage . ", " . $pagesize; if (!isset($count)) { $strCountSQL="select count(*) from Url " . $strwhere; $count = $MyDB->CountEntries($strCountSQL,$dbname,true); if ($count<0) { DisplayErrMsg($MyDB->errmsg); return; } $MyDB->Free(); } ?>

$count?$count:$initpage+$pagesize), number_format($count)); ?>

Query($dbname, $strGenSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($MyDB->NumRows()) { // At least one occurrence found ?> FetchArray()) { // Get next row $i++; ($i % 2)? $trclass='odd':$trclass='even'; ?>
N. ID Url &
"> -

Free(); } else { ?>

:

Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($MyDB->NumRows()) { ?> Free(); ?> Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($MyDB->NumRows()) { ?> Free(); // Retrieving all the Charsets found $strSQL="SELECT count(*) as Count, Charset " . "FROM Url GROUP BY Charset " . "ORDER BY Charset ASC"; $result=$MyDB->Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($MyDB->NumRows()) { ?> Free(); // Retrieving all the DocTypes found $strSQL="SELECT count(*) as Count, DocType " . "FROM Url GROUP BY DocType " . "ORDER BY DocType ASC"; $result=$MyDB->Query($dbname, $strSQL); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } if ($MyDB->NumRows()) { ?> Free(); ?>
:
:
:
:
:
: KBytes
: KBytes
:
:
:
:
:


htcheck-php-2.0.0~rc1.orig/drop.php0000644000000000000000000000324511245716447014034 0ustar // // For copyright details, see the file COPYING in your distribution // or the GNU General Public License version 2 or later // // // $Id: drop.php,v 1.9 2003/12/30 09:39:23 angusgb Exp $ /////// // Global settings /////// include ("./include/global.inc.php"); if (!isset($dbname)) { // Error DisplayErrMsg($strErrorNoDBSelected); echo "" . $strMainPage . ""; die; } if (! isset($confirmed)) $delete=0; else $delete=1; $pagetitle = "$strDBDeletion: '" . $dbname . "'. Take " . $delete+1 . "/2"; $linkbar = "" . $strMainPage . ""; if (! $delete) $linkbar = $linkbar . " | " . "" . $strBack . ""; ?> Drop($dbname); if ($result) { DisplayErrMsg($MyDB->errmsg); die; } eval("\$strdeleted = \" $strDBDeleted \";"); ?>