PK

ADDRLIN : /home/questend/public_html/subdomain/rwa.questend.com/useradmin/
FLL :
Current File : /home/questend/public_html/subdomain/rwa.questend.com/useradmin/create.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 '../admin/includes/settings/constant.php';
   //include '../includes/settings/db.php';
   require_once '../admin/includes/settings/PDODB.php';
   include '../admin/includes/modules/functions.php';
   
   $function = new FUNCTIONS();
   
   if(empty($_SESSION['userId'])){
    header("Location: ../index.php");
    exit();
   }
   //print_r($_SESSION['house_no']); exit();
   $user = $function->getUsers($_SESSION['userId'],NULL,NULL,1);
   $user_details = $function->getUserDetails($_SESSION['userId'],NULL,1);
   //print_r($user); exit;
   
   // Connect to MySQL using the below function
   $pdodb = PDODB::getInstance();
   //Output message variable
   
    // Check if POST data exists (user submitted the form)
    if (isset($_POST['title'], $_POST['msg'])) {
        //print_r($_POST); exit;
        $title = !empty($_POST['title'])?trim($_POST['title']):"";
        $title = htmlentities($title, ENT_QUOTES);

        $msg = !empty($_POST['msg'])?trim($_POST['msg']):"";
        $msg = htmlentities($msg, ENT_QUOTES);

        $uid = !empty($_POST['uid'])?trim($_POST['uid']):"";        

        // Validation checks... make sure the POST data is not empty
        $pdodb = PDODB::getInstance();
        // Insert new record into the tickets table
        $sql = "INSERT INTO `help_tickets` SET title='".$title."',msg='".$msg."',uid='".$uid."'";
        $result = $pdodb->query($sql); 
        $insert_id = $pdodb->lastInsertId();
        // Redirect to the view ticket page, the user will see their created ticket on this page
        header('Location: view.php?id=' . $insert_id);
        
    }

   PDODB::closeInstance();
   
?>
<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
      <meta name="description" content="">
      <meta name="author" content="">
      <title>RWA Sectore 40 Noida</title>
      <!-- Bootstrap core CSS -->
      <link href="../vendor/bootstrap/css/bootstrap.css" rel="stylesheet">
      <!-- Custom styles for this template -->
      <link href="../css/noida40.css" rel="stylesheet">
      <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
      <link href="../css/bootstrap-dropdownhover.css" rel="stylesheet">
      <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
   </head>
   <body class="body-bg">
      <?php include_once '../layout/header.php'; ?>
      <header class="user-admin-hdr">
         <div class="user-title">
            <h1>Help Support</h1>
         </div>
      </header>
      <!-- Page Content -->
      <div class="container-fluid padding-0">
         <!--container-->
         <div class="container mt-4">
            <div class="row">
                <div class="col-lg-6">
                  <div class="jumbotron" style="background: transparent;">
                    <h2>Create Ticket</h2>
                    <form action="create.php" method="post">
                      <div class="form-group">
                        <label for="no_vaccine">Title</label>
                        <input type="text" class="form-control" id="title" name="title" placeholder="title" required="">                        
                      </div>
                      <div class="form-group">
                        <label for="Message">Message</label>
                        <textarea class="form-control" name="msg" rows="5" placeholder="Enter your message here..." id="msg" required></textarea>
                      </div>
                      <p class="lead">
                        <input type="hidden" name="uid" value="<?=!empty($user[0]['id'])?$user[0]['id']:'';?>">
                        <input type="submit" value="Create" class="btn btn-primary btn-lg">                        
                      </p>
                    </form>
                  </div>
                </div>
            </div>
         </div>
         <!--end container-->
      </div>
      <!-- end Page Content -->
      <!-- Footer -->
      <?php include_once'../layout/footer.php';?>
      <!-- End Footer -->
      <!-- Bootstrap core JavaScript -->
      <script src="../vendor/jquery/jquery.min.js"></script>
      <script src="../vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
      <script src="../js/bootstrap-4-hover-navbar.js"></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