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![]()
Results 1 to 3 of 3
Thread: [Help]Updated Gaia login :(
- 04 Apr. 2010 01:40pm #1
[Help]Updated Gaia login :(
Shh, I'm watching My little pony.
- 04 Apr. 2010 05:03pm #2
Mine works,
Just changed the link.
PHP Code:<?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;
}
}
?>
- 04 Apr. 2010 05:04pm #3
Wow.... I didnt even think of that O.e
I guess i got sund up i forgot xD
Shh, I'm watching My little pony.