fix announce

This commit is contained in:
xiaomlove
2021-01-04 14:21:15 +08:00
parent b92f152b67
commit d8a3f5270f
2 changed files with 22 additions and 3 deletions

View File

@@ -2,6 +2,24 @@
# IMPORTANT: Do not edit below unless you know what you are doing!
define('IN_TRACKER', true);
$rootpath=realpath(dirname(__FILE__) . '/..')."/";
include($rootpath . 'include/core.php');
include_once($rootpath . 'include/functions_announce.php');
require $rootpath . 'include/config.php';
require $rootpath . 'include/functions.php';
require $rootpath . 'include/globalfunctions.php';
require $rootpath . get_langfile_path("functions.php");
require $rootpath . 'include/database/interface_db.php';
require $rootpath . 'include/database/class_db_mysqli.php';
require $rootpath . 'include/database/class_db.php';
require $rootpath . 'include/database/helpers.php';
require $rootpath . 'include/database/class_exception.php';
require $rootpath . 'classes/class_cache_redis.php';
require $rootpath . 'include/core.php';
require $rootpath . 'include/functions_announce.php';
if (!session_id()) {
session_start();
}
?>

View File

@@ -7,8 +7,9 @@ include_once($rootpath . 'include/config.php');
function dbconn_announce() {
global $mysql_host, $mysql_user, $mysql_pass, $mysql_db;
global $BASIC;
if (!@mysql_connect($mysql_host, $mysql_user, $mysql_pass))
if (!@mysql_connect($mysql_host, $mysql_user, $mysql_pass, $BASIC['mysql_db'], $BASIC['mysql_port']))
{
die('dbconn: mysql_connect: ' . mysql_error());
}