FortuMU Mania

by Branimir Parashkevov
May 15th, 2009

Today we will present you a new kind of service, connected with a game that I really enjoy. I am talking about Mu Online. All around the world there are big servers of this fascinating game, and all of them are visited by many people everyday. All of these people want to be the best and often they are ready to pay for this. If you are an owner of such a server, we offer you a script, that will help you connect your Mu-server webshop with our payment system. In this way you will grant your customers the option to find easily the items that they previously wanted so much, while in the same time you will earn revenue from your SMS services. This code was given to us by a customer of ours (ForgottenBG) and it is the first one from a series of scripts. Soon we will have Wiki, too where you can find similar scripts, as well as important information about us and our services. If before this becomes a fact, you want to share a script with us – he/she can do it here. Of course, we will grant prizes to the owners of the codes that we approve. And here is the script (sms_log.php) itself:


Script by Niker from Escape Mu:

<?php /* This Script is Created By LiskO for Fortumo.bg Website: http://escapemu.com and http://drakemu.net COre Network Inc */ ## Configuration Starts ## $credits = ''; // Credits to add $db_name = ''; // The Database $db_ip = ''; // Server IP Adress $db_user = ''; // MSSQL User $db_pass = ''; // MSSQL Password $sms_rank = '0'; // 1=on, 0=off ## Configuration Ends ## $forumtoIPs=array('81.20.151.38','81.20.148.122'); $serverIP=$_SERVER['REMOTE_ADDR']; $username = $_GET['message']; if(!in_array($serverIP,$forumtoIPs)) die("Your IP isn`t in the list with permission!"); if(!$username) die("You did not enter account name in The SMS"); $connection = mssql_connect($db_ip, $db_user, $db_pass) or die('The Server has problem with Connection to database. Please contact the administrator!'); mssql_select_db($db_name); $user_select = mssql_query("SELECT memb___id FROM MEMB_INFO WHERE memb___id='$username'"); if(mssql_num_rows($user_select)==0) { $returns = "Account is incorrect or does not exist. The SMS wasn`t sent"; } else { $credits_select = mssql_query("SELECT credits FROM MEMB_CREDITS WHERE memb___id='$username'"); $curcreditsa = mssql_fetch_row($credits_select); $curcredits = $curcreditsa[0] + $credits; if(mssql_num_rows($credits_select)>0) { mssql_query("UPDATE MEMB_CREDITS SET credits=credits+'$credits' WHERE memb___id='$username'"); if ($sms_rank == 1) { mssql_query("UPDATE MEMB_INFO SET sms=sms+1 WHERE memb___id='$username'"); } $returns = "Your SMS was sent successfully. You add {$credits} credits to Account {$username} .Now You Have {$curcredits} credits."; } else { mssql_query("INSERT INTO MEMB_CREDITS (memb___id, credits) VALUES ('$username', '$credits')"); if ($sms_rank == 1) { mssql_query("UPDATE MEMB_INFO SET sms=sms+1 WHERE memb___id='$username'"); } $returns = "Your SMS was sent successfully. You add {$credits} credits to Account {$username} .Now You Have {$curcredits} credits."; }  } echo $returns; ?>

The Configuration section in the middle of the code shows the section with variables, that you have to insert. In this way you set your system according to your desires. If you have questions – please let us know.

Related Posts
  1. Fortumo Cabal Script
  2. Fortumo user tells his story: EmeraldMU
  3. Introducing FortuMoPay
  4. Fortumo tells a story – moipal.com
  5. Test your servises from web and other features – Release note 25th Feb

Filed under Fortumo | | having 10 Comments »

    I need same code for phpbb3 forum. When user introduce code received by sms will see anything (depend on permision-like a guest).
    I apreciate any response from you.
    Thank you

    visual on June 16th, 2009 at 12:06 pm

    Hello there;)

    From what I understand, you do not need such script but a service like our SMS Pay. Why don’t you have a look at http://fortumo.com/services/about/sms-pay and tell me if this is the thing that you needed;)

    Regards,
    Branimir

    Branimir Parashkevov on June 17th, 2009 at 10:04 am

    What i need is more complicated.
    When a registered user pay by SMS will be added in special group with another permission.
    I create special group and now i want to redirect users to form for SMS pay and after receive secret code and send it from form(widget)users are automatically added to special group.
    Any help are apreciated!
    I don’t know if post here my email are good ideea, but i need private support! What do you think?

    visual on July 5th, 2009 at 9:39 am

    Yes, I think that we can switch to private communication. Please write to support@fortumo.com so that we discuss your idea.

    I will be waiting for your email :)

    Branimir Parashkevov on July 8th, 2009 at 8:18 am

    [...] we presented a script for MU Server Webshop (given to us by LiskO from EscapeMu). It allows all owners of MU online servers with Web Shops [...]

    Fortumoblog » Blog Archive » Fortumo user tells his story on August 5th, 2009 at 2:37 pm

    [...] while ago we introduced you to the Fortumo script for the MU Online game servers. Today the creator of this script (LiskO from EscapeMU) shares with you a new one, this time for [...]

    Fortumoblog » Blog Archive » Fortumo Cabal Script on August 13th, 2009 at 6:04 pm

    i dont get this…. but where do you put youre id of fortumo or what how it suposed to know that who is using a service ?

    Eriks on November 2nd, 2009 at 6:22 pm

    It’s actually pretty easy. You create a new Premium SMS Service and there you show the link to your script. As the script is waiting to be contacted, it receives the info, works with it and send info back to our servers (IPs above).

    This is as easy as pie ;)

    If you need more help – feel free to contact me at support@fortumo.com

    Branimir Parashkevov on November 6th, 2009 at 5:08 pm

    Anyone can help me with my problem? I dont know how to use this Fortumo services… i dont really know about this. sorry .. If someone can help me please contact me with Skype.!

    Alvin on April 22nd, 2010 at 12:49 pm

    Hi Alvin,

    It’s really easy! Just put the script at your site in a separate file. Adjust the script setup section and then create a Premium SMS service (http://fortumo.bg/services/start/sms-premium). Whenasked about the URL of the script – give the URL to the script at your site.

    Check it out ;)

    Branimir Parashkevov on April 24th, 2010 at 9:15 am

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.