|  | @@ -0,0 +1,17 @@ | 
														
													
														
															
																|  |  |  |  |  | <?php | 
														
													
														
															
																|  |  |  |  |  | 
 | 
														
													
														
															
																|  |  |  |  |  | require_once './db_connection.php'; | 
														
													
														
															
																|  |  |  |  |  | 
 | 
														
													
														
															
																|  |  |  |  |  | require_once './modules/user.mod.php'; | 
														
													
														
															
																|  |  |  |  |  | 
 | 
														
													
														
															
																|  |  |  |  |  | 
 | 
														
													
														
															
																|  |  |  |  |  | $id = $_GET['id']; | 
														
													
														
															
																|  |  |  |  |  | $pass = $_GET['pass']; | 
														
													
														
															
																|  |  |  |  |  | 
 | 
														
													
														
															
																|  |  |  |  |  | $user = User :: find ($id); | 
														
													
														
															
																|  |  |  |  |  | 
 | 
														
													
														
															
																|  |  |  |  |  | if ($user -> pass === $pass) | 
														
													
														
															
																|  |  |  |  |  | echo implode (',', [$user -> name]); | 
														
													
														
															
																|  |  |  |  |  | else | 
														
													
														
															
																|  |  |  |  |  | echo 'error'; | 
														
													
														
															
																|  |  |  |  |  | 
 |