Bonjour a tous depuis hier, j'ai un soucis. Quand un joueur s'inscrit, sa planète mère ne créé pas, du coup il ne peut pas se connecter. voici le message d'erreur: Error: Main Planet does not exist!_ File: /var/www/vhosts/novagame.fr/httpdocs/xNova/xNova/includes/common.php_ Line: 136_ PHP-Version: 5.4.4-14+deb7u9_ PHP-API: cgi-fcgi_ XNOVA Version: 5.9 Redesign_
Debug Backtrace: #0 ./xNova/xNova/game.php(28): require() #1 {main}_ voici le fichier common.php: ?php
/** _ \_/ |\ | /¯¯\ \ / /\ |¯¯) |_¯ \ / /¯¯\ | | |´¯|¯` | /¯¯\ |\ |5 ¯ /¯\ | \| \__/ \/ /--\ |¯¯\ |__ \/ \__/ |__ \_/ | | \__/ | \|Core. * @author: Copyright (C) 2011 by Brayan Narvaez (Prinick) developer of xNova Revolution * @link: http://www.xnovarevolution.con.ar
* @package 2Moons * @author Slaver <slaver7@gmail.com> * @copyright 2009 Lucky <douglas@crockford.com> (XGProyecto) * @copyright 2011 Slaver <slaver7@gmail.com> (Fork/2Moons) * @license http://www.gnu.org/licenses/gpl.html GNU GPLv3 License * @version 1.3 (2011-01-21) * @link http://code.google.com/p/2moons/
* Please do not remove the credits */ if(!defined('IN_ADMIN') || !defined('IN_CRON')) define("STARTTIME", microtime(true));
ignore_user_abort(true); error_reporting(E_ALL ^ E_NOTICE); ini_set('display_errors', 0); header('Content-Type: text/html; charset=UTF-8'); define('TIMESTAMP', $_SERVER['REQUEST_TIME']);
require_once(ROOT_PATH . 'includes/config.php'); require_once(ROOT_PATH . 'includes/constants.php');
ini_set('session.save_path', ROOT_PATH.'cache/sessions'); ini_set('upload_tmp_dir', ROOT_PATH.'cache/sessions'); ini_set('session.use_cookies', '1'); ini_set('session.use_only_cookies', '1'); session_set_cookie_params(SESSION_LIFETIME, '/'); session_cache_limiter('nocache'); session_name($dbsettings["secretword"]); ini_set('session.use_trans_sid', 0); ini_set('session.auto_start', '0'); ini_set('session.serialize_handler', 'php'); ini_set('session.gc_maxlifetime', SESSION_LIFETIME); ini_set('session.gc_probability', '1'); ini_set('session.gc_divisor', '1000'); ini_set('session.bug_compat_warn', '0'); ini_set('session.bug_compat_42', '0'); ini_set('session.cookie_httponly', true); ini_set('error_log', ROOT_PATH.'/includes/error.log');
if(!defined('LOGIN')) session_start(); if(!function_exists('bcadd')) require_once(ROOT_PATH . 'includes/bcmath.php'); require_once(ROOT_PATH . 'includes/GeneralFunctions.php'); set_exception_handler('exception_handler');
require_once(ROOT_PATH . 'includes/classes/class.MySQLi.php'); require_once(ROOT_PATH . 'includes/classes/class.Lang.php'); require_once(ROOT_PATH . 'includes/classes/class.theme.php'); require_once(ROOT_PATH . 'includes/classes/class.Session.php'); $db = new DB_MySQLi(); $THEME = new Theme(); $LANG = new Language(); $CONFIG = array();
$UNI = getUniverse(); unset($database);
// Say Browsers to Allow ThirdParty Cookies (Thanks to morktadela) header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
if(UNIS_MULTIVARS) require_once(ROOT_PATH.'includes/vars_uni'.$UNI.'.php'); else require_once(ROOT_PATH.'includes/vars.php'); //$CONF = $db->uniquequery("SELECT HIGH_PRIORITY * FROM `".CONFIG."` WHERE `uni` = '".$UNI."';"); $CONF = getConfig($UNI); $LANG->setDefault($CONF['lang']);
require(ROOT_PATH.'includes/libs/FirePHP/FirePHP.class.php'); require(ROOT_PATH.'includes/libs/FirePHP/fb.php'); if($GLOBALS['CONF']['debug']) ob_start(); $FirePHP = FirePHP::getInstance(true); $FirePHP->setEnabled((bool) $GLOBALS['CONF']['debug']); $FirePHP->registerErrorHandler(true); if (!defined('CLI') && !defined('LOGIN') && !defined('IN_CRON') && !defined('AJAX')) { $SESSION = new Session(); if(!$SESSION->IsUserLogin()) redirectTo('index.php?code=3'); $SESSION->UpdateSession(); if($CONF['game_disable'] == 0 && $_SESSION['authlevel'] == 0) { message($CONF['close_reason']); }
if(!CheckModule(10) && !defined('IN_ADMIN') && request_var('ajax', 0) == 0) require(ROOT_PATH.'includes/FleetHandler.php'); $USER = $db->uniquequery("SELECT u.*, s.`total_points`, s.`total_rank` FROM ".USERS." as u LEFT JOIN ".STATPOINTS." as s ON s.`id_owner` = u.`id` AND s.`stat_type` = '1' WHERE u.`id` = '".$_SESSION['id']."';"); $FirePHP->log("Cargar Usuario: ".$USER['id']); if(empty($USER)) { exit(header('Location: index.php')); } elseif(empty($USER['lang'])) { $USER['lang'] = $CONF['lang']; $db->query("UPDATE ".USERS." SET `lang` = '".$USER['lang']."' WHERE `id` = '".$USER['id']."';"); $FirePHP->log("Cargar Usuario: ".$USER['id']); } $LANG->setUser($USER['lang']); $LANG->includeLang(array('INGAME', 'TECH')); $THEME->setUserTheme($USER['dpath']); if($USER['bana'] == 1) { message("<font size=\"6px\">".$LNG['css_account_banned_message']."</font><br><br>".sprintf($LNG['css_account_banned_expire'],date("d. M y H:i", $USER['banaday']))."<br><br>".$LNG['css_goto_homeside']); exit; } if (!defined('IN_ADMIN')) { require_once(ROOT_PATH . 'includes/classes/class.PlanetRessUpdate.php'); $PLANET = $db->uniquequery("SELECT * FROM `".PLANETS."` WHERE `id` = '".$_SESSION['planet']."';");
if(empty($PLANET)){ $PLANET = $db->uniquequery("SELECT * FROM `".PLANETS."` WHERE `id` = '".$USER['id_planet']."';"); if(empty($PLANET)){ throw new Exception("Main Planet does not exist!"); } } list($USER['factor'], $PLANET['factor']) = getFactors($USER, $PLANET); $FirePHP->log("Load Planet: ".$PLANET['id']); } else { $USER['rights'] = unserialize($USER['rights']); $LANG->includeLang(array('ADMIN')); } } elseif(defined('LOGIN')) { //Login $LANG->GetLangFromBrowser(); $LANG->includeLang(array('INGAME', 'PUBLIC')); }
if (!defined('AJAX') && !defined('CLI')) require_once(ROOT_PATH.'includes/classes/class.template.php');
?> je ne trouve pas d'ou vient le problème ou je cherche au mauvais endroits. Donc merci de m'aider |