23,6 → 23,8 |
|
set_exception_handler(array('OIDplusGui', 'html_exception_handler')); |
|
@set_time_limit(0); |
|
OIDplus::init(true); |
|
if (OIDplus::baseConfig()->getValue('DISABLE_PLUGIN_OIDplusPageAdminNostalgia', false)) { |
43,12 → 45,12 |
$dos_ids[''] = '00000000'; |
$parent_oids[''] = ''; |
|
$dos_ids[''] = str_pad($i++, 8, '0', STR_PAD_LEFT); |
$dos_ids[''] = str_pad(strval($i++), 8, '0', STR_PAD_LEFT); |
$res = OIDplus::db()->query("select * from ###objects where id like 'oid:%' order by ".OIDplus::db()->natOrder('id')); |
while ($row = $res->fetch_object()) { |
$oid = substr($row->id, strlen('oid:')); |
$parent_oid = substr($row->parent, strlen('oid:')); |
$dos_ids[$oid] = str_pad($i++, 8, '0', STR_PAD_LEFT); |
$dos_ids[$oid] = str_pad(strval($i++), 8, '0', STR_PAD_LEFT); |
if ($parent_oid == '') { |
$parent_oids[$oid] = ''; |
} else { |