📄 view.php
字号:
<?php
require( "inc/init.php" );
require( "inc/mysql.php" );
require( "inc/functions.php" );
require( "inc/pfunctions.php" );
require( "inc/qfunctions.php" );
require( "inc/vfunctions.php" );
$varnames = array( "action", "sid", "cq", "uid", "print" );
setvars( $varnames );
if ( !isadmin( ) )
{
header( "Location: admin/index.php" );
exit( );
}
$relocateurl = "admin/choose.php";
if ( !$uid || !$sid || !validateuid( $uid ) )
{
header( "Location: {$relocateurl}" );
exit( );
}
if ( !( $masurvey = mysql_fetch_array( mysql_query( "select * from phpQSurvey where SID = \"".protectmysql( $sid )."\"" ) ) ) )
{
header( "Location: {$relocateurl}" );
exit( );
}
setlanguage( $masurvey['Language'] );
$tablewidth = $masurvey['Width'];
$cq = 0 < $cq ? $cq : 1;
$contents = recreatesurvey( $sid, $uid, $tablewidth, $masurvey, $print );
createpage( $sid, sprintf( $phpQlang['ViewSurvey'], $uid ), $contents, false, "" );
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -