Advertisement
Guest User

Untitled

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