Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/php
- <?php
- include_once('status/TCP.php');
- $config =
- array (
- 'General' =>
- array (
- 'IRC' =>
- (object)array(
- 'init' => function() { $this->tcp_status = new TCP('irc.st0rm.net', 6667); },
- 'status' => function() { return $this->tcp_status->status(); },
- 'popup' => function() { return 'Stuff'; }
- )
- )
- );
- $config['General']['IRC']->init();
- printf('Status: '.$config['General']['IRC']->status());
Add Comment
Please, Sign In to add comment