Hallo, Liebe MTA-SA Community.
Ich habe ein Problem mit include!
In der config.php sind Website Title, Favicon, ein Background Changer
und die möchte ich jetzt includen. doch es funktioniert einfach nicht.
Code index.php :
<?
include 'config.php'; // Config ist in keinem Verzeichnis.
<title><? echo $Title; ?></title>
<link href="<? echo $Url; ?>/cdn/css/bootstrap.min.css" rel="stylesheet">
<link href="<? echo $Url; ?>/css/index.css" rel="stylesheet">
<link href="<? echo "$Url/graph/$Favicon"; ?>" rel="shortcut icon" type="image/png">
<style>
body {
background: #EBEBEB url("<? echo $BackgroundGenerator; ?>");
margin: 0;
padding: 0;
height: 100%;
}
</style>
</head>
<body>
<div id="wrapper">
<div class="top">
<div class="logo"></div>
<div class="navbar">
<a href="<? echo $ForumUrl; ?>">Forum</a>
</div>
</div>
</div>
<script src="$Url/cdn/js/bootstrap.min.js"></script>
</body>
</html>
Code config.php :
<?
// MySQLi Datenbank Verbindung
$0e0host0e0 = "localhost"; // Host
$0e0username0e0 = ""; // User
$0e0password0e0 = ""; // Passwort
$0e0database0e0 = ""; // Datenbank
$ConnectMe = mysqli_connect($0e0host0e0, $0e0username0e0, $0e0password0e0, $0e0database0e0);
// Controlpanel Konfiguration
$Url = "http://www.dispine.com"; // Server Url
$Title = "Controlpanel"; // Website Titel
$ForumUrl = "test.com"; // Forum Url
$Favicon = ""; // Website Favicon
// Controlpanel Background Changer
// © Copyright [url='http://www.Dispine.com']http://www.Dispine.com 2015 @ Coder: ★♣ Pokerface ♣★777★
Bitte um hilfe bin verzweifelt *8|* *:|*