Rev 1199 | Rev 1202 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1199 | Rev 1201 | ||
---|---|---|---|
Line 1321... | Line 1321... | ||
1321 | echo ''; // <-- difference |
1321 | echo ''; // <-- difference |
1322 | } |
1322 | } |
1323 | echo '> <label for="enable_ot_'.$ot::ns().'">'.htmlentities($ot::objectTypeTitle()).'</label><br>'; |
1323 | echo '> <label for="enable_ot_'.$ot::ns().'">'.htmlentities($ot::objectTypeTitle()).'</label><br>'; |
1324 | } |
1324 | } |
1325 | 1325 | ||
1326 | $msg = ''; |
1326 | $htmlmsg = ''; |
1327 | if ($do_edits) { |
1327 | if ($do_edits) { |
1328 | try { |
1328 | try { |
1329 | OIDplus::config()->setValue('objecttypes_enabled', implode(';', $enabled_ary)); |
1329 | OIDplus::config()->setValue('objecttypes_enabled', implode(';', $enabled_ary)); |
1330 | OIDplus::config()->setValue('oobe_objects_done', '1'); |
1330 | OIDplus::config()->setValue('oobe_objects_done', '1'); |
1331 | } catch (\Exception $e) { |
1331 | } catch (\Exception $e) { |
1332 | $msg = $e->getMessage(); |
1332 | $htmlmsg = $e instanceof OIDplusException ? $e->getHtmlMessage() : htmlentities($e->getMessage()); |
1333 | $errors_happened = true; |
1333 | $errors_happened = true; |
1334 | } |
1334 | } |
1335 | } |
1335 | } |
1336 | 1336 | ||
1337 | echo ' <font color="red"><b>'.$msg.'</b></font>'; |
1337 | echo ' <font color="red"><b>'.$htmlmsg.'</b></font>'; |
1338 | } |
1338 | } |
1339 | 1339 | ||
1340 | /** |
1340 | /** |
1341 | * Implements interface INTF_OID_1_3_6_1_4_1_37476_2_5_2_3_8 |
1341 | * Implements interface INTF_OID_1_3_6_1_4_1_37476_2_5_2_3_8 |
1342 | * @param string|null $user |
1342 | * @param string|null $user |