Rev 1053 | Rev 1130 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1053 | Rev 1064 | ||
---|---|---|---|
Line 64... | Line 64... | ||
64 | $parent_oid = substr($row->parent, strlen('oid:')); |
64 | $parent_oid = substr($row->parent, strlen('oid:')); |
65 | 65 | ||
66 | $dos_ids[$oid] = str_pad(strval($i++), 8, '0', STR_PAD_LEFT); |
66 | $dos_ids[$oid] = str_pad(strval($i++), 8, '0', STR_PAD_LEFT); |
67 | fill_asn1($oid, $asn1); |
67 | fill_asn1($oid, $asn1); |
68 | //fill_iri($oid, $iri); |
68 | //fill_iri($oid, $iri); |
69 | $title[$oid] = $row->title; |
69 | $title[$oid] = vts_utf8_decode($row->title); |
70 | $description[$oid] = $row->description; |
70 | $description[$oid] = vts_utf8_decode($row->description); |
71 | $created[$oid] = $row->created; |
71 | $created[$oid] = $row->created; |
72 | $updated[$oid] = $row->updated; |
72 | $updated[$oid] = $row->updated; |
73 | 73 | ||
74 | if ((oid_len($oid) > 1) && ($parent_oid == '')) { |
74 | if ((oid_len($oid) > 1) && ($parent_oid == '')) { |
75 | do { |
75 | do { |
Line 85... | Line 85... | ||
85 | $description[$real_parent] = ''; |
85 | $description[$real_parent] = ''; |
86 | $created[$real_parent] = ''; |
86 | $created[$real_parent] = ''; |
87 | $updated[$real_parent] = ''; |
87 | $updated[$real_parent] = ''; |
88 | $res2 = OIDplus::db()->query("select * from ###objects where id = 'oid:$real_parent'"); |
88 | $res2 = OIDplus::db()->query("select * from ###objects where id = 'oid:$real_parent'"); |
89 | while ($row2 = $res2->fetch_object()) { |
89 | while ($row2 = $res2->fetch_object()) { |
90 | $title[$real_parent] = $row2->title; |
90 | $title[$real_parent] = vts_utf8_decode($row2->title); |
91 | $description[$real_parent] = $row2->description; |
91 | $description[$real_parent] = vts_utf8_decode($row2->description); |
92 | $created[$real_parent] = $row2->created; |
92 | $created[$real_parent] = $row2->created; |
93 | $updated[$real_parent] = $row2->updated; |
93 | $updated[$real_parent] = $row2->updated; |
94 | } |
94 | } |
95 | 95 | ||
96 | // next |
96 | // next |
Line 120... | Line 120... | ||
120 | if ($parent_oid == $oid) { |
120 | if ($parent_oid == $oid) { |
121 | $cont .= "delegate$i=OID:$child_oid\r\n"; |
121 | $cont .= "delegate$i=OID:$child_oid\r\n"; |
122 | $i++; |
122 | $i++; |
123 | } |
123 | } |
124 | } |
124 | } |
125 | $cont .= "delegates=".($i-1)."\n"; |
125 | $cont .= "delegates=".($i-1)."\r\n"; |
126 | 126 | ||
127 | if ($oid != '') { |
127 | if ($oid != '') { |
128 | $asnids = array(); |
128 | $asnids = array(); |
129 | foreach ($asn1[$oid] as $name) { |
129 | foreach ($asn1[$oid] as $name) { |
130 | $asnids[] = $name; |
130 | $asnids[] = $name; |