Results 61 to 75 of 629
Thread: [API] TS3 PHP Framework
-
27-07-2010, 19:23 #61
-= TeamSpeak User =-
- Join Date
- Jul 2010
- Location
- France
- Posts
- 15
I edited my post at the end of page 4 to notify that the TS2 Framework ( Absurd ) also use spl autoload.
Here the methods of autoload in Absurd TS2
Seems that's the TS2 autoload whitch is used in TS3 ... Cant we reset ? =/Code:/** * Initialises Absurdcoding.org Framework * * @return void */ public static function init() { self::$libpath = dirname(__FILE__) . '/'; self::$extension = '.php'; spl_autoload_register(array(__CLASS__, 'autoload')); } /** * Autoloads a class with given name * * @param string $class * @throws Absurd_Exception * @return void */ public static function autoload($class) { if (!class_exists($class) && !interface_exists($class)) { if (!preg_match('/^[A-Za-z0-9_]+$/', $class)) { throw new Absurd_Exception("Class $class contains invalid characters", 0x01); } else { $file = self::$libpath . str_replace('_', '/', $class) . self::$extension; if (!$fp = @fopen($file, 'r', true)) { throw new Absurd_Exception("Class file $file was not found", 0x02); } else { @fclose($fp); include_once($file); if (!class_exists($class) && !interface_exists($class)) { throw new Absurd_Exception("Class $class was not found in the expected place", 0x03); } } } } }
Thanks for help.... This prob is really annoying..
Mail: menthe.alow a t g m a i l d o t c o mLast edited by kedal; 27-07-2010 at 20:02.
-
30-07-2010, 23:33 #62
-= TeamSpeak Servant =-
- Join Date
- Oct 2003
- Location
- Germany
- Posts
- 2,298
Here's the latest changelog:
Code:=== Release 1.0.31-dev - ?? Jul 2010 === ! upgrading your servers to 3.0.0-beta26 (build >= 11927) is mandatory ! removed "16x16_" prefix from viewer images and updated several icons + added some new demo scripts to the example pages * TeamSpeak3_Node_Client::getIcon() now respects channel commander flag * several node list methods now support additional regexp filter parameters * exceptions thrown in TeamSpeak3_Adapter_ServerQuery::request() no longer contain full query command string * TeamSpeak3_Viewer_Html interface now supports all special channel spacers by using background images * TeamSpeak3_Viewer_Html interface now returns empty <div> with invidual CSS classes for each spacer type instead of <hr> tags * TeamSpeak3_Helper_Convert::seconds() no longer converts to milliseconds by default * TeamSpeak3_Node_Abstract::getInfo() now supports optional auto-conversion of some properties to human-readable values - fixed invalid TeamSpeak3_Adapter_Blacklist::isBlacklisted() return values when master server is not responding - fixed a stristr() warning in TeamSpeak3_Helper_String::contains() when providing an empty search pattern
Last edited by ScP; 31-07-2010 at 12:19.
-
31-07-2010, 11:09 #63
-
31-07-2010, 21:23 #64
-= TeamSpeak User =-
- Join Date
- Jul 2010
- Location
- France
- Posts
- 15
Hey.
Nobody can help me ? =// That's a PHP Problem . . . with SPL autoload ...
-
01-08-2010, 20:08 #65
-
08-08-2010, 20:17 #66
Silly Question, is it possible to run your framework in non-blocking mode?
-
09-08-2010, 07:18 #67
-= TeamSpeak Servant =-
- Join Date
- Oct 2003
- Location
- Germany
- Posts
- 2,298
I'll add an option for that...

The new release 1.0.31-beta is out now... Grab it while it's hot!
Code:=== Release 1.0.31-beta - 12 Aug 2010 === ! upgrading your servers to 3.0.0-beta26 (build >= 11927) is mandatory ! removed "16x16_" prefix from viewer images and updated several icons + added some new demo scripts to the example pages + added TeamSpeak3_Node_Server::serverGroupGetProfiles() + added TeamSpeak3_Node_Server::connectionInfo() + added TeamSpeak3_Helper_Convert::logLevel() * TeamSpeak3_Node_Client::getIcon() now respects channel commander flag * several node list methods now support additional regexp filter parameters * exceptions thrown in TeamSpeak3_Adapter_ServerQuery::request() no longer contain full query command string * TeamSpeak3::factory() uri now features an optional parameter to enable the blocking/non-blocking mode on a stream * TeamSpeak3_Viewer_Html interface now supports all special channel spacers by using background images * TeamSpeak3_Viewer_Html interface now returns empty <div> with invidual CSS classes for each spacer type instead of <hr> tags * TeamSpeak3_Helper_Convert::seconds() no longer converts to milliseconds by default * TeamSpeak3_Node_Abstract::getInfo() now supports optional auto-conversion of some properties to human-readable values * TeamSpeak3_Node_Server::serverGroupList() now returns an empty array when called on a default group * TeamSpeak3_Node_Server::channelGroupList() now returns an empty array when called on a default group - fixed invalid TeamSpeak3_Adapter_Blacklist::isBlacklisted() return values when master server is not responding - fixed a stristr() warning in TeamSpeak3_Helper_String::contains() when providing an empty search pattern
Last edited by florian_fr40; 29-03-2012 at 09:10.
-
19-08-2010, 14:48 #68
-= TeamSpeak Addict =-
- Join Date
- Apr 2010
- Location
- UK
- Posts
- 108
Hi
I'm looking for a simple viewer for my website,I've been told about this 'Framework'.
Just need to know who's online.
If a click and connect is available in the viewer then that's great
but not essential.
I run my own site and servers from my spare pc,which is 3ft away.
I use wamp as my webserver.
My webpage is very simple but someone made it for me.
I can edit the frontpage to 'point' to a viewer but have no idea where in the framework I need to 'point'???
example.................
.mywebsite.com/TS3_PHP_Framework-1.0.31b/libraries/TeamSpeak3/Viewer/........
I'm sure that address is wrong
I presume I will also need to edit a config file somewhere that points to my IP?
Will this framework fill my needs?
If so what do I need to do?
Any help is greatly appreciated and a BIG thanks if this is what I need
-
19-08-2010, 14:58 #69
-= TeamSpeak Addict =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 231
This framework can be used to program your own viewer. Well there is an example viewer included, but it still is no product ready for use.
Search in the Addons&Scripts forum or try one of these:
http://forum.teamspeak.com/showthread.php?t=57127
http://forum.teamspeak.com/showthread.php?t=47888
-
19-08-2010, 15:03 #70
-= TeamSpeak Addict =-
- Join Date
- Apr 2010
- Location
- UK
- Posts
- 108
Thanks
I've tried resistance-x but get lots of errors.
Just downloaded drak3's,testing now.
Does the example viewer work?
Is this the example viewer,if so that would be ok?
http://www.planetteamspeak.com/demos...age=htmlviewer
I've tried 'pointing' to the location in my server but it didn't work.Last edited by sTimulated; 19-08-2010 at 15:27.
-
21-08-2010, 18:01 #71
Hey ScP,
I've found 2 errors in your 1.0.31b release.
For the begining one simple error to warmup
If i try to connect your Framework with an nickname that contains whitespaces the Framework will crash with error message: "invalid uri". To avoid this simply wrap an urlencode around the nickname variable.
The second is a tricky one.
in your Transport Layer you've wrote
But this didn't make sense. stream_socket_client opens the stream in blocking mode, per default. (see http://www.php.net/manual/en/functio...ket-client.php) And the line stream_set_blocking($this->stream, 1); sets the stream to blocking mode also (see http://www.php.net/manual/en/functio...t-blocking.php).Code:$this->stream = @stream_socket_client($address, $errno, $errstr, $timeout); ... @stream_set_blocking($this->stream, 1);
did you mean
instead?Code:$this->stream = @stream_socket_client($address, $errno, $errstr, $timeout); ... @stream_set_blocking($this->stream, $this->config["blocking"]);
But if i replace stream_set_blocking($this->stream, 1); with stream_set_blocking($this->stream, 0); the Framework crashs with "connection lost"Last edited by faralsimbor; 21-08-2010 at 20:08. Reason: typo corrected and php manual links added
-
22-08-2010, 13:37 #72
-= TeamSpeak Servant =-
- Join Date
- Oct 2003
- Location
- Germany
- Posts
- 2,298
-
25-08-2010, 14:22 #73
-= TeamSpeak Lover =-
- Join Date
- Jan 2010
- Location
- France
- Posts
- 31
Hello ScP
Since the updated beta 26, I am unable to retrieve information from a virtual server with the function or serverGetById serverGetByPort but only when switched off. This returns the error 1033 "Server Is Not Running".
What function can I use now to get the information of a virtual server offline? I would like to avoid if possible to list all servers to retrieve the virtual server that I want.
Thank you in advance for your reply
-
25-08-2010, 19:30 #74
-= TeamSpeak Servant =-
- Join Date
- Oct 2003
- Location
- Germany
- Posts
- 2,298
It seems like someone didn't read the changelogs. Check this out:
Code:... === Release 1.0.29-beta - 03 Jul 2010 === ! upgrading your servers to 3.0.0-beta26 (build >= 11624) is mandatory + added TeamSpeak3_Node_Server::serverGroupCopy() + added TeamSpeak3_Node_Server::channelGroupCopy() + added TeamSpeak3_Node_Server::clientInfoDb() + added TeamSpeak3_Node_Host::setUseOfflineAsVirtual() * TeamSpeak3_Node_Server use methods now respect -virtual option ! offline virtual servers will no longer be started in virtual mode by default while several new methods allow changing this behavior ...

Since the release of 3.0.0-beta26 the TeamSpeak 3 Server no longer auto-starts offline servers in virtual mode. You can globally re-enable this functionality in your existing code by calling the setUseOfflineAsVirtual() method on any node object.
Have fun!PHP Code:$node = TeamSpeak3::factory("...");
$node->setUseOfflineAsVirtual(TRUE);
-
26-08-2010, 09:19 #75
-= TeamSpeak Lover =-
- Join Date
- Jan 2010
- Location
- France
- Posts
- 31
Thank you, it works great
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
TS3 PHP Framework Connection problems
By stheam in forum General QuestionsReplies: 1Last Post: 01-01-2013, 21:03 -
Extraction using the Framework
By HarryMW in forum ToolsReplies: 1Last Post: 03-08-2012, 19:04 -
TeamSpeak 3 PHP Framework
By danger89 in forum General QuestionsReplies: 3Last Post: 11-06-2012, 16:40 -
Teamspeak, PHP Framework?
By mario2027 in forum General QuestionsReplies: 1Last Post: 21-12-2010, 09:30 -
[solved] Problem with Ts3 und Ts3 Php Framework
By m3ntry in forum Bug ReportsReplies: 1Last Post: 14-10-2010, 05:55


Reply With Quote




