Esempio n. 1
0
function add_Slashes(&$array)
{
    if (is_array($array)) {
        foreach ($array as $key => $value) {
            add_Slashes($array[$key]);
        }
    } elseif (is_string($array)) {
        $array = addslashes($array);
    }
}
Esempio n. 2
0
$dbconfig = 'dbconfig.inc.php';
$webconfig = 'webconfig.inc.php';
header('Content-Type: text/html; charset=utf-8');
if (file_exists($installed)) {
    exit('确认要重新安装吗?如果是,请先删除' . $installed . '文件!');
}
if (!is_readable($installsql)) {
    exit('数据库文件无法读取,请检查/install/' . $installsql . '是否存在。');
}
$quit = false;
$message = $alert = $link = $sql = $allownext = '';
$PHP_SELF = addslashes(htmlspecialchars($_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']));
set_magic_quotes_runtime(0);
if (!get_magic_quotes_gpc()) {
    add_Slashes($_POST);
    add_Slashes($_GET);
}
@extract($_POST);
@extract($_GET);
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<link href="images/style.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="../Public/common/jquery/jquery.js"></script>
		<script type="text/javascript">
			$(function(){
				setReSize();
				$(window).resize(setReSize);
				$('#agreementPrev').click(function(){