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

session_start();

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

include("inc/header.inc.php");

if ($access == "forbidden") {
	include("inc/restricted.inc.php");
}
elseif ($access == "locked") {
	include("inc/restricted.inc.php");
}
else {	

	$query = "SELECT credits FROM users WHERE username = '$user'"; 
	$result = mysql_query($query);
	
	if (!$result) {
	   echo 'Could not run query: ' . mysql_error();
	   exit;
	}
	$credits = mysql_fetch_row($result);
	$remaining = $credits[0];
	?>
		<form method="POST" name="sender_form" action="confirm_send.php">
		<table width=400>	
	        <tr>
	          <td>
		    <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>
		    <?
		    }
	    	    ?>
		    
	            <h2>Originator</h2>
	            <input type="text" name="theOriginator" size="20">
	            
		    <h2>Recipients</h2>
	   	    <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">
		    <br>
		    You have <?echo $remaining;?> credits remaining
		    <br>
		    <input type="submit" value="Submit" name="B1">
		    <input type="reset" value="Clear" name="B2">
		  </td>
	        </tr>
	       </form>	
	       </table>    
<?
}
include("inc/footer.inc.php");
?>              
Return current item: Simple SMS Site Software