kutrl_active; $s_plugin_service = (string) $s->kutrl_plugin_service; $s_admin_service = (string) $s->kutrl_admin_service; $s_tpl_service = (string) $s->kutrl_tpl_service; $s_wiki_service = (string) $s->kutrl_wiki_service; $s_allow_external_url = (boolean) $s->kutrl_allow_external_url; $s_tpl_passive = (boolean) $s->kutrl_tpl_passive; $s_tpl_active = (boolean) $s->kutrl_tpl_active; $s_admin_entry_default = (string) $s->kutrl_admin_entry_default; if ($default_part == 'setting' && $action == 'savesetting') { try { $s_active = !empty($_POST['s_active']); $s_admin_service = $_POST['s_admin_service']; $s_plugin_service = $_POST['s_plugin_service']; $s_tpl_service = $_POST['s_tpl_service']; $s_wiki_service = $_POST['s_wiki_service']; $s_allow_external_url = !empty($_POST['s_allow_external_url']); $s_tpl_passive = !empty($_POST['s_tpl_passive']); $s_tpl_active = !empty($_POST['s_tpl_active']); $s_admin_entry_default = !empty($_POST['s_admin_entry_default']); $s->put('kutrl_active',$s_active); $s->put('kutrl_plugin_service',$s_plugin_service); $s->put('kutrl_admin_service',$s_admin_service); $s->put('kutrl_tpl_service',$s_tpl_service); $s->put('kutrl_wiki_service',$s_wiki_service); $s->put('kutrl_allow_external_url',$s_allow_external_url); $s->put('kutrl_tpl_passive',$s_tpl_passive); $s->put('kutrl_tpl_active',$s_tpl_active); $s->put('kutrl_admin_entry_default',$s_admin_entry_default); $core->blog->triggerBlog(); http::redirect($p_url.'&part=setting&msg='.$action.'§ion='.$section); } catch (Exception $e) { $core->error->add($e->getMessage()); } } $services_combo = array(); foreach(kutrl::getServices($core) as $service_id => $service) { $o = new $service($core); $services_combo[__($o->name)] = $o->id; } $ext_services_combo = array_merge(array(__('Disabled')=>''),$services_combo); $lst_services_combo = array_merge(array('-'=>''),$services_combo); echo '