22,9 → 22,9 |
|
|
require_once dirname(__FILE__)."/lib/init.php"; |
$dist = abs(intval($_GET["d"])); |
$vers = abs(intval($_GET["v"])); |
$status = abs(intval($_GET["status"])); |
$dist = $secure->wrapInt($_GET["d"]); |
$vers = $secure->wrapInt($_GET["v"]); |
$status = $secure->wrapInt($_GET["status"]); |
|
header('Content-Type: text/html; charset=utf-8'); |
if($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') { |
31,7 → 31,7 |
|
// hacks for Konqueror's error on jQuery |
if (preg_match("/konqueror/i",$_SERVER["HTTP_USER_AGENT"])) { |
$dist_konq = mysql_real_escape_string($_GET["d"]); |
$dist_konq = $secure->wrapStr($_GET["d"]); |
$query =& $db->query("SELECT * FROM distribution WHERE distname LIKE '$dist_konq'"); |
$query->fetchInto($distro, DB_FETCHMODE_ASSOC); |
$dist = $distro["dist_id"]; |
45,11 → 45,11 |
$query =& $db->query("SELECT * FROM version v JOIN distribution d ON d.dist_id=v.dist_id WHERE v.dist_id='$dist'"); |
while ($query->fetchInto($version, DB_FETCHMODE_ASSOC)) { |
if ($version["vname"]!="") { |
$distname = stripslashes($version["vname"]); |
$distname = $secure->stripStr($version["vname"]); |
} else { |
$distname = ""; |
} |
$result .= ',{value:"'.$version["version_id"].'",text:"'.stripslashes($version["version"]).' '.$distname.'"}'; |
$result .= ',{value:"'.$version["version_id"].'",text:"'.$secure->stripStr($version["version"]).' '.$distname.'"}'; |
} |
$result .= ']'; |
break; |