Location: PHPKode > projects > Simple SMS Site Software > simple-sms-site-software/do_admin_setup.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();

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

if ($access == "admin") {	

	$aqluser = $_POST['aqlUser']; // aql.com username
	$aqlpass = $_POST['aqlPassword']; // aql.com password

	$init_creds = $_POST['init_creds'];
	$admin_email = $_POST['admin_email'];

	$concat_total = $_POST['max_concat'];
	
	$site_title = $_POST['title'];
	$site_name = $_POST['site_name'];
	$site_url = $_POST['the_url'];	
	$company_home = $_POST['comp_home'];
		
	if ($_POST['acc_lock'] == "1")
		$acc_lock = 'yes';
	else
		$acc_lock = 'no';

	if ($_POST['sec_send'] == "1")
		$secure = 'yes';
	else
		$secure = 'no';
		
	if ($_POST['notify'] == "1")
		$admin_notify = 'yes';
	else
		$admin_notify = 'no';
			
	if ($_POST['acc_guest'] == "1")
		$guest_acc = 'yes';
	else
		$guest_acc = 'no';

	if ($_POST['allow_concat'] == "1")
		$concat = 'yes';
	else
		$concat = 'no';
		
	$query = mysql_query("UPDATE config SET value = '$aqluser' WHERE name = 'aqluser' LIMIT 1");
	$query = mysql_query("UPDATE config SET value = '$aqlpass' WHERE name = 'aqlpass' LIMIT 1");
	$query = mysql_query("UPDATE config SET value = '$acc_lock' WHERE name = 'account_lock' LIMIT 1");
	$query = mysql_query("UPDATE config SET value = '$guest_acc' WHERE name = 'guest_active' LIMIT 1");
	$query = mysql_query("UPDATE config SET value = '$init_creds' WHERE name = 'init_cred' LIMIT 1");
	$query = mysql_query("UPDATE config SET value = '$admin_notify' WHERE name = 'signup_notify' LIMIT 1");
	$query = mysql_query("UPDATE config SET value = '$admin_email' WHERE name = 'admin_email' LIMIT 1");
	$query = mysql_query("UPDATE config SET value = '$site_title' WHERE name = 'site_title' LIMIT 1");
	$query = mysql_query("UPDATE config SET value = '$site_name' WHERE name = 'site_name' LIMIT 1");	
	$query = mysql_query("UPDATE config SET value = '$company_home' WHERE name = 'home_page' LIMIT 1");
	$query = mysql_query("UPDATE config SET value = '$site_url' WHERE name = 'site_url' LIMIT 1");
	$query = mysql_query("UPDATE config SET value = '$secure' WHERE name = 'secure_send' LIMIT 1");
	$query = mysql_query("UPDATE config SET value = '$concat' WHERE name = 'allow_concat' LIMIT 1");
	$query = mysql_query("UPDATE config SET value = '$concat_total' WHERE name = 'max_concats' LIMIT 1");
	
	echo "Setup complete";
}
else {
	include("inc/restricted.inc.php");
}	

include("inc/footer.inc.php");
?>
Return current item: Simple SMS Site Software