Files
AwvScan/include/config.inc.php
Copy Bugscan Web Vulnerability Scaner Online System ba835fef0e update
update
2015-08-11 23:09:09 +08:00

43 lines
1.7 KiB
PHP

<?php
// 保存一天
$lifeTime = 1 * 3600;
session_set_cookie_params($lifeTime);
session_start();
//error_reporting(0);
error_reporting(E_ALL || ~E_NOTICE);
//error_reporting(E_ALL);
$cfg['soft_name'] = 'Web分布扫描系统';
$cfg['soft_version'] = '';
$cfg['soft_lang'] = 'UTF-8';
header("Content-Type: text/html; charset={$cfg['soft_lang']}");
$cfg['db_host'] = 'localhost'; // 数据库服务器
$cfg['db_name'] = 'wvs_scan'; // 数据库名
$cfg['db_user'] = 'root'; // 数据库用户名
$cfg['db_pass'] = 'root'; // 数据库密码
$cfg['db_charset'] = 'utf-8'; //数据库编码
$cfg['db_pre'] = ''; //表前缀
$cfg['file_mod'] = 0777;
$cfg['authkey'] = 'MseNQAWd5Y';
$cfg['nginx_path'] = 'E:/nginx-1.5.3';
$cfg['nginx_ip'] = '10.0.13.58';
$cfg['dns_conf'] = 'E:/WWW/scan/dns/dnsserver.conf';
//配置结束
define('nginx_ip', $cfg['nginx_ip']);
define('nginx_path', $cfg['nginx_path']);
define('dns_conf', $cfg['dns_conf']);
define('authkey', $cfg['authkey']);
define('soft_name', $cfg['soft_name']);
define('LDINC', str_replace("\\", '/', dirname(__FILE__) ) );
define('LDROOT', str_replace("\\", '/', substr(LDINC,0,-8) ) );
define('LDFMOD', $cfg['file_mod'] ? $cfg['file_mod'] : ''); //文件写入模式
date_default_timezone_set("Asia/Shanghai"); //设置默认时区
require_once("sqlsafe.php");
$sql = new sqlsafe(); //防SQL注入
require_once(LDINC."/common.fun.php"); //引用全局函数
$db = new Mysql($cfg['db_host'],$cfg['db_user'],$cfg['db_pass'],$cfg['db_name'],$cfg['db_charset'],$cfg['db_charset'],$cfg['db_pre']);
$sitename = $cfg['sitename'];
require_once("xml.class.php");
require_once("xml.action.php");
require_once("index.action.php");