<?php require_once('includes/requirecompere.inc.php'); require_once('includes/question.inc.php'); $CMD_TMPL_NAME='questioninfo'; $q_id=TGET('q_id'); $type=TGET('type'); $mb_id=current_mb_id(); $DBConn->connect(true); $question=db_load_question_by_id($DBConn,$q_id); if (!$question || $mb_id!=$question['mb_id_owner']) { redirect("./"); return; } $dataset['VIEW']=array(0); $dataset['CONFIRMING']=array(0); $choices=db_load_question_choices($DBConn,$q_id); $dataset+=prepare_questioninfo_dataset($question,rowset2map($choices,'qc_id','qc_ordinal'),rowset2map($choices,'qc_id','qc_text')); if ($type=='pop') { $dataset['POPPING']=array(0); turnoff_mainmenu(); turnoff_mainfooter(); } ?>