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

$activate_user = $_POST['D1'];

if ($access == 'admin') {

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

	$query = "UPDATE `users` SET `locked` = 'no' WHERE `username` = '$activate_user' LIMIT 1";
	$result = mysql_query($query);
	if (!$result) {
	   	echo 'Could not run query: ' . mysql_error();
		exit;
	}
	else {
	?>
		<p align="center">Account activated</p>
	<?
	}
}
else {
	include("inc/restricted.inc.php");
}
include("inc/footer.inc.php");
?>
Return current item: Simple SMS Site Software