Has anyone heard of this? IS there a package for this somewhere?
Torrential-Storm.co.uk:
ALTER TABLE `users` ADD `cell` varchar(255) NOT NULL default '';<?
ob_start("ob_gzhandler");
require "backend/functions.php";
dbconn(true);
loggedinorreturn();
stdhead();
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();
stdfoot();
?>Then make a new one again called sms2.php and add this:<?
ob_start("ob_gzhandler");
require "backend/functions.php";
dbconn(false);
loggedinorreturn();
stdhead();
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();
stdfoot();
?>
Then make a new again called sms3.php and add:
<?
require "backend/functions.php";
dbconn(false);
loggedinorreturn();
stdhead();
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();
stdfoot();
?>
and now the final one to create, name it takesms.php and add this:
<?php
require "backend/functions.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
?>No users online
Torrents
Members
Online