$wc = new WikiConfig($id); print "\n<h1>" . _("Configuration for your project's Wiki") . "</h1>\n"; print "<table>\n"; print "<tr>\n"; print "<td>\n"; print "<fieldset>\n"; print "<legend>" . _('Wiki Configuration') . "</legend>\n"; print "<form action=\"/plugins/wiki/wikiadmin.php\" method=\"post\">\n"; print "<input type=\"hidden\" name=\"id\" value=\"{$id}\" />\n"; print "<input type=\"hidden\" name=\"pluginname\" value=\"{$pluginname}\" />\n"; print "<input type=\"hidden\" name=\"type\" value=\"admin_post\" />\n"; print '<table class="listing">'; print "\n<thead>\n<tr>\n<th>" . _("Parameter") . "</th>" . "<th>" . _("Value") . "</th>\n" . "</tr>\n</thead>\n"; foreach ($wc->getWikiConfigNames() as $c) { $checked = $wc->getWikiConfig($c) ? ' checked="checked"' : ''; $desc = $wc->getWikiConfigDescription($c); print "<tr>\n<td>{$desc}</td>\n" . "<td align=\"center\">" . "<input type=\"checkbox\" name=\"config[{$c}]\" value=\"1\"{$checked} /></td>\n" . "</tr>\n"; } print "</table>\n"; print "<p align=\"right\"><input type=\"submit\" value=\"" . _("Save Configuration") . "\" /></p>"; print "</form>\n"; print "</fieldset>\n"; print "</td>\n"; print "</tr>\n"; print "</table>\n"; } else { exit_error(_('Access Denied'), _('You are not a project Admin')); } } } site_project_footer(array());