I have three games I am trying to set up. Lucky 7, Bird Hunter and Number Guess. Lucky 7 I have just about working. They originally did not send any information on set up till I asked for it. Then they said I had to set up an SQL database of which I did with my host. They had me fill in all the information in the settings which included.
$db_host = "I have my dbhost name here"; //database host, usually localhost - but it would not work without my host name mysql##.secureserver.net example
$db_name = "Lucky7"; //database name - I have my database name here
$db_user = "Lucky7"; //database username - I have my username here
$db_pass = "password"; //database password - My database password is here
$acct = "#######"; //egold account - I put in my egold account #
$acct_pass = "passphrase"; //egold passphrase - I put in my passphrase
$acct_alt_pass = "altpassphrase"; //egold alternate passphrase
$spendmemo = "Play Lucky7"; //default spend memo
$refmemo = "Lucky7 Referral Bonus"; //defaut referral memo
$paymemo = "Lucky7 Winning Payment"; //defaut payment memo
$email = "admin@ultimatemoneygames.com"; //admin email address
$siteurl = "http://ultimatemoneygames.com/lucky7/"; //site complete url, must end with '/'
$sitetitle = "Ultimate Money Games / Lucky7 Game"; //default site title
$id = "dice"; //game id - Not sure what this is left what was there
$ref_profit = 3; //ref profit (%)
$history = 15; //number of last game shown in history
$win1 = 125; //total seven winning rate
$win2 = 250; //Double dice winning rate
It has this information after this that says not to change???
$dbh = mysql_connect($db_host,$db_user,$db_pass) or die("Cannot connect database");
mysql_select_db($db_name) or die( "Unable to select database");
$_acct_alt_hash = md5($_acct_alt_pass);
function _MakeSpend($from, $frompass, $to, $amount, $memo) {
$memo = str_replace(" ","%20",$memo);
$addr = "https://www.e-gold.com/acct/confirm.asp?AccountID=" . $from . "&PassPhrase=" . $frompass . "&Payee_Account=" . $to . "&Amount=". $amount ."&PAY_IN=1&WORTH_OF=Gold&Memo=". $memo . "&IGNORE_RATE_CHANGE=y&PAYMENT_ID=1";
$ch = curl_init($addr);
curl_setopt($ch, CURLOPT_USERAGENT,"Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,0);
curl_setopt($ch, CURLOPT_HEADER, 0);
$fp = tmpfile();
curl_setopt ($ch, CURLOPT_FILE, $fp);
$result = curl_exec($ch);
curl_close($ch);
fseek($fp,0,SEEK_SET);
while(!feof($fp)) $result.=fread($fp,1024);
fclose($fp);
$result = strtolower($result);
$result = strstr($result,"your batch number for confirmation is ");
$result = substr($result,51,8);
return $result;
}
?>
I put all the information in correctly I am wondering if there isn't something in another part of the script that I need to be changing. The site works all the way through. It will log the wins but won't pay the referrer if there is one automatically from my e-gold account nor will it pay the winner automatically from my e-gold. I have tested it time and time again. Now I have the other two games I am going to try to set up. Number guess I tried once and it worked right up to after the payment it goes to an error page. But it takes the egold from the player??? I want to offer dozens of games like this but I will not put them out there if they are not paying like they are supposed to. That is unfair and I like to play fair.
Hope this helps you to help me.
Thank you
Andrea