<?
/******************************************************************************
************** Simple SMS Site Software *********************************
************** SSSSv1.0*****************************************************
************** by (aq) limited http://aql.com *******************************
************** All Rights Reserved ******************************************
************** Please read COPYRIGHT file prior to modification********
********************************************************************************/
session_start();
include("inc/header.inc.php");
if ($access == "admin") {
$query = mysql_query("SELECT name,value FROM config");
while ($row = mysql_fetch_array($query))
$config[$row['name']] = $row['value'];
?>
<form method="POST" name="sender_form" action="do_admin_setup.php">
<table class=tablewidth>
<tr>
<td>
<h1>Site Setup</h1>
</td>
</tr>
<tr>
<td width="50%">
<h2>aql Details</h2>
<br>
</td>
</tr>
<tr>
<td width="50%">
aql username<br>
<input type="text" name="aqlUser" size="20" value="<?echo $config['aqluser']?>">
<br>
<br>
</td>
<td width="50%">
aql password<br>
<input type="password" name="aqlPassword" size="20" value="<?echo $config['aqlpass']?>">
<br>
<br>
</td>
</tr>
<tr>
</tr>
<tr>
<td width="50%">
<?
if ($config['account_lock'] == 'yes') {
?>
<h2>Account lock<input type="checkbox" class="checkbox" name="acc_lock" checked value=1></h2>
<?
}
else {
?>
<h2>Account lock<input type="checkbox" class="checkbox" name="acc_lock" value=1></h2>
<?
}
?>
Accounts require activation
<br>
<br>
</td>
<td width="50%">
<?
if ($config['guest_active'] == 'yes') {
?>
<h2>Guest active<input type="checkbox" class="checkbox" name="acc_guest" checked value=1></h2>
<?
}
else {
?>
<h2>Guest active<input type="checkbox" class="checkbox" name="acc_guest" value=1></h2>
<?
}
?>
Toggle guest accounts on/off
<br>
<br>
</td>
</tr>
<tr>
</tr>
<tr>
<td width="50%">
<?
if ($config['secure_send'] == 'yes') {
?>
<h2>Secure HTTPS<input type="checkbox" class="checkbox" name="sec_send" checked value=1></h2>
<?
}
else {
?>
<h2>Secure HTTPS<input type="checkbox" class="checkbox" name="sec_send" value=1></h2>
<?
}
?>
Enable Secure HTTPS sending (requires CURL with SSL support)
<br>
<br>
</td>
<td width="50%">
<?
if ($config['signup_notify'] == 'yes') {
?>
<h2>Admin notification<input type="checkbox" class="checkbox" name="notify" checked value=1></h2>
<?
}
else {
?>
<h2>Admin notification<input type="checkbox" class="checkbox" name="notify" value=1></h2>
<?
}
?>
Admin contact receives signup emails
<br>
<br>
</td>
</tr>
<tr>
</tr>
<tr>
<td width="50%">
<?
if ($config['allow_concat'] == 'yes') {
?>
<h2>Concatenated messaging<input type="checkbox" class="checkbox" name="allow_concat" checked value=1></h2>
<?
}
else {
?>
<h2>Concatenated messaging<input type="checkbox" class="checkbox" name="allow_concat" value=1></h2>
<?
}
?>
Allow concatenated messaging (messages spread over multiple sms)
<br>
<br>
</td>
<td width="50%">
<h2>Maximum concatenated messages</h2>
Limit the number of sms one message can be stretched over
<br>
<input type="text" name="max_concat" size=5 value="<?echo $config['max_concats']?>">
<br>
<br>
</td>
</tr>
<tr>
</tr>
<tr>
<td width="50%">
<h2>Initial credits</h2>
New signups receive free credits
<br>
<input type="text" name="init_creds" size=5 value="<?echo $config['init_cred']?>">
</td>
<td width="50%">
<h2>Admin email</h2>
Recieves notification of signups
<br>
<input type="text" name="admin_email" value="<?echo $config['admin_email']?>">
<br>
<br>
</td>
</tr>
<tr>
</tr>
<tr>
<td width="50%">
<h2>Title</h2>
Set title bar description
<br>
<input type="text" name="title" value="<?echo $config['site_title']?>">
<br>
<br>
</td>
<td width="50%">
<h2>Site name</h2>
Your sites name
<br>
<input type="text" name="site_name" value="<?echo $config['site_name']?>">
<br>
<br>
</td>
</tr>
<tr>
</tr>
<tr>
<td width="50%">
<h2>Company home page</h2>
Your companies home page
<br>
<input type="text" name="comp_home" value="<?echo $config['home_page']?>">
<br>
<br>
</td>
<td width="50%">
<h2>Containing folder</h2>
The absolute URL of the files
<br>
<input type="text" name="the_url" value="<?echo $config['site_url']?>">
<br>
<br>
</td>
</tr>
<tr>
<td width=50%>
<input type="submit" value="Submit" name="B1">
</td>
<td width=50%>
SSSS v<?echo $the_version;?>
</td>
</tr>
</table>
</form>
<?
}
else {
include("inc/restricted.inc.php");
}
include("inc/footer.inc.php");
?>