Go Back   Gaming Gutter > Non-Gaming > Programming > Source Code


Source Code - Have a source code/project files you want to post? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post Free SS list
11-16-2008 09:37 AM
Last post by Toffie
Today 06:32 PM
7 Replies, 218 Views
Go to first new post I love you.
Yesterday 12:20 AM
Last post by Snakebite
Today 06:23 PM
29 Replies, 112 Views
Go to first new post What are you currently...
09-12-2008 04:16 PM
by Ocean
Last post by Snakebite
Today 06:22 PM
216 Replies, 1,378 Views
Go to first new post World of Warcraft -...
Today 06:17 PM
by blurx
Last post by blurx
Today 06:17 PM
0 Replies, 7 Views
Go to first new post UC Darigan & Grey Kougra...
11-08-2008 03:17 PM
by Sticky
Last post by Sticky
Today 06:12 PM
18 Replies, 172 Views
Reply
 
LinkBack Thread Tools Display Modes

 Teripets TC Generator source.
Old 12-20-2006, 08:14 AM   #1 (permalink)
Underground

Male gommle is offline
 
gommle's Avatar
 
Join Date: Sep 2006
Location: The o great land of Nooooooreeeway
Age: 20
Posts: 658
GPoints: 38
iTrader: 0 / 0%
gommle Is Recognizable
Rep Power: 7
Teripets TC Generator source.

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.
__________________

  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 06:33 PM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.08465791 seconds (100.00% PHP - 0% MySQL) with 19 queries