This version of AoWoW is based on https://github.com/udw/udwbase and is not yet usable. An initial amount of testing has been finished, and you can import the aowow.sql database into your world database, and create a local copy of config.php.in as config.php to test this version. FirePHP (http://firephp.org/) has been added for testing purposes. Signed-off-by: TheLuda <theluda@getmangos.com>
41 lines
878 B
PHP
41 lines
878 B
PHP
<?php
|
|
|
|
/*
|
|
* UDWBase: WOWDB Web Interface
|
|
*
|
|
* © UDW 2009-2011
|
|
*
|
|
* Released under the terms and conditions of the
|
|
* GNU General Public License (http://gnu.org).
|
|
*
|
|
*/
|
|
|
|
$board = $_REQUEST['board'];
|
|
$lang = $_SESSION['locale'];
|
|
|
|
if ($board < 0) {
|
|
switch ($lang) :
|
|
// english
|
|
case 0:
|
|
switch ($board) :
|
|
// tools
|
|
case -1:
|
|
header('Location: http://yourboardurl');
|
|
break;
|
|
endswitch;
|
|
endswitch;
|
|
}
|
|
else
|
|
switch ($lang) :
|
|
//english
|
|
case 0:
|
|
//wow general
|
|
switch ($board):
|
|
case 0:
|
|
header('Location: http://yourboardurl');
|
|
break;
|
|
endswitch;
|
|
default:
|
|
header('Location: Location: http://yourboardurl');
|
|
break;
|
|
endswitch; |