29,8 → 29,18 |
header('Content-Type: text/html; charset=utf-8'); |
if($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') { |
|
// hacks for Konqueror's error on jQuery |
if (preg_match("/konqueror/i",$_SERVER["HTTP_USER_AGENT"])) { |
$dist_konq = mysql_real_escape_string($_GET["d"]); |
$query =& $db->query("SELECT * FROM distribution WHERE distname LIKE '$dist_konq'"); |
$query->fetchInto($distro, DB_FETCHMODE_ASSOC); |
$dist = $distro["dist_id"]; |
}; |
|
|
switch($status) { |
case '1': |
|
$result = '[{value:"",text:"Выбрать версию дистрибутива"}'; |
$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)) { |