Webmaster общности: Predpriemach.com | SearchEngines.bg

    Дари пари чрез SMS – за тракер

    Автор: Emperator

    Това е мод за даряване на дари през SMS . Този мод е само като структора към него не е включен номер към който ще добавяте. Урока е предоставен само и единствено за http://web-tourist.net/

    1.Стъпка
    Създайте sms1.php

    <?
    ob_start("ob_gzhandler");
    require_once("include/bittorrent.php");
    dbconn(true);
    loggedinorreturn();
    stdhead();
    begin_main_frame();
    begin_frame("SMS Donation");
    
    $curre = $CURUSER['username'];
    $cell = $_POST['cell'];
    
    echo("<h2>SMS donation (25 SEK) Step 1/3</h2>");
    
    ?>
    <form action="<?=$_SERVER['PHP_SELF']?>" method="POST">
    What cellphone number will you donate from?<br>
    OBS! Type your cellphone number below. See the example.<br><br>
    <input type="text" name="cell"><br>
    <i>example: 0701234567</i>
    <br><br>
    <input type="submit" name="submit" value="Continue">
    </form>
    
    <?
    
    if($_POST['submit'] && $_POST['cell']){
    mysql_query("UPDATE users SET cell = '$cell' WHERE username = '$curre'");
    header("Location: sms2.php");
    }
    
    end_frame();
    end_main_frame();
    stdfoot();
    ?>

    2.Стъпка създайте sms2.php

    <?
    ob_start("ob_gzhandler");
    require_once("include/bittorrent.php");
    
    dbconn(false);
    loggedinorreturn();
    stdhead();
    begin_main_frame();
    begin_frame("SMS Donation");
    
    echo("<h2>SMS donation (25 SEK) Step 2/3</h2><br>");
    echo("Send a SMS to 72550 with the following information: ");
    echo("<b>");
    echo("SILVTORR"); // YOUR PREFIX HERE
    echo("</b><br><br>");
    ?>
    <form action="<?=$_SERVER['PHP_SELF']?>" method="GET">
    <input type="submit" name="submit" value="Continue">
    </form>
    
    <?
    
    if($_GET['submit']){
    header("Location: sms3.php");
    }
    end_frame();
    end_main_frame();
    stdfoot();
    ?>

    3.Стъпка създайте sms3.php

    <?
    require_once("include/bittorrent.php");
    
    dbconn(false);
    loggedinorreturn();
    stdhead();
    begin_main_frame();
    begin_frame("SMS Donation");
    
    echo("<h2>SMS donation (25 SEK) Step 3/3</h2>");
    
    
    echo("Your donation should now be complete!<br> You will notice this with a star beside your nickname!<br><br> The staff at silvertorrents.org are graceful for your donation and are hoping that you will like us.");
    
    
    end_frame();
    end_main_frame();
    stdfoot();
    ?>

    4.Стъпка създайте takesms.php

    <?php
    require_once("include/bittorrent.php");
    dbconn(true);
    
    $nr = $_REQUEST['nr']; // Cellphone number donation came from
    $donated = $_REQUEST['tariff']; // How much that have been donated
    $curre = $CURUSER['username'];
    $qry = "UPDATE users SET donated = '$donated' WHERE cell = '$nr'"; // Remove this line if you dont have the donation mod or the donated column in your sql
    $qry2 = "UPDATE users set donor = 'yes' WHERE cell = '$nr'";
    mysql_query($qry); // Remove this line if you dont have the donation mod or the donated column in your sql
    mysql_query($qry2);
    
    echo("Thank you for your donation! You are helping us to continue to run our activity //Staff"); //This is the SMS to the cellphone
    ?>

    5.Съпка в базатаданни на тракера импортирайте :

    ALTER TABLE `users` ADD `cell` varchar(255) NOT NULL default '';

    Нужно е само някъде на sms1.php да добавите номера към който да пращат sms 🙂 и да си го преведето малко 🙂

    Но мода работи 100%