mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
fix announce
This commit is contained in:
@@ -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();
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user