13.01.2008, 17:37
Achso, daran wirds wahrscheinlich liegen..An der global.php
Edit:
Leider klappts ned..Ich poste mal meine ganze index.php..
Und ich bekomm folgenden Fehler:
Edit:
Leider klappts ned..Ich poste mal meine ganze index.php..
PHP-Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="http://www.kh-unlimited.pytalhost.net/style.css" type="text/css" />
<title>KH-Unlimited » Index</title>
<script src="menu.js" type="text/javascript"></script>
</head>
<body>
<table class="layout_table">
<tr>
<? include("header.php") ?>
</tr>
<tr>
<? include("navi_up.php") ?>
</tr>
<tr>
<? include("navi.php") ?>
<td class="layout_content">
<h1>Testüberschrift</h1>
<?php
// Globales
define("KILL_GLOBALS", 1);
define("NO_ONLINE", 1);
define("IN_MYBB", 1);
require("board/global.php");
// Anzahl der Themen
$limit = "5";
// Überlange Themen kürzen (0 = Nein, x = Anzahl der auszugebenden Zeichen)
$length = "0";
### Konfiguration ###
//Nicht sichtbare Foren ausschließen
$unviewable = get_unviewable_forums();
if($unviewable)
{
$unviewwhere = "AND fid NOT IN (".$unviewable.")";
}
// Head ausgeben
echo "<table><tr><th colspan=\"4\">neueste Newsmeldungen</th></tr><tr><td>Forum</td><td>Benutzer</td><td>Datum</td><td>Thema</td></tr>";
// Themen aus Datenbank holen
$query = $db->
query ("SELECT subject,username,uid,tid,fid,dateline FROM ".TABLE_PREFIX."threads WHERE visible='1' AND fid = '2' ORDER BY tid DESC LIMIT 0,".$limit."");
{
// Forum ermitteln
$query2 = $db->query ("SELECT name FROM ".TABLE_PREFIX."forums WHERE fid = '".$posts['fid']."'");
$forums = $db->fetch_array($query2);
// Betreff kürzen?
if ($length != 0)
{
if (strlen($threads['subject']) > $length)
{
$posts['subject'] = substr($posts['subject'],0,$length) . "...";
}
}
// Daten ausgeben
echo "<tr><font size=\"2\"><td><a href=\"".$mybb->settings['bburl']."/forumdisplay.php?fid=".$posts['fid']."\">".htmlspecialchars($forums['name'])."</a></td>
<td><a href=\"".$mybb->settings['bburl']."/member.php?action=profile&uid=".$posts['uid']."\">".htmlspecialchars($posts['username'])."</a></td>
<td>".htmlentities(my_date($mybb->settings['dateformat'], $posts['dateline'])).", ".htmlspecialchars(my_date($mybb->settings['timeformat'], $posts['dateline']))."</td>
<td><a href=\"".$mybb->settings['bburl']."/showthread.php?tid=".$posts['tid']."\">".htmlspecialchars($posts['subject'])."</a></td></tr>";
}
// Footer ausgeben
echo "</table>";
chdir("../");
?>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec quis metus in metus iaculis pretium. Praesent malesuada, arcu in mollis commodo, lorem nunc adipiscing lacus, eu feugiat est mauris sit amet ipsum. Fusce pede. Praesent sit amet diam pharetra nisi cursus tempor. Aliquam mollis facilisis enim. Morbi non eros at mi sodales pellentesque. Praesent eget sapien. Fusce vitae ligula et sapien blandit porta. Morbi erat lacus, mattis eu, pellentesque quis, condimentum ac, eros. Pellentesque felis eros, laoreet non, dignissim consectetuer, posuere eget, augue. Mauris luctus turpis vitae purus. Nullam cursus, ipsum quis volutpat scelerisque, tellus tellus tempus risus, ac ornare lorem dolor eget turpis. Phasellus nisi dui, tempus ac, iaculis vitae, ultricies aliquam, massa. Curabitur vitae nunc. Nullam sapien libero, pulvinar sed, volutpat ac, euismod id, felis.</p>
<p>Maecenas condimentum. Donec iaculis velit ut nunc. Suspendisse pretium pede vitae massa. Curabitur mattis. In metus. Aliquam eget neque. Proin enim ante, mollis in, ullamcorper sed, pulvinar eu, nulla. Suspendisse magna. Nunc eleifend. Cras turpis mauris, imperdiet nec, imperdiet ut, blandit ac, pede. Nullam et massa. Sed semper mauris at tortor.</p>
<p>Donec nulla. Nullam nisl. Vivamus dignissim rutrum nunc. Pellentesque metus elit, viverra sed, luctus eu, viverra quis, velit. Sed pellentesque arcu sed sapien. Nulla pellentesque. Phasellus molestie gravida justo. Curabitur eget diam. Cras at pede sit amet magna dignissim fermentum. Fusce lobortis hendrerit neque. Sed cursus ante eget elit.</p>
<p>Nam semper commodo mauris. Sed vulputate imperdiet arcu. Sed elementum sapien vel pede. Nulla elementum nibh sed felis. Aliquam at enim. Nunc pulvinar aliquam elit. Ut eu tortor. Donec lacinia. Nunc ac eros ac diam volutpat ullamcorper. Ut nec nisi.</p>
<p>Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; In hac habitasse platea dictumst. Donec sodales tincidunt pede. Aenean eu nibh. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Cras ut elit a justo imperdiet eleifend. Donec luctus dui pretium pede. Duis velit lorem, pharetra a, molestie at, consectetuer at, ipsum. Aenean adipiscing, eros in molestie dictum, nulla dolor cursus magna, sit amet sollicitudin elit nisl auctor lorem. Etiam euismod. Ut mauris orci, sodales nec, facilisis ac, porttitor at, nulla. Sed interdum enim nec metus. Nullam sed nisi. Donec ac lectus. Donec id dolor rhoncus sem mollis dignissim.</p>
</td>
</tr>
<tr>
<? include("footer.php") ?>
</tr>
</table>
</body>
</html>
Und ich bekomm folgenden Fehler:
Zitat:Warning: require_once() [function.require-once]: Unable to access ./inc/init.php in /srv/www/httpd/phost/k/net/pytalhost/kh-unlimited/web/board/global.php on line 13
Warning: require_once(./inc/init.php) [function.require-once]: failed to open stream: No such file or directory in /srv/www/httpd/phost/k/net/pytalhost/kh-unlimited/web/board/global.php on line 13
Fatal error: require_once() [function.require]: Failed opening required './inc/init.php' (include_path='.:/srv/www/httpd/phost/k/net/pytalhost/kh-unlimited/web') in /srv/www/httpd/phost/k/net/pytalhost/kh-unlimited/web/board/global.php on line 13