Skip to content

Commit 2606282

Browse files
committed
Fix Empty Steam3 ID and FAQ Link #104
1 parent 59d73f7 commit 2606282

File tree

10 files changed

+10
-12
lines changed

10 files changed

+10
-12
lines changed

web_upload/includes/sb-callback.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1369,7 +1369,7 @@ function ServerHostPlayers($sid, $type="servers", $obId="", $tplsid="", $open=""
13691369
}
13701370
}else{
13711371
if($userbank->HasAccess(ADMIN_OWNER))
1372-
$objResponse->addAssign("host_$sid", "innerHTML", "<b>Error connecting</b> (<i>" . $res[1] . ":" . $res[2]. "</i>) <small><a href=\"http://sourcebans.net/node/25\" title=\"Which ports does the SourceBans webpanel require to be open?\">Help</a></small>");
1372+
$objResponse->addAssign("host_$sid", "innerHTML", "<b>Error connecting</b> (<i>" . $res[1] . ":" . $res[2]. "</i>) <small><a href=\"https://sarabveer.github.io/SourceBans-Fork/faq\" title=\"Which ports does the SourceBans webpanel require to be open?\">Help</a></small>");
13731373
else
13741374
$objResponse->addAssign("host_$sid", "innerHTML", "<b>Error connecting</b> (<i>" . $res[1] . ":" . $res[2]. "</i>)");
13751375
$objResponse->addAssign("players_$sid", "innerHTML", "N/A");

web_upload/init.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
define('SB_GIT', true);
8585
if(!defined('SB_VERSION')){
8686
define('SB_VERSION', '1.5.4-dev');
87-
define('SB_GITRev', '$Git: 321 $');
87+
define('SB_GITRev', '$Git: 324 $');
8888
}
8989
define('LOGIN_COOKIE_LIFETIME', (60*60*24*7)*2);
9090
define('COOKIE_PATH', '/');

web_upload/pages/page.banlist.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,7 @@ function setPostKey()
435435
$data['communityid'] = $res->fields['community_id'];
436436
$steam2id = $data['steamid'];
437437
$steam3parts = explode(':', $steam2id);
438-
$steamid3 = '[U:1:' . ($steam3parts[2] * 2 + $steam3parts[1]) . ']';
439-
$data['steamid3'] = $steamid3;
438+
$data['steamid3'] = '[U:1:' . ($steam3parts[2] * 2 + $steam3parts[1]) . ']';
440439

441440
if(isset($GLOBALS['config']['banlist.hideadminname']) && $GLOBALS['config']['banlist.hideadminname'] == "1" && !$userbank->is_admin())
442441
$data['admin'] = false;

web_upload/pages/page.commslist.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,7 @@ function setPostKey()
417417
$data['communityid'] = $res->fields['community_id'];
418418
$steam2id = $data['steamid'];
419419
$steam3parts = explode(':', $steam2id);
420-
$steamid3 = '[U:1:' . ($steam3parts[2] * 2 + $steam3parts[1]) . ']';
421-
$data['steamid3'] = $steamid3;
420+
$data['steamid3'] = '[U:1:' . ($steam3parts[2] * 2 + $steam3parts[1]) . ']';
422421

423422
if(isset($GLOBALS['config']['banlist.hideadminname']) && $GLOBALS['config']['banlist.hideadminname'] == "1" && !$userbank->is_admin())
424423
$data['admin'] = false;

web_upload/themes/default/page_bans.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
<tr align="left">
185185
<td width="20%" height="16" class="listtable_1">Steam3 ID</td>
186186
<td height="16" class="listtable_1">
187-
{if empty($ban.steamid3)}
187+
{if empty($ban.steamid)}
188188
<i><font color="#677882">No Steam3 ID present</font></i>
189189
{else}
190190
<a href="http://steamcommunity.com/profiles/{$ban.steamid3}" target="_blank">{$ban.steamid3}</a>

web_upload/themes/default/page_comms.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
<tr align="left">
166166
<td width="20%" height="16" class="listtable_1">Steam3 ID</td>
167167
<td height="16" class="listtable_1">
168-
{if empty($ban.steamid3)}
168+
{if empty($ban.steamid)}
169169
<i><font color="#677882">No Steam3 ID present</font></i>
170170
{else}
171171
<a href="http://steamcommunity.com/profiles/{$ban.steamid3}" target="_blank">{$ban.steamid3}</a>

web_upload/themes/sb_default/page_bans.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
<tr align="left">
188188
<td width="20%" height="16" class="listtable_1">Steam3 ID</td>
189189
<td height="16" class="listtable_1">
190-
{if empty($ban.steamid3)}
190+
{if empty($ban.steamid)}
191191
<i><font color="#677882">No Steam3 ID present</font></i>
192192
{else}
193193
<a href="http://steamcommunity.com/profiles/{$ban.steamid3}" target="_blank">{$ban.steamid3}</a>

web_upload/themes/sb_default/page_comms.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
<tr align="left">
166166
<td width="20%" height="16" class="listtable_1">Steam3 ID</td>
167167
<td height="16" class="listtable_1">
168-
{if empty($ban.steamid3)}
168+
{if empty($ban.steamid)}
169169
<i><font color="#677882">No Steam3 ID present</font></i>
170170
{else}
171171
<a href="http://steamcommunity.com/profiles/{$ban.steamid3}" target="_blank">{$ban.steamid3}</a>

web_upload/themes/sourcebans_dark/page_bans.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
<tr align="left">
188188
<td width="20%" height="16" class="listtable_1">Steam3 ID</td>
189189
<td height="16" class="listtable_1">
190-
{if empty($ban.steamid3)}
190+
{if empty($ban.steamid)}
191191
<i><font color="#677882">No Steam3 ID present</font></i>
192192
{else}
193193
<a href="http://steamcommunity.com/profiles/{$ban.steamid3}" target="_blank">{$ban.steamid3}</a>

web_upload/themes/sourcebans_dark/page_comms.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
<tr align="left">
166166
<td width="20%" height="16" class="listtable_1">Steam3 ID</td>
167167
<td height="16" class="listtable_1">
168-
{if empty($ban.steamid3)}
168+
{if empty($ban.steamid)}
169169
<i><font color="#677882">No Steam3 ID present</font></i>
170170
{else}
171171
<a href="http://steamcommunity.com/profiles/{$ban.steamid3}" target="_blank">{$ban.steamid3}</a>

0 commit comments

Comments
 (0)