SuperReward postback and auto reward silk to user ...

05/30/2016 07:28 hellspawn800#1
im searching for a postback script using mssql command to integrate SuperReward to my website and add silk to user automatic.

someone can help me ?

thanks
05/30/2016 16:23 elmagico321#2
you can use vote4silk system and change on it like you want
06/30/2016 07:03 hellspawn800#3
i tried but im not good enough .. can you help me ?
06/30/2016 08:19 zizoelnigm#4
contact me at skype zizoelnigm4
07/01/2016 15:52 SMT Blue#5
Do the mssql_connect part urself.
PHP Code:
<?php
#--- Error reporting ---#
    
error_reporting(-1);
    
#--- Timezone status ---#
    
date_default_timezone_set("Europe/Stockholm");
    
$SECRET_KEY     ""// secret for my app
$transaction_id $_REQUEST['id'];
$user_id        $_REQUEST['uid'];
$offer_id       $_REQUEST['oid']; // completed offer or payment method
$new_currency   $_REQUEST['new'];
$hash_signature $_REQUEST['sig'];

$hash md5($transaction_id.':'.$new_currency.':'.$user_id.':'.$SECRET_KEY);
if (
$hash != $hash_signature) {
  
// signature doesn't match, respond with a failure
  
echo "0\n"
  exit;
}
// all good!  
#--- Database connection ---#
    
mssql_connect($serverIp$userName$password) or die("0\n");
    
#--- Select Database ---#
    
mssql_select_db($dbName1) or die("0\n");
    
#--- Filter ---#
    
$clean_html htmlspecialchars($user_id);
    
$clean_sql str_replace("'"""$clean_html);
            
#--- INSERT SILK, NEW METHOD MAKAVELI PROZ0R ---#
    
mssql_query("exec CGI.CGI_WebPurchaseSilk 0,'$clean_sql',0,'$new_currency',0") or die("0\n");
    
#--- Log payment ---#
    
mssql_select_db($dbName5) or die("0\n");
    
mssql_query("INSERT INTO _SuperRewards (StrUserID, Silk, date) 
    VALUES('
$clean_sql', '$new_currency', '$date')");
            
log("User $clean_sql purchased $new_currency coins using $offer_id (txn: $transaction_id)\n");
echo 
"1\n";
?>