Location: PHPKode > projects > Alliances Manager > libs/menu.php
<?php
/*
 *  Alliances Manager (Gestionador de Alianzas) - Travian
 *  Copyright (C) 2008-12  Viva Mayer, Francisco Mesías <hide@address.com>
 *
 *  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 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

switch ($top) {
	case 'panel': echo "<a href=\"?ctrl=Tropas&mod=tropas\">".self::$texto->get('LAT02')."</a>";
			 	  echo "<a href=\"?ctrl=Aldeas&mod=aldeas\">".self::$texto->get('LAT03')."</a>";
				  echo "<a href=\"?ctrl=Grupo&mod=compas\">".self::$texto->get('LAT04')."</a>";
				  echo "<a href=\"?ctrl=Usuario&mod=changepass\">".self::$texto->get('LAT05')."</a>";
				  echo "<a href=\"?ctrl=Usuario&mod=salir\">".self::$texto->get('LAT01')."</a>";
			 			break;
	case 'admin': echo "<a href=\"?ctrl=Admin&mod=miembros\">".self::$texto->get('LAT06')."</a>";
				  if ($_SESSION['gestion'] == 2)
					  echo "<a href=\"?ctrl=Admin&mod=nuevos\">".self::$texto->get('LAT07')."</a>";
				  echo "<a href=\"?ctrl=Grupo&mod=resumen\">".self::$texto->get('LAT08')."</a>";
				  if ($_SESSION['gestion'] == 2)
					  echo "<a href=\"?ctrl=Admin&mod=permisos\">".self::$texto->get('LAT09')."</a>";
			  	  echo "<a href=\"?ctrl=Usuario&mod=salir\">".self::$texto->get('LAT01')."</a>";
				  		break;
	case 'informes': echo "<a href=\"?ctrl=Admin&mod=resumen\">".self::$texto->get('LAT10')."</a>";
			  		 echo "<a href=\"?ctrl=Tropas&mod=todas\">".self::$texto->get('HEAD23')."</a>";
			  		 echo "<a href=\"?ctrl=Aldeas&mod=resumen\">".self::$texto->get('HEAD22')."</a>";
			  		 echo "<a href=\"?ctrl=Usuario&mod=salir\">".self::$texto->get('LAT01')."</a>";
						break;
	case 'buscador': 	break; // No tiene menu
	case 'extras': echo "<a href=\"?ctrl=Extras&mod=npc\">".self::$texto->get('HEAD18')."</a>";
			 	   echo "<a href=\"?ctrl=Usuario&mod=salir\">".self::$texto->get('LAT01')."</a>";
						break;
	case 'ayuda': echo "<a href=\"?ctrl=App&mod=FAQ&id=aldeas\">".self::$texto->get('LAT11')."</a>";
			  	  echo "<a href=\"?ctrl=App&mod=FAQ&id=grupos\">".self::$texto->get('LAT12')."</a>";
				  echo "<a href=\"?ctrl=Usuario&mod=salir\">".self::$texto->get('LAT01')."</a>";
						break;
	default: echo "<a href=\"index.php?crtl=Usuario&mod=login\">".self::$texto->get('LAT13')."</a>";
			 echo "<a href=\"index.php?crtl=Usuario&mod=registro\">".self::$texto->get('LAT14')."</a>";
				  break;
   }
unset($top);
?>
Return current item: Alliances Manager