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_220704
/
utility
/
Edit File:
send_sms.php
<?php if(empty($page)){ include("../access.php"); } ?> <?php $modal_name = str_replace("/", "-", $page); $idRoles = $_GET['idRoles']; ?> <!-- Blank Header --> <div class="content-header"> <div class="row"> <div class="col-sm-6"> <div class="header-section"> <h1><i class="gi gi-group"></i> E-MAIL</h1> </div> </div> <div class="col-sm-6 hidden-xs"> <div class="header-section"> <!-- <ul class="breadcrumb breadcrumb-top"> --> <!-- <li>Extra Pages</li> --> <!-- <li><a href="">Blank</a></li> --> <!-- </ul> --> </div> </div> </div> </div> <!-- END Blank Header --> <!-- Get Started Block --> <div class="block full"> <!-- Get Started Title --> <div class="block-title"> <h2>Send SMS</h2> </div> <!-- [QUERY_STRING] --> <?php $success = 0; if($_POST): $destination = implode(',',$_POST['list_sms']); $message = html_entity_decode($_POST['msg'], ENT_QUOTES, 'utf-8'); $message = urlencode($message); $fp = "http://www.isms.com.my/isms_send.php?un=&pwd=&dstno=$destination&msg=$message"; ismscURL($fp); $success = 1; $_SESSION['success'] = 1; $_SESSION['success_msg'] = "Message has been sent."; endif; if($success){ echo "<script>window.location.replace('index.php?page=utility/send_sms&success={$success}');</script>"; exit(); } $param_data = array(); $comb1 = ""; $user = (isset($_GET['user'])) ? $_GET['user'] : '' ; $idrole = (isset($_GET['idrole'])) ? $_GET['idrole'] : '' ; ?> <div class="row"> <div class="col-md-6 col-md-offset-3"> <div class="block"> <form method="post" class="form-horizontal form-bordered" id="form-validation"> <div class="form-group"> <label class="col-md-3 control-label" for="example-hf-email">To</label> <div class="col-md-9"> <select id="list_sms" name="list_sms[]" class="select-chosen validation validation_hidden" data-placeholder="Choose a Receiver.." multiple=""> <?php $stmt = $mysqli->stmt_init(); $stmt->prepare("SELECT idUser,emailUser,nameUser,mobileNo FROM user_list WHERE flagUser = '1' AND mobileNo != '' "); $stmt->execute(); $result = $stmt->get_result(); $stmt->close(); while($ax = $result->fetch_assoc()){ ?> <option value="<?php echo $ax['mobileNo'];?>"><?php echo strtoupper($ax['nameUser']);?> ~ <?php echo strtoupper($ax['mobileNo']);?></option> <?php } ?> </select> </div> </div> <!-- --> <div class="form-group"> <label class="col-md-3 control-label" for="msg">Message</label> <div class="col-md-9"> <textarea name="msg" class="form-control validation" data-validation="default" maxlength="145"></textarea> <i class="text-primary">(<b class="text-calc">145</b> Character Lefts)</i> </div> </div> <div class="form-group form-actions"> <div class="col-md-9 col-md-offset-3"> <button type="submit" class="btn btn-effect-ripple btn-primary" style="overflow: hidden; position: relative;">Submit</button> <button type="reset" class="btn btn-effect-ripple btn-danger" style="overflow: hidden; position: relative;">Reset</button> </div> </div> </form> </div> </div> </div> <style type="text/css"> </style> <script src="js/pages/formsValidation.js"></script> <script type="text/javascript"> $(document).ready(function(){ $.fn.custom_submit2 = function(){ var this_form = $(this); var cont = 0; $(".validation_hidden").each(function(){ var t_this = $(this); t_this.parent("div").find(".help-block").remove(); if(t_this.val() === "" || t_this.val() === null){ cont++; t_this.parents(".form-group").addClass("has-error"); t_this.parents(".form-group").find(".chosen-choices").addClass("has-error"); t_this.parent("div").append('<div class="help-block animation-pullUp" style="display: block;">This field is required.</div>'); }else{ t_this.parents(".form-group").removeClass("has-error"); t_this.parents(".form-group").find(".chosen-choices").removeClass("has-error"); } }); if(this_form.find(".has-error").length === 0 && this_form.find(".help-block").length === 0 && cont === 0){ setTimeout(function(){ if(confirm("Save This Record. Are You Sure?")){ this_form.unbind().submit(); } }, 100); }else{ $(this).find(".help-block").parents(".form-group").addClass("has-error"); setTimeout(function(){ $(this_form,document).find(".has-error").each(function(){ $(this,document).find("div").each(function(){ var tot_err = $(this).find(".help-block").length; var block_1 = $(this).find(".help-block").eq(0); $(this).find(".help-block").hide(); if(tot_err > 1){ $(this).find(".help-block").not(":first").remove(); } $(this).find(".help-block").show(); }); }); }, 100); } // setTimeout(function(){ // return 123; // }, 100); }; $("#form-validation").setvalidation2(); $("#form-validation").on("submit.validate",function(e){ $(this).custom_submit2(); e.preventDefault(); }); $("[name='msg']").on("change keypress keyup",function(){ var cntchar = $(this).val().length; $(".text-calc").text(145-cntchar); }); }); </script> </div>
Simpan