configuration background
-------------------------------------------------------------
MySQL Server Information
MySQL Version: MySQL 5.0.18-nt via TCP/IP
Network Name: localhost
Operating System: Windows XP
Hardware: Intel(R) Pentium(R) 4 CPU 3.06GHz, 504 MB RAM
PHP Version 5.1.2
apache 2
-------------------------------------------------------------
PROBLEM:
the index.php dumps code to screen
and part of that file dumps to screen is
\"0) { $cAvailablePlans = 0; // count the available plans while
($myrow = mysql_fetch_row($result)).... \"
--------------------------------------------------------------
this code it is just after following in plan.core.inc.php
--------------------------------------------------------------
$sql = \" SELECT DISTINCT id,name,active,prodid FROM project \" .
\" WHERE active=1 \";
// 20050928 - fm
if ( $filter_by_product )
{
$sql .= \" AND prodid=\\ \" . $productID;
// 20050904 - fm - TL 1.5.1 compatibility, get also Test Plans without product id.
if ($g_show_tp_without_prodid)
{
$sql .= \" OR prodid=0 \";
}
}
$sql .= \" ORDER BY name \";
$result = do_mysql_query($sql);
if ($result) {
$testplanCount = mysql_num_rows($result);
} else {
$testplanCount = 0;
}
if($testplanCount > 0) {
-------------------------------------------------------------
the path taken to get to dump is (educated guessemate)
doAuthorize.php --calls---> users.inc.php --calls---> common.php
--calls---> plan.core.inc.php
--------------------------------------------------------------