Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Problem z dodaniem języka polskiego


Rekomendowane odpowiedzi

Opublikowano

Witam mam problem który już od jakiegoś czasu próbuje rozwiązać czy ktoś może mi pomóc?

 


Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/whitepro/public_html/language/pl/INGAME.php:1) in /home/whitepro/public_html/index.php on line 339

Warning: Cannot modify header information - headers already sent by (output started at /home/whitepro/public_html/language/pl/INGAME.php:1) in /home/whitepro/public_html/includes/GeneralFunctions.php on line 515

Warning: Cannot modify header information - headers already sent by (output started at /home/whitepro/public_html/language/pl/INGAME.php:1) in /home/whitepro/public_html/includes/GeneralFunctions.php on line 517

Kocham mpcforum.pl!!!

18706.png

Opublikowano

Pokaż 5 linijek w górę/w dół z plików, które są wymienione w błędzie, zaczynając również od linii, która jest wymieniona w błędzie.

Opublikowano

Plik Ingame.php

<?php

/**
 _  \_/ |\ | /��\ \  / /\    |��) |_� \  / /��\ |  |   |��|�` | /��\ |\ |5
 �  /�\ | \| \__/  \/ /--\   |��\ |__  \/  \__/ |__ \_/   |   | \__/ | \|Core.
 * @: Copyright (C) 2011 by Brayan Narvaez (Prinick) developer of xNova Revolution
 * @: http://www.xnovarevolution.con.ar

 * @package 2Moons
 * @ Slaver <[email protected]>
 * @ 2009 Lucky <[email protected]> (XGProyecto)
 * @ 2011 Slaver <[email protected]> (Fork/2Moons)
 * @ http://www.gnu.org/licenses/gpl.html GNU GPLv3 License
 * @version 1.3 (2011-01-21)
 * @ http://code.google.com/p/2moons/

 * Please do not remove the credits
*/

//SERVER GENERALS
$LNG['Metal']								= 'Metal';
$LNG['Crystal']								= 'Kryształ';
$LNG['Deuterium']							= 'Deuterium';
$LNG['Darkmatter']							= 'Czarna Złoto';
$LNG['Norio']							    = 'Norium';
$LNG['Energy']								= 'Energia';
$LNG['Messages']							= 'Wiadomości';
$LNG['write_message']						= 'Napisz Wiadomość';
$LNG['Raza']                                          = 'Race';
$LNG['Raza_0']                                     = 'Gultra';
$LNG['Raza_1']                                   = 'Voltra';

Plik index.php

	case 'rules' :
		$template->assign_vars(array(
			'rules'				=> $LNG['rules'],
			'rules_overview'	=> $LNG['rules_overview'],
			'rules_info1'		=> sprintf($LNG['rules_info1'], $CONF['forum_url']),
			'rules_info2'		=> $LNG['rules_info2'],
		));
		$template->show('index_rules.tpl');
		break;
	default :
		if ($_POST) {
			$luser = request_var('username', '', UTF8_SUPPORT);
			$lpass = request_var('password', '', UTF8_SUPPORT);
			$luniv = request_var('universe', 1);
			$login = $db->uniquequery("SELECT `id`, `username`, `dpath`, `authlevel`, `id_planet` FROM ".USERS." WHERE `username` = '".$db->sql_escape($luser)."' AND `universe` = '".$luniv."' AND `password` = '".md5($lpass)."';");
			
			if (isset($login)) {
				session_start();
				$SESSION       	= new Session();
				$SESSION->CreateSession($login['id'], $login['username'], $login['id_planet'], $luniv, $login['authlevel'], $login['dpath']);

				redirectTo("game.php?page=overview");
			} else {
				redirectTo('index.php?code=1');
			}
		} else {
			$AvailableUnis[$CONF['uni']]	= $CONF['uni_name'].($CONF['game_disable'] == 0 ? $LNG['uni_closed'] : '');
			$Query	= $db->query("SELECT `uni`, `game_disable`, `uni_name` FROM ".CONFIG." WHERE `uni` != '".$UNI."' ORDER BY `uni` ASC;");
			while($Unis	= $db->fetch_array($Query)) {
				$AvailableUnis[$Unis['uni']]	= $Unis['uni_name'].($Unis['game_disable'] == 0 ? $LNG['uni_closed'] : '');
			}
			ksort($AvailableUnis);
			$Code	= request_var('code', 0);
			if(!empty($Code)) {
				$template->assign_vars(array(
					'code'					=> $LNG['login_error_'.$Code],
				));
			}
			$year = date(Y);
			$asd = "xNova Revolution";
			$template->assign_vars(array(
				'AvailableUnis'			=> $AvailableUnis,
				'welcome_to'			=> $LNG['welcome_to'],
				'server_description'	=> sprintf($LNG['server_description'], $CONF['game_name']),
				'server_infos'			=> $LNG['server_infos'],
				'login'					=> $LNG['login'],
				'login_info'			=> sprintf($LNG['login_info'], $LANG->getUser()),
				'user'					=> $LNG['user'],
				'pass'					=> $LNG['pass'],
				'lostpassword'			=> $LNG['lostpassword'],
				'register_now'			=> $LNG['register_now'],
				'screenshots'			=> $LNG['screenshots'],
				'chose_a_uni'			=> $LNG['chose_a_uni'],
				'universe'			 	=> $LNG['universe'],
				'year'				    => $year,
				'asd'                   => $asd,
			));
			$template->show('index_body.tpl');
		}
	break;
}
?>

Plik GeneralFunction.php

function floattostring($Numeric, $Pro = 0, $Output = false){
	return ($Output) ? str_replace(",",".", sprintf("%.".$Pro."f", $Numeric)) : sprintf("%.".$Pro."f", $Numeric);
}

function CheckModule($ID)
{
	if(!isset($GLOBALS['CONF']['moduls'][$ID])) 
		$GLOBALS['CONF']['moduls'][$ID] = 1;
	
	return ((!isset($_SESSION) || $_SESSION['authlevel'] == AUTH_USR) && $GLOBALS['CONF']['moduls'][$ID] == 0) ? true : false;
}

function redirectTo($URL)
{
	@session_write_close();
	if($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1')
		header('HTTP/1.1 302 Found');
	
	header('Location: '.PROTOCOL.$_SERVER['HTTP_HOST'].HTTP_ROOT.$URL);
	exit;
}

function ClearCache()
{
	$DIRS	= array('cache/');
	foreach($DIRS as $DIR) {
		$FILES = array_diff(scandir($DIR), array('..', '.', '.htaccess'));
		foreach($FILES as $FILE) {
			if(is_dir(ROOT_PATH.$DIR.$FILE))
				continue;
				
			unlink(ROOT_PATH.$DIR.$FILE);
		}
	}
}

function MaxPlanets($Level)
{
	$MaxPlanets = STANDART_PLAYER_PLANETS + ceil($Level / 2) * PLANETS_PER_TECH;
	return MAX_PLANETS == -1 ? $MaxPlanets : min($MaxPlanets, MAX_PLANETS);
}

function GetCrons()
{
	global $CONF;
	$Crons	= '';
	$Crons .= TIMESTAMP >= ($CONF['stat_last_update'] + (60 * $CONF['stat_update_time'])) ? '<img src="./cronjobs.php?cron=stats" alt="" height="1" width="1">' : '';
	
	$Crons .= $CONF['ts_modon'] == 1 && TIMESTAMP >= ($CONF['ts_cron_last'] + 60 * $CONF['ts_cron_interval']) ? '<img src="./cronjobs.php?cron=teamspeak" alt="" height="1" width="1">' : '';
	
	$Crons .= TIMESTAMP >= ($CONF['stat_last_db_update'] + 86400) ? '<img src="./cronjobs.php?cron=daily" alt="" height="1" width="1">' : ''; //Daily Cronjob
	
	return $Crons;
}

function r_implode($glue, $pieces)
{
	$retVal	= array();
	foreach($pieces as $r_pieces)
	{
		$retVal[] = is_array($r_pieces) ? r_implode($glue, $r_pieces) : $r_pieces;
	}
	return implode($glue, $retVal);
} 

function allowedTo($side)
{
	return ($GLOBALS['USER']['authlevel'] == AUTH_ADM || $GLOBALS['USER']['rights'][$side] == 1);
}

if(!function_exists('ctype_alnum')):

function ctype_alnum($test){
	return preg_match("/[^A-z0-9_\- ]/", $test) != 1;
}

endif;
?>

Kocham mpcforum.pl!!!

18706.png

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...