Location: PHPKode > projects > Simple SMS Site Software > simple-sms-site-software/user_hub.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();
	
$_SESSION['user'] = $_POST['theUser']; 
$_SESSION['pass'] = md5($_POST['thePassword']); 

$user = $_SESSION['user'];
$pass = $_SESSION['pass'];

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

if ($access == 'locked') {
?>
	<p align="center"> Username <b> <?echo $user?> </b> is currently <b> locked </b> </p>
	<p align="center"> Please check for an activation email or contact your administrator. </p>
<?
}
elseif ($access == 'admin') {
?>
	<p align="center"> Welcome to <?echo $site_name?>,<b> <?echo $user?>. </b> </p>
	<p align="center"> The menu at the top of the screen provides links to the different features available.</p>
	<p align="center"> As an admin you have the ability to manipulate other users accounts, this can be done via the various links provided on the menubar. Please be aware that some of these options are only available for administrative users and do not appear on standard user or guest accounts.</p>
<?
}
elseif ($access == 'forbidden') {
?>
	<p align="center"> User <b><?echo $user?></b> could not be validated, please check your details and try again </p>
<?
}
elseif ($access == 'standard') {
?>	
	<p align="center"> Welcome to <?echo $site_name?>,<b> <?echo $user?>. </b> </p>
	<p align="center"> The menu at the top of the screen provides links to the different features available.</p>
	<p align="center"> Registered users can send sms and wap push messages, view delivery reports and edit their own details.</p>
<?
}
elseif ($access == 'guest') {
?>	
	<p align="center"> Welcome to <?echo $site_name?>,<b> <?echo $user?>. </b> </p>
	<p align="center"> The menu at the top of the screen provides links to the different features available.</p>
	<p align="center"> As a guest you have access to limited features, these including sending sms and viewing sample delivery reports.</p>
<?
}
else {
?>
	<p align="center"> Your details could not be validated, please check them and try again </p>
<?
}
include("inc/footer.inc.php");
?>
Return current item: Simple SMS Site Software