Quote:
Originally Posted by Chrissicom
I am running this hack on 4image 1.7.1 with RC 3.... you don't have to touch the 4images files when upgrading from 3.0.x just change functions.php and functions_online.php as described. Only problem with RC 3 is that the logout link on the 4images page goes broken because it doesn't obtain the logouthash.
|
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']),