File size: 959B
<?php
//coded by arshad
//email: arshadwap.com@gmail.com
include '../db.php';
include '../functions.php';
headtag("$SiteName - Send SMS");
if($adminlog==1){
echo '<div class="title">Send SMS</div>';
if (isset($_REQUEST['mobile']) AND isset($_REQUEST['message']))
//if "subject" is filled out, send email
{
$mobile=formpost("mobile");
if($mobile!='')
{
$msg = "".$_REQUEST['message']."";
Send_SMS($mobile,$msg);
}
echo"$file_contents";
echo '<div class="ok"><font color=green>SMS Sent Successfully !</font></div><br/>';
}
else
//if "message" is not filled out, display the form
{
echo "<div class='form'><form method='post'>
Mobile:<br />
<input type='text' name='mobile'/><br />
Message:<br />
<textarea name='message'></textarea><br />
<input type='submit' value='Send SMS' />
</form></div>";
}
echo '<a href="index.php"><div class="ua">Home</div></a>';
include '../foot.php';
}
else {header('Location:login.php');}
?>