if (!IS_LOGGED_IN()) {
// Redirect
LOAD_URL(URL."/modules.php?module=index");
- } // END - if
+ } elseif (!EXT_IS_ACTIVE("surfbar")) {
+ // Surfbar deactivated
+ LOAD_URL(URL."/modules.php?module=login&msg=".CODE_EXTENSION_PROBLEM);
+ }
// Is there a check value?
if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isset($_GET['frame'])) && (($_GET['frame'] == "stop") || ($_GET['frame'] == "stop2")))) {
// Is there a valid id?
if ($nextId > 0) {
+ // Get total points amount
+ $points = GET_TOTAL_DATA($GLOBALS['userid'], "user_points", "points") - GET_TOTAL_DATA($GLOBALS['userid'], "user_data", "used_points");
+
// Then prepare other content
$content = array(
'id' => $nextId,
'url' => SURFBAR_GET_URL($nextId),
'curr_reload' => SURFBAR_GET_USER_RELOAD_LOCK(),
'max_urls' => SURFBAR_GET_TOTAL_URLS(),
- 'reload' => SURFBAR_GET_RELOAD_TIME($nextId)
+ 'reload' => SURFBAR_GET_RELOAD_TIME($nextId),
+ 'points' => TRANSLATE_COMMA($points)
);
// Update salt (double-call lock!)
<div class="member_title2 dashed" style="width:600px;margin-top:10px">
- >> <strong><a href="{!URL!}/surfbar.php" target="_blank">Jetzt die Surfbar starten!</a></strong> <<
+ >> <strong><a href="{!URL!}/surfbar.php">Jetzt die Surfbar starten!</a></strong> <<
</div>
class="surfbar_max">$content[max_urls]</span> im Reload«<br />
»<a href="$content[url]" target="_blank">Aktuelle Seite in neuem
- Fenster öffnen</a>«<br /> [<a target="_parent"
- href="{!URL!}/modules.php?module=login&what=logout">Ausloggen</a>|<a
- href="javascript:window.close()">Schliessen</a>]
+ Fenster öffnen</a>«<br />
+ [<a target="_parent" href="{!URL!}/modules.php?module=login">Loginbereich</a>|<a
+ target="_parent" href="{!URL!}/modules.php?module=login&what=logout">Ausloggen</a>|<a
+ href="javascript:window.close()">Schliessen</a>] »Guthaben: <span
+ class="surfbar_points">$content[points] {!POINTS!}</span>«
+ <br />
»{!MAIN_TITLE!} ist für den Inhalt nicht verantwortlich!«
</td>