Hallo liebe Leute,
ich versuche zu prüfen, ob man mit etwas anderem als iExplorer die Seite aufruft, aber irgentwas mit dem Synthax funzt nicht:
 
	
							
						
					ich versuche zu prüfen, ob man mit etwas anderem als iExplorer die Seite aufruft, aber irgentwas mit dem Synthax funzt nicht:
PHP-Code:
	
	
<?php
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') == TRUE) //wenn iExplorer
{
session_start();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
 
$username = $_POST['username'];
$password = $_POST['password'];
$hostname = $_SERVER['HTTP_HOST'];
$path = dirname($_SERVER['PHP_SELF']);
 
 
if ( 
($username=="ABC" AND $password=="DEF")
  )
 
 
 
 
{
$_SESSION['user'] = $_POST['username']; 
if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1') {
if (php_sapi_name() == 'cgi') {
header('Status: 303 See Other');
}
else {
header('Location: http://'.$hostname.($path == '/' ? '' : $path).'/index2.php');
}
}
header('Location: http://'.$hostname.($path == '/' ? '' : $path).'/content/menue.php');
exit;
}
}
?>
Der Seiteninhalt
<?
}
?>
<?
else
{
echo 'Bitte benutzen Sie Internet Explorer.';
}
?>
 
          



 habs schon versucht...
 habs schon versucht...
Kommentar