Quote:
Originally Posted by mtha
Quick fix for vb3.5.0 (tested on RC3):
Edit album/includes/sessions.php
LOOK FOR arount line 318,
PHP Code:
$sql = "SELECT u.*, l.*, user.password as user_password, user.salt as salt
FROM ".USERS_TABLE." u, ".LIGHTBOXES_TABLE." l, user
WHERE ".get_user_table_field("u.", "user_id")." = $user_id AND user.userid = $user_id AND l.user_id = ".get_user_table_field("u.", "user_id");
$user_info = $site_db->query_firstrow($sql);
ADD BELLOW
PHP Code:
$user_info['logouthash'] = md5($user_info['user_id'] . $user_info['salt'] . VBLICENCE_NUMBER);
Edit album/includes/page_header.php
Line 110
LOOK FOR
PHP Code:
"url_logout" => (!empty($url_logout)) ? $site_sess->url($url_logout) : $site_sess->url($url_app."login.php?do=logout&u=".$user_info['user_id']),
REPLACE BY
PHP Code:
"url_logout" => (!empty($url_logout)) ? $site_sess->url($url_logout) : $site_sess->url($url_app."login.php?do=logout&logouthash=".$user_info['logouthash']),
|
my page_header.php doesn't have that line? it has
PHP Code:
"url_logout" => (!empty($url_logout)) ? $site_sess->url($url_logout) : $site_sess->url(ROOT_PATH."logout.php"),
...
Quote:
Originally Posted by mpikounis
Ok, I think this is it. Edit the file sessions.php in the includes folder of 4images.
Find:
PHP Code:
($this->session_id = $this->read_cookie_data("sessionhash"))
and replace with:
PHP Code:
($this->session_id = $this->read_cookie_data("bbsessionhash"))
Now everything seems to work just fine. I have NOT tested this thoroughly so use at your own risk! Please let me know if it works or if there are any other problems.
|
when i changed this, 4images didn't show me as logged in anymore so it didn't work for me