PK

ADDRLIN : /home/questend/public_html/subdomain/coforge.jiffyfilms.com/
FLL :
Current File : /home/questend/public_html/subdomain/coforge.jiffyfilms.com/get_poll_question.php

<?php
ob_start();
@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();

$response = array('success' => false);
$pollQuestion = $function->getPollQuestion($id=NULL,$isActive=1);

if (!empty($pollQuestion)) { 
    $question = $pollQuestion[0]['title'];
    $max_vote = $pollQuestion[0]['max_vote']; 
    $questionOptiondata = $function->getQuestionOption($id=NULL,$q_id=$pollQuestion[0]['id'],$isActive=1);
    $pollingdata = $function->getPolllinglist($id=NULL,$uid=$_SESSION['userId'],$q_id=$pollQuestion[0]['id'],$isActive=1);

    ob_start();
    if ($pollingdata == true) {
        ?>
        <form class="poll-question" style="min-height: 200px;" id="pollForm">
           <h4 class="question"><?=(!empty($question)) ? $question : '';?></h4>
           <div class="mb-3">
              <?php for($i=0; $i<count($questionOptiondata); $i++) { ?>
                 <div class="form-check">
                    <input class="form-check-input" disabled type="radio" name="polloption" id="polloption" value="<?=$questionOptiondata[$i]['id'];?>" <?=($questionOptiondata[$i]['id']==$pollingdata[0]['option_id'])?'checked':'';?>>
                    <label class="form-check-label" for="exampleRadios1">
                       <?=$questionOptiondata[$i]['description']." (".$questionOptiondata[$i]['vote_count'].")";?>
                    </label>
                    <progress id="file" value="<?=$questionOptiondata[$i]['vote_count'];?>" max="<?=$max_vote;?>"> <?=$questionOptiondata[$i]['vote_count'];?> </progress>
                 </div>
              <?php } ?>
           </div>
           <h5 class="question">You have already voted for this Poll.</h5>
        </form>
    <?php } else { ?>
        <form class="poll-question" method="POST" id="pollForm">
           <h4 class="question"><?=(!empty($question)) ? $question : '';?></h4>
           <div class="mb-3">
              <?php for($i=0; $i<count($questionOptiondata); $i++) { ?>
                 <div class="form-check">
                    <input class="form-check-input" type="radio" name="polloption" id="polloption" value="<?=$questionOptiondata[$i]['id'];?>">
                    <label class="form-check-label" for="exampleRadios1">
                       <?=$questionOptiondata[$i]['description'];?>
                    </label>
                 </div>
              <?php } ?>
           </div>
           <p style="color:red; text-align: center;"><?=(!empty($poll_msg)) ? $poll_msg : '';?></p>
           <input type="hidden" value="<?=$pollQuestion[0]['id'];?>" id="q_id" name="q_id" />
           <input type="hidden" value="<?=$_SESSION['userId'];?>" id="uid" name="uid" />
           <div id="pollQmessage"></div>
           <center><button type="submit" name="pollQuestionBtn" class="btn btn-lg" onclick="pollQForm(event);">Submit</button></center>
        </form>
    <?php }
    $html = ob_get_clean();
    $response['success'] = true;
    $response['html'] = $html;
} else {
    // When there are no active poll questions, return an empty HTML
    $response['html'] = '<form class="poll-question" style="min-height: 200px;">
                           <h4 class="question"></h4>
                         </form>';
}

echo json_encode($response);
?>


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

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

← Back to Home