Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/09/2011, 17:46
Avatar de anewryzm
anewryzm
 
Fecha de Ingreso: septiembre-2011
Mensajes: 47
Antigüedad: 12 años, 7 meses
Puntos: 7
Respuesta: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING

Este es el código

Código PHP:
# CHECK SESSEION COOKIE
If($_SERVER[“SERVER_NAME”] != 'localhost'){
    
    if(
$_SERVER["REQUEST_METHOD"] == 'GET'){
        
        if(
strpos($_SERVER["HTTP_REFERER"], 'google') !== false){
            if( isset(
$_COOKIE['r']) || isset($_GET['r']) ){
                
setcookie('r'''time()-3600);
                
header("HTTP/1.1 301 Moved Permanently");
                
header("Location: http://{$_SERVER['SERVER_NAME']}/");
                exit;
            }
        }
        
    }

}

# FUNCTIONS
    
require_once(/includes/php/funkcje.inc.php');
    
# DOWN FUNCTION    
    register_shutdown_function('
_SHUTDOWN);