Hallo danke fur die schnelle antwort !
<?php
/**
* pragmaMx Content Management System
* Copyright (c) 2006 pragmaMx Dev Team - http://pragmaMx.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* $Source: /home/www/dps3311/home/cvsroot/pragmamx/html/modules/Your_Account/navbar.php,v $
* $Revision: 1.5.4.1 $
* $Author: tora60 $
* $Date: 2006/09/22 21:36:42 $
*/
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");
mxGetLangfile("Your_Account");
require_once("includes/mx_userfunctions.php");
// // mit dieser Konstanten kann die maximale Anzahl
// // der Menüpunkte nebeneinander verändert werden
if (!defined("YA_NAVITEMSPERROW")) define("YA_NAVITEMSPERROW", 6);
// //////////////////////////////////////////////////
function nav($main_up = 0)
{
if (!MX_IS_USER) return;
// / Definition der Menüpunkte
if (function_exists('nav_option')) {
$item = nav_option();
} else {
$item[] = "<a href=\"modules.php?name=Your_Account&op=edituser\">" . mxCreateImage("images/menu/info.gif", _CHANGEYOURINFO) . "<br>" . _CHANGEYOURINFO . "</a>";
$item[] = "<a href=\"modules.php?name=Your_Account&op=edithome\">" . mxCreateImage("images/menu/home.gif", _CHANGEHOME) . "<br>" . _CHANGEHOME . "</a>";
if (mxModuleAllowed("UserGuest")) { // falls gaestebuch vorhanden
$item[] = "<a href=\"modules.php?name=UserGuest&op=view\">" . mxCreateImage("images/menu/guestbook.gif", _GUESTBOOKVIEW) . "<br>" . _GUESTBOOKVIEW . "</a>";
}
if (mxModuleAllowed("Private_Messages")) {
$item[] = "<a href=\"modules.php?name=Private_Messages\">" . mxCreateImage("images/menu/comments.gif", _PRIVATEMESSAGES) . "<br>" . _PRIVATEMESSAGES . "</a>";
}
if (mxModuleAllowed("Avatar")) { // falls Avatar Upload Modul vorhanden
$item[] = "<a href=\"modules.php?name=Avatar\">" . mxCreateImage("images/menu/avatar.gif", _AVATARUPLOAD) . "<br>" . _AVATARUPLOAD . "</a>";
}
if (mxModuleAllowed("User_Fotoalbum")) { // falls User Fotoalbum Modul vorhanden
$item[] = "<a href=\"modules.php?name=User_Fotoalbum\">" . mxCreateImage("images/menu/fotoalbum.gif", _FOTOALBUM2) . "<br>" . _FOTOALBUM2 . "</a>";
}
$item[] = "<a href=\"modules.php?name=Your_Account&op=logout\">" . mxCreateImage("images/menu/exit.gif", _LOGOUTEXIT) . "<br>" . _LOGOUTEXIT . "</a>";
// $item[] = "<a href=\"modules.php?name=Your_Account&op=delete\">".mxCreateImage("images/menu/delete.gif", eregi_replace("<br>"," ",_DELETEACCT))."<br>"._DELETEACCT."</a>";
}
// / Ausgabegenerierung
$c_items = count($item);
if ($c_items == 0) {
return;
} else if ($c_items <= YA_NAVITEMSPERROW) {
$tdwidth = intval(100 / $c_items);
$menu = "<tr valign=\"top\">
<td width=\"" . $tdwidth . "%\" align=\"center\"><span class=\"tiny\">" . (implode("</span></td>\n<td width=\"" . $tdwidth . "%\" align=\"center\"><span class=\"tiny\">", $item)) . "</span></td>
</tr>\n";
} else {
$trows = ceil($c_items / YA_NAVITEMSPERROW);
$tcols = ceil($c_items / $trows);
$off = 0;
$len = $tcols;
$menu = "";
for($i = 1; $i <= $trows; $i++) {
$xitem[$i] = array_slice($item, $off, $len);
$icount = count($xitem[$i]);
$tdwidth = (100 / $icount);
$off = $off + $len;
if ($icount < $tcols) $menu .= "</table>\n<table border=\"0\" width=\"100%\" align=\"center\">";
$menu .= "<tr valign=\"top\">
<td width=\"" . $tdwidth . "%\" align=\"center\"><span class=\"tiny\">" . (implode("</span></td>\n<td width=\"" . $tdwidth . "%\" align=\"center\"><span class=\"tiny\">", $xitem[$i])) . "</span></td>
</tr>\n";
}
// print $c_items."<br>".$trows."<br>".$tcols;
}
// / die Ausgabe
echo "<div align='center'>";
echo "<span class=\"title\">" . _THISISYOURPAGE . "</span><br><br>";
echo "<table border=\"0\" width=\"100%\" align=\"center\">" . $menu . "</table>";
if (empty($main_up)) {
echo "<br>[ <a href=\"modules.php?name=Your_Account\">" . _RETURNACCOUNT . "</a> ]\n";
}
echo "</div>";
}
?>
Scheint alles in ordnung zu sein oder ?