]> git.entuzijast.net Git - freeradius-dialup-admin.git/commitdiff
Work even when register_globals if off. Suggestion from Evren Yurtesen <eyurtese...
authorkkalev <kkalev>
Sun, 24 Nov 2002 15:01:36 +0000 (15:01 +0000)
committerkkalev <kkalev>
Sun, 24 Nov 2002 15:01:36 +0000 (15:01 +0000)
Also add an entry in the FAQ about that.

Changelog
FAQ
conf/config.php3

index 304f6b0b3fd7c412dc917ee094887396a43aca99..5a157b683f9e33d38b81f808e269d72256a10f68 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -6,6 +6,8 @@ Ver 1.62:
 * Add a new script bin/truncate_radacct which will delete all sessions from the radacct table which
   are older than a configurable number of days
 * Fix a typo in sql.attrmap. Fix by Evren Yurtesen <eyurtese@turkuamk.fi>
+* Work even when register_globals if off. Suggestion from Evren Yurtesen <eyurtese@turkuamk.fi>
+  Also add an entry in the FAQ about that.
 Ver 1.61:
 * Add a string encoder for greek
 * If general_decode_normal_attributes is set then encode attributes in lib/ldap/change_info. In the near future
diff --git a/FAQ b/FAQ
index 38ad6159e314d8eb5dcb1ef5d0aaebd1e7244cfa..3864b0c5147e48c07cd4c0a313f93ae2074a2ad3 100644 (file)
--- a/FAQ
+++ b/FAQ
@@ -56,5 +56,13 @@ table and not try to do a finger on the NAS.
 
 If you are using sessions then remember to use the 'Clear Cache' page after making any changes
 
+>
+> It is still not working
+>
+
+Check that the register_globals in php.ini is set to on. As of PHP 4.2.0 this is set to off by default. The latest
+versions of dialup_admin will work even if register_globals is set to off if the php version is > 4.1.0
+(Thanks to Evren Yurtesen <eyurtese@turkuamk.fi> for the suggestion).
+
 --
 kkalev
index 9c0f375d425ea80a3eec5475c93f810362052c46..dd6a8858a996e46c2590fa8e3e599a6c3e54ead4 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+#
+# Things should work even if register_globals is set to off
+#
+$testVer=intval(str_replace(".", "",'4.1.0'));
+$curVer=intval(str_replace(".", "",phpversion()));
+if( $curVer >= $testVer )
+       import_request_variables('GPC');
 # If using sessions set use_session to 1 to also cache the config file
 #
 $use_session = 0;