Fixed issues.

This commit is contained in:
Amin Mahmoudi
2023-12-29 16:54:23 +03:30
parent 9295bd7c93
commit 07cfe14903
4 changed files with 10 additions and 12 deletions

View File

@@ -134,7 +134,7 @@ $config['db_auth_host'] = '127.0.0.1'; // Database host address.
$config['db_auth_port'] = '3306'; // Database port.
$config['db_auth_user'] = 'root'; // Database username.
$config['db_auth_pass'] = 'root'; // Database password.
$config['db_auth_dbname'] = 'realmd'; // Database name for your auth/realmd database.
$config['db_auth_dbname'] = 'auth'; // Database name for your auth/realmd database.
// Realmlist Configuration - Configure the connection details for each realm's character database.
$config['realmlists'] = array(
@@ -145,7 +145,7 @@ $config['realmlists'] = array(
'db_port' => "3306", // MySQL Host Port
'db_user' => "root", // MySQL username
'db_pass' => 'root', // MySQL password
'db_name' => "realm1_characters" // Characters database name
'db_name' => "characters" // Characters database name
)
);

View File

@@ -1,12 +1,10 @@
<?php
/**
* @author Amin Mahmoudi (MasterkinG)
* @copyright Copyright (c) 2019 - 2021, MasterkinG32. (https://masterking32.com)
* @copyright Copyright (c) 2019 - 2024, MasterkinG32. (https://masterking32.com)
* @link https://masterking32.com
* @Description : It's not masterking32 framework !
**/
$core_config['salt_field'] = 'salt';
$core_config['verifier_field'] = 'verifier';

View File

@@ -1,9 +1,8 @@
<?php
/**
* @author Amin Mahmoudi (MasterkinG)
* @copyright Copyright (c) 2019 - 2021, MasterkinG32. (https://masterking32.com)
* @copyright Copyright (c) 2019 - 2024, MasterkinG32. (https://masterking32.com)
* @link https://masterking32.com
* @Description : It's not masterking32 framework !
**/
use Medoo\Medoo;

View File

@@ -14,8 +14,8 @@ header('X-Powered-CMS: MasterkinG-CMS');
ob_start();
session_start();
define('base_path', str_replace('application/loader.php', '', __FILE__));
define('app_path', base_path . 'application/');
define('base_path', str_replace('application/loader.php', '', str_replace("\\", '/', __FILE__)));
define('app_path', str_replace('application/loader.php', '', str_replace("\\", '/', __FILE__)) . 'application/');
require app_path . 'vendor/autoload.php';
require_once app_path . 'config/config.php';
@@ -44,10 +44,11 @@ require_once app_path . 'include/user.php';
require_once app_path . 'include/vote.php';
require_once app_path . 'include/status.php';
$language = strtolower(get_config('language'));
$languageFile = app_path . 'language/' . $language . '.php';
$languageName = strtolower(get_config('language'));
$languageFile = app_path . 'language/' . $languageName . '.php';
$language = [];
if (!preg_match('/^([a-z-]+)$/i', $language) || !file_exists($languageFile)) {
if (!preg_match('/^([a-z-]+)$/i', $languageName) || !file_exists($languageFile)) {
exit('Language is not valid!');
}