PK

ADDRLIN : /home/questend/public_html/domains/taattva.in/
FLL :
Current File : /home/questend/public_html/domains/taattva.in/category.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';
   require_once 'admin/includes/settings/PDODB.php';
   include 'admin/includes/modules/functions.php';
   
   $function = new FUNCTIONS();
   //print_r($_GET['request']); exit;
   //$categorydata = $function->getCat($_GET['id'],1);
   $categorydata = $function->getCatsurl($cat_id=NULL, $slug=$_GET['request'], $isactive=1);
   //print_r($categorydata[0]); exit;
   $gallerydata = $function->getGallery(NULL,$categorydata[0]['cat_id'],1);
   $metadata = $function->getMeta(NULL,1);
   $contactdata = $function->getContact(NULL);
?>
<!doctype html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <?php for($i=0;$i<count($metadata);$i++){ ?>
    <meta name="<?=$metadata[$i]['meta_name'];?>" content="<?=$metadata[$i]['meta_content'];?>">
    <?php } ?>
    <link rel="icon" href="../images/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="../../css/font-awesome.min.css">
    <link rel="stylesheet" href="../../css/style.css">
    <link href="../../css/lightgallery.css" rel="stylesheet">
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="../../css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
    <!-- Google reCAPTCHA CDN -->
    <script src="https://www.google.com/recaptcha/api.js" async defer></script> 
    <title>Taattva | DIGITAL SKETCHES</title>
    <!-- <style type="text/css">
      body{
          background-color: #152836
      }          
    </style> -->
  </head>
  <body>
    <!-- navbar -->
      <?php include'layout/headers.php'; ?>
    <!-- navbar end -->
    <!-- main div -->
      <div class="container-fluid" style="background-color: #fff;">
        <div class="row cat-section taattva-gallery">
          <div class="col-md-12">
            <h1 class="text-center cat-heading"><a name="#"><?=$categorydata[0]['cat_name'];?></a></h1>
          </div>
          <ul id="lightgallery" class="list-unstyled">
            <?php foreach ($gallerydata as $key => $value) { ?>
              <li class="col-md-3 col-6" data-src="../../admin/uploads/category/<?=$value['file'];?>">
                  <a href="">
                      <img class="img-responsive" src="../../admin/uploads/category/<?=$value['file'];?>">
                  </a>
              </li>
            <?php } ?>
          </ul>          
        </div>        
      <!-- connect section -->
        <div class="row">
          <div class="col-md-12">
            <h1 class="text-center heading"><a name="connect">Connect</a></h1>
          </div>
          <div class="col-md-12">
            <div class="contact">
              <?=$contactdata[0]['contact_details'];?>
            </div>    
          </div>
        </div>
        <div class="row connect-section justify-content-md-center">
          <div class="col-md-7">
            <div id="sendmessage" class="message_success" style="display:none;">Your message has been sent. Thank you!</div>
            <div id="errormessage"></div>
            <form action="" method="post" id="reused_form">
              <div class="row justify-content-md-center">
                <div class="col-md-12">
                  <div class="form-group">            
                    <input type="text" class="form-control field-label" id="name" name="name" required placeholder="Enter your name">
                  </div>
                </div>
              </div>
              <div class="row justify-content-md-center">
                <div class="col-md-12">
                  <div class="form-group">            
                    <input type="email" class="form-control field-label" id="email" name="email" required pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-z]{2,4}" placeholder="Enter your email">
                  </div>
                </div>
              </div>
              <div class="row justify-content-md-center">
                <div class="col-md-12">
                  <div class="form-group">
                    <input type="tel" class="form-control field-label" id="contactno" name="contactno" required placeholder="Enter your Phone Number">
                    
                  </div>
                </div>
              </div>
              <div class="row justify-content-md-center">
                <div class="col-md-12">
                  <textarea class="form-control field-label" id="message"  name="message" rows="4" required placeholder="Write to us:"></textarea>
                </div>
              </div>
              <div class="row ustify-content-md-center" style="margin-bottom:30px; margin-top:15px;">
                <div class="col-sm-12">
                    <!-- div to show reCAPTCHA -->
              <div class="g-recaptcha"
                data-sitekey="6LcS11spAAAAAPd7Qttx-VrL9yP0tjZdUNWblgxh"> 
              </div>
                </div>
              </div>
              <div class="row justify-content-md-center">
                <!-- <div class="col-md-3 offset-md-3 order-firs pt-10">
                  <div class="form-group">              
                    <input type="file" class="form-control-file" name="file" value="Attach Image" id="file">
                  </div>
                </div> -->
                <div class="col-md-6 pt-10">
                  <div class="form-group">              
                    <!-- <button type="submit" class="btn btn-secondary btn-lg" id="sendbtn">Send Message</button> -->
                    <!--<button type="submit" class="btn btn-danger"><span>Send&nbsp;Message</span> </button>-->
                    <button type="submit" class="btn btn-danger btn-lg" id="sendbtn" name="submit_btn">Send Message</button>
                  </div>
                </div>        
              </div>
              <div class="row justify-content-md-center">
                <div class="col-md-12 mx-auto">
                  <div id="errormessage"></div>
                  <div id="success_message" style="width:100%; height:100%; display:none; ">
                     <h3>Sent your message successfully!</h3>
                  </div>
                </div>
              </div>
            </form>
          </div>
        </div>
      <!-- connect section end -->
      </div>
    <!-- main div end -->
    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.../../js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
    <script src="../../js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/picturefill/2.3.1/picturefill.min.js"></script>
    <script src="../../js/lightgallery-all.min.js"></script>
    <script src="../../js/jquery.mousewheel.min.js"></script>
    <script type="text/javascript" src="../../js/jquery.form-validator.min.js"></script>
    <script type="text/javascript">
      $(document).ready(function(){
          $('#lightgallery').lightGallery();
      });
    </script>
    <script type="text/javascript">
       $("#reused_form").validate({
         rules: {
           name: {
             required: true
           },
           contactno: {
             required: true,
             minlength: 10,
             maxlength: 10,
             digits: true
           },
           captcha: {
             required: true
           },
           message: {
             required: true
           },
           email: {
             required: true,
             email: true
           }
         },
         messages: {
           name: {
             required: "Please enter name"
           },
           contactno: {
             required: "Please enter contact number",
             minlength: "Please enter minimum 10 digits number only",
             maxlength: "Please enter maximum 10 digits number only",
             digits: "Please enter digits only"
           },
           message: {
             required: "Please enter message"
           }, 
           captcha: {
             required: "Please enter captcha code"
           },         
           email: {
             required: "Please enter email",
             email: "Please enter valid email"
           }       
         },
         submitHandler: function(form) { 
          form.submit(); 
         }   
       });
    </script>
  </body>
</html>
<?php 
  // Checking valid form is submitted or not 
  if (isset($_POST['submit_btn'])) {     
    // Storing name in $name variable 
    $name = !empty($_POST['name'])?trim($_POST['name']):"";
      $email = !empty($_POST['email'])?trim($_POST['email']):"";
      $contactno = !empty($_POST['contactno'])?trim($_POST['contactno']):"";
      $message = !empty($_POST['message'])?trim($_POST['message']):"";
      $error_msg = "";
    
    // Storing google recaptcha response 
    // in $recaptcha variable 
    $recaptcha = $_POST['g-recaptcha-response']; 

    // Put secret key here, which we get 
    // from google console 
    $secret_key = '6LcS11spAAAAAOm9h1b7Nd21dhSdYo0bUN8jYFwd'; 

    // Hitting request to the URL, Google will 
    // respond with success or error scenario 
    $url = 'https://www.google.com/recaptcha/api/siteverify?secret='
      . $secret_key . '&response=' . $recaptcha; 

    // Making request to verify captcha 
    $response = file_get_contents($url); 

    // Response return by google is in 
    // JSON format, so we have to parse 
    // that json 
    $response = json_decode($response); 

    // Checking, if response is true or not 
    if ($response->success == true) { 
      //mail to admin for contacting users
        function sendmail($name,$from,$to,$sendmessage){
          $from = 'info@taattva.in';
          $to      = $to;//'indusinfotek.vinay@gmail.com';
          $subject = 'Taattva Enquiry';
          $headers = 'MIME-Version: 1.0' . "\r\n";
          $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
          $headers .= 'From:' .$from. "\r\n" .
                        'Reply-To: ' . "\r\n" .
                      'X-Mailer: PHP/' . phpversion();
          $message = $sendmessage;

        mail($to, $subject, $message, $headers);
        }
        if(!empty($message)){
        $to="dutta.krishnendu@gmail.com";
        //$to = 'indusinfotek.vinay@gmail.com';
        $contactmail='<table cellpadding="0" cellspacing="0" style="width:600px; margin:0px auto; color:#7b7b7c; vertical-align:middle; font-family:Arial, Helvetica, sans-serif; font-size:16px;">
          <tr>
            <td style="text-align:center;"><a href="#"><img src="" /></a></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td style="color:#333;"><strong>Hi, Admin</strong></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>You have been received a query.</td>
          </tr>
          </table>
          <table cellpadding="0" cellspacing="0" style="width:600px; margin:0px auto; color:#7b7b7c; vertical-align:top; font-family:Arial, Helvetica, sans-serif; font-size:14px; line-height:22px;">
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td style="color:#333;" colspan="3"><strong>Contact Details</strong></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
            <tr>
              <td width="200px;">Name</td>
              <td width="20px;">:</td>
              <td width="380px;">'.$name.'</td>
            </tr>
            <tr>
              <td width="200px;">Email Address</td>
              <td width="20px;">:</td>
              <td width="380px;">'.$email.'</td>
            </tr>
            <tr>
              <td width="200px;">Contact no</td>
              <td width="20px;">:</td>
              <td width="380px;">'.$contactno.'</td>
            </tr>
            <tr>
              <td width="200px;">Requirements</td>
              <td width="20px;">:</td>
              <td width="380px;"><p>'.$message.'</p></td>
            </tr>
          
          </table>';
          //print_r($contactmail); exit;
          sendmail($name,$from,$to,$contactmail);    
        }
        // end mail send
        //$error_msg = "Message Sent Successfully";
      echo '<script>alert("Message Sent Successfully")</script>';
    } else { 
      //$error_msg = "Error in Google reCAPTACHA";
      echo '<script>alert("Error in Google reCAPTACHA")</script>'; 
    } 
  } 
?>


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

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

← Back to Home