htcheck-php-2.0.0~rc1.orig/ 0000755 0000000 0000000 00000000000 11245716447 012353 5 ustar htcheck-php-2.0.0~rc1.orig/qryachecks.php 0000644 0000000 0000000 00000022524 11245716447 015226 0 ustar // // $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 ?>
if ($count) printf ($strListPageInfo, number_format($initpage+1), number_format(($initpage+$pagesize)>$count?$count:$initpage+$pagesize), number_format($count));
?>
N. | ID | Url \ | |
---|---|---|---|
: <> |
&TagPosition=&AttrPosition=&acheckcode="> |
: