Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <?php
  2. session_start();
  3. ?>
  4. <?php
  5. include __DIR__ . '/function.php';
  6. If (isset($_POST['loginAut']) && (isset($_POST['passwordAut']))) {
  7. $loginAut = $_POST['loginAut'];
  8. $passwordAut = $_POST['passwordAut'];
  9. $_SESSION['login'] = $loginAut;
  10. $autentfication = сheckPassword($loginAut, $passwordAut);
  11. if ($autentfication === false) {
  12. echo '<a href="/Autentificationform.php"> Autentification </a>';
  13. } else {
  14. getCurrentUser();
  15. echo 'Welcome' . ',' . getCurrentUser();
  16. '<br>';
  17. echo '<a href="/Main_page.php"> To the Main page </a>';
  18.  
  19. }
  20. }
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement