Skip to content

Commit

Permalink
Enhancement (bf2sclone/config): Add HOME_PAGE env var to control ho…
Browse files Browse the repository at this point in the history
…me page
  • Loading branch information
leojonathanoh committed Dec 20, 2023
1 parent 23a38ef commit 5f9b122
Show file tree
Hide file tree
Showing 20 changed files with 100 additions and 87 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/.*
!/.github
!/.vscode
/src/ASP/system/config/config.php.bak
/src/python/bf2/logs/*.log
/src/python/bf2/logs/snapshots/sent/*.txt
Expand Down
5 changes: 4 additions & 1 deletion src/bf2sclone/config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ function defineVar($name, $default) {
defineVar('DBLOGIN', 'admin');
defineVar('DBPASSWORD', 'admin');

// Home page. Possible values: 'currentranking', 'leaderboard', 'my-leaderboard', 'search', 'servers', 'ubar'
defineVar('HOME_PAGE', 'leaderboard');

// Leader board title
defineVar('TITLE', 'BF2S Clone2');
defineVar('TITLE', 'BF2S Clone');

// Refresh time in seconds for stats
defineVar('RANKING_REFRESH_TIME', 600); // -> default: 600 seconds (10 minutes)
Expand Down
7 changes: 6 additions & 1 deletion src/bf2sclone/css/two-tiers.css
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,16 @@ float: left;
}

body.inner #navitems li a {
padding: 0 4px;
margin: 0 2px;
padding: 0 2px;
font-weight: bold;
font-size: 10px;
}

body.inner #navitems li.current a {
border-bottom: 1px dotted #FFEE40;
}

body.inner #getstats {
position: absolute;
top: 33px;
Expand Down
9 changes: 6 additions & 3 deletions src/bf2sclone/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
// IFF PID -> go show stats!
$PID = isset($_GET["pid"]) ? mysqli_real_escape_string($GLOBALS['link'], $_GET["pid"]) : "0";
$SID = isset($_GET["sid"]) ? mysqli_real_escape_string($GLOBALS['link'], $_GET["sid"]) : "0";
$GO = isset($_GET["go"]) ? $_GET["go"] : "0";
$GO = HOME_PAGE;
$GO = isset($_GET["go"]) ? $_GET["go"] : $GO;
$GET = isset($_POST["get"]) ? $_POST["get"] : 0;
$SET = isset($_POST["set"]) ? $_POST["set"] : 0;
$ADD = isset($_GET["add"]) ? $_GET["add"] : 0;
Expand Down Expand Up @@ -342,7 +343,7 @@
/***************************************************************
* SHOW TOP TEN - default
***************************************************************/
else
elseif(!$GO || strcasecmp($GO, 'leaderboard') == 0)
{ // show the top ten

$LASTUPDATE = 0;
Expand All @@ -356,7 +357,7 @@
else
{
$leaders = getTopPlayers();
include( TEMPLATE_PATH .'home.php');
include( TEMPLATE_PATH .'leaderboard.php');

// write cache file
if (isCachedEnabled()) {
Expand All @@ -368,6 +369,8 @@
$template = str_replace('{:LASTUPDATE:}', $LASTUPDATE, $template);
$template = str_replace('{:NEXTUPDATE:}', $NEXTUPDATE, $template);

}else {
die('Invalid page.');
}

// Closing connection
Expand Down
10 changes: 5 additions & 5 deletions src/bf2sclone/template/current-ranking.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@
This page was processed in {:PROCESSED:} seconds.</div>
<ul id="navitems">
<li><a href="'. $ROOT .'">Home</a></li>
<li><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li class="' . ($GO == 'leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'">Leaderboard</a></li>
<li class="' . ($GO == 'servers' ? 'current' : '') . '"><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li class="' . ($GO == 'my-leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li class="' . ($GO == 'currentranking' ? 'current' : '') . '"><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li class="' . ($GO == 'ubar' ? 'current' : '') . '"><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li><a href="http://wiki.bf2s.com/">Wiki</a></li>
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="inner">
<head>
<title>' . esc_attr(TITLE) . '</title>
<title>Leaderboard, ' . esc_attr(TITLE) . '</title>
<link rel="icon" href="'.$ROOT.'favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="'.$ROOT.'favicon.ico" type="image/x-icon">
Expand Down Expand Up @@ -93,11 +93,11 @@
This page was processed in {:PROCESSED:} seconds.</div>
<ul id="navitems">
<li><a href="'. $ROOT .'">Home</a></li>
<li><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li class="' . ($GO == 'leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'">Leaderboard</a></li>
<li class="' . ($GO == 'servers' ? 'current' : '') . '"><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li class="' . ($GO == 'my-leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li class="' . ($GO == 'currentranking' ? 'current' : '') . '"><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li class="' . ($GO == 'ubar' ? 'current' : '') . '"><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li><a href="http://wiki.bf2s.com/">Wiki</a></li>
</ul>
Expand Down
10 changes: 5 additions & 5 deletions src/bf2sclone/template/my-leaderboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@
<div id="footer">This page was processed in {:PROCESSED:} seconds.</div>
<ul id="navitems">
<li><a href="'. $ROOT .'">Home</a></li>
<li><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li class="' . ($GO == 'leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'">Leaderboard</a></li>
<li class="' . ($GO == 'servers' ? 'current' : '') . '"><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li class="' . ($GO == 'my-leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li class="' . ($GO == 'currentranking' ? 'current' : '') . '"><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li class="' . ($GO == 'ubar' ? 'current' : '') . '"><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li><a href="http://wiki.bf2s.com/">Wiki</a></li>
</ul>
Expand Down
10 changes: 5 additions & 5 deletions src/bf2sclone/template/playerstats.php
Original file line number Diff line number Diff line change
Expand Up @@ -1132,11 +1132,11 @@
This page was processed in {:PROCESSED:} seconds.</div>
<ul id="navitems">
<li><a href="'. $ROOT .'">Home</a></li>
<li><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li class="' . ($GO == 'leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'">Leaderboard</a></li>
<li class="' . ($GO == 'servers' ? 'current' : '') . '"><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li class="' . ($GO == 'my-leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li class="' . ($GO == 'currentranking' ? 'current' : '') . '"><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li class="' . ($GO == 'ubar' ? 'current' : '') . '"><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li><a href="http://wiki.bf2s.com/">Wiki</a></li>
</ul>
Expand Down
10 changes: 5 additions & 5 deletions src/bf2sclone/template/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@
<div id="footer">This page was processed in {:PROCESSED:} seconds.</div>
<ul id="navitems">
<li><a href="'. $ROOT .'">Home</a></li>
<li><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li class="' . ($GO == 'leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'">Leaderboard</a></li>
<li class="' . ($GO == 'servers' ? 'current' : '') . '"><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li class="' . ($GO == 'my-leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li class="' . ($GO == 'currentranking' ? 'current' : '') . '"><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li class="' . ($GO == 'ubar' ? 'current' : '') . '"><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li><a href="http://wiki.bf2s.com/">Wiki</a></li>
</ul>
Expand Down
11 changes: 5 additions & 6 deletions src/bf2sclone/template/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,11 @@
This page was processed in {:PROCESSED:} seconds.</div>
<ul id="navitems">
<li><a href="'. $ROOT .'">Home</a></li>
<li><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li class="' . ($GO == 'leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'">Leaderboard</a></li>
<li class="' . ($GO == 'servers' ? 'current' : '') . '"><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li class="' . ($GO == 'my-leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li class="' . ($GO == 'currentranking' ? 'current' : '') . '"><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li class="' . ($GO == 'ubar' ? 'current' : '') . '"><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li><a href="http://wiki.bf2s.com/">Wiki</a></li>
</ul>
Expand Down
10 changes: 5 additions & 5 deletions src/bf2sclone/template/servers.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@
This page was processed in {:PROCESSED:} seconds.</div>
<ul id="navitems">
<li><a href="'. $ROOT .'">Home</a></li>
<li><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li class="' . ($GO == 'leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'">Leaderboard</a></li>
<li class="' . ($GO == 'servers' ? 'current' : '') . '"><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li class="' . ($GO == 'my-leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li class="' . ($GO == 'currentranking' ? 'current' : '') . '"><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li class="' . ($GO == 'ubar' ? 'current' : '') . '"><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li><a href="http://wiki.bf2s.com/">Wiki</a></li>
</ul>
Expand Down
10 changes: 5 additions & 5 deletions src/bf2sclone/template/ubar-badges-sf.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,11 @@
</div> <!-- Page 3 -->
<ul id="navitems">
<li><a href="'. $ROOT .'">Home</a></li>
<li><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li class="' . ($GO == 'leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'">Leaderboard</a></li>
<li class="' . ($GO == 'servers' ? 'current' : '') . '"><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li class="' . ($GO == 'my-leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li class="' . ($GO == 'currentranking' ? 'current' : '') . '"><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li class="' . ($GO == 'ubar' ? 'current' : '') . '"><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li><a href="http://wiki.bf2s.com/">Wiki</a></li>
</ul>
Expand Down
10 changes: 5 additions & 5 deletions src/bf2sclone/template/ubar-badges.php
Original file line number Diff line number Diff line change
Expand Up @@ -886,11 +886,11 @@
</div> <!-- Page 3 -->
<ul id="navitems">
<li><a href="'. $ROOT .'">Home</a></li>
<li><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li class="' . ($GO == 'leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'">Leaderboard</a></li>
<li class="' . ($GO == 'servers' ? 'current' : '') . '"><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li class="' . ($GO == 'my-leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li class="' . ($GO == 'currentranking' ? 'current' : '') . '"><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li class="' . ($GO == 'ubar' ? 'current' : '') . '"><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li><a href="http://wiki.bf2s.com/">Wiki</a></li>
</ul>
Expand Down
10 changes: 5 additions & 5 deletions src/bf2sclone/template/ubar-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@
</div> <!-- Page 3 -->
<ul id="navitems">
<li><a href="'. $ROOT .'">Home</a></li>
<li><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li class="' . ($GO == 'leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'">Leaderboard</a></li>
<li class="' . ($GO == 'servers' ? 'current' : '') . '"><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li class="' . ($GO == 'my-leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li class="' . ($GO == 'currentranking' ? 'current' : '') . '"><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li class="' . ($GO == 'ubar' ? 'current' : '') . '"><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li><a href="http://wiki.bf2s.com/">Wiki</a></li>
</ul>
Expand Down
10 changes: 5 additions & 5 deletions src/bf2sclone/template/ubar-medals-sf.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@
</div> <!-- Page 3 -->
<ul id="navitems">
<li><a href="'. $ROOT .'">Home</a></li>
<li><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li class="' . ($GO == 'leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'">Leaderboard</a></li>
<li class="' . ($GO == 'servers' ? 'current' : '') . '"><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li class="' . ($GO == 'my-leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li class="' . ($GO == 'currentranking' ? 'current' : '') . '"><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li class="' . ($GO == 'ubar' ? 'current' : '') . '"><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li><a href="http://wiki.bf2s.com/">Wiki</a></li>
</ul>
Expand Down
10 changes: 5 additions & 5 deletions src/bf2sclone/template/ubar-medals.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,11 +427,11 @@
</div> <!-- Page 3 -->
<ul id="navitems">
<li><a href="'. $ROOT .'">Home</a></li>
<li><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li class="' . ($GO == 'leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'">Leaderboard</a></li>
<li class="' . ($GO == 'servers' ? 'current' : '') . '"><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li class="' . ($GO == 'my-leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li class="' . ($GO == 'currentranking' ? 'current' : '') . '"><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li class="' . ($GO == 'ubar' ? 'current' : '') . '"><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li><a href="http://wiki.bf2s.com/">Wiki</a></li>
</ul>
Expand Down
10 changes: 5 additions & 5 deletions src/bf2sclone/template/ubar-ranks.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,11 +461,11 @@
</div> <!-- Page 3 -->
<ul id="navitems">
<li><a href="'. $ROOT .'">Home</a></li>
<li><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li class="' . ($GO == 'leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'">Leaderboard</a></li>
<li class="' . ($GO == 'servers' ? 'current' : '') . '"><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li class="' . ($GO == 'my-leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li class="' . ($GO == 'currentranking' ? 'current' : '') . '"><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li class="' . ($GO == 'ubar' ? 'current' : '') . '"><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li><a href="http://wiki.bf2s.com/">Wiki</a></li>
</ul>
Expand Down
10 changes: 5 additions & 5 deletions src/bf2sclone/template/ubar-ribbons-sf.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@
</div> <!-- Page 3 -->
<ul id="navitems">
<li><a href="'. $ROOT .'">Home</a></li>
<li><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li class="' . ($GO == 'leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'">Leaderboard</a></li>
<li class="' . ($GO == 'servers' ? 'current' : '') . '"><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li class="' . ($GO == 'my-leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li class="' . ($GO == 'currentranking' ? 'current' : '') . '"><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li class="' . ($GO == 'ubar' ? 'current' : '') . '"><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li><a href="http://wiki.bf2s.com/">Wiki</a></li>
</ul>
Expand Down
10 changes: 5 additions & 5 deletions src/bf2sclone/template/ubar-ribbons.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,11 +394,11 @@
</div> <!-- Page 3 -->
<ul id="navitems">
<li><a href="'. $ROOT .'">Home</a></li>
<li><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li class="' . ($GO == 'leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'">Leaderboard</a></li>
<li class="' . ($GO == 'servers' ? 'current' : '') . '"><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li class="' . ($GO == 'my-leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li class="' . ($GO == 'currentranking' ? 'current' : '') . '"><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li class="' . ($GO == 'ubar' ? 'current' : '') . '"><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li><a href="http://wiki.bf2s.com/">Wiki</a></li>
</ul>
Expand Down
10 changes: 5 additions & 5 deletions src/bf2sclone/template/ubar-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@
</div> <!-- Page 3 -->
<ul id="navitems">
<li><a href="'. $ROOT .'">Home</a></li>
<li><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li class="' . ($GO == 'leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'">Leaderboard</a></li>
<li class="' . ($GO == 'servers' ? 'current' : '') . '"><a href="'. $ROOT .'?go=servers">Servers</a></li>
<li class="' . ($GO == 'my-leaderboard' ? 'current' : '') . '"><a href="'. $ROOT .'?go=my-leaderboard">My Leader Board</a></li>
<li class="' . ($GO == 'currentranking' ? 'current' : '') . '"><a href="'. $ROOT .'?go=currentranking">Rankings</a></li>
<li class="' . ($GO == 'ubar' ? 'current' : '') . '"><a href="'. $ROOT .'?go=ubar">UBAR</a></li>
<li><a href="http://wiki.bf2s.com/">Wiki</a></li>
</ul>
Expand Down

0 comments on commit 5f9b122

Please sign in to comment.