📄 previewquestion.php
字号:
<?php
require( "inc/init.php" );
require( "inc/mysql.php" );
require( "inc/functions.php" );
require( "inc/pfunctions.php" );
require( "inc/qfunctions.php" );
$varnames = array( "sid", "qc", "qid" );
setvars( $varnames );
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( );
}
setlanguage( $masurvey['Language'] );
$question .= printquestion( $maquestion, $masurvey );
$question .= printanswers( $maquestion, $masurvey, 0 );
$question .= printclose( );
$contents .= createsurvey( $sid, 0, $masurvey['Width'], $question, false );
createpage( $sid, $masurvey['Name'], $contents, false, "" );
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -