Редакция 582 | Редакция 587 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 582 | Редакция 586 | ||
---|---|---|---|
Строка 1267... | Строка 1267... | ||
1267 | */
|
1267 | */
|
1268 | public function addHost($host) { |
1268 | public function addHost($host) { |
1269 | $result = array(); |
1269 | $result = array(); |
1270 | $sHost = $this->secure->checkStr($host); |
1270 | $sHost = $this->secure->checkStr($host); |
1271 | 1271 | ||
1272 | $query = "INSERT INTO ".$this->prefix."rephost SET rhost='".$sProto."'"; |
1272 | $query = "INSERT INTO ".$this->prefix."rephost SET rhost='".$sHost."'"; |
1273 | $rq =& $this->db->query($query); |
1273 | $rq =& $this->db->query($query); |
1274 | if (PEAR::isError($this->db)) { |
1274 | if (PEAR::isError($this->db)) { |
1275 | $result["ERR"] = 1; |
1275 | $result["ERR"] = 1; |
1276 | $result["ERRINFO"] = $this->db->getMessage(); |
1276 | $result["ERRINFO"] = $this->db->getMessage(); |
1277 | } else { |
1277 | } else { |