📄 stats.php
字号:
<?php
require( "inc/init.php" );
require( "inc/mysql.php" );
require( "inc/functions.php" );
require( "inc/pfunctions.php" );
require( "inc/sfunctions.php" );
$varnames = array( "st", "vw", "sid", "cq", "qcount", "fa" );
setvars( $varnames );
$mqsurvey = mysql_query( "select * from phpQSurvey where SID = \"".protectmysql( $sid )."\"" );
if ( !( $masurvey = mysql_fetch_array( $mqsurvey ) ) )
{
header( "Location: error.php" );
exit( );
}
$admin = isadmin( ) ? true : false;
if ( !$fa )
{
$admin = false;
}
$admin = true;
if ( $admin )
{
setlanguage( "", "ADMIN" );
}
else
{
setlanguage( $masurvey['Language'] );
}
if ( !$st )
{
$st = "a";
}
if ( $st != "v" && $st != "u" && $st != "a" )
{
header( "Location: choose.php" );
exit( );
}
$vw = $vw == "a" || $vw == "p" || substr( $vw, 0, 1 ) == "q" ? $vw : "n";
$contents = createstats( $masurvey, $st, $vw, $admin );
createpage( "stats", $masurvey, $contents, $admin, "jsstats.php" );
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -