function nav($main_up = 0) { global $module_name, $articlecomm; $handle = opendir('themes'); while ($file = readdir($handle)) { if (!ereg("[.]", $file)) { $thmcount++; } } closedir($handle); echo "<table border=\"0\" width=\"100%\" align=\"center\"><tr><td width=\"10%\">"; $menuimg = menuimg("info.gif"); echo "<font class=\"content\">" . "<center><a href=\"modules.php?name=Your_Account&op=edituser\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _CHANGEYOURINFO . "\" title=\"" . _CHANGEYOURINFO . "\"></a><br>" . "<a href=\"modules.php?name=Your_Account&op=edituser\">" . _CHANGEYOURINFO . "</a>" . "</center></font></td>"; $menuimg = menuimg("home.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Your_Account&op=edithome\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _CHANGEHOME . "\" title=\"" . _CHANGEHOME . "\"></a><br>" . "<a href=\"modules.php?name=Your_Account&op=edithome\">" . _CHANGEHOME . "</a>" . "</center></form></font></td>"; if ($articlecomm == 1) { $menuimg = menuimg("comments.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Your_Account&op=editcomm\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _CONFIGCOMMENTS . "\" title=\"" . _CONFIGCOMMENTS . "\"></a><br>" . "<a href=\"modules.php?name=Your_Account&op=editcomm\">" . _CONFIGCOMMENTS . "</a>" . "</center></form></font></td>"; } if (is_active("WebMail")) { $menuimg = menuimg("mail.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=WebMail\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _WEBMAIL . "\" title=\"" . _WEBMAIL . "\"></a><br>" . "<a href=\"modules.php?name=WebMail\">" . _WEBMAIL . "</a>" . "</center></form></font></td>"; } if (is_active("Private_Messages")) { $menuimg = menuimg("messages.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Private_Messages\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _PRIVATEMESSAGES . "\" title=\"" . _PRIVATEMESSAGES . "\"></a><br>" . "<a href=\"modules.php?name=Private_Messages\">" . _MESSAGES . "</a>" . "</center></form></font></td>"; } if (is_active("Journal")) { $menuimg = menuimg("journal.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Journal&file=edit\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _JOURNAL . "\" title=\"" . _JOURNAL . "\"></a><br>" . "<a href=\"modules.php?name=Journal&file=edit\">" . _JOURNAL . "</a>" . "</center></form></font></td>"; } //FIX:DOMSNITT //if ($thmcount > 1) { if ($thmcount > 1000) { //END-OF-FIX $menuimg = menuimg("themes.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Your_Account&op=chgtheme\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _SELECTTHETHEME . "\" title=\"" . _SELECTTHETHEME . "\"></a><br>" . "<a href=\"modules.php?name=Your_Account&op=chgtheme\">" . _SELECTTHETHEME . "</a>" . "</center></form></font></td>"; } $menuimg = menuimg("exit.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Your_Account&op=logout\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _LOGOUTEXIT . "\" title=\"" . _LOGOUTEXIT . "\"></a><br>" . "<a href=\"modules.php?name=Your_Account&op=logout\">" . _LOGOUTEXIT . "</a>" . "</center></form></font>"; echo "</td></tr></table>"; if ($main_up != 1) { echo "<br><center>[ <a href=\"modules.php?name=Your_Account\">" . _RETURNACCOUNT . "</a> ]</center>\n"; } }
function nav($main_up = 0) { global $module_name, $articlecomm, $db, $prefix; $row = $db->sql_fetchrow($db->sql_query("SELECT overwrite_theme from " . $prefix . "_config")); $overwrite_theme = intval($row['overwrite_theme']); $thmcount = 0; $handle = opendir('themes'); while ($file = readdir($handle)) { if (!ereg("[.]", $file)) { $thmcount++; } } closedir($handle); echo "<table border=\"0\" width=\"100%\" align=\"center\"><tr><td width=\"10%\">"; $menuimg = menuimg("info.gif"); echo "<font class=\"content\">" . "<center><a href=\"modules.php?name=Your_Account&op=edituser\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _CHANGEYOURINFO . "\" title=\"" . _CHANGEYOURINFO . "\"></a><br>" . "<a href=\"modules.php?name=Your_Account&op=edituser\">" . _CHANGEYOURINFO . "</a>" . "</center></font></td>"; $menuimg = menuimg("home.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Your_Account&op=edithome\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _CHANGEHOME . "\" title=\"" . _CHANGEHOME . "\"></a><br>" . "<a href=\"modules.php?name=Your_Account&op=edithome\">" . _CHANGEHOME . "</a>" . "</center></form></font></td>"; if ($articlecomm == 1) { $menuimg = menuimg("comments.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Your_Account&op=editcomm\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _CONFIGCOMMENTS . "\" title=\"" . _CONFIGCOMMENTS . "\"></a><br>" . "<a href=\"modules.php?name=Your_Account&op=editcomm\">" . _CONFIGCOMMENTS . "</a>" . "</center></form></font></td>"; } if (is_active("Private_Messages")) { $menuimg = menuimg("messages.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Private_Messages\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _PRIVATEMESSAGES . "\" title=\"" . _PRIVATEMESSAGES . "\"></a><br>" . "<a href=\"modules.php?name=Private_Messages\">" . _MESSAGES . "</a>" . "</center></form></font></td>"; } if (is_active("Journal")) { $menuimg = menuimg("journal.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Journal&file=edit\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _JOURNAL . "\" title=\"" . _JOURNAL . "\"></a><br>" . "<a href=\"modules.php?name=Journal&file=edit\">" . _JOURNAL . "</a>" . "</center></form></font></td>"; } if ($thmcount > 1 and $overwrite_theme == 1) { $menuimg = menuimg("themes.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Your_Account&op=chgtheme\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _SELECTTHETHEME . "\" title=\"" . _SELECTTHETHEME . "\"></a><br>" . "<a href=\"modules.php?name=Your_Account&op=chgtheme\">" . _SELECTTHETHEME . "</a>" . "</center></form></font></td>"; } $menuimg = menuimg("exit.gif"); echo "<td width=\"10%\"><font class=\"content\">" . "<center><a href=\"modules.php?name=Your_Account&op=logout\"><img src=\"{$menuimg}\" border=\"0\" alt=\"" . _LOGOUTEXIT . "\" title=\"" . _LOGOUTEXIT . "\"></a><br>" . "<a href=\"modules.php?name=Your_Account&op=logout\">" . _LOGOUTEXIT . "</a>" . "</center></form></font>"; echo "</td></tr></table>"; if ($main_up != 1) { echo "<br><center>[ <a href=\"modules.php?name=Your_Account\">" . _RETURNACCOUNT . "</a> ]</center>\n"; } }