From: Arno H. <aho...@us...> - 2000-11-13 10:59:30
|
Update of /cvsroot/phpwiki/phpwiki In directory slayer.i.sourceforge.net:/tmp/cvs-serv4998 Modified Files: admin.php Log Message: localized remove function Index: admin.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/admin.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** admin.php 2000/11/09 16:29:10 1.4 --- admin.php 2000/11/13 10:59:27 1.5 *************** *** 24,28 **** Header("WWW-Authenticate: Basic realm=\"PhpWiki\""); Header("HTTP/1.0 401 Unauthorized"); ! echo "You entered an invalid login or password.\n"; exit; } --- 24,28 ---- Header("WWW-Authenticate: Basic realm=\"PhpWiki\""); Header("HTTP/1.0 401 Unauthorized"); ! echo gettext ("You entered an invalid login or password."); exit; } *************** *** 45,56 **** $remove = stripslashes($remove); if (function_exists('RemovePage')) { ! $html .= "You are about to remove '" . htmlspecialchars($remove) ! . "' permanently!<P>Click <A HREF=\"$ScriptUrl?removeok=" ! . rawurlencode($remove) . "\">here</A> to remove the page now." ! . "<P>Otherwise press the \"Back\" button of your browser."; } else { ! $html = "Function not yet implemented."; } ! GeneratePage('MESSAGE', $html, 'Remove page', 0); ExitWiki(''); } elseif (isset($removeok)) { --- 45,59 ---- $remove = stripslashes($remove); if (function_exists('RemovePage')) { ! $html .= sprintf(gettext ("You are about to remove '%s' permanently!"), htmlspecialchars($remove)); ! $html .= "\n<P>"; ! $url = rawurlencode($remove); ! $html .= sprintf(gettext ("Click %shere%s to remove the page now."), ! "<A HREF=\"$ScriptUrl?removeok=$url\">", "</A>"); ! $html .= "\n<P>"; ! $html .= gettext ("Otherwise press the \"Back\" button of your browser."); } else { ! $html = gettext ("Function not yet implemented."); } ! GeneratePage('MESSAGE', $html, gettext ("Remove page"), 0); ExitWiki(''); } elseif (isset($removeok)) { *************** *** 58,63 **** $removeok = stripslashes($removeok); RemovePage($dbi, $removeok); ! $html = "Removed page '".htmlspecialchars($removeok)."' successfully.'"; ! GeneratePage('MESSAGE', $html, 'Removed page', 0); ExitWiki(''); } --- 61,67 ---- $removeok = stripslashes($removeok); RemovePage($dbi, $removeok); ! $html = sprintf(gettext ("Removed page '%s' succesfully."), ! htmlspecialchars($removeok)); ! GeneratePage('MESSAGE', $html, gettext ("Remove page"), 0); ExitWiki(''); } |