EditPage URL used for the form action parameter is bogus. * This is needed, otherwise the redirect to the real browser * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept * a redirect from a page to itself.) * * 'text', 'class' => 'wikitext', 'name' => 'summary', 'size' => 50, 'value' => $FORMVARS['summary'])); $MinorEditCb = Element('input', array('type' => 'checkbox', 'name' => 'minor_edit', 'checked' => (bool) $FORMVARS['minor_edit'])); $PreviewB = Element('input', array('type' => 'submit', 'class' => 'button', 'name' => 'preview', 'value' => _("Preview"))); $SaveB = Element('input', array('type' => 'submit', 'class' => 'button', 'value' => _("Save"))); if ($user->is_authenticated()) { $UserMsg = sprintf(_("You are signed in as %s."), LinkWikiWord($USERID)); } else { $SignInB = $ButtonFactory->makeActionButton('login'); $UserMsg = sprintf(_("Author will be logged as %s."), QElement('em', $USERID)); $UserMsg .= $SignInB->asHTML(); $UserMsg .= Element('br'); $UserMsg .= QElement('small', '*' . _("backup and reload after signing in")); } ?>
|