ts3 library reference, updated system reference, ts players on mainpage
This commit is contained in:
parent
f421ddec6c
commit
baaea85fb3
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -10,3 +10,6 @@
|
||||
[submodule "lib/flexslider"]
|
||||
path = lib/flexslider
|
||||
url = git@mojotrollz.eu:webcraft/host_flexslider.git
|
||||
[submodule "lib/ts3"]
|
||||
path = lib/ts3
|
||||
url = git@mojotrollz.eu:webcraft/lib_ts3.git
|
||||
|
||||
@ -2,4 +2,5 @@
|
||||
require_once dirname(__FILE__).'/system/autoload.inc';
|
||||
require_once dirname(__FILE__).'/unslider/autoload.inc';
|
||||
require_once dirname(__FILE__).'/font_awesome/autoload.inc';
|
||||
require_once dirname(__FILE__).'/flexslider/autoload.inc';
|
||||
require_once dirname(__FILE__).'/flexslider/autoload.inc';
|
||||
require_once dirname(__FILE__).'/ts3/autoload.inc';
|
||||
@ -1 +1 @@
|
||||
Subproject commit 9b8e0fb0952fa97e756987e4a69d785950eac463
|
||||
Subproject commit f4248464364cbb1bca66ac37d2e5a755371bdc64
|
||||
1
lib/ts3
Submodule
1
lib/ts3
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit ebb906e2f2e30a3dda78cc1e245d27673ac163ee
|
||||
@ -20,6 +20,14 @@ class default_start extends \SYSTEM\PAGE\Page {
|
||||
while($row = $res->next()){
|
||||
$row['version'] = self::version_icon($row['version']);
|
||||
$vars['server_list'] .= \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_start/tpl/serverlist_tr.tpl'),$row);}
|
||||
|
||||
\LIB\lib_ts3::php();
|
||||
// connect to local server, authenticate and spawn an object for the virtual server on port 9987
|
||||
$ts3 = TeamSpeak3::factory("serverquery://mojotrollztsquery:9aYllYkG@127.0.0.1:10011/");
|
||||
// query clientlist from virtual server
|
||||
$clients = $ts3->serverGetByPort(9987)->clientCount();
|
||||
$vars['ts_players'] = $clients;
|
||||
|
||||
$vars = array_merge($vars, \SYSTEM\PAGE\text::tag('basic'));
|
||||
return \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_start/tpl/default_start.tpl'), $vars);
|
||||
}
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
</a>
|
||||
</div>
|
||||
<h4 style="padding-top: 95px; text-align: center;">
|
||||
Players on ts3:mojotrollz.eu: ${ts_players}
|
||||
Players on ts3:mojotrollz.eu: <b>${ts_players}</b>
|
||||
<button type="submit" class="btn-sm btn btn-success" onClick="location.href='ts3server://mojotrollz.eu'">
|
||||
<span class="glyphicon glyphicon-globe" aria-hidden="true"></span>
|
||||
Connect
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<tr>
|
||||
<td><a href="${url}" target="blank">${name}</a></td>
|
||||
<td>
|
||||
<img style="" data-pyroimage="true" src="./api.php?call=files&cat=content&id=${version}" alt="WoW" height="48" width="48">
|
||||
<img style="" data-pyroimage="true" src="./api.php?call=files&cat=content&id=${version}" alt="WoW" height="24" width="24">
|
||||
</td>
|
||||
<td>${score}</td>
|
||||
<td>${vote}</td>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user