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
/
View File Name :
registration_submit.php
<?php if(empty($page)){ include("access2.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 growl_me($_SESSION,$g_success); $success = 0; $token = $_GET['token']; $sql = " SELECT a.*,b.text FROM user_register a CROSS JOIN (SELECT * FROM kod_template WHERE kod='S03') b WHERE 1 AND a.recovery_token=? "; $param_data = array( "recovery_token" => $token ); $data = mysqli_prepare_all($sql,$param_type = "auto",$param_data); $usr = $data->fetch_assoc(); $agt = strtoupper($usr['nameUser']); $valid = 0; if(!empty($usr) && !empty($token)){ if($usr['flagUser']==1){ $sql = "UPDATE user_register SET flagUser=2 WHERE recovery_token=? "; $param_type = "auto"; $param_data = array( "token" => $token ); $data = mysqli_prepare_audit($sql,$param_type,$param_data,"Agent Email Confirmation"); $stmt = $mysqli->stmt_init(); $stmt->prepare("SELECT c.mobileNo FROM utiliti_menu a LEFT JOIN utiliti_kawalan b ON b.idMenu=a.idMenu LEFT JOIN user_list c ON c.idRoles=b.idRoles WHERE a.href='index.php?page=utility/agent' AND c.flagUser = '1' AND c.mobileNo != '' AND CHAR_LENGTH (c.mobileNo) >= 10 GROUP BY c.mobileNo"); $stmt->execute(); $result = $stmt->get_result(); $stmt->close(); $arr = array(); while($ax = $result->fetch_assoc()){ array_push($arr, $ax['mobileNo']); } $destination = implode(',',$arr); $find = array("%name%"); $replace = array($agt); $message = str_replace($find,$replace,$usr['text']); $message = html_entity_decode($message, ENT_QUOTES, 'utf-8'); $message = urlencode($message); $fp = "http://www.isms.com.my/isms_send.php?un=&pwd=&dstno=$destination&msg=$message"; ismscURL($fp); $_SESSION['success'] = 1; $_SESSION['success_msg'] = "Account Registration Complete. You Can Try Login."; echo "<script>window.location.replace('index.php?page=registration_submit&success=1');</script>"; exit(); }else{ $valid = 1; } } ?> <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">Register</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> <?php if($g_success==1){ ?> <div class="row" style="position: relative;top:20px"> <div class="col-lg-6 col-lg-offset-3 col-md-12" > <div class="block animation-fadeInQuickInv"> <!-- Login Title --> <div class="block-title"> <h2>Registration</h2> </div> <div class="alert alert-success"> <div class="widget-content themed-backgroundx-passion text-left clearfix"> <i class="pull-left fa fa-check" style="font-size: 55pt"></i> <h4 class="widget-heading text-light">Registration Submitted.</h4> <h4 class="widget-heading text-light-op">You can try login. <br>Contact us if there is a problem with the login.</h4> </div> </div> </div> </div> </div> <?php }else{ ?> <div class="row" style="position: relative;top:20px"> <div class="col-lg-6 col-lg-offset-3 col-md-12" > <div class="block animation-fadeInQuickInv"> <!-- Login Title --> <div class="block-title"> <h2>Registration</h2> </div> <?php if($valid==0){ ?> <div class="alert alert-danger"> <div class="widget-content themed-backgroundx-passion text-left clearfix"> <i class="pull-left fa fa-warning" style="font-size: 55pt"></i> <h4 class="widget-heading text-light">Invalid Token.</h4> <h4 class="widget-heading text-light-op">Register Again.</h4> </div> </div> <?php }else{ ?> <div class="alert alert-success"> <div class="widget-content themed-backgroundx-passion text-left clearfix"> <i class="pull-left fa fa-check" style="font-size: 55pt"></i> <h4 class="widget-heading text-light">Email Verified.</h4> <h4 class="widget-heading text-light-op">You can try login. <br>Contact us if there is a problem with the login.</h4> </div> </div> <?php } ?> </div> </div> </div> <?php } ?> <div class="row"> <div class="col-md-12"> <!-- Footer --> <footer class="text-muted text-center animation-pullUp"> <small><span id="year-copy"></span> © <a href="login.php" target="_self"><?php echo $template['name'] . ' ' . $template['version']; ?></a></small> </footer> <!-- END Footer --> </div> </div> </div> <?php // include 'inc/template_scripts.php'; ?> <!-- Load and execute javascript code used only in this page --> <script src="custom.js"></script> <script src="js/pages/formsValidation.js"></script> <script src="js/pages/readyLogin.js"></script> <script>$(function(){ ReadyLogin.init(); });</script>