Press Release Login
if( empty($_SESSION['compadmin']) && empty($_SESSION['useradmin'])) // check if the user session are made
{
echo "
";
include_once( "includes/login.php" );
echo "
";
}
elseif( $_SESSION['useradmin']['status'] == "3" || $_SESSION['useradmin']['status'] == "0") // check if the user sat is still at 0 = Pending 1
{
echo "
Sorry Your Information has not yet been verfiyied. Still Pending ";
unset ($_SESSION['useradmin']);
echo "Back to Login
";
} elseif( $_SESSION['useradmin']['status'] == "2" ) // check if the user sat is still at 0 = Pending 1
{
echo "
Sorry Your Account Has Been Decline ";
unset ($_SESSION['useradmin']);
echo "Back to Login
";
}
else
{ // allow the none pending user to post >>
?>
$idsa =$row['userid'];
echo $idsa;
$result_s = mysql_query("SELECT * FROM user WHERE userid = '$idsa'");
$rowe = mysql_fetch_assoc($result_s);
$comp = $rowe['company'];
$ids = $row['articleid'];
$result_se = mysql_query("SELECT * FROM images WHERE articleid = '$ids'");
$rowf = mysql_fetch_assoc($result_se);
?>
include ("includes/menu3.php")?>
$dates = array();
$res = mysql_query("SELECT * FROM article ORDER BY date ASC");
while($row=mysql_fetch_assoc($res))
{
// Store the events in an array, grouped by Months:
$dates[date('F Y',strtotime($row['date']))][] = $row;
}
?>
if( !empty($_SESSION['useradmin']) && $_SESSION['useradmin']['status'] != "0" ) // check if the user session are made
{
?>
echo "Welcome ".$_SESSION['useradmin']['Fname']." ".$_SESSION['useradmin']['Lname']." "."to Your Control Panel"; echo "