4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 14, 2018, 04:50:41 AM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
+  4images Forum & Community
|-+  4images Help / Hilfe
| |-+  Bug Fixes & Patches
| | |-+  [1.7.1 - 1.7.8] Can't login
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: [1.7.1 - 1.7.8] Can't login  (Read 6873 times)
If you don't tell me what to do, I won't tell you where you should go :)
4images Guru
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 578

mmm PHP...

View Profile WWW
« on: August 25, 2010, 04:45:35 AM »

On some servers this "bug" won't let login into 4images unless selected "Log me on automatically next visit" checkbox at members login form. It only affects some servers that for some reason return text value of boolean settings in php.ini Technically this is not 4images fault, because according PHP documentation register_globals is a boolean value, and in documentation for ini_get() states:
Quote  [Expand]
   Note: When querying boolean values
A boolean ini value of off will be returned as an empty string or "0" while a boolean ini value of on will be returned as "1". The function can also return the literal string of INI value.

The fix is simple:
in includes/sessions.php find:
    if (@ini_get('register_globals')) {

Replace with:
    $register_globals strtolower(@ini_get('register_globals'));
    if (
$register_globals && $register_globals != "off" && $register_globals != "false") {

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.053 seconds with 19 queries.
Post your comments here