SourceForge logo
SourceForge logo
Menu

phpwiki-checkins

From: Reini U. <ru...@us...> - 2005年07月24日 07:35:58
Update of /cvsroot/phpwiki/phpwiki/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18546
Modified Files:
 Tag: release-1_2-branch
	config.php 
Log Message:
simplify ini_get by casting to (bool)
Index: config.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/config.php,v
retrieving revision 1.24.2.14
retrieving revision 1.24.2.15
diff -u -2 -b -p -d -r1.24.2.14 -r1.24.2.15
--- config.php	23 Jul 2005 11:13:02 -0000	1.24.2.14
+++ config.php	24 Jul 2005 07:35:40 -0000	1.24.2.15
@@ -7,6 +7,9 @@
 set_magic_quotes_runtime(0);
 error_reporting(E_ALL ^ E_NOTICE);
- if (!ini_get('register_globals') or (ini_get('register_globals') == 'off')) {
+ if (! (bool)ini_get('register_globals')) {
 import_request_variables('gps');
+ if (! (bool)ini_get('register_long_arrays')) {
+	 $HTTP_SERVER_VARS =& $_SERVER;
+ }
 extract($HTTP_SERVER_VARS);
 }
@@ -16,5 +19,5 @@
 }
 rcs_id('$Id$'); 
- define('PHPWIKI_VERSION', '1.2.8');
+ define('PHPWIKI_VERSION', '1.2.10');
 // end essential internal stuff
 
@@ -306,5 +309,10 @@
 function compute_default_scripturl() {
 global $HTTP_SERVER_VARS, $SERVER_PORT, $SERVER_NAME, $SCRIPT_NAME, $HTTPS;
- if (!ini_get('register_globals') or (ini_get('register_globals') == 'off')) {
+
+ if (! (bool)ini_get('register_globals')) {
+	 import_request_variables('gps');
+	 if (! (bool)ini_get('register_long_arrays')) {
+	 $HTTP_SERVER_VARS =& $_SERVER;
+	 }
 extract($HTTP_SERVER_VARS);
 }
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /