📄 previewquestion.php
字号:
<?
################################################################################
# phpQuestionnaire Version 2.2 #
# Copyright 2003-2005 chumpsoft, inc. March 28, 2005 #
################################################################################
# SCRiPTMAFiA 2005 - THE DiRTY HANDS ON YOUR SCRiPTS #
################################################################################
#-->> Include Files
require("inc/init.php");
require("inc/mysql.php");
require("inc/functions.php");
require("inc/pfunctions.php");
require("inc/qfunctions.php");
#-->> Setting Variables
$varnames = array("sid", "qc", "qid");
SetVars($varnames);
#-->> Admin Preview Only
if (!$sid || !$qid || !$qc) {
header("Location: error.php");
exit();
}
if (!IsAdmin()) {
header("Location: admin/index.php");
exit();
}
$mqsurvey = mysql_query("select * from phpQSurvey where SID = \"".ProtectMySQL($sid)."\"");
if (!($masurvey = mysql_fetch_array($mqsurvey))) {
header("Location: error.php");
exit();
}
$mqquestion = mysql_query("select * from phpQQuestion where SID = \"".ProtectMySQL($sid)."\" and QID = \"".ProtectMySQL($qid)."\"");
if (!($maquestion = mysql_fetch_array($mqquestion))) {
header("Location: error.php");
exit();
}
#-->> Set Language
SetLanguage($masurvey['Language']);
#-->> Grab Question
$question .= PrintQuestion($maquestion, $masurvey);
$question .= PrintAnswers($maquestion, $masurvey, 0);
$question .= PrintClose();
$contents .= CreateSurvey($sid, 0, $masurvey["Width"], $question, false);
#-->> Output Page
CreatePage($sid, $masurvey["Name"], $contents, false, "");
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -