A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

[Help]Updated Gaia login :(

654 views · started by Bman ·
#1
[Help]Updated Gaia login :(
Ive tried many different ways with the new login.

There is now no SID.

No frob.

Im really stuck, ive tried encrypting the token and password, vice versa, the token, password and username. But nothing works. I was wondering if someone could update it :(
#2
Mine works,
Just changed the link.
<?php

class gaiaFunctions extends multiBot
{

protected $token;
protected $frob;
protected $chap;

protected $items;
protected $prices;
protected $stores;
protected $itemids;

// Log in to gaia online
function gaiaLogin($Username, $Password)
{
// Basic check
if($Username == null || $Password == null)
{
print "ERROR: Your must enter a username or password.\n";
return false;
}

// Navigate to gaia
$html = $this->httpClient->HTTPRequest('GET', 'http://gaiaonline.com/auth/login', null, array());

file_put_contents("logs/debug.txt", $html);

// Retrieve some values
$this->token = $this->httpClient->Between($html, '<input type="hidden" name="token" value="', '" />');
$this->frob = $this->httpClient->Between($html, '<input type="hidden" name="frob" value="', '" />');
$this->chap = md5(md5($Password) . $this->token);

// Post data
$postData = 'token=' . $this->token . '&sid=&frob=' . $this->frob . '&toolbar_id=&redirect=http%3A%2F%2Fwww.gaiaonline.com%2F&username=';
$postData .= $Username . '&password=&chap=' . $this->chap;

// Request
$html = $this->httpClient->HTTPRequest('POST', 'http://www.gaiaonline.com/auth/login/', $postData, array("Referer" => "http://www.gaiaonline.com/"));

if(strpos($html, 'http://www.gaiaonline.com/auth/'))
$html = $this->httpClient->HTTPRequest('GET', 'http://www.gaiaonline.com/auth/', null, array('Referer' => 'http://login.gaiaonline.com/gaia/login.php'));

// Return
file_put_contents("debug.txt", $html);

return (strpos($html, 'http://www.gaiaonline.com/?login_success=') <> 0) ? true : false;
//return (strpost($html, 'gold.gif') <> 0) ? true : false;
}

}

?>
#3
Wow.... I didnt even think of that O.e

I guess i got so wound up i forgot xD