I modify the new flash game only two variables. (gcasino & gmoney)
But there is no POST "enscore" this variable.
The game playing with no problem.
There will be problems?
The normal flash game settings::
if(yy.savescore==1){
if(ipb_score==undefined){
ipb_score=eval(_global.ipb_scoreVar);
}
xx=newLoadVars();
xx.gcasino=_global.ipb_get_gname();
xx.gmoney=ipb_score;
xx.enscore=(ipb_score*yy.randchar)*yy.randchar2;
xx.send("index.php?autocom=casino&do=savescore","self","POST");
stop();
}
The new flash game settings:
var gcasino="XXXX"
var gmoney=_root.cash
getURL ("index.php?autocom=casino&do=savescore", "_self", "POST");
cashout.php:
function submit($Itemid=0) {
$livesite = getPath('live_site');
// grab parameters
$gscore_real = ($_POST['gmoney']);
$gscore = ($_POST['enscore']);
$gname = ($_POST['gcasino']);