forked from jagodragon/udwbase
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathforum.php
More file actions
96 lines (93 loc) · 2.87 KB
/
forum.php
File metadata and controls
96 lines (93 loc) · 2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?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 ($UDWBaseconf['forumextern']==1)
{
if ($board==-1)
header('Location: '.$UDWBaseconf['forum'].''.$UDWBaseconf['addon'].'');
if ($board==0)
header('Location: '.$UDWBaseconf['forum'].'');
if ($board==1)
header('Location: '.$UDWBaseconf['forum'].''.$UDWBaseconf['wowgeneral'].'');
if ($board==2)
header('Location: '.$UDWBaseconf['forum'].''.$UDWBaseconf['wowhelp'].'');
if ($board==3)
header('Location: '.$UDWBaseconf['forum'].''.$UDWBaseconf['dk'].'');
if ($board==4)
header('Location: '.$UDWBaseconf['forum'].''.$UDWBaseconf['druid'].'');
if ($board==5)
header('Location: '.$UDWBaseconf['forum'].''.$UDWBaseconf['hunter'].'');
if ($board==6)
header('Location: '.$UDWBaseconf['forum'].''.$UDWBaseconf['mage'].'');
if ($board==7)
header('Location: '.$UDWBaseconf['forum'].''.$UDWBaseconf['pally'].'');
if ($board==8)
header('Location: '.$UDWBaseconf['forum'].''.$UDWBaseconf['priest'].'');
if ($board==9)
header('Location: '.$UDWBaseconf['forum'].''.$UDWBaseconf['rogue'].'');
if ($board==10)
header('Location: '.$UDWBaseconf['forum'].''.$UDWBaseconf['shammy'].'');
if ($board==11)
header('Location: '.$UDWBaseconf['forum'].''.$UDWBaseconf['warlock'].'');
if ($board==12)
header('Location: '.$UDWBaseconf['forum'].''.$UDWBaseconf['warrior'].'');
if ($board==13)
header('Location: '.$UDWBaseconf['forum'].''.$UDWBaseconf['raids'].'');
if ($board==14)
header('Location: '.$UDWBaseconf['forum'].''.$UDWBaseconf['pvpforum'].'');
if ($board==15)
header('Location: '.$UDWBaseconf['forum'].''.$UDWBaseconf['profchat'].'');
if ($board==16)
header('Location: '.$UDWBaseconf['forum'].''.$UDWBaseconf['newslink'].'');
if ($board==17)
header('Location: '.$UDWBaseconf['forum'].''.$UDWBaseconf['wowgeneral'].'');
}
else
{
/* TODO: Need to add the internal forum functionality
Below is what UDW already had in it and this
package did not include their forum code so
it still needs to be writen or some one who
knows it can tell me where to find it and
I'll add it with credit.
(I don't have the required ability for this!) */
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;
}
}
?>