Грешка в сесийте

liberal

Registered
Значи качих RogueBattle на хостинг.Обаче ми дава ето тази грешка с сесиите.

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /www/my32.net/h/e/r/heroes/htdocs/index.php:1) in /www/my32.net/h/e/r/heroes/htdocs/includes/inc-header.php on line 13

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/my32.net/h/e/r/heroes/htdocs/index.php:1) in /www/my32.net/h/e/r/heroes/htdocs/includes/inc-header.php on line 13


а това е кода от inc-header.php

Код:
session_start();
if ( !$_SESSION['refid'] ) {
    $_SESSION['refid'] = floor( $_GET['u'] );
    $news = 1;
}
$thecode = $_SESSION['ht_mem'];
$result = $db->query( "SELECT uID FROM users_online WHERE uCode=\"$thecode\"" );
$elcode = $db->fetch( $result );

$ht_mem = $thecode;

$result = $db->query( "SELECT * FROM users WHERE uID=\"" . $elcode['uID'] . "\"" );
$user = $db->fetch( $result );

if ( !$user && $isadmin == "*" ) {
    header( "Location: ../index.php" );
} elseif ( $user && $isadmin != "*" && $isadmin != "y" ) {
    header( "Location: play/index.php" );
} elseif ( $_GET[u] && $isadmin != "*" && $isadmin != "y" ) {
    header( "Location: " . $SETTINGS['game_url'] . "register.php" );
}

Някой ако може да помогне.Мерси предварително :)
 

Back
Горе