yes you can adapt the bot in php, but c is just fine for it, only use curl, as you, but do a real login instead of use navigator cookies
i made a small library to manage curl, so there is a more hight level code for login :
int gladiatuslogin(char *login, char *pass)
{ char loginUrl[1024];
sprintf(loginUrl,"%sindex.php?mod=login",server);
const char * returnValue = player.download(loginUrl);
if(returnValue) { shell.printc(ROUGE,"%s\n",returnValue); goto failed; }
else { returnValue = player.postDl(loginUrl,"user=%s&pass=%s",login,pas s);
if(returnValue) { shell.printc(ROUGE,"%s\n",returnValue); goto failed; }
returnValue = player.download(loginUrl);
if(returnValue) { shell.printc(ROUGE,"%s\n",returnValue); goto failed; }
else { memset(shkey,0,1024);
player.find("settings&sh=","\">",shkey);
if(*shkey) printf("\nshkey %s\n",shkey);
else { shell.printc(ROUGE,"bad login or password ?\n"); goto failed; }
int isloged = !strcmp(login,player.find("<span class=\"playername\">","</span>"));
if(!isloged) { shell.printc(ROUGE,"bad login or password ?\n"); goto failed; }
shell.printc(VERT,"\nloged to gladiatus %s !\n\n",login);
if(!getYourInfo()) { shell.printc(ROUGE,"\n.. cannot get your info %s ..",login); goto failed; }
showYourStat();
return 1;
}
}
failed :
shell.printc(ROUGE," login failed %s !\n",login);
return 0;
}