Update of /cvsroot/archive-access/archive-access/projects/wera/src/webapps/wera
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9329
Modified Files:
index.php
Log Message:
Printing debug output when $conf_debug=1
Index: index.php
===================================================================
RCS file: /cvsroot/archive-access/archive-access/projects/wera/src/webapps/wera/index.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** index.php 10 Oct 2005 13:13:22 -0000 1.5
--- index.php 12 Oct 2005 13:25:29 -0000 1.6
***************
*** 233,239 ****
$results = $search->getResultSet();
! //print "<pre>";
! //print_r($results);
! //print "</pre>";
if ($total > 0) {
print (nls("Total number of versions found")." : <b>$total</b>. ");
--- 233,242 ----
$results = $search->getResultSet();
! if ($conf_debug == 1) {
! print "Query url : <a href=\"" . $search->queryurl . "\">" . $search->queryurl . "</a>";
! print "<pre>";
! print_r($results);
! print "</pre>";
! }
if ($total > 0) {
print (nls("Total number of versions found")." : <b>$total</b>. ");
***************
*** 265,268 ****
--- 268,274 ----
$versions = $search2->getResultSet();
$numversions = $search2->getNumHitsTotal();
+ if ($conf_debug == 1) {
+ $count_versions_matching_queryurl = $search2->queryurl;
+ }
}
else {
***************
*** 277,280 ****
--- 283,289 ----
if ($search2->doQuery()) {
$totalversions = $search2->getNumHitsTotal();
+ if ($conf_debug == 1) {
+ $count_versions_total_queryurl = $search2->queryurl;
+ }
}
else {
***************
*** 285,288 ****
--- 294,305 ----
print $numversions_text1 . " ";
print $numversions_text2 . $totalversions."<br>";
+ if ($conf_debug == 1) {
+ if (isset($count_versions_matching_queryurl)) {
+ print "Url for counting versions matching query : <a href=\"" . $count_versions_matching_queryurl. "\">" . $count_versions_matching_queryurl . "</a><br/>";
+ }
+ if (isset($count_versions_total_queryurl)) {
+ print "Url for counting versions total : <a href=\"" . $count_versions_total_queryurl. "\">" . $count_versions_total_queryurl . "</a><br/>";
+ }
+ }
}
|