Re: PlusEmu Fixes problem
Hey!
Upload your client.php & .tpl
Re: PlusEmu Fixes problem
Quote:
Originally Posted by
Ryan
Hey!
Upload your client.php & .tpl
Thank you for replying :)
Uploaded, check your inbox.
- - - Updated - - -
Nvm, this fixed the issue, thanks meap and all other developers for the fixes!
Quote:
Originally Posted by
</Meap>
If anyone of you plan on using the above thing Damien has so kindly given to us all
go to class.users.php and search for the Create SSO auth_ticket section and replace it all with this
PHP Code:
final public function createSSO($k)
{
global $engine;
$sessionKey = 'RevCMS-' . rand(9, 9999999).'/'.substr(sha1(time()).'/'.rand(9,9999999).'/'.rand(9,9999999).'/'.rand(9,9999999),0,33);
if($engine->num_rows("SELECT * FROM user_auth_ticket WHERE user_id = '" . $k . "' LIMIT 1") > 0) {
$engine->query("UPDATE user_auth_ticket SET auth_ticket = '" . $sessionKey . "' WHERE user_id = '" . $k . "'");
} else {
$engine->query("INSERT INTO user_auth_ticket (user_id, auth_ticket) VALUES ('" . $k . "', '" . $sessionKey ."')");
}
return $sessionKey;
unset($sessionKey);
}
Then go to your class.core.php and look for the case "client";
and replace it with this
PHP Code:
$users->updateUser($_SESSION['user']['id'], 'ip_last', $_SERVER['REMOTE_ADDR']);
$template->setParams('sso', $users->createSSO($_SESSION['user']['id']));
Re: PlusEmu Fixes problem
I was looking for this way too long! I really appreciate this! But now, i still have another problem.
Client is still not working. It's loading up till 76%, and than it shows me a page with "You don't have permission to view this directory or page" (The gordon/PRODUCTION-blablabla directory) I understand it is the SWF directory, but don't know how to fix this.
Anyone who knows?
Thanks in advance (: