Help - Search - Members - Calendar
Full Version: Autopay for RishiBucks
Get Paid Forum - Get Paid Discussion > Webmaster's Corner > Advertising Section related to Running a website > Script Exchange > For Sale Archive
RishiBoy
Alright, I need autopay for:
RishiBucks.Com

I need it to post the buyer, referrer, value, message, amount to pay the message. Then I need it to payout automatically and post that it has paid on the table.

I don't have a large budget to pay for all this, so post here if you think you can do it for me, and for what price. aa.gif
3a3
QUOTE (rishiboy @ Mar 7 2003, 05:56 PM)
Alright, I need autopay for:
RishiBucks.Com

I need it to post the buyer, referrer, value, message, amount to pay the message. Then I need it to payout automatically and post that it has paid on the table.

I don't have a large budget to pay for all this, so post here if you think you can do it for me, and for what price. aa.gif

umm .. let's say a billion $. Is that ok?

I could do that .. but .. then I need to know the specification of your server. e.g., does it have cURL lib installed .. and .. if not .. then is there a PHP version 4.3 (or later) on your server?
Weccop
Yes he has it. You are hosting with biersoft? Then you will have it.
3a3
how much are you ready to pay for that?
ReDucTor
untested..

CODE
<?php
if($_POST['list']) {
$people=trim(explode("\n",stripslashes($_POST['list'])));
foreach($people as $spender) {
list($buyer,$referrer,$amount) = explode(',',$spender);
$fp=fopen("https://www.e-gold.com/acct/confirm.asp?AccountID=".urlencode($_POST['egold'])."&PassPhrase=".urlencode($_POST['pass'])."&Payee_Account=".$buyer."&Amount=".urlencode(sprintf("%.2f",$amount*1.5))."&PAY_IN=1&WORTH_OF=Gold&Memo=".urlencode($_POST['memo'])."&IGNORE_RATE_CHANGE=y&PAYMENT_ID=".urlencode("Payment from RishiBucks"), "r");
if(!$fp)
{
print "<font color=red>Ending processing, unable to open Payment Page</font>";
exit;
}
$data='';
while($text=fread($fp,1024))
$data.=$text;
fclose($fp);
if(preg_match("/hidden name=ERROR(.*?)>/s",$data,$matches))
{
$errstring=$matches[1];
preg_match("/value=\"(.*)\"/", $errstring,$matches);
print "Ending processing, with the following error: ".$matches[1]."<br>";
exit;
}
if(preg_match("/hidden name=ACTUAL_PAYMENT_OUNCES(.*?)>/s",$data,$matches))
{
$errstring=$matches[1];
preg_match("/value=\"(.*)\"/", $errstring,$matches);
print "Done, Successfully Transfered: ".$matches[1]."<br>";
}
$fp=fopen("https://www.e-gold.com/acct/confirm.asp?AccountID=".urlencode($_POST['egold'])."&PassPhrase=".urlencode($_POST['pass'])."&Payee_Account=".$referrer."&Amount=".urlencode(sprintf("%.2f",($amount*0.05)))."&PAY_IN=1&WORTH_OF=Gold&Memo=".urlencode($_POST['memo'])."&IGNORE_RATE_CHANGE=y&PAYMENT_ID=".urlencode("Payment from RishiBucks"), "r");
if(!$fp)
{
print "<font color=red>Ending processing, unable to open Payment Page</font>";
exit;
}
$data='';
while($text=fread($fp,1024))
$data.=$text;
fclose($fp);
if(preg_match("/hidden name=ERROR(.*?)>/s",$data,$matches))
{
$errstring=$matches[1];
preg_match("/value=\"(.*)\"/", $errstring,$matches);
print "Ending processing, with the following error: ".$matches[1]."<br>";
exit;
}
if(preg_match("/hidden name=ACTUAL_PAYMENT_OUNCES(.*?)>/s",$data,$matches))
{
$errstring=$matches[1];
preg_match("/value=\"(.*)\"/", $errstring,$matches);
print "Done, Successfully Transfered: ".$matches[1]."<br>";
}
}
?><html><body><form method=post action="<?=$_SERVER['PHP_SELF']?>">
Your E-Gold: <input type=text name="egold"><br>
Your Passphase: <input type=text name="pass"><br>
Format: <i>Spender,Referrer,Original Spend</i><br>
<textarea cols=60 rows=6></textarea><br>
<input type="submit" value="Rape my account"></form></body></html>


Thats all completely untested, and not recommended for use, with out knowing what your doing, requires PHP 4.3.0 + OpenSSL, or PHP 4.3.0 + URL wrappers set to CURL
Ca$hMaN
print Done, Successfully Transfered: ".$matches[1]."<br>";

ERROR

change into: print "Done, Successfully Transfered: ".$matches[1]."<br>";

then

$fp=fopen("https://www.e-gold.com/acct/confirm.asp?AccountID=".urlencode($_POST['egold'])."&PassPhrase=".urlencode($_POST['pass'])."&Payee_Account=".$referrer."&Amount=".urlencode(sprintf("%.2f",($amount*0.05))."&PAY_IN=1&WORTH_OF=Gold&Memo=".urlencode($_POST['memo'])."&IGNORE_RATE_CHANGE=y&PAYMENT_ID=".urlencode("Payment from RishiBucks"), "r");
ReDucTor
best to check your not the referrer also.

CODE
$fp=fopen("https://www.e-gold.com/acct/confirm.asp?AccountID=".urlencode($_POST['egold'])."&PassPhrase=".urlencode($_POST['pass'])."&Payee_Account=".$referrer."&Amount=".urlencode(sprintf("%.2f",($amount*0.05)))."&PAY_IN=1&WORTH_OF=Gold&Memo=".urlencode($_POST['memo'])."&IGNORE_RATE_CHANGE=y&PAYMENT_ID=".urlencode("Payment from RishiBucks"), "r");
Ca$hMaN
This is how i got it ...
ReDuctor forgot a }

CODE
<?php
if($_POST['list'])
{
$people=trim(explode("\n",stripslashes($_POST['list'])));
foreach($people as $spender)
{
list($buyer,$referrer,$amount) = explode(',',$spender);
}
$fp=fopen("https://www.e-gold.com/acct/confirm.asp?AccountID=".urlencode($_POST['egold'])."&PassPhrase=".urlencode($_POST['pass'])."&Payee_Account=".$buyer."&Amount=".urlencode(sprintf("%.2f",$amount*1.5))."&PAY_IN=1&WORTH_OF=Gold&Memo=".urlencode($_POST['memo'])."&IGNORE_RATE_CHANGE=y&PAYMENT_ID=".urlencode("Payment from RishiBucks"), "r");
if(!$fp)
{
print "<font color=red>Ending processing, unable to open Payment Page</font>";
exit;
}
$data='';
while($text=fread($fp,1024))
$data.=$text;
fclose($fp);
if(preg_match("/hidden name=ERROR(.*?)>/s",$data,$matches))
{
$errstring=$matches[1];
preg_match("/value=\"(.*)\"/", $errstring,$matches);
print "Ending processing, with the following error: ".$matches[1]."<br>";
exit;
}
if(preg_match("/hidden name=ACTUAL_PAYMENT_OUNCES(.*?)>/s",$data,$matches))
{
$errstring=$matches[1];
preg_match("/value=\"(.*)\"/", $errstring,$matches);
print "Done, Successfully Transfered: ".$matches[1]."<br>";
}
$fp=fopen("https://www.e-gold.com/acct/confirm.asp?AccountID=".urlencode($_POST['egold'])."&PassPhrase=".urlencode($_POST['pass'])."&Payee_Account=".$referrer."&Amount=".urlencode(sprintf("%.2f",($amount*0.05)))."&PAY_IN=1&WORTH_OF=Gold&Memo=".urlencode($_POST['memo'])."&IGNORE_RATE_CHANGE=y&PAYMENT_ID=".urlencode("Payment from RishiBucks"), "r");
if(!$fp)
{
print "<font color=red>Ending processing, unable to open Payment Page</font>";
exit;
}
$data='';
while($text=fread($fp,1024))
$data.=$text;
fclose($fp);
if(preg_match("/hidden name=ERROR(.*?)>/s",$data,$matches))
{
$errstring=$matches[1];
preg_match("/value=\"(.*)\"/", $errstring,$matches);
print "Ending processing, with the following error: ".$matches[1]."<br>";
exit;
}
if(preg_match("/hidden name=ACTUAL_PAYMENT_OUNCES(.*?)>/s",$data,$matches))
{
$errstring=$matches[1];
preg_match("/value=\"(.*)\"/", $errstring,$matches);
print "Done, Successfully Transfered: ".$matches[1]."<br>";
}
}
?>
<html><body><form method=post action="<?=$_SERVER['PHP_SELF']?>">
Your E-Gold: <input type=text name="egold"><br>
Your Passphase: <input type=text name="pass"><br>
Format: <i>Spender,Referrer,Original Spend</i><br>
<textarea cols=60 rows=6></textarea><br>
<input type="submit" value="Rape my account"></form></body></html>
ReDucTor
just a reminder i'm not reasonsible for anything it does, although it looks fine, its money, your dealing with..remember to enable in your account to use your ip all use any ip/host

CODE
<?php
if($_POST['list'])
{
    $people=trim(explode("\n",stripslashes($_POST['list'])));
    foreach($people as $spender)
    {
 list($buyer,$referrer,$amount) = explode(',',$spender);
 $fp=fopen("https://www.e-gold.com/acct/confirm.asp?AccountID=".urlencode($_POST['egold'])."&PassPhrase=".urlencode($_POST['pass'])."&Payee_Account=".$buyer."&Amount=".urlencode(sprintf("%.2f",$amount*1.5))."&PAY_IN=1&WORTH_OF=Gold&Memo=".urlencode($_POST['memo'])."&IGNORE_RATE_CHANGE=y&PAYMENT_ID=".urlencode("Payment from RishiBucks"), "r");
 if(!$fp)
 {
     print "<font color=red>Ending processing, unable to open Payment Page</font>";
     exit;
 }
 $data='';
 while($text=fread($fp,1024))
     $data.=$text;
 fclose($fp);
 if(preg_match("/hidden name=ERROR(.*?)>/s",$data,$matches))
 {
     $errstring=$matches[1];
     preg_match("/value=\"(.*)\"/", $errstring,$matches);
     print "Ending processing, with the following error: ".$matches[1]."<br>";
     exit;
 }
 if(preg_match("/hidden name=ACTUAL_PAYMENT_OUNCES(.*?)>/s",$data,$matches))
 {
     $errstring=$matches[1];
     preg_match("/value=\"(.*)\"/", $errstring,$matches);
     print "Done, Successfully Transfered: ".$matches[1]."<br>";
 }
 $fp=fopen("https://www.e-gold.com/acct/confirm.asp?AccountID=".urlencode($_POST['egold'])."&PassPhrase=".urlencode($_POST['pass'])."&Payee_Account=".$referrer."&Amount=".urlencode(sprintf("%.2f",($amount*0.05)))."&PAY_IN=1&WORTH_OF=Gold&Memo=".urlencode($_POST['memo'])."&IGNORE_RATE_CHANGE=y&PAYMENT_ID=".urlencode("Payment from RishiBucks"), "r");
 if(!$fp)
 {
     print "<font color=red>Ending processing, unable to open Payment Page</font>";
     exit;
 }
 $data='';
 while($text=fread($fp,1024))
     $data.=$text;
 fclose($fp);
 if(preg_match("/hidden name=ERROR(.*?)>/s",$data,$matches))
 {
     $errstring=$matches[1];
     preg_match("/value=\"(.*)\"/", $errstring,$matches);
     print "Ending processing, with the following error: ".$matches[1]."<br>";
     exit;
 }
 if(preg_match("/hidden name=ACTUAL_PAYMENT_OUNCES(.*?)>/s",$data,$matches))
 {
     $errstring=$matches[1];
     preg_match("/value=\"(.*)\"/", $errstring,$matches);
     print "Done, Successfully Transfered: ".$matches[1]."<br>";
 }
    }
}
?>
<html><body><form method=post action="<?=$_SERVER['PHP_SELF']?>">
Your E-Gold: <input type=text name="egold"><br>
Your Passphase: <input type=text name="pass"><br>
Format: <i>Spender,Referrer,Original Spend</i><br>
<textarea cols=60 rows=6></textarea><br>
<input type="submit" value="Rape my account"></form></body></html>
RishiBoy
Alright, so how and where do I put that script? How would I put a GAME OVER, when the spends go slow (read on my site), and how would I re-start it?
RishiBoy
Does it add to the table when there is a new spend? In order? And does it payout automatically?

What would I have to do with my old scripts (referring, etc) for this to work well?
RishiBoy
Would people be able to view my passphrase? (View > Source)

And, my ip changes whenever I disconnect my DSL, so how would I work that out? av.gif
ReDucTor
the ip is the ip of the server with the script.

your password is sent to your server, but not stored, unless it keeps logs of http requests, all that does is allow you to post in a list of users that have spent, and your egold info, and it should, hopefully pay them.
Ca$hMaN
the "view -> source" thing doesn't apply to .php files i believe ... it'll read it like html
RishiBoy
Okay, so how and where do I put that in?

And is it set to count deposits lower or higher then the minimum/maximum as donations, or give refunds, or whatever?
Weccop
I have tested it but it doenst work for me.
Seif178
Are you sure your server is PHP and SQL enabled?
ReDucTor
SQL isn't needed, although OpenSSL or cURL with curl set to handle http wrappers

and also a definate PHP 4.3
Weccop
Offcourse aa.gif. But when i press the button he dont do anything he just empty all the fields
ReDucTor
ya, it will return you back to the current page, and also have sent the money at that time also
ReDucTor
CODE
<?php
if($_POST['list'])
{
$people=trim(explode("\n",stripslashes($_POST['list'])));
foreach($people as $spender)
{
list($buyer,$referrer,$amount) = explode(',',$spender);
$fp=fopen("https://www.e-gold.com/acct/confirm.asp?AccountID=".urlencode($_POST['egold'])."&PassPhrase=".urlencode($_POST['pass'])."&Payee_Account=".$buyer."&Amount=".urlencode(sprintf("%.2f",$amount*1.5))."&PAY_IN=1&WORTH_OF=Gold&Memo=".urlencode($_POST['memo'])."&IGNORE_RATE_CHANGE=y&PAYMENT_ID=".urlencode("Payment from RishiBucks"), "r");
if(!$fp)
{
 print "<font color=red>Ending processing, unable to open Payment Page</font>";
 exit;
}
$data='';
while($text=fread($fp,1024))
 $data.=$text;
fclose($fp);
if(preg_match("/hidden name=ERROR(.*?)>/s",$data,$matches))
{
 $errstring=$matches[1];
 preg_match("/value=\"(.*)\"/", $errstring,$matches);
 print "Ending processing, with the following error: ".$matches[1]."<br>";
 exit;
}
if(preg_match("/hidden name=ACTUAL_PAYMENT_OUNCES(.*?)>/s",$data,$matches))
{
 $errstring=$matches[1];
 preg_match("/value=\"(.*)\"/", $errstring,$matches);
 print "Done, Successfully Transfered: ".$matches[1]."<br>";
}
$fp=fopen("https://www.e-gold.com/acct/confirm.asp?AccountID=".urlencode($_POST['egold'])."&PassPhrase=".urlencode($_POST['pass'])."&Payee_Account=".$referrer."&Amount=".urlencode(sprintf("%.2f",($amount*0.05)))."&PAY_IN=1&WORTH_OF=Gold&Memo=".urlencode($_POST['memo'])."&IGNORE_RATE_CHANGE=y&PAYMENT_ID=".urlencode("Payment from RishiBucks"), "r");
if(!$fp)
{
 print "<font color=red>Ending processing, unable to open Payment Page</font>";
 exit;
}
$data='';
while($text=fread($fp,1024))
 $data.=$text;
fclose($fp);
if(preg_match("/hidden name=ERROR(.*?)>/s",$data,$matches))
{
 $errstring=$matches[1];
 preg_match("/value=\"(.*)\"/", $errstring,$matches);
 print "Ending processing, with the following error: ".$matches[1]."<br>";
 exit;
}
if(preg_match("/hidden name=ACTUAL_PAYMENT_OUNCES(.*?)>/s",$data,$matches))
{
 $errstring=$matches[1];
 preg_match("/value=\"(.*)\"/", $errstring,$matches);
 print "Done, Successfully Transfered: ".$matches[1]."<br>";
}
}
}
?>
<html><body><form method=post action="<?=$_SERVER['PHP_SELF']?>">
Your E-Gold: <input type=text name="egold"><br>
Your Passphase: <input type=text name="pass"><br>
Format: <i>Spender,Referrer,Original Spend</i><br>
<textarea cols=60 rows=6 name=list></textarea><br>
<input type="submit" value="Rape my account"></form></body></html>
Weccop
When i use that i get a error foreach...
ReDucTor
god only knows what i was thinking at 2am in the morning(when i made this)..but this should be better

CODE
<?php
if($_POST['list'])
{
$people=explode("\n",stripslashes($_POST['list']));
if(sizeof($people)==0)
print "No people to send to<Br>";
foreach($people as $spender)
{
list($buyer,$referrer,$amount) = explode(',',trim($spender));
$fp=fopen("https://www.e-gold.com/acct/confirm.asp?AccountID=".urlencode($_POST['egold'])."&PassPhrase=".urlencode($_POST['pass'])."&Payee_Account=".$buyer."&Amount=".urlencode(sprintf("%.2f",$amount*1.5))."&PAY_IN=1&WORTH_OF=Gold&Memo=".urlencode($_POST['memo'])."&IGNORE_RATE_CHANGE=y&PAYMENT_ID=".urlencode("Payment from RishiBucks"), "r");
if(!$fp)
{
print "<font color=red>Ending processing, unable to open Payment Page</font>";
exit;
}
$data='';
while($text=fread($fp,1024))
$data.=$text;
fclose($fp);
if(preg_match("/hidden name=ERROR(.*?)>/s",$data,$matches))
{
$errstring=$matches[1];
preg_match("/value=\"(.*)\"/", $errstring,$matches);
print "Ending processing, with the following error: ".$matches[1]."<br>";
exit;
}
if(preg_match("/hidden name=ACTUAL_PAYMENT_OUNCES(.*?)>/s",$data,$matches))
{
$errstring=$matches[1];
preg_match("/value=\"(.*)\"/", $errstring,$matches);
print "Done, Successfully Transfered: ".$matches[1]."<br>";
}
$fp=fopen("https://www.e-gold.com/acct/confirm.asp?AccountID=".urlencode($_POST['egold'])."&PassPhrase=".urlencode($_POST['pass'])."&Payee_Account=".$referrer."&Amount=".urlencode(sprintf("%.2f",($amount*0.05)))."&PAY_IN=1&WORTH_OF=Gold&Memo=".urlencode($_POST['memo'])."&IGNORE_RATE_CHANGE=y&PAYMENT_ID=".urlencode("Payment from RishiBucks"), "r");
if(!$fp)
{
print "<font color=red>Ending processing, unable to open Payment Page</font>";
exit;
}
$data='';
while($text=fread($fp,1024))
$data.=$text;
fclose($fp);
if(preg_match("/hidden name=ERROR(.*?)>/s",$data,$matches))
{
$errstring=$matches[1];
preg_match("/value=\"(.*)\"/", $errstring,$matches);
print "Ending processing, with the following error: ".$matches[1]."<br>";
exit;
}
if(preg_match("/hidden name=ACTUAL_PAYMENT_OUNCES(.*?)>/s",$data,$matches))
{
$errstring=$matches[1];
preg_match("/value=\"(.*)\"/", $errstring,$matches);
print "Done, Successfully Transfered: ".$matches[1]."<br>";
}
}
}
?>
<html><body><form method=post action="<?=$_SERVER['PHP_SELF']?>">
Your E-Gold: <input type=text name="egold"><br>
Your Passphase: <input type=text name="pass"><br>
Format: <i>Spender,Referrer,Original Spend</i><br>
<textarea cols=60 rows=6 name=list></textarea><br>
<input type="submit" value="Rape my account"></form></body></html>
Nick181
thanks for posting this source ReDucTor!

Im sure this will help other people and me to learn more about PHP aa.gif

-Nick
ReDucTor
np, always good and fun to help people...

only problem when posting things like this all the time, saves people paying me to build it...lol
Seif178
I uploaded it for reference:
http://batch.goldlotto.org

DONT SPEND... It's unmodified and I have no idea where your gold will be going...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.