View Full Version : Little Live Post Script in PHP
Hi,
well, im currently coding on a little php script.
http://www.gcs-clan.de/ts2.php?host=localhost&port=51234&sid=8767
it works via telnet and works with sa AND ssa login
it is possible to include it via this code:
<?PHP
include("http://www.gcs-clan.de/ts2.php?host=localhost&port=51234&sid=8767");
?>
i hope its not allready done. well its nearly finishing and if it has just a few bugs, i will release the sources.
sorry for my bad english
EDIT:
and now works without login (guest/player)
Genau so ein Script habe ich gesucht. Hättest du es nicht geschrieben, hätte ich wohl heute damit angefangen. ;) Danke!
Es würde mich freuen, wenn du dein Script noch in folgenden Punkten optimieren könntest:
- Variablen "lines", "s", "p", "tmp" initialisieren, sonst kommt immer PHP Fehler "Undefined variable"
- Undefinierte Array-Offsets abfangen
- Die Reihenfolge der Channels an sich, nicht der Subchannels, ist noch nicht 100%, dh. sie erscheinen nicht in der Reihenfolge wie die Originale im TS-Client.
Mach weiter so! :)
variablen initialisieren? normal muss man das in php nicht machen.
öhm ja, wie ich die channels sortieren soll weiss ich noch nicht so ganz, muss ich noch ein bischen experimentieren.
was meinst du mit "Undefinierte Array-Offsets abfangen"? erklär mal ein bisl :)
naja das ding is ja nocht nicht ganz fertig und somit hat es auch noch ein paar bugs.
naja trotzdem schön, dass sich jemand dafür interesiert :)
Dr.Galvany
10-07-2004, 22:18
Ja ich natürlich auch :)
Du hast mich ja in meinen Post darauf hingewiesen. (Danke)
Eine kleine Installations- FAQ wäre nicht schlecht.
Ist es auch möglich das es Funktioniert wenn man den "serverQueryPort" nicht kennt, so wie das Webpost2 Script?
Da mein TS2-Server Spender (Arbeitskollege) erst in 3 Wochen wieder vom Urlaub kommt.
Oder wie kann ich sonst noch dien einen Port herausbekommen, ohne zugriff auf die ini Datei zu haben?
In den Server als admin komm ich rein.
also eine weiter möglichkeit wäre, den server nach ports zu scannen und die offenen nach [TS] abzufragen
per webpost geht nicht, da das script die daten per telnet abfrägt
jo, ne install faq kommt auch alles ncoht, bin grad dabei die funktionen von der klasse zu dokumentieren
okay, downloads are now ready. http://www.gcs-clan.de/download/ts2/
SnarkFish
22-07-2004, 03:24
is there a readme on how to get this working? getting the following errors
Warning: fsockopen(): unable to connect to voice.teamspeak.org:51234 in /home/skillzi/public_html/bot/ts_status/class.ts2.inc.php on line 73
Warning: fread(): supplied argument is not a valid stream resource in /home/skillzi/public_html/bot/ts_status/class.ts2.inc.php on line 654
(using the server supplied in the demo to test)
CrustyDOD
23-07-2004, 08:59
Hey, nice script!
Publish some README file with install instructions!
And can someone translate german code to english?
CrustyDOD
23-07-2004, 16:32
I get the following error, repeating it self for ever!
Warning: fread(): supplied argument is not a valid stream resource in /home/class.ts2.inc.php on line 654
How can i fix this?
well, i will try it to translate it, but my english is terrible.
it seems, that your php does not have the socket module installed. this module is required to use fsockopen.
hmm yea, readme is coming soon
edit: well you cant connect anymore to he ts2 official server, because they changed the tcp queryport
aarmeman1
25-07-2004, 03:23
how did you make that??
ok, new version ready to download.
added:
little readme file :)
history.txt
and so on...
http://www.gcs-clan.de/download/ts2/0.5.4.rar
aarmeman1
25-07-2004, 23:37
Were Do I Save It Too????????
Seems like those downloads are corrupted to me, I can't extract either one of them...
files on server are okay, plz try to use a download manager and usewinrar (no other extraction tool)
aarmeman1
27-07-2004, 00:40
were do i put it????? :confused: :confused:
Sehr gutes Tool. Ich bin echt begeistert.
Das einzige was bei mir nicht funktioniert ist die Player- und Channelanzeige ganz unten. Ich hoffe du hast irgend eine Idee woran das liegen könnte. Da steht immer nur eine 0.
Grüße mog
meinst du die "2 Player in 15 Channels Online!"?
gib mal die url zum script und die daten (nur serverip, queryport und serverid)
http://eos.crazyfonts.de/html/ts.php
host=localhost&port=51234&sid=8767
Sind alles Standartwerte.
Geht auch gut nur die x Player in x Channels geht nicht.
Und die Channels sind nicht in der richtigen Reihenfolge.
Grüße mog
naja die channel werden nur nach zahlen sortiert nicht nach namen.
warum das mit den player in channels nicht geht, versteh ich allerdings nicht.
es sieht mir danach aus, das bei dem php die funktion count nicht funktioniert.
Thekodiak
03-08-2004, 07:41
Nice script Sanji.. all works for me but i get error above the list of people in the server :
Warning: main(): stream does not support seeking in /home/unstoppa/public_html/teamspeak.php on line 12
any idea what this means?
tristan31
25-08-2004, 18:14
how do i make it join able like click on the channel name to join the ts server
Is there any way tomake it refresh a frame or something?
When using a normal php 'include', it refreshes the whole page. I am using it along side a Java IRC client. When it refreshes, it disconnects from IRC and reconnects.
Also I am getting errors.
Notice: Undefined index: user in \ts2.php on line 50
Notice: Undefined index: pass in \ts2.php on line 50
Do i need to use a login?
TheCrunge
26-08-2004, 17:00
How can I embed that into a block?
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.