Редакция 110 | Редакция 204 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 110 | Редакция 115 | ||
---|---|---|---|
Строка 27... | Строка 27... | ||
27 | $status = abs(intval($_GET["status"])); |
27 | $status = abs(intval($_GET["status"])); |
28 | 28 | ||
29 | header('Content-Type: text/html; charset=utf-8'); |
29 | header('Content-Type: text/html; charset=utf-8'); |
30 | if($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') { |
30 | if($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') { |
31 | 31 | ||
32 | // hacks for Konqueror's error on jQuery
|
32 | // hacks for Konqueror's error on jQuery
|
33 | if (preg_match("/konqueror/i",$_SERVER["HTTP_USER_AGENT"])) { |
33 | if (preg_match("/konqueror/i",$_SERVER["HTTP_USER_AGENT"])) { |
34 | $dist_konq = mysql_real_escape_string($_GET["d"]); |
34 | $dist_konq = mysql_real_escape_string($_GET["d"]); |
35 | $query =& $db->query("SELECT * FROM distribution WHERE distname LIKE '$dist_konq'"); |
35 | $query =& $db->query("SELECT * FROM distribution WHERE distname LIKE '$dist_konq'"); |
36 | $query->fetchInto($distro, DB_FETCHMODE_ASSOC); |
36 | $query->fetchInto($distro, DB_FETCHMODE_ASSOC); |
37 | $dist = $distro["dist_id"]; |
37 | $dist = $distro["dist_id"]; |
38 | }; |
38 | }; |
39 | 39 | ||
40 | 40 | ||
41 | switch($status) { |
41 | switch($status) { |
42 | case '1': |
42 | case '1': |
43 | 43 |