Location: PHPKode > projects > Simple SMS Site Software > simple-sms-site-software/user_send_wap.php
************** Simple SMS Site Software *********************************
************** SSSSv1.0*****************************************************
************** by (aq) limited http://aql.com *******************************
************** All Rights Reserved ******************************************
************** Please read COPYRIGHT file prior to modification********


$user = $_SESSION['user'];
$pass = $_SESSION['pass'];
$pass_number = $_GET['numbers'];


if ($access == "forbidden") {
elseif ($access == "locked") {
else {	

	$query = "SELECT credits FROM users WHERE username = '$user'"; 
	$result = mysql_query($query);
	if (!$result) {
	   echo 'Could not run query: ' . mysql_error();
	$credits = mysql_fetch_row($result);
	$remaining = $credits[0];
		<form method="POST" name="sender_form" action="confirm_send.php">
		<table width=400>	
		    <input type="hidden" name="theType" value="WapPush">
	            <h1>Send Wap Push</h1>
		    Please ensure all recipient numbers are in international format and are
	            separated by commas <br>e.g 441234567890,449876543210,44...

		    <h2>Delivery Report? <input type="checkbox" class="checkbox" name="theRep" value="1"></h2>
		    Receive delivery notifications.<br>	
		    if ($allow_https == "yes") {
		    <h2>Secure Message? <input type="checkbox" class="checkbox" name="secure" value="1"></h2>
		    Send message using secure gateway.<br>
		    else {
		    <h2>Secure Message? <input type="checkbox" class="checkbox" name="secure" value="1" DISABLED></h2>
		    Send message using secure gateway. (disabled)<br>
	            <input type="text" name="theOriginator" size="20">
	   	    <input type="text" name="theRecipients" size="20" value="<?echo $pass_number?>">

		    <h2>Wap name</h2>
      		    Remaining Characters <input type="text" name="CNT" value="160" size="3"> of 160<br>
	  	    <textarea name="theMessage" rows="5" cols="40" wrap="virtual" onChange="checkmsg(this,160)" onFocus="checkmsg(this,160)" onKeyDown="checkmsg(this,160)"></textarea>
		    <h2>Wap Address</h2>
	            <input type="text" name="theWapAddress" size="50">
		    You have <?echo $remaining;?> credits remaining
		    <input type="submit" value="Submit" name="B1">
		    <input type="reset" value="Clear" name="B2">
Return current item: Simple SMS Site Software