Bfly & Rev

Dan Smith

Member
Sep 10, 2011
64
3
in class_core.php, whats do i edit this to:


case "client":
$users->createSSO($_SESSION['user']['id']);
$users->updateUser($_SESSION['user']['id'], 'ip_last', $_SERVER['REMOTE_ADDR']);
$template->setParams('sso', $users->getInfo($_SESSION['user']['id'], 'auth_ticket'));
break;


To get Bfly working with rev?

Thanks
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,906
What I'd do personally, is go to class_users.php and add an SQL query on creaeSSO, to add the ticket into the table for it to work ^^
 

Dan Smith

Member
Sep 10, 2011
64
3
/*-------------------------------Create SSO auth_ticket-------------------------------------*/

final public function createSSO($k)
{
$sessionKey = 'RevCMS-'.rand(9,999).'/'.substr(sha1(time()).'/'.rand(9,9999999).'/'.rand(9,9999999).'/'.rand(9,9999999),0,33);

$this->updateUser($k, 'auth_ticket', $sessionKey);

unset($sessionKey);
}


to


/*-------------------------------Create SSO auth_ticket-------------------------------------*/

final public function createSSO($k)
{
$sessionKey = 'RevCMS-'.rand(9,999).'/'.substr(sha1(time()).'/'.rand(9,9999999).'/'.rand(9,9999999).'/'.rand(9,9999999),0,33);

$this->updateUser_tickets($k, 'sessionticket', $sessionKey);

unset($sessionKey);
}
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,906
Yes, on there when i tested ButterFly, I put in a query to insert it, might not be best way, but works a charm ^
 

Dan Smith

Member
Sep 10, 2011
64
3
Fatal error: Call to undefined method Revolution\users::updateUser_tickets() in C:\xampp\htdocs\app\class.users.php on line 439


am i using an incorect value here?
 

Users who are viewing this thread

Top