⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 help.php

📁 调查问卷系统源码。想下的就下吧。不要条件
💻 PHP
字号:
<?
################################################################################
# phpQuestionnaire                           Version 2.2                       #
# Copyright 2003-2005 chumpsoft, inc.        March 28, 2005                    #
################################################################################
#              SCRiPTMAFiA 2005 - THE DiRTY HANDS ON YOUR SCRiPTS              #
################################################################################

$GLOBALS["inAdmin"] = 1;
$GLOBALS["inError"] = true; # Make sure we don't redirect without database.

#-->> Including Files

require("../inc/init.php");
require("../inc/mysql.php");
require("../inc/functions.php");

#-->> GET and POST Variables

$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['english'])) { $language = 'english'; }
	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 = $GLOBALS["phpQImageDir"];
$hd = ($phpQlang[$hd] != '') ? $phpQlang[$hd] : '';
$close = $phpQlang['Close'];
$help = $phpQlang['phpQHelp'];

$contents = <<<END

  <TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH=100%>
  <TR>
   <TD><IMG SRC="$imgurl/headinghelp.gif" WIDTH=61 HEIGHT=21 ALT="$help"></TD>
   <TD ALIGN=right><B>$hd</B>&nbsp;&nbsp;</TD>
  </TR>
  </TABLE>

  $helpdata

	<CENTER><BR><FORM>
		<INPUT TYPE=button ONCLICK="window.close();" VALUE="$close">
	</FORM></CENTER>

END;

$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 + -