...

View Full Version : php Execute or whatever..



KeyTrix
11-09-2012, 07:51 AM
Hello, there is a multiplayer game that i play called Zwinky.
Now, obviously it has a stores to buy items and stuff and it's expensive.

i know how to make it free, but there is one and only problem.

i'm not that experienced with php, there is an XML files that should be edited:

(A)9.xml which is the main store file that has all the items in it and that's where the Prices should be changed.

(B)Purchase.xml which is everything in your wardrobe that you Bought.

(C)I've downloaded their items which is (SWF Files) so it's like i have their stores locally in my host.

Now what i'm planning to do is editing the 9.xml and setting all the items to free, then uploading the 9.xml file to my own website but there is only one thing left that some peoples told me it can be done with php.

I need a php script or something that for example if i click "Add" a specific item to my Purchase.xml it automatically makes the changes in the game's real website and not locally.

i'm not really experienced with php but i had a developer who made my loginform connect with their database so that peoples can't login randomly to my site. it has to be their real game accounts.

this is What he used:
$h = array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded'
);

$fields_string = "";

foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }
rtrim($fields_string, '&');

$a = cURL("http://registration.zwinky.com/registration/loginAjax.jhtml",true, null, $fields_string, $h);
$line = getLastLines($a, 1);
if(strstr($a, "user_info"))
{
return true;
}
else
{
return false;
}

Now i want to use the same method like connecting my website with the games wardrobes so that if i made any changes to my own wardrobe i can see it in the game, i been looking for this everywhere and i hope to find it here

There was some guy who made a website for this game, where you Login and you can purchase everything in the game for free through his website, that's why i believe it's Possible.
-thanks.

Redcoder
11-09-2012, 09:06 PM
Hello, there is a multiplayer game that i play called Zwinky.

I need a php script or something that for example if i click "Add" a specific item to my Purchase.xml it automatically makes the changes in the game's real website and not locally.

........
There was some guy who made a website for this game, where you Login and you can purchase everything in the game for free through his website, that's why i believe it's Possible.
-thanks.

Try the Web Projects forum (http://www.codingforums.com/forumdisplay.php?f=57).

But if you want to o the XML handling yourself, read up on it starting with the XML parser functions (http://php.net/manual/en/ref.xml.php).

Custard7A
11-10-2012, 01:05 AM
So, you're asking how to compromise of a server you don't own, so that you can get free stuff in a childs' game? That slaps me on the knee.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum