Jezz hab ich das von hen! .
Mit 127.0.0.1/install funktioniert es nicht fehler..
Xampp an Server an .
Jez ruf ich die Homepage einfach über meine Hamachi IP auf ,
und dann steht da das :
Quote:
index.php Text :
PHP Code:
<?PHP
if(!file_exists('./inc/config.inc.php'))
{
header('Location: install.php');
}
session_name("m2hp");
session_start();
require("./inc/config.inc.php");
require("./inc/rights.inc.php");
require("./inc/functions.inc.php");
$sqlHp = mysql_connect(SQL_HP_HOST, SQL_HP_USER, SQL_HP_PASS);
$sqlServ = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS);
if(!is_resource($sqlServ) OR !is_resource($sqlHp)) {
exit("Verbindung zur Datenbank fehlgeschlagen: Abbruch");
}
require("./inc/head.inc.php");
echo '<?xml version="1.0"?>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title><?PHP echo $serverSettings['titel_page']; ?></title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<script src="javascript.js" type="text/javascript" /></script>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<div id="container">
<div id="navi">
<?PHP include("./inc/navi.inc.php"); ?>
</div>
<div id="head"><h1><?PHP echo $serverSettings['titel']; ?></h1></div>
<div id="content">
<?PHP
if(isset($_GET['s']) && !empty($_GET['s']))
{
if(file_exists(realpath('./pages/')."/".$_GET['s'].".php"))
{
include(realpath('./pages/')."/".$_GET['s'].".php");
}
else {
include(realpath('./pages/').'/home.php');
}
} else
{
include(realpath('./pages/').'/home.php');
}
?>
<?PHP include("./inc/sidebar.inc.php"); ?>
</div>
</div>
<div id="bgLine"></div>
</body>
</html>
<?PHP
mysql_close();
?>
Serverdaten:deleted by saaja