Add files via upload
This commit is contained in:
		
							
								
								
									
										15
									
								
								root/assets/php/common/checkUser.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								root/assets/php/common/checkUser.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
<?php    
 | 
			
		||||
    include('../../../assets/php/config.php');
 | 
			
		||||
    include('../includes/user_dao.php');
 | 
			
		||||
 | 
			
		||||
    $bd = new UserDAO('complucine');
 | 
			
		||||
    if($bd){
 | 
			
		||||
        $user = $bd->selectUserName(strtolower($_GET["user"]));
 | 
			
		||||
        if ($user->data_seek(0)) {
 | 
			
		||||
            echo "!avaliable";
 | 
			
		||||
        }
 | 
			
		||||
        else{
 | 
			
		||||
            echo "avaliable";
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
?>
 | 
			
		||||
		Reference in New Issue
	
	Block a user