Редакция 600 | Весь файл | Учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 600 | Редакция 601 | ||
---|---|---|---|
Строка 2035... | Строка 2035... | ||
2035 | $sRFolder = $this->secure->checkInt($rfolder); |
2035 | $sRFolder = $this->secure->checkInt($rfolder); |
2036 | $sRType = $this->secure->checkInt($rtype); |
2036 | $sRType = $this->secure->checkInt($rtype); |
2037 | $sRScheme = $this->secure->checkInt($scheme); |
2037 | $sRScheme = $this->secure->checkInt($scheme); |
2038 | $sRSign = $this->secure->checkInt($sign); |
2038 | $sRSign = $this->secure->checkInt($sign); |
2039 | 2039 | ||
2040 | phpinfo(); |
- | |
2041 | - | ||
2042 | $query = "INSERT INTO ".$this->prefix."repository SET proto_id='".$sProto."', rhost_id='".$sRHost."', rfolder_id='".$sRFolder."', version='".$sVersionID.", rtype_id='".$sRType."', scheme_id='".$sRScheme."', sign_id='".$sRSign."', repname='".$sRName."', repinfo='".$sRInfo."', repkey='".$sRKey."'"; |
2040 | $query = "INSERT INTO ".$this->prefix."repository SET proto_id='".$sProto."', rhost_id='".$sRHost."', rfolder_id='".$sRFolder."', version='".$sVersionID.", rtype_id='".$sRType."', scheme_id='".$sRScheme."', sign_id='".$sRSign."', repname='".$sRName."', repinfo='".$sRInfo."', repkey='".$sRKey."'"; |
- | 2041 | echo $query."\n"; |
|
2043 | $rq =& $this->db->query($query); |
2042 | $rq =& $this->db->query($query); |
2044 | 2043 | ||
2045 | $query = "SELECT rep_id FROM ".$this->prefix."repository ORDER BY rep_id DESC LIMIT 0, 1"; |
2044 | $query = "SELECT rep_id FROM ".$this->prefix."repository ORDER BY rep_id DESC LIMIT 0, 1"; |
2046 | $rq =& $this->db->query($query); |
2045 | $rq =& $this->db->query($query); |
2047 | $rq->fetchInto($repository); |
2046 | $rq->fetchInto($repository); |
2048 | 2047 | ||
- | 2048 | print_r($sections); |
|
2049 | for($i=0;$i<count($sections);$i++) { |
2049 | for($i=0;$i<count($sections);$i++) { |
2050 | $query = "INSERT INTO ".$this->prefix."sect2rep SET rep_id='".$repository["rep_id"]."', sect_id='".$sections[$i]."'"; |
2050 | $query = "INSERT INTO ".$this->prefix."sect2rep SET rep_id='".$repository["rep_id"]."', sect_id='".$sections[$i]."'"; |
2051 | $rq =& $this->db->query($query); |
2051 | $rq =& $this->db->query($query); |
2052 | }
|
2052 | }
|
2053 | 2053 |