PK

ADDRLIN : /home/questend/www/domains/rwa40.com/admin/sms/
FLL :
Current File : /home/questend/www/domains/rwa40.com/admin/sms/index.php

<?php
   ob_start();
   //error_reporting(E_ALL ^ E_NOTICE);
   @session_start();
   ini_set('allow_url_include',1);    
   date_default_timezone_set("Asia/Kolkata");
   set_time_limit(600);
   ini_set('max_execution_time',600);
   include '../includes/settings/constant.php';
   require_once '../includes/settings/PDODB.php';
   include '../includes/modules/functions.php';

   $function = new FUNCTIONS();

   if (!empty($_SESSION['adminId']) && !empty($_SESSION['admin_role_id'])) {
     if($_SESSION['admin_role_id']==1){
      //header("Location: index.php");
    }elseif($_SESSION['admin_role_id']==2){
      header("Location: ../dashboard/index.php");
    }
   }else{
    header("Location: ../index.php");
    exit();
   }

   if(isset($_POST['btnSendmail'])){
        $msg = !empty($_POST['msg'])?$_POST['msg']:"";
        $numbers = "9540269788";
        $sms = $function->sendSMS($msg, $numbers);

        $error_msg = "SMS sent successfully.";                
        //echo "<script>tossterMsgAlert('".$error_msg."','Success');</script>";
    }
      
?>
<!DOCTYPE html>
<html>
   <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>RWA | Sector 40</title>
      <?php include_once '../layout/style.php'; ?>
   </head>
   <body>
      <div id="wrapper">
        <?php $currentPage = 'sms'; include_once '../layout/side-bar.php'; ?>
         <div id="page-wrapper" class="gray-bg">
            <?php include_once '../layout/header.php'; ?>
            <div class="row wrapper border-bottom white-bg page-heading">
               <div class="col-sm-6">
                  <h2>Send New SMS</h2>                
               </div> 
               <div class="col-sm-6">
                  <?php if(!empty($error_msg)){ ?>
                      <p><?php echo $error_msg; ?></p>
                  <?php } ?>
               </div>                            
            </div>
            <div class="row">
               <div class="col-lg-12">
                  <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <div class="row">
                          <form method="POST" action="" enctype="multipart/form-data" id="sendMail">
                            <div class="col-sm-6 b-r">
                              
                              <div class="form-group"><label>massage</label> <textarea class="form-control" rows="5" id="msg" name="msg"></textarea>
                              </div>                              
                              <div>
                                <button class="btn btn-sm btn-primary pull-right m-t-n-xs" name="btnSendmail" id="btnSendmail" type="submit"><strong>Submit</strong></button>
                              </div>
                            </div>                                                      
                          </form>
                        </div>
                    </div>
                </div>
               </div>
            </div>
         </div>         
      </div>
      <?php include_once '../layout/script.php'; ?>
      <script type="text/javascript">
        $('#data_5 .input-daterange').datepicker({
            keyboardNavigation: false,
            forceParse: false,
            autoclose: true
        });
      </script>
      <script>
         function tossterMsgAlert(msg='Welcome',title='') {
             toastr.options = {
                 closeButton: true,
                 //debug: false,
                 newestOnTop: false,
                 //progressBar: false,
                 positionClass: 'toast-top-center',
                 preventDuplicates: true,
                 //onclick: null,
                 //showDuration: 300,
                 //hideDuration: 1000,
                 timeOut: 2000,
                 //extendedTimeOut: 1000,
                 //showEasing: 'swing',
                 //hideEasing: 'linear',
                 //showMethod: 'fadeIn',
                 hideMethod: 'fadeOut'
             };
             toastr.warning(title,msg);
         }
      </script>
      <!-- Page-Level Scripts -->
      <script>
        $(document).ready(function(){
            $('.dataTables-example').DataTable({
                dom: '<"html5buttons"B>lTfgitp',
                columnDefs: [
                    { type: "num-fmt", symbols:"R$" , targets: 4 }
                ],
                buttons: [
                    { extend: 'copy'},
                    {extend: 'csv'},
                    /*{extend: 'excel', title: 'ExampleFile'},
                    {extend: 'pdf', title: 'ExampleFile'},*/
                    /*{extend: 'print',
                     customize: function (win){
                        $(win.document.body).addClass('white-bg');
                        $(win.document.body).css('font-size', '10px');
                        $(win.document.body).find('table')
                            .addClass('compact')
                            .css('font-size', 'inherit');
                        }
                    }*/
                ]    
            });
        });
      </script>
      <script type="text/javascript">     
        $("#sendMail").validate({
          rules: {              
              msg: {
                required: true
              }
          },
          messages: {              
              msg: {
                  required: "Please enter the message"
              } 
          },
          submitHandler: function(form) { 
            form.submit();
          }   
        });
      </script>
      <script>
         // Add the following code if you want the name of the file appear on select
         $(".custom-file-input").on("change", function() {
           var fileName = $(this).val().split("\\").pop();
           $(this).siblings(".custom-file-label").addClass("selected").html(fileName);
         });
      </script>
   </body>
</html>


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

It looks like you found a glitch in the matrix...

← Back to Home