PlusEmu Fixes problem

Results 1 to 4 of 4
  1. #1
    Valued Member BeginOfEnd is offline
    MemberRank
    Dec 2015 Join Date
    The NetherlandsLocation
    103Posts

    PlusEmu Fixes problem

    Hello,

    I followed this thread http://forum.ragezone.com/f353/plus-...fixes-1103845/

    Replaced everything, but now when I try to enter the client, its reloading at 76%. It has probably to do with the auth_ticket but I don't know how to fix it, I am using ReVCMS.

    Any help is appreciated.

    Update: Fixed

    Quote Originally Posted by </Meap> View Post
    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(99999999).'/'.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'])); 
    Last edited by BeginOfEnd; 03-06-16 at 10:50 PM.


  2. #2
    Account Upgraded | Title Enabled! Chapo is offline
    MemberRank
    Jul 2010 Join Date
    United StatesLocation
    944Posts

    Re: PlusEmu Fixes problem

    Hey!

    Upload your client.php & .tpl

  3. #3
    Valued Member BeginOfEnd is offline
    MemberRank
    Dec 2015 Join Date
    The NetherlandsLocation
    103Posts

    Re: PlusEmu Fixes problem

    Quote Originally Posted by Ryan View Post
    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> View Post
    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(99999999).'/'.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'])); 

  4. #4
    Novice Allstarz is offline
    MemberRank
    Aug 2012 Join Date
    4Posts

    ! 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 (:



Advertisement