/usr/share/htcheck/php/showacheck.php is in htcheck-php 1:2.0.0~rc1-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | <?php
// showacheck.php
// Shows information about a URL with an accessibility error
//
// Part of the ht://Check package
//
// Copyright (c) 1999-2004 Comune di Prato - Prato - Italy
// Author: Valentina Del Sapio - Prato - Italy
//
// For copyright details, see the file COPYING in your distribution
// or the GNU General Public License version 2 or later
// <http://www.gnu.org/copyleft/gpl.html>
//
// $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 = "<a href=\"index.php?dbname=". $dbname . "\">". $strhome ."</A>";
$linkbar .= " | <a href=\"javascript:history.go(-1)\">" . $strBack . "</A>";
include ("./include/header.inc.php");
if (!isset($dbname))
{
// Error
DisplayErrMsg($strErrorNoDBSelected);
echo "<a href=\"index.php\">" . $strMainPage . "</A>";
die;
}
else
{
if (!isset($IDUrl) || !isset($acheckcode))
{
// Error
DisplayErrMsg($strMissingInfo);
echo "<a href=\"index.php?dbname=". $dbname . "\">". $strhome."</A>";
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");
?>
<h3><?php echo WriteHTML($row['Url']); ?></h3>
<div class="header">
<h4><?php echo $strAcheckInfo; ?></h4>
</div>
<div class="content">
<?php
if ($row['Statement'])
{ ?>
<strong><?php echo $strHTMLStatement; ?></strong>: <<?php
echo WriteHTML($row['Statement']); ?>><br>
<?php
}
if ($row['Attribute'])
{ ?>
<strong><?php echo $strHTMLAttribute; ?></strong>: <?php
echo WriteHTML($row['Attribute']); ?>="<?php echo WriteHTML($row["Content"]); ?>"<br>
<?php
}
if ($row['Row'])
{ ?>
<strong><?php echo $strHTMLStatementRow; ?></strong>: <?php echo WriteHTML($row["Row"]); ?><br>
<?php
} ?>
<br>
<strong><?php echo $strAcheckError; ?>:</strong> <?php echo $strAchecks[$acheckcode]['error']; ?><br>
<strong><?php echo $strAcheckDescription; ?>:</strong> <?php echo $strAchecks[$acheckcode]['description']; ?><br>
<strong><?php echo $strAcheckHowToRepair; ?>: </strong> <?php echo $strAchecks[$acheckcode]['repair']; ?><br>
</div>
<div class="header">
<h4><?php echo $strOperations; ?></h4>
</div>
<div class="content">
<ul>
<?php
$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();
if ($DisplaySource)
{
?>
<li><a href="showsource.php?dbname=<?php echo $dbname; ?>&IDUrl=<?php echo $IDUrl; ?>&RowNumber=<?php echo $row['Row']; ?>#<?php echo $row['Row']; ?>" target="_urlsource"><?php echo $strShowThisUrlSource; ?></a></li>
<?php
}
?>
<li><a href="showurl.php?dbname=<?php echo $dbname; ?>&IDUrl=<?php echo $IDUrl; ?>"><?php echo $strShowUrl; ?></a></li>
</ul>
</div>
<?php
}
include ("./include/footer.inc.php"); ?>
|