Well, here it is ;O
This is as simple as it gets, really. Most of the work is done by my cURL wrapper. I'll post it later.
PHP Code:
<html>
<head>
<title>Teripets money generator</title>
<style type="text/css">
div {
width:500px;
border:1px dotted #666;
position:relative;
left:50%;
margin-left:-250px;
}
input {
width:100%;
}
body {
font-size:12px;
}
</style>
</head>
<body>
<div>
<h1>Teripets money generator</h1>
<p>Just type in your username, password, and desired amount of TC.</p>
<form action="?" method="post">
<table>
<tr><td>Username:</td> <td><input type="text" name="user" /> </td></tr>
<tr><td>Password:</td> <td><input type="password" name="password" /> </td></tr>
<tr><td>Desired TC:</td><td><input type="text" name="money" /> </td></tr>
<tr><td colspan="2"><input type="submit" value="Generate TC" /></td></tr>
</table>
</form>
<?php
/* http://www.teripets.com/ */
/* Money Generator */
/*
Gommle
gommle@gmail.com
msn: datafrik2003@hotmail.com
*/
##### CONFIG #######
$user = $_POST['user'];
$pass = $_POST['password'];
$money = round($_POST['money']/20);
if($user && $pass && $money) {
// Include http wrapper
include('curl.function.php');
echo "Logging in to Teripets with the account $user...<br />";
ob_flush();
flush(); // Echo data immediately so they don't have to wait for curl to complete.
// Login
$html = curl( 'http://www.teripets.com/process_login.teri',
"username=$user".
"&password=$pass".
"&submit=Login",
'http://www.teripets.com/login.teri' );
echo "Generating money...<br />";
ob_flush();
flush();
// generate money
$html = curl( 'http://www.teripets.com/images/old/sendscore.php',
"onLoad=%5Btype%20Function%5D&gamename=Potion%20Catcher&th35j=$money",
'http://www.teripets.com/potioncatcher.teri' );
echo "Done!<br />";
ob_flush();
flush();
} else {
echo "<p>You must enter login information and desired TC in the form above.</p>";
}
?>
</div>
</body>
</html>
There is no error checks, it works anyways.