Update of /cvsroot/phpwiki/phpwiki/admin
In directory usw-pr-cvs1:/tmp/cvs-serv2684/admin
Modified Files:
removepage.php wiki_port1_0.php
Removed Files:
lockpage.php
Log Message:
Jeff's hacks II.
This is a major change, to say the least. Some highlights:
o Completely new database API.
WARNING: all database schemas (currently MySQL, Postgres and DBA
support is working) use completely revised schema, so you must
start this new code with a new blank database...
o WikiPlugins
o New template engine.
In addition, some more incremental changes:
o Cascading Style Sheets reworked.
o Expanded syntax for text search: e.g. "wiki OR wacky AND NOT page".
o PhpWiki should now work with register_globals off. (Security issue.)
o Edit preview button.
(and probably more, which I'm forgetting about now.)
Much of this code is still in a state of flux (particularly
the new template engine code, and to a lesser extent the API
for the plugins.)
Feel free to play and hack on this, just be warned that some of it may
still change quite a bit...
See pgsrc/ReleaseNotes for a few more notes.
And feel free to post questions or comments either publicly on
<php...@li...>, or privately, to
<da...@da...>.
Index: removepage.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/admin/removepage.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** removepage.php 2001/02/15 19:32:55 1.3
--- removepage.php 2001/09/18 19:16:23 1.4
***************
*** 2,27 ****
rcs_id('$Id$');
! if (!function_exists('RemovePage'))
! {
! $html = gettext ("Function not yet implemented.");
}
! else if (empty($verify) || $verify != 'okay')
! {
! $html = sprintf(gettext ("You are about to remove '%s' permanently!"),
! htmlspecialchars($pagename));
! $html .= "\n<P>";
! $html .= sprintf(gettext ("Click <a href=\"%s\">here</a> to remove the page now."),
! htmlspecialchars(WikiURL($pagename, array('action' => 'remove',
! 'verify' => 'okay'))));
! $html .= "\n<P>";
! $html .= gettext ("Otherwise press the \"Back\" button of your browser.");
}
! else
! {
! RemovePage($dbi, $pagename);
! $html = sprintf(gettext ("Removed page '%s' succesfully."),
! htmlspecialchars($pagename));
! }
!
! echo GeneratePage('MESSAGE', $html, gettext ("Remove page"), 0);
?>
--- 2,21 ----
rcs_id('$Id$');
! if (empty($verify) || $verify != 'okay') {
! $html = sprintf(gettext ("You are about to remove '%s' permanently!"),
! htmlspecialchars($pagename));
! $html .= "\n<P>";
! $html .= sprintf(gettext ("Click <a href=\"%s\">here</a> to remove the page now."),
! htmlspecialchars(WikiURL($pagename, array('action' => 'remove',
! 'verify' => 'okay'))));
! $html .= "\n<P>";
! $html .= gettext ("Otherwise press the \"Back\" button of your browser.");
}
! else {
! $dbi->deletePage($pagename);
! $html = sprintf(gettext ("Removed page '%s' succesfully."),
! htmlspecialchars($pagename));
}
! require_once('lib/template.php');
! echo GeneratePage('MESSAGE', $html, gettext("Remove page"));
?>
Index: wiki_port1_0.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/admin/wiki_port1_0.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** wiki_port1_0.php 2001/06/26 18:16:06 1.4
--- wiki_port1_0.php 2001/09/18 19:16:23 1.5
***************
*** 7,10 ****
--- 7,19 ----
<body bgcolor="navajowhite">
+ <h1> Broken </h1>
+ <p>This script has not yet been fixed so that it works with this version of
+ PhpWiki. Sorry.</p>
+ <p>--<a href="mailto:da...@da...">JeffDairiki</a>.</p>
+ <hr>
+ </body>
+ </html>
+ <?php exit; ?>
+
<?php
function port1_0RenderHash($dbi, $dbmh, $pagename) {
--- lockpage.php DELETED ---
|