GIF89a;
| Direktori : /home/serb/www/ |
| Current File : /home/serb/www/activeagencyaccount.php |
<? session_start();
include("lib/globals.php");
include("lib/common.php");
include("lib/functions.php");
?>
<? include "includes/header_top.php";?>
<script language="javascript">
function validate()
{
if((document.f2.acctype[0].checked == false) &&(document.f2.acctype[1].checked == false) && (document.f2.acctype[2].checked == false) && (document.f2.acctype[3].checked == false) && (document.f2.acctype[4].checked == false))
{
alert("Select Your Account Type");
return false;
}
}
</script>
<body>
<? include "includes/header.php";?>
<div class="main_bg">
<div style="height:32px;"></div>
<div style="width:1000px; margin:0 auto;">
<div class="statedetails">
<div class="stdtls_header">
Congratulation...
</div>
<div class="stdtls_midder">
<div style="height:10px;"></div>
<div style=" width:950px; margin:0 auto; font-family:'Open Sans',sans-serif; font-size:14px; color:#000;">
<?
if($_GET['id'])
{
$sql="SELECT * FROM user_info WHERE userid='".$_GET['id']."'";
$res=execute_query($sql);
$num=mysql_num_rows($res);
$row=mysql_fetch_array($res);
if($num>0)
{
if($row['status']=='u')
{
$upd="UPDATE user_info SET status='a' WHERE userid='".$_GET['id']."'";
execute_query($upd);
?>
<p style="margin-left:15px; color:#AD0066; text-align:center; font-family: 'Roboto Condensed', sans-serif; font-size:15px; font-weight:bold;">Agency account has been activated successfully.</p>
<?
}
else
{
$_SESSION['countryname']='US';
?>
<p style="margin-left:15px; color:#AD0066; text-align:center; font-size:14px; font-weight:bold;">This Agency account is already activated. .</p>
<?
}
}
else
{
?>
<p style="margin-left:15px; color:#AD0066; text-align:center; font-size:14px; font-weight:bold;">Invalid activation key.</p>
<?
}
}
else
{
?>
<script language="javascript">
location.href="home.php";
</script>
<? } ?> <br/><br/>
</div>
</div>
<div class="stdtls_footer"></div>
</div>
<br class="spacer" />
</div>
</div>
<? include "includes/footer.php";?>