PK

ADDRLIN : /home/questend/public_html/subdomain/artemis.jiffyfilms.com_down/
FLL :
Current File : /home/questend/public_html/subdomain/artemis.jiffyfilms.com_down/poll.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);
   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();
   }
   $user = $function->getUsers($_SESSION['userId'],NULL,NULL,1);

    if(isset($_POST['pollQuestionBtn'])){
        $polloption = !empty($_POST['polloption']) ? trim($_POST['polloption']) : "";
        $q_id = !empty($_POST['q_id']) ? trim($_POST['q_id']) : "";
        $uId = $_SESSION['userId'];

        if(!empty($polloption)){
            $pdodb = PDODB::getInstance();
            $qty = 1;

            $sql = "UPDATE `tb_pollquestion` SET max_vote = max_vote + ? WHERE id = ?";
            $stmt = $pdodb->prepare($sql);
            $stmt->execute([$qty, $q_id]);

            $sql2 = "UPDATE `tb_polloptions` SET vote_count = vote_count + ? WHERE id = ?";
            $stmt2 = $pdodb->prepare($sql2);
            $stmt2->execute([$qty, $polloption]);

            $sql3 = "INSERT INTO `tb_polllinglist` (uid, q_id, option_id) VALUES (?, ?, ?)";
            $stmt3 = $pdodb->prepare($sql3);
            $stmt3->execute([$uId, $q_id, $polloption]);

            PDODB::closeInstance();

            if ($stmt->rowCount() && $stmt2->rowCount() && $stmt3->rowCount()) {
                echo "Successfully submitted";
            } else {
                echo "Try again";
            }
        }
    }
?>


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

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

← Back to Home