Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- ?>
- <?php
- include __DIR__ . '/function.php';
- If (isset($_POST['loginAut']) && (isset($_POST['passwordAut']))) {
- $loginAut = $_POST['loginAut'];
- $passwordAut = $_POST['passwordAut'];
- $_SESSION['login'] = $loginAut;
- $autentfication = сheckPassword($loginAut, $passwordAut);
- if ($autentfication === false) {
- echo '<a href="/Autentificationform.php"> Autentification </a>';
- } else {
- getCurrentUser();
- echo 'Welcome' . ',' . getCurrentUser();
- '<br>';
- echo '<a href="/Main_page.php"> To the Main page </a>';
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement