📄 help.php
字号:
<?php
$GLOBALS['inAdmin'] = 1;
$GLOBALS['inError'] = true;
require( "../inc/init.php" );
require( "../inc/mysql.php" );
require( "../inc/functions.php" );
$varnames = array( "hd", "loc" );
setvars( $varnames );
if ( !preg_match( "/^\\w+\$/", $hd ) || !preg_match( "/^\\w+\$/", $loc ) )
{
header( "Location: popuperror.php?errormsg=NoHelpFile" );
exit( );
}
$languages = getlanguages( "HELP" );
$language = $phpQAdmin['AdminLanguage'];
if ( $language == "" || !isset( $languages[$language] ) )
{
if ( isset( $languages['chinese'] ) )
{
$language = "chinese";
}
else
{
foreach ( $languages as $lang => $name )
{
$language = $lang;
break;
}
}
}
$helpfile = "../languages/{$language}/help/{$loc}.html";
$helpdata = "";
if ( is_readable( $helpfile ) )
{
setlanguage( $language );
$helpdata = join( "", file( $helpfile ) );
}
else
{
header( "Location: popuperror.php?errormsg=NoHelpFile" );
exit( );
}
$imgurl = $phpQImageDir;
$hd = $phpQlang[$hd] != "" ? $phpQlang[$hd] : "";
$close = $phpQlang['Close'];
$help = $phpQlang['phpQHelp'];
$contents = "\r\n <TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH=100%>\r\n <TR>\r\n <TD><IMG SRC=\"{$imgurl}/headinghelp.gif\" WIDTH=61 HEIGHT=21 ALT=\"{$help}\"></TD>\r\n <TD ALIGN=right><B>{$hd}</B> </TD>\r\n </TR>\r\n </TABLE>\r\n\r\n {$helpdata}\r\n\r\n\t<CENTER><BR><FORM>\r\n\t\t<INPUT TYPE=button ONCLICK=\"window.close();\" VALUE=\"{$close}\">\r\n\t</FORM></CENTER>\r\n";
$templatedata = join( "", file( "poptemplate.html" ) );
$templatedata = str_replace( "::SURVEYNAME::", "{$help} :: {$hd}", $templatedata );
$templatedata = str_replace( "::CHARSET::", $phpQlang['CHARSET'], $templatedata );
$templatedata = str_replace( "::CONTENT::", $contents, $templatedata );
echo $templatedata;
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -