SashaRaaa

Untitled

Jul 6th, 2018
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $array = include __DIR__ . '/massiv.php';
  4.  
  5. function getUsersList($array) {
  6. return $array;
  7. }
  8.  
  9. function existsUser($login, $array){
  10.  
  11. $login = 'vasya';
  12. array_key_exists($login, $array);
  13. }
  14.  
  15. function сheckPassword($login, $password, $array ){
  16.  
  17. $hash = $users['vasya'];
  18.  
  19. if (password_verify($password, $hash)) {
  20.     if (existsUser($login, $array)) {
  21.         return true;
  22.     }
  23.  
  24. }
  25. }
  26.  
  27. ?>
Add Comment
Please, Sign In to add comment