[GSoC uni] temporarily removed connection with server.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@12903 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
a3ec5c3d97
commit
ffb23fbc6d
@ -51,18 +51,19 @@ CurrentOnlineUser::CurrentOnlineUser(){
|
||||
|
||||
bool CurrentOnlineUser::signIn(const stringw &username, const stringw &password)
|
||||
{
|
||||
return false; //FIXME : only temporary
|
||||
assert(m_is_signed_in == false);
|
||||
/*
|
||||
HTTPConnector * connector = new HTTPConnector((std::string)UserConfigParams::m_server_multiplayer + "client-user.php");
|
||||
HTTPConnector::Parameters parameters;
|
||||
parameters["action"] = "signin";
|
||||
parameters["user"] = username;
|
||||
std::string result = connector->getPage(parameters);
|
||||
printf("Result: %s\n", result.c_str());
|
||||
const XMLNode * result = connector->getXMLFromPage(parameters);*/
|
||||
|
||||
//Sign in
|
||||
if(/*succes*/false)
|
||||
if(/*succes*/true)
|
||||
{
|
||||
m_user = new OnlineUser(username);
|
||||
m_token = "0000"; //of course this should come from the server eventualy.
|
||||
m_is_signed_in = true;
|
||||
}
|
||||
else
|
||||
|
@ -54,7 +54,7 @@ static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *use
|
||||
|
||||
XMLNode * HTTPConnector::getXMLFromPage(Parameters & post_parameters)
|
||||
{
|
||||
return NULL;
|
||||
return file_manager->createXMLTreeFromString(getPage(post_parameters));
|
||||
}
|
||||
|
||||
std::string HTTPConnector::getPage(Parameters & post_parameters)
|
||||
|
Loading…
Reference in New Issue
Block a user