0)
{
//checking for login id & password

$uname = $_POST[‘uname’];
$password = $_POST[‘password’];

$sql_login = “select count(*) as numrows_login from hoa_community_registration where hoa_community_id= $community_id and STRCMP(community_admin_username,’$uname’)=0 and STRCMP(community_admin_password,’$password’)=0”;

$rs_login = mysql_query($sql_login);
$record_login = mysql_fetch_array($rs_login);
$numrows_login = $record_login[‘numrows_login’];

if($numrows_login == 1)
{

if(($community_id)&&($is_active==1))
{
$COMMUNITY_ADMIN_MODE = “CommunityAdmin” ;
$_SESSION [“COMMUNITY_ADMIN_MODE”] = $COMMUNITY_ADMIN_MODE ;
$_SESSION [“COMMUNITY_ADMIN_COMMUNITY_ID”] = $community_id ;
$community_name = $result_community_query[‘community_name’];
header(“location:$community_name/module.php?mod=admin&page=admin”);
}
if(($community_id)&&($is_active==0))
{
$sql_package_name = “select * from hoa_package where package_id=’$package_id'”;
$result_package_name = mysql_fetch_array(mysql_query($sql_package_name));
$uname = $result_package_name[p_user];
$_SESSION [‘PACKAGE_USER_NAME’] = ”;
$_SESSION [‘PACKAGE_USER_NAME’] = $uname;
$_SESSION [‘COMMUNITY_ID’] = $community_id;
header(“location:select_template.php?community_id=$community_id”);
}
}
else
{
$flag = 2;
$err = 1;
}

}
else
{
$flag = 2;
$err = 1;
}
}

if($web_login==”web_login”)
{
//checking for login id & password

$uname = $_POST[‘uname’];
$password = $_POST[‘password’];

$sql_login = “select * from hoa_package where STRCMP(p_user,’$uname’)=0 and STRCMP(p_pass,’$password’)=0”;

$rs_login = mysql_query($sql_login);
$numrows_login = mysql_num_rows($rs_login);
if($numrows_login == 1)
{

$rs_id = mysql_fetch_array ( $rs_login ) ;
$_SESSION [‘PACKAGE_USER_NAME’] = ”;
$_SESSION [‘PACKAGE_USER_NAME’] = $uname;
header(“location:/community-registration/?package_id=$rs_id[package_id]”);
}
else
{
$flag=1;
$err=1;
}

}

?>








User Login

Invalid Login. Please Try Again.



 
Community:    
User Name:    
Password:    

 

 
                    

  Login to Create Community Website
 
                    

  Login as Community Administrator