PK

ADDRLIN : /home/questend/www/domains/taattva.in/
FLL :
Current File : /home/questend/www/domains/taattva.in/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 'admin/includes/settings/constant.php';
   require_once 'admin/includes/settings/PDODB.php';
   include 'admin/includes/modules/functions.php';
   $function = new FUNCTIONS();
   $bannerdata = $function->getBanner(NULL,1);
   $categorydata = $function->getCat(NULL,1);
   $metadata = $function->getMeta(NULL,1);
   $aboutdata = $function->getAbout(NULL);
   $contactdata = $function->getContact(NULL);
   //print_r($aboutdata[0]['about_taattva']); exit;
   //print_r($_POST);

?>

<!doctype html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="p:domain_verify" content="433d546dbe0ec7b9287b662527716889"/>
    <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">
    <!-- 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</title>
  </head>

  <body>

    <!-- navbar -->
      <?php include'layout/header.php'; ?>
    <!-- navbar end -->
    <!-- carousel slider -->
      <div id="carouselExampleControls" class="carousel slide nav-pd" data-ride="carousel" style="padding-top: 50px!important;">
        <div class="carousel-inner">
          <?php foreach ($bannerdata as $key =>$value){ 

            $retVal = ($value['title_position']==1) ?'slider-title1 pull-left':(($value['title_position']==2) ?'slider-title3 text-center': 'slider-title2 pull-right') ;

          ?>
            <div class="<?=($key == 0) ? 'carousel-item active' : 'carousel-item'; ?>">
              <img src="admin/uploads/banner/<?php echo $value['file']; ?>" class="d-block w-100" alt="...">
              <div class="carousel-caption d-none d-md-block">
                <h5 class="<?=$retVal?>"><?php echo $value['title']; ?><br>
                    <span><?=(!empty($value['slogan']))?$value['slogan']:'';?></span>
                </h5>
              </div>
            </div>          

          <?php } ?>

        </div>

        <a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">

          <span class="carousel-control-prev-icon" aria-hidden="true"></span>

          <span class="sr-only">Previous</span>

        </a>

        <a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">

          <span class="carousel-control-next-icon" aria-hidden="true"></span>

          <span class="sr-only">Next</span>

        </a>

        <div>

          <div class="text-center">

          <img src="images/texture.png" class="small-textureicon">

          </div>

        </div>

      </div>

    <!-- carousel slider end -->

      <div class="container-fluid" style="background-color: #fff;">

        <div class="row icon-t">

          <div class="col-md-12">

            <img src="images/texture-large.png" width="100%">

          </div>

          <div class="col-md-12">

            <a name="aboutus"></a>
              <div class="abt">
                <?=$aboutdata[0]['about_taattva'];?>
              </div>      

          </div>

          <div class="col-md-12">

            <img src="images/texture-large.png" width="100%">

          </div>

        </div>

        <!-- work section -->

        <div class="row work-section">

          <div class="col-md-12">

            <h1 class="text-center heading"><a name="works">Works</a></h1>

          </div>

        </div>

        <div class="row work-section">
          
          <div class="col-md-3">

            <a href="category/<?=$categorydata[0]['cat_id']?>/<?=$categorydata[0]['slug'];?>">

              <img src="admin/uploads/category/<?=$categorydata[0]['file'];?>" class="img-thumbnail">

              <p class="img-title text-center"><?=$categorydata[0]['cat_name'];?></p>

            </a>

          </div>
          
          <div class="col-md-6">

            <p class="p-text text-center">

              Vintage at Vantage!
              What’s now called vintage was once brand new! 
              That said, these antiques today are as adrenalizing as the vintage wine!
              Like the vintage wine even these antiques have stories
               of their time and the geography! 
               
              We at Taattva rewrite the popular folklore of that time
              and blend them to the modernity. 
              Each handcraft differs in its contour, content, color and Chroma,
              depending on the evolution of the craft. 
              However these unevenness also bring about quality vintage 
              in the craft and add to its charm

            </p>

            <div class="text-center">

              <img src="images/texture-icon.jpg" class="img-thumbnail"><br>

              <img src="images/image02.jpg" class="img-thumbnail">

              

            </div>

          </div>

          <div class="col-md-3">

            <a href="category/<?=$categorydata[1]['cat_id']?>/<?=$categorydata[1]['slug'];?>">

              <img src="admin/uploads/category/<?=$categorydata[1]['file'];?>" class="img-thumbnail">

              <p class="img-title text-center"><?=$categorydata[1]['cat_name'];?></p>

            </a>

          </div>

        </div>

        <div class="row work-section">
          <?php for($i=2;$i<count($categorydata);$i++){ ?>
          <div class="col-md-4 mx-auto">
            <a href="category/<?=$categorydata[$i]['cat_id']?>/<?=$categorydata[$i]['slug'];?>">
              <img src="admin/uploads/category/<?=$categorydata[$i]['file'];?>" class="img-thumbnail">
              <p class="img-title text-center"><?=$categorydata[$i]['cat_name'];?></p>
            </a>
          </div>
          <?php } ?>          
        </div>

        <!-- work section end -->

        <!-- 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>

    <!-- Optional JavaScript -->

    <!-- jQuery first, then Popper.js, then Bootstrap JS -->

    <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 type="text/javascript" src="js/jquery.form-validator.min.js"></script>

    <script type="text/javascript">
      $('.carousel-item').carousel({
          interval: 100
      });
    </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