Lines Matching +full:update +full:- +full:user +full:- +full:info -(+path:inc +path:lang) -(+path:lib +path:plugins +path:lang) -(+path:lib +path:tpl +path:dokuwiki +path:lang)

36      * handle user request
43 $this->configuration = new Configuration();
45 if (!$INPUT->bool('save') || !checkSecurityToken()) {
50 if ($this->configuration->isLocked()) return;
52 // update settings and redirect of successful
53 $ok = $this->configuration->updateSettings($INPUT->arr('config'));
56 if ($this->configuration->hasChanged()) {
57 $this->configuration->save();
59 $this->configuration->touch();
61 msg($this->getLang('updated'), 1);
63 msg($this->getLang('error'), -1);
67 $this->hasErrors = true;
68 msg($this->getLang('error'), -1);
81 $this->setupLocale(true);
83 echo $this->locale_xhtml('intro');
87 if ($this->configuration->isLocked()) {
88 echo '<div class="info">' . $this->getLang('locked') . '</div>';
97 $this->printH1('dokuwiki_settings', $this->getLang('_header_dokuwiki'));
102 foreach ($this->configuration->getSettings() as $setting) {
114 if ($first_plugin_fieldset && $setting->getType() == 'plugin') {
115 $this->printH1('plugin_settings', $this->getLang('_header_plugin'));
117 } elseif ($first_template_fieldset && $setting->getType() == 'template') {
118 $this->printH1('template_settings', $this->getLang('_header_template'));
121 echo '<fieldset id="' . $setting->getKey() . '">';
122 echo '<legend>' . $setting->prompt($this) . '</legend>';
127 [$label, $input] = $setting->html($this, $this->hasErrors);
129 $class = $setting->isDefault()
131 : ($setting->isProtected() ? ' class="protected"' : '');
132 $error = $setting->hasError()
135 $icon = $setting->caution()
136 ? '<img src="' . self::IMGDIR . $setting->caution() . '.png" ' .
137 'alt="' . $setting->caution() . '" title="' . $this->getLang($setting->caution()) . '" />'
142 echo '<span class="outkey">' . $setting->getPrettyKey() . '</span>';
157 $undefined_settings = $this->configuration->getUndefined();
168 return strnatcmp($a->getKey(), $b->getKey());
172 $this->printH1('undefined_settings', $this->getLang('_header_undefined'));
177 [$label, $input] = $setting->html($this);
193 if (!$this->configuration->isLocked()) {
211 if (!$prompts || $this->promptsLocalized) return;
212 $this->lang = array_merge($this->lang, $this->configuration->getLangs());
213 $this->promptsLocalized = true;
217 * Generates a two-level table of contents for the config plugin.
225 $this->setupLocale(true);
233 foreach ($this->configuration->getSettings() as $setting) {
235 $labels[$setting->getType()][] = $setting;
240 $title = $this->getLang('_configuration_manager');
250 $this->getLang('_header_' . $section),
257 $name = $setting->prompt($this);
258 $toc[] = html_mktocitem($setting->getKey(), $name, 2);
263 if (count($this->configuration->getUndefined()) && $allow_debug) {
264 $toc[] = html_mktocitem('undefined_settings', $this->getLang('_header_undefined'), 1);
289 if (!$this->localised) $this->setupLocale();
290 $this->lang[$key] = $value;