Browse code

Initial uplad w/ php7 fixes

Rainer Volkrodt authored on 2016/03/12 15:54:02
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,19 @@
1
+<?php
2
+if(!defined("_CHARSET")) exit( );
3
+
4
+	global $dateformat, $tpl;
5
+
6
+	if(file_exists(_BASEDIR."blocks/online/{$language}.php")) include(_BASEDIR."blocks/online/{$language}.php");
7
+	else include(_BASEDIR."blocks/online/en.php");
8
+
9
+	$onlineInfo = ssi_whosOnline("array");
10
+	$tpl->assignGlobal("guests", empty($guests) ? 0 : $onlineInfo['guests']);
11
+	$omlist = array( );
12
+	foreach($onlineInfo['users'] as $k => $v) {
13
+		$omlist[] = "<a href='viewuser.php?uid=".$v['id']."'>".$v['username']."</a>";
14
+	}
15
+	$tpl->assignGlobal("onlinemembers", count($omlist) ? implode(", ", $omlist) : "");
16
+	$content = "<div id='who_online'><span class='label'>"._GUESTS.":</span> ".($onlineInfo['guests'] ? $onlineInfo['guests'] : 0)."<br />\n
17
+		<span class='label'>"._MEMBERS.":</span> ".($omlist ? implode(", ", $omlist) : "")."</div>";
18
+
19
+?>
0 20
\ No newline at end of file