Редакция 320 | Редакция 329 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 320 | Редакция 321 | ||
---|---|---|---|
Строка 152... | Строка 152... | ||
152 | }
|
152 | }
|
153 | 153 | ||
154 | return $show; |
154 | return $show; |
155 | }
|
155 | }
|
156 | 156 | ||
- | 157 | // Добавление поддержки нового apt-дистрибутива
|
|
- | 158 | function addDistribution($distname, $disttype, $distua = 1, $distlogo = 0) { |
|
- | 159 | $result = array(); |
|
- | 160 | $sDName = $this->secure->checkStr($distname); |
|
- | 161 | $sDType = $this->secure->checkInt($disttype); |
|
- | 162 | $sDUAgt = $this->secure->checkStr($distua); |
|
- | 163 | $sDLogo = $this->secure->checkInt($distname); |
|
- | 164 | ||
- | 165 | $query = "INSERT INTO ".$this->prefix."distribution SET distname='".$sDName."', distua='".$sDUAgt."', disttype='".$sDType."', distlogo='".$sDLogo."'"; |
|
- | 166 | $rq =& $this->db->query($query); |
|
- | 167 | if (PEAR::isError($this->db)) { |
|
- | 168 | $result["ERR"] = 1; |
|
- | 169 | $result["ERRINFO"] = $this->db->getMessage(); |
|
- | 170 | } else { |
|
- | 171 | $rq->fetchInto($element); |
|
- | 172 | $result["ERR"] = 0; |
|
- | 173 | }
|
|
- | 174 | ||
- | 175 | return $result; |
|
- | 176 | }
|
|
- | 177 | ||
157 | }
|
178 | }
|
158 | 179 | ||
159 | ?>
|
180 | ?>
|