2 rcs_id('$Id: removepage.php,v 1.1 2001-11-08 16:02:40 dairiki Exp $');
4 if ($request->getArg('verify') != 'okay') {
5 $html = sprintf(gettext ("You are about to remove '%s' permanently!"),
6 htmlspecialchars($pagename));
8 $html .= sprintf(gettext ("Click <a href=\"%s\">here</a> to remove the page now."),
9 htmlspecialchars(WikiURL($pagename, array('action' => 'remove',
10 'verify' => 'okay'))));
12 $html .= gettext ("Otherwise press the \"Back\" button of your browser.");
15 $dbi->deletePage($pagename);
16 $html = sprintf(gettext ("Removed page '%s' succesfully."),
17 htmlspecialchars($pagename));
19 require_once('lib/Template.php');
20 echo GeneratePage('MESSAGE', $html, gettext("Remove page"));
27 // c-hanging-comment-ender-p: nil
28 // indent-tabs-mode: nil