One Hat Cyber Team
Your IP :
172.16.0.254
Server IP :
58.26.163.33
Server :
Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Server Software :
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
PHP Version :
7.3.25
Buat File
|
Buat Folder
Eksekusi
Dir :
C:
/
xampp7
/
htdocs
/
edgpens
/
Edit File:
login.php
<?php include 'inc/config.php'; ?> <?php include 'inc/template_start.php'; ?> <?php include 'inc/template_scripts.php'; ?> <?php require_once __DIR__ . '/vendor/autoload.php'; ?> <script type="text/javascript"> $(document).ready(function(){ $.testme = function(x,y){ var typ = ''; if(x == '1') typ = "success"; else if(x == '2') typ = "warning"; else typ = "danger"; $.bootstrapGrowl('<h4><strong>Notification</strong></h4> <p>'+y+'</p>', { type: typ, delay: 3000, allow_dismiss: true, offset: {from: 'top', amount: 20} }); }; }); </script> <?php $options = array( 'cluster' => 'ap1', // Replace with your Pusher cluster 'useTLS' => true ); $pusher = new Pusher\Pusher( 'cd85532e11ffca0bab24', // Replace with your Pusher app key 'ee47ecc9a21c0f173413', // Replace with your Pusher app secret '1827316', // Replace with your Pusher app ID $options ); growl_me($_SESSION,$g_success); $success = 0; if($_POST): $do = $_POST['type_submit']; $username = $_POST['login-user']; $password = $_POST['login-password']; if(isset($_POST['redirect'])){ $redirect ="edg/main"; } else { $redirect = "dashboard&success=1"; } $sess = login($username,$password); $success = 3; $_SESSION["session"] = $sess[1]; if(empty($sess[3])){ if(!empty($sess[0])){ $_SESSION['success'] = 1; $_SESSION['success_msg'] = $sess[0]; } audit_insert("-","Login Sistem"); $data = [ 'data' => 'User ' . $username . ' logged in successfully' ]; $pusher->trigger('my-channel', 'my-event', $data); echo "<script>window.location.replace('index.php?page=".$redirect."');</script>"; exit(); }else{ if(!empty($sess[0])){ $_SESSION['success'] = 3; $_SESSION['success_msg'] = $sess[0]; } echo "<script>window.location.replace('login.php?success={$success}');</script>"; exit(); } endif; // if() ?> <div id="page-content"> <div class="row"> <div class="col-sm-12"> <div class="widget-image widget-image-xs"> <img src="img/lpkmn/bg.jpg" alt="image"> <div class="widget-image-content"> <div class="pull-right text-light-op"> <strong> <form id="form-login" method="post" action="login.php" class="form-inline" style="vertical-align: top"> <div class="row" style="vertical-align: top;margin-bottom: 0px;text-align: right"> <div class="col-md-12"> <i><a style="cursor: pointer;color: #CCC;" href="index.php?page=company_search">Agent Registration</a></i> || <i><a style="cursor: pointer;color: #CCC;" href="index.php?page=account_recovery">Forgot Password</a></i> </div> </div> <hr style="margin: 3px"> <div class="form-group" style="vertical-align: top;margin-bottom: 1px"> <div class="col-md-12 nopadding"> <input type="text" id="login-user" name="login-user" class="form-control" placeholder="Your email.."> </div> </div> <div class="form-group" style="vertical-align: top;margin-bottom: 1px"> <div class="col-md-12 nopadding"> <input type="password" id="login-password" name="login-password" class="form-control" placeholder="Your password.."> </div> </div> <div class="form-group form-actions" style="text-align:right;vertical-align: top;margin-bottom: 1px"> <div class="col-md-12 nopadding"> <button type="submit" class="btn btn-effect-ripple btn-sm btn-primary" style="margin-top: 3px"><i class="fa fa-unlock-alt"></i> Login</button> </div> </div> </form> </strong> </div> <h2 class="widget-heading text-light"><strong>eDGPENS LPKMn</strong></h2> <h3 class="widget-heading text-light-op">Lembaga Pelabuhan Kemaman</h3> </div> </div> </div> </div> <div class="row"> <div class="col-sm-12"> <BR> </div> </div> <div class="row"> <div class="col-sm-12"> <!-- Block --> <div class="block"> <!-- Block Title --> <div class="block-title themed-background-dark-amethyst text-center"> <h2><strong class="text-light-op"><i class="fa fa-exclamation-triangle"></i> Dangerous Goods</strong></h2> </div> <!-- END Block Title --> <!-- Block Content --> <div class="row"> <div class="col-xs-4"> <a href="dglist.php?x=1" class="widget text-center"> <div class="widget-content themed-background-danger text-light-op text-center"> <i class="fa fa-3x fa-sort-alpha-asc push-bit"></i><br> <strong>Proper Shipping Name</strong> </div> </a> </div> <div class="col-xs-4"> <a href="dglist.php?x=2" class="widget text-center"> <div class="widget-content themed-background-info text-light-op text-center"> <i class="fa fa-3x fa-tag push-bit"></i><br> <strong>IMO Class</strong> </div> </a> </div> <div class="col-xs-4"> <a href="dglist.php?x=3" class="widget text-center"> <div class="widget-content themed-background-warning text-light-op text-center"> <i class="fa fa-3x fa-cube push-bit"></i><br> <strong>UN Number</strong> </div> </a> </div> </div> </div> <!-- END Block --> </div> </div> <div class="row"> <div class="col-sm-4"> <!-- Block --> <div class="block"> <!-- Block Title --> <div class="block-title themed-background-dark-social"> <h2><strong class="text-light-op"><i class="fa fa-calendar"></i> News & Event</strong></h2> </div> <!-- END Block Title --> <!-- Block Content --> <!-- Intro Content --> <? $qNews="SELECT * FROM lp_news WHERE flagAktif='Y' ORDER BY idNews DESC"; $resNews=mysqli_query($mysqli_link, $qNews) or die(mysqli_connect_error()); while($rowNews=mysqli_fetch_array($resNews)){ $iNews=$iNews+1; ?> <div id="news" class="panel-group"> <div class="panel panel-default"> <div class="panel-heading"> <div class="panel-title"> <span class="label label-default"><i class="fa fa-info"></i></span> <a class="accordion-toggle" data-toggle="collapse" data-parent="#news" href="#news_q<?=$iNews?>"><strong><?=$rowNews['tajuk']?></strong></a> </div> </div> <div id="news_q<?=$iNews?>" class="panel-collapse collapse"> <div class="panel-body"> <p> <?php echo nl2br($rowNews['ktrgn']); if(!empty($rowNews['fail']) && file_exists("upload/lp/".$rowNews['fail'])) echo "<span class='row'><span class='col-md-12' style='border:1px dotted grey;padding:5px;margin-top:5px'><b><u>Upload File</u> : </b>Click <a target='_blank' href='upload/lp/{$rowNews['fail']}'>Here</a> To Open.</span></span>"; ?> </p> </div> </div> </div> </div> <?}mysqli_free_result($resNews);?> <!-- END Intro Content --> <!-- END Block Content --> <!-- END Block --> </div> </div> <div class="col-sm-4"> <!-- Block --> <div class="block"> <!-- Block Title --> <div class="block-title themed-background-dark-social"> <h2><strong class="text-light-op"><i class="fa fa-bullhorn"></i> Needs For Declaration</strong></h2> </div> <!-- END Block Title --> <!-- Block Content --> <!-- Intro Content --> <? $qDeclare="SELECT * FROM lp_declaration WHERE flagAktif='Y' ORDER BY idDeclaration DESC"; $resDeclare=mysqli_query($mysqli_link, $qDeclare) or die(mysqli_connect_error()); while($rowDeclare=mysqli_fetch_array($resDeclare)){ $iDeclare=$iDeclare+1; ?> <div id="declare" class="panel-group"> <div class="panel panel-default"> <div class="panel-heading"> <div class="panel-title"> <span class="label label-default"><i class="fa fa-info"></i></span> <a class="accordion-toggle" data-toggle="collapse" data-parent="#declare" href="#declare_q<?=$iDeclare?>"><strong><?=$rowDeclare['tajuk']?></strong></a> </div> </div> <div id="declare_q<?=$iDeclare?>" class="panel-collapse collapse"> <div class="panel-body"> <p> <?php echo nl2br($rowDeclare['ktrgn']); if(!empty($rowDeclare['fail']) && file_exists("upload/lp/".$rowDeclare['fail'])) echo "<span class='row'><span class='col-md-12' style='border:1px dotted grey;padding:5px;margin-top:5px'><b><u>Upload File</u> : </b>Click <a target='_blank' href='upload/lp/{$rowDeclare['fail']}'>Here</a> To Open.</span></span>"; ?> </p> </div> </div> </div> </div> <?}mysqli_free_result($resDeclare);?> <!-- END Intro Content --> <!-- END Block Content --> </div> <!-- END Block --> </div> <div class="col-sm-4"> <!-- Block --> <div class="block"> <!-- Block Title --> <div class="block-title themed-background-dark-social"> <h2><strong class="text-light-op"><i class="fa fa-book"></i> By Law / Regulations / Circulars</strong></h2> </div> <!-- END Block Title --> <!-- Block Content --> <!-- Intro Content --> <? $qLaw="SELECT * FROM lp_law WHERE flagAktif='Y' ORDER BY idLaw DESC"; $resLaw=mysqli_query($mysqli_link, $qLaw) or die(mysqli_connect_error()); while($rowLaw=mysqli_fetch_array($resLaw)){ $iLaw=$iLaw+1; ?> <div id="law" class="panel-group"> <div class="panel panel-default"> <div class="panel-heading"> <div class="panel-title"> <span class="label label-default"><i class="fa fa-info"></i></span> <a class="accordion-toggle" data-toggle="collapse" data-parent="#law" href="#law_q<?=$iLaw?>"><strong><?=$rowLaw['tajuk']?></strong></a> </div> </div> <div id="law_q<?=$iLaw?>" class="panel-collapse collapse"> <div class="panel-body"> <p> <?php echo nl2br($rowLaw['ktrgn']); if(!empty($rowLaw['fail']) && file_exists("upload/lp/".$rowLaw['fail'])) echo "<span class='row'><span class='col-md-12' style='border:1px dotted grey;padding:5px;margin-top:5px'><b><u>Upload File</u> : </b>Click <a target='_blank' href='upload/lp/{$rowLaw['fail']}'>Here</a> To Open.</span></span>"; ?> </p> </div> </div> </div> </div> <?}mysqli_free_result($resLaw);?> <!-- END Intro Content --> <!-- END Block Content --> </div> <!-- END Block --> </div> </div> </div> <div class="modal fade" id="show_more" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close pull-right" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> <h5 class="modal-title" id="exampleModalLabel">Modal title</h5> </div> <div class="modal-body"> ... </div> <div class="modal-footer"> <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button> </div> </div> </div> </div> <?php // include 'inc/template_scripts.php'; ?> <!-- Load and execute javascript code used only in this page --> <script src="js/pages/readyLogin.js"></script> <script>$(function(){ ReadyLogin.init(); });</script> <script type="text/javascript"> $(document).ready(function(){ $(".collapse").on('shown.bs.collapse', function(){ var tgt = $(this).find("p:eq(0)"); var hgt = parseFloat(tgt.css("height")); var lin = parseFloat(tgt.css("line-height"))*3; if(hgt>lin){ tgt.css({"overflow":"hidden","max-height":lin}); if(!tgt.next().is('.show_more')) tgt.after("<a class='show_more' style='cursor:pointer'>Show More ...</a>"); } }); // $('#show_more').modal(); $('#show_more') .on('show.bs.modal', function (e) {$(this).find(".modal-body").empty();}); // .on('shown.bs.modal', function (e) {$(this).find(".modal-body").html('asd');}); $(document).on("click",".show_more",function(){ var panel = $(this).parents(".panel-group"); var panel_title = panel.find(".panel-title").html(); var panel_body = panel.find(".panel-body > p").html(); $('#show_more').modal('toggle'); var modal = $("#show_more",document); modal.find(".modal-title").html(panel_title); modal.find(".modal-body").html(panel_body); modal.find(".accordion-toggle").prop("href","javascript:void(0)"); }); }); </script> <?php include 'inc/template_end.php'; ?>
Simpan