forked from ogamespec/ogame-opensource
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.php
18 lines (16 loc) · 1.14 KB
/
common.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
function mainmenu ($select)
{
if ($select == 'home') echo " <div class=\"menupoint\">" . loca("MENU_START") . "</div>\n";
else echo " <a href=\"home.php\">" . loca("MENU_START") . "</a>\n";
if ($select == 'about') echo " <div class=\"menupoint\">" . loca("MENU_ABOUT") . "</div>\n";
else echo " <a href=\"about.php\">" . loca("MENU_ABOUT") . "</a>\n";
if ($select == 'preview') echo " <div class=\"menupoint\">" . loca("MENU_PICTURES") . "</div>\n";
else echo " <a href=\"screenshots.php\">" . loca("MENU_PICTURES") . "</a>\n";
if ($select == 'reg') echo ' <div class="menupoint">' . loca("MENU_REG") . "</div>\n";
else echo " <a href=\"register.php\">" . loca("MENU_REG") . "</a>\n";
if ($select == 'board') echo ' <div class="menupoint">' . loca("MENU_BOARD") . "</div>\n";
else echo " <a href=\"" . loca("BOARDADDR") . "\" target=_top>" . loca("MENU_BOARD") . "</a>\n";
if ($select == 'wiki') echo ' <div class="menupoint">' . loca("MENU_WIKI") . "</div>\n";
else echo " <a href=\"" . loca("WIKIADDR") . "\" target=_top>" . loca("MENU_WIKI") . "</a>\n";
}