From 0933e8ee719b87927df37fffecf55155f72c8c3b Mon Sep 17 00:00:00 2001 From: rurban Date: Fri, 7 Jan 2005 14:00:00 +0000 Subject: [PATCH] 2004-11-28 19:19 rurban Release 1.2.5 * admin.php, index.php, lib/config.php(global, compute_default_scripturl): import _SERVER and _GET/_POST to support register_globals=off * admin.php: on (un)lock=pagename display the (un)lock'ed page not FrontPage * lib/pgsql.php, lib/config.php: add pg_user and pg_pass (patch #1001339 by Jack Twilley) * lib/dbalib.php, lib/dbmlib.php, lib/db_filesystem: fix GetAllWikiPagenames() using $dbi['wiki']. This fixes zip and dumpserial on dba, dbm and file. * lib/msql.php: typo in GetAllWikiPageNames(). This fixes zip and dumpserial on msql. git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/branches/release-1_2_4@4360 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- admin/dumpserial.php | 4 ++-- admin/loadserial.php | 4 ++-- admin/lockpage.php | 4 ++-- admin/shrinkdbm.pl | 2 +- admin/wiki_dumpHTML.php | 4 ++-- admin/wiki_port1_0.php | 5 ++--- admin/wiki_rebuilddbms.php | 4 ++-- admin/zip.php | 4 ++-- lib/config.php | 15 ++++++++++++--- lib/dbalib.php | 12 ++++++------ lib/pageinfo.php | 4 ++-- lib/savepage.php | 4 ++-- lib/stdlib.php | 4 ++-- lib/ziplib.php | 7 ++++--- pgsrc/ReleaseNotes | 15 +++++++++++---- 15 files changed, 54 insertions(+), 38 deletions(-) diff --git a/admin/dumpserial.php b/admin/dumpserial.php index 60c6269f3..e33f8f5cb 100755 --- a/admin/dumpserial.php +++ b/admin/dumpserial.php @@ -1,4 +1,4 @@ - + Dump complete."; GeneratePage('MESSAGE', $html, 'Dump serialized pages', 0); ExitWiki(''); -?> +?> \ No newline at end of file diff --git a/admin/loadserial.php b/admin/loadserial.php index eab61e879..36ded51e3 100755 --- a/admin/loadserial.php +++ b/admin/loadserial.php @@ -1,4 +1,4 @@ - + Load complete."; GeneratePage('MESSAGE', $html, 'Load serialized pages', 0); ExitWiki(''); -?> +?> \ No newline at end of file diff --git a/admin/lockpage.php b/admin/lockpage.php index 4853b3a0c..0b50ac432 100755 --- a/admin/lockpage.php +++ b/admin/lockpage.php @@ -1,4 +1,4 @@ - + +?> \ No newline at end of file diff --git a/admin/shrinkdbm.pl b/admin/shrinkdbm.pl index 6aded3d74..c447ca16a 100755 --- a/admin/shrinkdbm.pl +++ b/admin/shrinkdbm.pl @@ -1,6 +1,6 @@ #!/usr/bin/perl -w -# $Id: shrinkdbm.pl,v 1.1.2.1.2.1 2005-01-07 13:48:42 rurban Exp $ +# $Id: shrinkdbm.pl,v 1.1.2.1.2.2 2005-01-07 13:59:57 rurban Exp $ # shrink a DBM file # Steve Wainstead, July 2000 diff --git a/admin/wiki_dumpHTML.php b/admin/wiki_dumpHTML.php index ff529e6d2..4feed4cc9 100755 --- a/admin/wiki_dumpHTML.php +++ b/admin/wiki_dumpHTML.php @@ -1,7 +1,7 @@ - + \n"; echo "Got: $dumpHTML $directory
\n"; -?> +?> \ No newline at end of file diff --git a/admin/wiki_port1_0.php b/admin/wiki_port1_0.php index 30b04635c..01585c43e 100755 --- a/admin/wiki_port1_0.php +++ b/admin/wiki_port1_0.php @@ -1,10 +1,9 @@ - - Importing phpwiki 1.0.x dbm files + Done. - + \ No newline at end of file diff --git a/admin/wiki_rebuilddbms.php b/admin/wiki_rebuilddbms.php index b835ca513..e06fdcca8 100755 --- a/admin/wiki_rebuilddbms.php +++ b/admin/wiki_rebuilddbms.php @@ -1,6 +1,6 @@ - + \n"; -?> +?> \ No newline at end of file diff --git a/admin/zip.php b/admin/zip.php index 2e1f8179b..9be06e630 100755 --- a/admin/zip.php +++ b/admin/zip.php @@ -1,4 +1,4 @@ - +?> \ No newline at end of file diff --git a/lib/config.php b/lib/config.php index 335ab0ac3..5cf9811d3 100644 --- a/lib/config.php +++ b/lib/config.php @@ -6,11 +6,14 @@ set_magic_quotes_runtime(0); error_reporting(E_ALL ^ E_NOTICE); + if (!ini_get('register_globals')) { + extract($HTTP_SERVER_VARS); + } if (!function_exists('rcs_id')) { function rcs_id($id) { echo "\n"; }; } - rcs_id('$Id: config.php,v 1.24.2.13.2.1 2005-01-07 13:48:42 rurban Exp $'); + rcs_id('$Id: config.php,v 1.24.2.13.2.2 2005-01-07 13:59:58 rurban Exp $'); // end essential internal stuff @@ -113,6 +116,8 @@ } elseif ($WhichDatabase == 'pgsql') { $pg_dbhost = "localhost"; $pg_dbport = "5432"; + $pg_dbuser = ""; // username as used in step 2 of INSTALL.mysql + $pg_dbpass = ""; // password of above user (or leave blank if none) $WikiDataBase = "wiki"; // name of the database in Postgresql $WikiPageStore = "wiki"; $ArchivePageStore = "archive"; @@ -268,7 +273,11 @@ ////////////////////////////////////////////////////////////////////// // you shouldn't have to edit anyting below this line function compute_default_scripturl() { - global $SERVER_PORT, $SERVER_NAME, $SCRIPT_NAME, $HTTPS; + global $HTTP_SERVER_VARS, $SERVER_PORT, $SERVER_NAME, $SCRIPT_NAME, $HTTPS; + if (!ini_get('register_globals')) { + extract($HTTP_SERVER_VARS); + } + if (!empty($HTTPS) && $HTTPS != 'off') { $proto = 'https'; $dflt_port = 443; @@ -307,4 +316,4 @@ // constants for flags in $pagehash define("FLAG_PAGE_LOCKED", 1); -?> +?> \ No newline at end of file diff --git a/lib/dbalib.php b/lib/dbalib.php index 91480168e..4de338265 100644 --- a/lib/dbalib.php +++ b/lib/dbalib.php @@ -1,6 +1,6 @@ +?> \ No newline at end of file diff --git a/lib/pageinfo.php b/lib/pageinfo.php index 43ef8a4d7..ed597334f 100644 --- a/lib/pageinfo.php +++ b/lib/pageinfo.php @@ -1,4 +1,4 @@ - + +?> \ No newline at end of file diff --git a/lib/savepage.php b/lib/savepage.php index f01124074..882a1b32a 100644 --- a/lib/savepage.php +++ b/lib/savepage.php @@ -1,4 +1,4 @@ - +?> \ No newline at end of file diff --git a/lib/stdlib.php b/lib/stdlib.php index 647bed0d3..49f560bc9 100644 --- a/lib/stdlib.php +++ b/lib/stdlib.php @@ -1,4 +1,4 @@ - +?> \ No newline at end of file diff --git a/lib/ziplib.php b/lib/ziplib.php index 15a4efc59..65f01938b 100644 --- a/lib/ziplib.php +++ b/lib/ziplib.php @@ -1,5 +1,5 @@ +?> \ No newline at end of file diff --git a/pgsrc/ReleaseNotes b/pgsrc/ReleaseNotes index f1c2709d3..e2bd90621 100644 --- a/pgsrc/ReleaseNotes +++ b/pgsrc/ReleaseNotes @@ -1,9 +1,16 @@ -PhpWiki 1.2.4 improves possible deadlocks in DBA, and fixes problems - with DBA open failures. +PhpWiki 1.2.5 supports now register_globals=off, +* adds user/password to pgsql, +* fix zip and dumpserial on dba, dbm, msql and file, +* and fixes a minor (un)lock issue, displaying the (un)locked page afterwards and not the FrontPage. + +PhpWiki 1.2.4 improves possible deadlocks in DBA, +* and fixes problems with DBA open failures. PhpWiki 1.2.3 just adds the RELATEDPAGES footer support to dba, - adds remove to dba, - and fixes one minor aesthetic error on info w/o "Show the page source" +* adds remove to dba, +* and fixes one minor aesthetic error on info w/o "Show the page source" + +--[ReiniUrban|http://phpwiki.org/ReiniUrban] PhpWiki 1.2 is a huge advance over version 1.0: -- 2.45.0