getURL().'#plugins' : $_REQUEST['redir']; # -- Get settings -- $core->blog->settings->addNamespace('postwidgettext'); $s = $core->blog->settings->postwidgettext; $active = (boolean) $s->postwidgettext_active; $importexport_active = (boolean) $s->postwidgettext_importexport_active; # -- Set settings -- if (!empty($_POST['save'])) { try { $active = !empty($_POST['active']); $importexport_active = !empty($_POST['importexport_active']); $s->put('postwidgettext_active', $active); $s->put('postwidgettext_importexport_active', $importexport_active); $core->blog->triggerBlog(); dcPage::addSuccessNotice( __('Configuration successfully updated') ); http::redirect( $list->getURL('module=postWidgetText&conf=1&redir='. $list->getRedir()) ); } catch (Exception $e) { $core->error->add($e->getMessage()); } } # -- Display form -- echo '

'.__('Activation').'

';