whoami7 - Manager
:
/
home
/
gracious
/
ledgerless.graciousphils.com
/
Upload File:
files >> /home/gracious/ledgerless.graciousphils.com/login.php
<?php include 'connection.php'; if(isset($_POST['btnLogin'])){ $st = $pdo->prepare("select * from tblusers where username = ? and password = ? and isActive = 1"); $st->bindParam(1, $_POST['txtUsername']); $st->bindParam(2, $_POST['txtPassword']); $st->execute(); if($st->rowCount() == 1){ $result = $st->fetch(); /*$query = "UPDATE `tblusers` SET `isLogin` = 1 WHERE `tblusers`.`username` = ?;"; $st = $pdo->prepare($query); $st->bindParam(1,$_POST['txtUsername']); $st->execute();*/ $_SESSION['user'] = $result['name']; $_SESSION['position'] = $result['position']; if($_SESSION['position'] == 4){ echo "<script>alert('Login Successful!');window.location.href='salesOfficeSched.php';</script>"; } else if($_SESSION['position'] == 6){ echo "<script>alert('Login Successful!');window.location.href='accountingMonitoring.php';</script>"; } else if($_SESSION['position'] == 5){ echo "<script>alert('Login Successful!');window.location.href='smDashboard.php';</script>"; } else{ echo "<script>alert('Login Successful!');window.location.href='overview.php';</script>"; } } } ?>
Copyright ©2021 || Defacer Indonesia