39,20 → 39,22 |
if (preg_match("/linux/i",$message)) { |
$dist_id = 0; |
$dist_info = ""; |
$vers_id = 0; |
$vers_info = ""; |
$qd =& $dblink->query("SELECT * FROM distribution"); |
while ($qd->fetchInto($res, DB_FETCHMODE_ASSOC)) { |
$vers_id = 0; |
$vers_info = ""; |
if (preg_match("/".stripslashes($res["distua"])."/i",$message)) { |
$dist_id = $res["dist_id"]; |
$dist_info = stripslashes($res["distname"]); |
$qv =& $dblink->query("SELECT * FROM version WHERE dist_id='$dist_id'"); |
while($qv->fetchInto($rev, DB_FETCHMODE_ASSOC)) { |
if (preg_match("/".stripslashes($rev["vcodename"])."/i",$message)) { |
$vers_id = $rev["version_id"]; |
$vers_info = stripslashes($rev["version"])." ".stripslashes($rev["vname"]); |
$vers_info = stripslashes($rev["version"])." “".stripslashes($rev["vname"])."”"; |
} |
} |
} |
} |
$answer[] = "Linux"; |
$answer[] = "Судя по всему у Вас операционная система "; |
if ($dist_id!=0) { |