[Req] Smscoin Webshop Script

splite

New Member
Joined
Nov 5, 2009
Messages
15
Reaction score
1
Hi there i was looking on forum trying to find an smscoin.com script for MuOnline webshop and couldnt find any all links are dead =/! If someone has smscoin script post it here please! ]:)
 
PHP:
<?php
if(!isset($GLOBALS['mu_user'])){ 
    echo "<div class=\"msg-error\"><ul><li>First Login</li></ul></div>";
}
else{
    $acc = htmlspecialchars($GLOBALS['mu_user']);
    $add_credits='2500'; //Credit Count

    $old_ua = @ini_set('user_agent', 'smscoin_key_1.0.6');
    $key_id = 224252; //Key Id
    $response = @file("http://key.smscoin.com/language/english/key/?s_pure=1&s_enc=utf-8&s_key=".$key_id."&s_pair=".urlencode(substr($_GET["s_pair"],0,10))."&s_language=".urlencode(substr($_GET["s_language"],0,10))."&s_ip=".$_SERVER["REMOTE_ADDR"]."&s_url=".$_SERVER["SERVER_NAME"].htmlentities(urlencode($_SERVER["REQUEST_URI"])));

    if ($response !== false) {
        if (count($response)>1 || $response[0] != 'true') {
          die(implode("", $response));
        }
    } 
    else die('Cant connect!');

    @ini_set('user_agent', $old_ua);
    $set_credits = mssql_query("UPDATE MEMB_CREDITS SET Credits = Credits + ".$add_credits." WHERE memb___id = '".$acc."'");
    echo "Added ".$add_credits." Credits";
}
?>