diff --git a/.gitignore b/.gitignore index 890f257..a9bf098 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,7 @@ /.settings/org.eclipse.wst.* /.settings/org.eclipse.ltk.core.refactoring.prefs /.settings/org.eclipse.php.ui.prefs -/classes/ice \ No newline at end of file +/classes/ice +/.settings/ +/.idea +.DS_Store diff --git a/README.txt b/README.md similarity index 51% rename from README.txt rename to README.md index e34ab4d..2537409 100644 --- a/README.txt +++ b/README.md @@ -1,29 +1,33 @@ -NOTE: Unfortunately I do not have a working Zeroc PHP Ice environment and hence can't test or fix MumPI for new and current Ice and PHP versions. Even now that ZeroC has finally provided stable package releases for current Ubuntu LTS releases I could not get it to work. I gave up. -If you can get it to work, suggestions and fixes are very welcome! +# MumPI MumPI is your Webinterface written in PHP for your Mumble Server ("Murmur") using the Ice-Middleware. +For installation notices, see INSTALL.txt or better yet https://github.com/Kissaki/MumPI/wiki/Installation +For FAQ see https://github.com/Kissaki/MumPI/wiki/FAQ +For Updates follow http://kcode.de/wordpress/category/development/mumble_php_interface as feed http://kcode.de/wordpress/category/development/mumble_php_interface/feed -For installation notices, see INSTALL.txt or better yet https://github.com/Kissaki/MumPI/wiki/Installation -For FAQ see https://github.com/Kissaki/MumPI/wiki/FAQ -For Updates follow http://kcode.de/wordpress/category/development/mumble_php_interface as feed http://kcode.de/wordpress/category/development/mumble_php_interface/feed +**Note:** User registration has captchas enabled by default, which requires the PHP GD extension installed and enabled. +See settings file `$useCaptcha`. -To access the admin area, add /admin/ to your url. -To access the viewer, add /viewer/ to your url. -To access the user, add /user/ to your url. (redirect in place) -To get JSON data in the [CVP](http://wiki.mumble.info/wiki/Channel_Viewer_Protocol) format: `?view=json&serverId=1` +--- + +To access the admin area, add /admin/ to your url. +To access the viewer, add /viewer/ to your url. +To access the user, add /user/ to your url. (redirect in place) +To get JSON data in the [CVP](http://wiki.mumble.info/wiki/Channel_Viewer_Protocol) format: `?view=json&serverId=1` To get JSON data in JSONP style: `?view=json&serverId=1&callback=?` On first admin-login your admin account will be created. No need to manually create your first admin account yourself. Just login and admin-away! +--- -Note on accounts: -The interface is using a local database for storing mumpi admin accounts etc. -This has nothing to do with mumble or murmur accounts, but only the interface itself. +Note on accounts: +The interface is using a local database for storing mumpi admin accounts etc. +This has nothing to do with mumble or murmur accounts, but only the interface itself. At this moment, filesystem and individual files are totally sufficient and probably better in performance than a DBS like MySQL would be (just disk I/O rather than tcp connections and a separate system to call). -3rd Party things: -Icons from -http://findicons.com/pack/1156/fugue -http://findicons.com/pack/1581/silk +3rd Party things: +Icons from +http://findicons.com/pack/1156/fugue +http://findicons.com/pack/1581/silk diff --git a/admin/index.php b/admin/index.php index ad86c6c..2b05fa5 100644 --- a/admin/index.php +++ b/admin/index.php @@ -26,7 +26,7 @@ // Check for running Ice with Murmur try { ServerInterface::getInstance(); - } catch(Ice_UnknownLocalException $ex) { + } catch(Ice\UnknownLocalException $ex) { MessageManager::addError(tr('error_noIce')); MessageManager::echoAll(); exit(); diff --git a/ajax/admin.ajax.php b/ajax/admin.ajax.php index 255649a..99304e4 100644 --- a/ajax/admin.ajax.php +++ b/ajax/admin.ajax.php @@ -544,7 +544,7 @@ function() /*]]>*/ Server is not running'; } } @@ -701,7 +701,7 @@ function(event) Server is not running'; } } @@ -825,7 +825,7 @@ public static function server_bans_show()
session, diff --git a/classes/Murmur_1.2.2.php b/classes/Murmur_1.2.2.php deleted file mode 100644 index e165943..0000000 --- a/classes/Murmur_1.2.2.php +++ /dev/null @@ -1,1132 +0,0 @@ - -// -// Generated from file `Murmur_1.2.2.ice' -// -// Warning: do not edit this file. -// -// - - -if(!isset($Murmur__t_NetAddress)) -{ - $Murmur__t_NetAddress = IcePHP_defineSequence('::Murmur::NetAddress', $IcePHP__t_byte); -} - -if(!class_exists('Murmur_User')) -{ - class Murmur_User - { - public function __construct($session=0, $userid=0, $mute=false, $deaf=false, $suppress=false, $selfMute=false, $selfDeaf=false, $channel=0, $name='', $onlinesecs=0, $bytespersec=0, $version=0, $release='', $os='', $osversion='', $identity='', $context='', $comment='', $address=null, $tcponly=false, $idlesecs=0) - { - $this->session = $session; - $this->userid = $userid; - $this->mute = $mute; - $this->deaf = $deaf; - $this->suppress = $suppress; - $this->selfMute = $selfMute; - $this->selfDeaf = $selfDeaf; - $this->channel = $channel; - $this->name = $name; - $this->onlinesecs = $onlinesecs; - $this->bytespersec = $bytespersec; - $this->version = $version; - $this->release = $release; - $this->os = $os; - $this->osversion = $osversion; - $this->identity = $identity; - $this->context = $context; - $this->comment = $comment; - $this->address = $address; - $this->tcponly = $tcponly; - $this->idlesecs = $idlesecs; - } - - public function __toString() - { - global $Murmur__t_User; - return IcePHP_stringify($this, $Murmur__t_User); - } - - public $session; - public $userid; - public $mute; - public $deaf; - public $suppress; - public $selfMute; - public $selfDeaf; - public $channel; - public $name; - public $onlinesecs; - public $bytespersec; - public $version; - public $release; - public $os; - public $osversion; - public $identity; - public $context; - public $comment; - public $address; - public $tcponly; - public $idlesecs; - } - - $Murmur__t_User = IcePHP_defineStruct('::Murmur::User', 'Murmur_User', array( - array('session', $IcePHP__t_int), - array('userid', $IcePHP__t_int), - array('mute', $IcePHP__t_bool), - array('deaf', $IcePHP__t_bool), - array('suppress', $IcePHP__t_bool), - array('selfMute', $IcePHP__t_bool), - array('selfDeaf', $IcePHP__t_bool), - array('channel', $IcePHP__t_int), - array('name', $IcePHP__t_string), - array('onlinesecs', $IcePHP__t_int), - array('bytespersec', $IcePHP__t_int), - array('version', $IcePHP__t_int), - array('release', $IcePHP__t_string), - array('os', $IcePHP__t_string), - array('osversion', $IcePHP__t_string), - array('identity', $IcePHP__t_string), - array('context', $IcePHP__t_string), - array('comment', $IcePHP__t_string), - array('address', $Murmur__t_NetAddress), - array('tcponly', $IcePHP__t_bool), - array('idlesecs', $IcePHP__t_int))); -} - -if(!isset($Murmur__t_IntList)) -{ - $Murmur__t_IntList = IcePHP_defineSequence('::Murmur::IntList', $IcePHP__t_int); -} - -if(!class_exists('Murmur_Channel')) -{ - class Murmur_Channel - { - public function __construct($id=0, $name='', $parent=0, $links=null, $description='', $temporary=false, $position=0) - { - $this->id = $id; - $this->name = $name; - $this->parent = $parent; - $this->links = $links; - $this->description = $description; - $this->temporary = $temporary; - $this->position = $position; - } - - public function __toString() - { - global $Murmur__t_Channel; - return IcePHP_stringify($this, $Murmur__t_Channel); - } - - public $id; - public $name; - public $parent; - public $links; - public $description; - public $temporary; - public $position; - } - - $Murmur__t_Channel = IcePHP_defineStruct('::Murmur::Channel', 'Murmur_Channel', array( - array('id', $IcePHP__t_int), - array('name', $IcePHP__t_string), - array('parent', $IcePHP__t_int), - array('links', $Murmur__t_IntList), - array('description', $IcePHP__t_string), - array('temporary', $IcePHP__t_bool), - array('position', $IcePHP__t_int))); -} - -if(!class_exists('Murmur_Group')) -{ - class Murmur_Group - { - public function __construct($name='', $inherited=false, $inherit=false, $inheritable=false, $add=null, $remove=null, $members=null) - { - $this->name = $name; - $this->inherited = $inherited; - $this->inherit = $inherit; - $this->inheritable = $inheritable; - $this->add = $add; - $this->remove = $remove; - $this->members = $members; - } - - public function __toString() - { - global $Murmur__t_Group; - return IcePHP_stringify($this, $Murmur__t_Group); - } - - public $name; - public $inherited; - public $inherit; - public $inheritable; - public $add; - public $remove; - public $members; - } - - $Murmur__t_Group = IcePHP_defineStruct('::Murmur::Group', 'Murmur_Group', array( - array('name', $IcePHP__t_string), - array('inherited', $IcePHP__t_bool), - array('inherit', $IcePHP__t_bool), - array('inheritable', $IcePHP__t_bool), - array('add', $Murmur__t_IntList), - array('remove', $Murmur__t_IntList), - array('members', $Murmur__t_IntList))); -} - -if(!defined('Murmur_PermissionWrite')) -{ - define('Murmur_PermissionWrite', 1); -} - -if(!defined('Murmur_PermissionTraverse')) -{ - define('Murmur_PermissionTraverse', 2); -} - -if(!defined('Murmur_PermissionEnter')) -{ - define('Murmur_PermissionEnter', 4); -} - -if(!defined('Murmur_PermissionSpeak')) -{ - define('Murmur_PermissionSpeak', 8); -} - -if(!defined('Murmur_PermissionWhisper')) -{ - define('Murmur_PermissionWhisper', 256); -} - -if(!defined('Murmur_PermissionMuteDeafen')) -{ - define('Murmur_PermissionMuteDeafen', 16); -} - -if(!defined('Murmur_PermissionMove')) -{ - define('Murmur_PermissionMove', 32); -} - -if(!defined('Murmur_PermissionMakeChannel')) -{ - define('Murmur_PermissionMakeChannel', 64); -} - -if(!defined('Murmur_PermissionMakeTempChannel')) -{ - define('Murmur_PermissionMakeTempChannel', 1024); -} - -if(!defined('Murmur_PermissionLinkChannel')) -{ - define('Murmur_PermissionLinkChannel', 128); -} - -if(!defined('Murmur_PermissionTextMessage')) -{ - define('Murmur_PermissionTextMessage', 512); -} - -if(!defined('Murmur_PermissionKick')) -{ - define('Murmur_PermissionKick', 65536); -} - -if(!defined('Murmur_PermissionBan')) -{ - define('Murmur_PermissionBan', 131072); -} - -if(!defined('Murmur_PermissionRegister')) -{ - define('Murmur_PermissionRegister', 262144); -} - -if(!defined('Murmur_PermissionRegisterSelf')) -{ - define('Murmur_PermissionRegisterSelf', 524288); -} - -if(!class_exists('Murmur_ACL')) -{ - class Murmur_ACL - { - public function __construct($applyHere=false, $applySubs=false, $inherited=false, $userid=0, $group='', $allow=0, $deny=0) - { - $this->applyHere = $applyHere; - $this->applySubs = $applySubs; - $this->inherited = $inherited; - $this->userid = $userid; - $this->group = $group; - $this->allow = $allow; - $this->deny = $deny; - } - - public function __toString() - { - global $Murmur__t_ACL; - return IcePHP_stringify($this, $Murmur__t_ACL); - } - - public $applyHere; - public $applySubs; - public $inherited; - public $userid; - public $group; - public $allow; - public $deny; - } - - $Murmur__t_ACL = IcePHP_defineStruct('::Murmur::ACL', 'Murmur_ACL', array( - array('applyHere', $IcePHP__t_bool), - array('applySubs', $IcePHP__t_bool), - array('inherited', $IcePHP__t_bool), - array('userid', $IcePHP__t_int), - array('group', $IcePHP__t_string), - array('allow', $IcePHP__t_int), - array('deny', $IcePHP__t_int))); -} - -if(!class_exists('Murmur_Ban')) -{ - class Murmur_Ban - { - public function __construct($address=null, $bits=0, $name='', $hash='', $reason='', $start=0, $duration=0) - { - $this->address = $address; - $this->bits = $bits; - $this->name = $name; - $this->hash = $hash; - $this->reason = $reason; - $this->start = $start; - $this->duration = $duration; - } - - public function __toString() - { - global $Murmur__t_Ban; - return IcePHP_stringify($this, $Murmur__t_Ban); - } - - public $address; - public $bits; - public $name; - public $hash; - public $reason; - public $start; - public $duration; - } - - $Murmur__t_Ban = IcePHP_defineStruct('::Murmur::Ban', 'Murmur_Ban', array( - array('address', $Murmur__t_NetAddress), - array('bits', $IcePHP__t_int), - array('name', $IcePHP__t_string), - array('hash', $IcePHP__t_string), - array('reason', $IcePHP__t_string), - array('start', $IcePHP__t_long), - array('duration', $IcePHP__t_int))); -} - -if(!class_exists('Murmur_LogEntry')) -{ - class Murmur_LogEntry - { - public function __construct($timestamp=0, $txt='') - { - $this->timestamp = $timestamp; - $this->txt = $txt; - } - - public function __toString() - { - global $Murmur__t_LogEntry; - return IcePHP_stringify($this, $Murmur__t_LogEntry); - } - - public $timestamp; - public $txt; - } - - $Murmur__t_LogEntry = IcePHP_defineStruct('::Murmur::LogEntry', 'Murmur_LogEntry', array( - array('timestamp', $IcePHP__t_int), - array('txt', $IcePHP__t_string))); -} - -if(!isset($Murmur__t_Tree)) -{ - $Murmur__t_Tree = IcePHP_declareClass('::Murmur::Tree'); - $Murmur__t_TreePrx = IcePHP_defineProxy($Murmur__t_Tree); -} - -if(!isset($Murmur__t_TreeList)) -{ - $Murmur__t_TreeList = IcePHP_defineSequence('::Murmur::TreeList', $Murmur__t_Tree); -} - -if(!class_exists('Murmur_ChannelInfo')) -{ - class Murmur_ChannelInfo - { - const ChannelDescription = 0; - const ChannelPosition = 1; - } - - $Murmur__t_ChannelInfo = IcePHP_defineEnum('::Murmur::ChannelInfo', array('ChannelDescription', 'ChannelPosition')); -} - -if(!class_exists('Murmur_UserInfo')) -{ - class Murmur_UserInfo - { - const UserName = 0; - const UserEmail = 1; - const UserComment = 2; - const UserHash = 3; - const UserPassword = 4; - } - - $Murmur__t_UserInfo = IcePHP_defineEnum('::Murmur::UserInfo', array('UserName', 'UserEmail', 'UserComment', 'UserHash', 'UserPassword')); -} - -if(!isset($Murmur__t_UserMap)) -{ - $Murmur__t_UserMap = IcePHP_defineDictionary('::Murmur::UserMap', $IcePHP__t_int, $Murmur__t_User); -} - -if(!isset($Murmur__t_ChannelMap)) -{ - $Murmur__t_ChannelMap = IcePHP_defineDictionary('::Murmur::ChannelMap', $IcePHP__t_int, $Murmur__t_Channel); -} - -if(!isset($Murmur__t_ChannelList)) -{ - $Murmur__t_ChannelList = IcePHP_defineSequence('::Murmur::ChannelList', $Murmur__t_Channel); -} - -if(!isset($Murmur__t_UserList)) -{ - $Murmur__t_UserList = IcePHP_defineSequence('::Murmur::UserList', $Murmur__t_User); -} - -if(!isset($Murmur__t_GroupList)) -{ - $Murmur__t_GroupList = IcePHP_defineSequence('::Murmur::GroupList', $Murmur__t_Group); -} - -if(!isset($Murmur__t_ACLList)) -{ - $Murmur__t_ACLList = IcePHP_defineSequence('::Murmur::ACLList', $Murmur__t_ACL); -} - -if(!isset($Murmur__t_LogList)) -{ - $Murmur__t_LogList = IcePHP_defineSequence('::Murmur::LogList', $Murmur__t_LogEntry); -} - -if(!isset($Murmur__t_BanList)) -{ - $Murmur__t_BanList = IcePHP_defineSequence('::Murmur::BanList', $Murmur__t_Ban); -} - -if(!isset($Murmur__t_IdList)) -{ - $Murmur__t_IdList = IcePHP_defineSequence('::Murmur::IdList', $IcePHP__t_int); -} - -if(!isset($Murmur__t_NameList)) -{ - $Murmur__t_NameList = IcePHP_defineSequence('::Murmur::NameList', $IcePHP__t_string); -} - -if(!isset($Murmur__t_NameMap)) -{ - $Murmur__t_NameMap = IcePHP_defineDictionary('::Murmur::NameMap', $IcePHP__t_int, $IcePHP__t_string); -} - -if(!isset($Murmur__t_IdMap)) -{ - $Murmur__t_IdMap = IcePHP_defineDictionary('::Murmur::IdMap', $IcePHP__t_string, $IcePHP__t_int); -} - -if(!isset($Murmur__t_Texture)) -{ - $Murmur__t_Texture = IcePHP_defineSequence('::Murmur::Texture', $IcePHP__t_byte); -} - -if(!isset($Murmur__t_ConfigMap)) -{ - $Murmur__t_ConfigMap = IcePHP_defineDictionary('::Murmur::ConfigMap', $IcePHP__t_string, $IcePHP__t_string); -} - -if(!isset($Murmur__t_GroupNameList)) -{ - $Murmur__t_GroupNameList = IcePHP_defineSequence('::Murmur::GroupNameList', $IcePHP__t_string); -} - -if(!isset($Murmur__t_CertificateDer)) -{ - $Murmur__t_CertificateDer = IcePHP_defineSequence('::Murmur::CertificateDer', $IcePHP__t_byte); -} - -if(!isset($Murmur__t_CertificateList)) -{ - $Murmur__t_CertificateList = IcePHP_defineSequence('::Murmur::CertificateList', $Murmur__t_CertificateDer); -} - -if(!isset($Murmur__t_UserInfoMap)) -{ - $Murmur__t_UserInfoMap = IcePHP_defineDictionary('::Murmur::UserInfoMap', $Murmur__t_UserInfo, $IcePHP__t_string); -} - -if(!class_exists('Murmur_Tree')) -{ - class Murmur_Tree extends Ice_ObjectImpl - { - public function __construct($c=null, $children=null, $users=null) - { - $this->c = is_null($c) ? new Murmur_Channel : $c; - $this->children = $children; - $this->users = $users; - } - - public static function ice_staticId() - { - return '::Murmur::Tree'; - } - - public function __toString() - { - global $Murmur__t_Tree; - return IcePHP_stringify($this, $Murmur__t_Tree); - } - - public $c; - public $children; - public $users; - } - - class Murmur_TreePrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::Tree', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::Tree', $facet); - } - } - - $Murmur__t_Tree = IcePHP_defineClass('::Murmur::Tree', 'Murmur_Tree', false, $Ice__t_Object, null, array( - array('c', $Murmur__t_Channel), - - array('children', $Murmur__t_TreeList), - - array('users', $Murmur__t_UserList))); - - $Murmur__t_TreePrx = IcePHP_defineProxy($Murmur__t_Tree); -} - -if(!class_exists('Murmur_MurmurException')) -{ - class Murmur_MurmurException extends Ice_UserException - { - public function __construct() - { - } - - public function ice_name() - { - return 'Murmur::MurmurException'; - } - - public function __toString() - { - global $Murmur__t_MurmurException; - return IcePHP_stringifyException($this, $Murmur__t_MurmurException); - } - } - - $Murmur__t_MurmurException = IcePHP_defineException('::Murmur::MurmurException', 'Murmur_MurmurException', null, null); -} - -if(!class_exists('Murmur_InvalidSessionException')) -{ - class Murmur_InvalidSessionException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidSessionException'; - } - - public function __toString() - { - global $Murmur__t_InvalidSessionException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidSessionException); - } - } - - $Murmur__t_InvalidSessionException = IcePHP_defineException('::Murmur::InvalidSessionException', 'Murmur_InvalidSessionException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidChannelException')) -{ - class Murmur_InvalidChannelException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidChannelException'; - } - - public function __toString() - { - global $Murmur__t_InvalidChannelException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidChannelException); - } - } - - $Murmur__t_InvalidChannelException = IcePHP_defineException('::Murmur::InvalidChannelException', 'Murmur_InvalidChannelException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidServerException')) -{ - class Murmur_InvalidServerException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidServerException'; - } - - public function __toString() - { - global $Murmur__t_InvalidServerException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidServerException); - } - } - - $Murmur__t_InvalidServerException = IcePHP_defineException('::Murmur::InvalidServerException', 'Murmur_InvalidServerException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_ServerBootedException')) -{ - class Murmur_ServerBootedException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::ServerBootedException'; - } - - public function __toString() - { - global $Murmur__t_ServerBootedException; - return IcePHP_stringifyException($this, $Murmur__t_ServerBootedException); - } - } - - $Murmur__t_ServerBootedException = IcePHP_defineException('::Murmur::ServerBootedException', 'Murmur_ServerBootedException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_ServerFailureException')) -{ - class Murmur_ServerFailureException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::ServerFailureException'; - } - - public function __toString() - { - global $Murmur__t_ServerFailureException; - return IcePHP_stringifyException($this, $Murmur__t_ServerFailureException); - } - } - - $Murmur__t_ServerFailureException = IcePHP_defineException('::Murmur::ServerFailureException', 'Murmur_ServerFailureException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidUserException')) -{ - class Murmur_InvalidUserException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidUserException'; - } - - public function __toString() - { - global $Murmur__t_InvalidUserException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidUserException); - } - } - - $Murmur__t_InvalidUserException = IcePHP_defineException('::Murmur::InvalidUserException', 'Murmur_InvalidUserException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidTextureException')) -{ - class Murmur_InvalidTextureException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidTextureException'; - } - - public function __toString() - { - global $Murmur__t_InvalidTextureException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidTextureException); - } - } - - $Murmur__t_InvalidTextureException = IcePHP_defineException('::Murmur::InvalidTextureException', 'Murmur_InvalidTextureException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidCallbackException')) -{ - class Murmur_InvalidCallbackException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidCallbackException'; - } - - public function __toString() - { - global $Murmur__t_InvalidCallbackException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidCallbackException); - } - } - - $Murmur__t_InvalidCallbackException = IcePHP_defineException('::Murmur::InvalidCallbackException', 'Murmur_InvalidCallbackException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidSecretException')) -{ - class Murmur_InvalidSecretException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidSecretException'; - } - - public function __toString() - { - global $Murmur__t_InvalidSecretException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidSecretException); - } - } - - $Murmur__t_InvalidSecretException = IcePHP_defineException('::Murmur::InvalidSecretException', 'Murmur_InvalidSecretException', $Murmur__t_MurmurException, null); -} - -if(!interface_exists('Murmur_ServerCallback')) -{ - interface Murmur_ServerCallback - { - public function userConnected($state); - public function userDisconnected($state); - public function userStateChanged($state); - public function channelCreated($state); - public function channelRemoved($state); - public function channelStateChanged($state); - } - - class Murmur_ServerCallbackPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerCallback', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerCallback', $facet); - } - } - - $Murmur__t_ServerCallback = IcePHP_defineClass('::Murmur::ServerCallback', 'Murmur_ServerCallback', true, $Ice__t_Object, null, null); - - $Murmur__t_ServerCallbackPrx = IcePHP_defineProxy($Murmur__t_ServerCallback); - - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userConnected', 2, 2, array($Murmur__t_User), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userDisconnected', 2, 2, array($Murmur__t_User), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userStateChanged', 2, 2, array($Murmur__t_User), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'channelCreated', 2, 2, array($Murmur__t_Channel), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'channelRemoved', 2, 2, array($Murmur__t_Channel), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'channelStateChanged', 2, 2, array($Murmur__t_Channel), null, null, null); -} - -if(!defined('Murmur_ContextServer')) -{ - define('Murmur_ContextServer', 1); -} - -if(!defined('Murmur_ContextChannel')) -{ - define('Murmur_ContextChannel', 2); -} - -if(!defined('Murmur_ContextUser')) -{ - define('Murmur_ContextUser', 4); -} - -if(!interface_exists('Murmur_ServerContextCallback')) -{ - interface Murmur_ServerContextCallback - { - public function contextAction($action, $usr, $session, $channelid); - } - - class Murmur_ServerContextCallbackPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerContextCallback', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerContextCallback', $facet); - } - } - - $Murmur__t_ServerContextCallback = IcePHP_defineClass('::Murmur::ServerContextCallback', 'Murmur_ServerContextCallback', true, $Ice__t_Object, null, null); - - $Murmur__t_ServerContextCallbackPrx = IcePHP_defineProxy($Murmur__t_ServerContextCallback); - - IcePHP_defineOperation($Murmur__t_ServerContextCallback, 'contextAction', 2, 2, array($IcePHP__t_string, $Murmur__t_User, $IcePHP__t_int, $IcePHP__t_int), null, null, null); -} - -if(!interface_exists('Murmur_ServerAuthenticator')) -{ - interface Murmur_ServerAuthenticator - { - public function authenticate($name, $pw, $certificates, $certhash, $certstrong, $newname, $groups); - public function getInfo($id, $info); - public function nameToId($name); - public function idToName($id); - public function idToTexture($id); - } - - class Murmur_ServerAuthenticatorPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerAuthenticator', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerAuthenticator', $facet); - } - } - - $Murmur__t_ServerAuthenticator = IcePHP_defineClass('::Murmur::ServerAuthenticator', 'Murmur_ServerAuthenticator', true, $Ice__t_Object, null, null); - - $Murmur__t_ServerAuthenticatorPrx = IcePHP_defineProxy($Murmur__t_ServerAuthenticator); - - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'authenticate', 2, 2, array($IcePHP__t_string, $IcePHP__t_string, $Murmur__t_CertificateList, $IcePHP__t_string, $IcePHP__t_bool), array($IcePHP__t_string, $Murmur__t_GroupNameList), $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'getInfo', 2, 2, array($IcePHP__t_int), array($Murmur__t_UserInfoMap), $IcePHP__t_bool, null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'nameToId', 2, 2, array($IcePHP__t_string), null, $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'idToName', 2, 2, array($IcePHP__t_int), null, $IcePHP__t_string, null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'idToTexture', 2, 2, array($IcePHP__t_int), null, $Murmur__t_Texture, null); -} - -if(!interface_exists('Murmur_ServerUpdatingAuthenticator')) -{ - interface Murmur_ServerUpdatingAuthenticator extends Murmur_ServerAuthenticator - { - public function registerUser($info); - public function unregisterUser($id); - public function getRegisteredUsers($filter); - public function setInfo($id, $info); - public function setTexture($id, $tex); - } - - class Murmur_ServerUpdatingAuthenticatorPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerUpdatingAuthenticator', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerUpdatingAuthenticator', $facet); - } - } - - $Murmur__t_ServerUpdatingAuthenticator = IcePHP_defineClass('::Murmur::ServerUpdatingAuthenticator', 'Murmur_ServerUpdatingAuthenticator', true, $Ice__t_Object, array($Murmur__t_ServerAuthenticator), null); - - $Murmur__t_ServerUpdatingAuthenticatorPrx = IcePHP_defineProxy($Murmur__t_ServerUpdatingAuthenticator); - - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'registerUser', 0, 0, array($Murmur__t_UserInfoMap), null, $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'unregisterUser', 0, 0, array($IcePHP__t_int), null, $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'getRegisteredUsers', 2, 2, array($IcePHP__t_string), null, $Murmur__t_NameMap, null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'setInfo', 2, 2, array($IcePHP__t_int, $Murmur__t_UserInfoMap), null, $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'setTexture', 2, 2, array($IcePHP__t_int, $Murmur__t_Texture), null, $IcePHP__t_int, null); -} - -if(!interface_exists('Murmur_Server')) -{ - interface Murmur_Server - { - public function isRunning(); - public function start(); - public function stop(); - public function delete(); - public function id(); - public function addCallback($cb); - public function removeCallback($cb); - public function setAuthenticator($auth); - public function getConf($key); - public function getAllConf(); - public function setConf($key, $value); - public function setSuperuserPassword($pw); - public function getLog($first, $last); - public function getUsers(); - public function getChannels(); - public function getCertificateList($session); - public function getTree(); - public function getBans(); - public function setBans($bans); - public function kickUser($session, $reason); - public function getState($session); - public function setState($state); - public function sendMessage($session, $text); - public function hasPermission($session, $channelid, $perm); - public function addContextCallback($session, $action, $text, $cb, $ctx); - public function removeContextCallback($cb); - public function getChannelState($channelid); - public function setChannelState($state); - public function removeChannel($channelid); - public function addChannel($name, $parent); - public function sendMessageChannel($channelid, $tree, $text); - public function getACL($channelid, $acls, $groups, $inherit); - public function setACL($channelid, $acls, $groups, $inherit); - public function addUserToGroup($channelid, $session, $group); - public function removeUserFromGroup($channelid, $session, $group); - public function redirectWhisperGroup($session, $source, $target); - public function getUserNames($ids); - public function getUserIds($names); - public function registerUser($info); - public function unregisterUser($userid); - public function updateRegistration($userid, $info); - public function getRegistration($userid); - public function getRegisteredUsers($filter); - public function verifyPassword($name, $pw); - public function getTexture($userid); - public function setTexture($userid, $tex); - public function getUptime(); - } - - class Murmur_ServerPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::Server', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::Server', $facet); - } - } - - $Murmur__t_Server = IcePHP_defineClass('::Murmur::Server', 'Murmur_Server', true, $Ice__t_Object, null, null); - - $Murmur__t_ServerPrx = IcePHP_defineProxy($Murmur__t_Server); - - IcePHP_defineOperation($Murmur__t_Server, 'isRunning', 2, 2, null, null, $IcePHP__t_bool, null); - IcePHP_defineOperation($Murmur__t_Server, 'start', 0, 0, null, null, null, array($Murmur__t_ServerBootedException, $Murmur__t_ServerFailureException)); - IcePHP_defineOperation($Murmur__t_Server, 'stop', 0, 0, null, null, null, array($Murmur__t_ServerBootedException)); - IcePHP_defineOperation($Murmur__t_Server, 'delete', 0, 0, null, null, null, array($Murmur__t_ServerBootedException)); - IcePHP_defineOperation($Murmur__t_Server, 'id', 2, 2, null, null, $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_Server, 'addCallback', 0, 0, array($Murmur__t_ServerCallbackPrx), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeCallback', 0, 0, array($Murmur__t_ServerCallbackPrx), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException)); - IcePHP_defineOperation($Murmur__t_Server, 'setAuthenticator', 0, 0, array($Murmur__t_ServerAuthenticatorPrx), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException)); - IcePHP_defineOperation($Murmur__t_Server, 'getConf', 2, 2, array($IcePHP__t_string), null, $IcePHP__t_string, null); - IcePHP_defineOperation($Murmur__t_Server, 'getAllConf', 2, 2, null, null, $Murmur__t_ConfigMap, null); - IcePHP_defineOperation($Murmur__t_Server, 'setConf', 2, 2, array($IcePHP__t_string, $IcePHP__t_string), null, null, null); - IcePHP_defineOperation($Murmur__t_Server, 'setSuperuserPassword', 2, 2, array($IcePHP__t_string), null, null, null); - IcePHP_defineOperation($Murmur__t_Server, 'getLog', 2, 2, array($IcePHP__t_int, $IcePHP__t_int), null, $Murmur__t_LogList, null); - IcePHP_defineOperation($Murmur__t_Server, 'getUsers', 2, 2, null, null, $Murmur__t_UserMap, array($Murmur__t_ServerBootedException)); - IcePHP_defineOperation($Murmur__t_Server, 'getChannels', 2, 2, null, null, $Murmur__t_ChannelMap, array($Murmur__t_ServerBootedException)); - IcePHP_defineOperation($Murmur__t_Server, 'getCertificateList', 2, 2, array($IcePHP__t_int), null, $Murmur__t_CertificateList, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException)); - IcePHP_defineOperation($Murmur__t_Server, 'getTree', 2, 2, null, null, $Murmur__t_Tree, array($Murmur__t_ServerBootedException)); - IcePHP_defineOperation($Murmur__t_Server, 'getBans', 2, 2, null, null, $Murmur__t_BanList, array($Murmur__t_ServerBootedException)); - IcePHP_defineOperation($Murmur__t_Server, 'setBans', 2, 2, array($Murmur__t_BanList), null, null, array($Murmur__t_ServerBootedException)); - IcePHP_defineOperation($Murmur__t_Server, 'kickUser', 0, 0, array($IcePHP__t_int, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException)); - IcePHP_defineOperation($Murmur__t_Server, 'getState', 2, 2, array($IcePHP__t_int), null, $Murmur__t_User, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException)); - IcePHP_defineOperation($Murmur__t_Server, 'setState', 2, 2, array($Murmur__t_User), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidChannelException)); - IcePHP_defineOperation($Murmur__t_Server, 'sendMessage', 0, 0, array($IcePHP__t_int, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException)); - IcePHP_defineOperation($Murmur__t_Server, 'hasPermission', 0, 0, array($IcePHP__t_int, $IcePHP__t_int, $IcePHP__t_int), null, $IcePHP__t_bool, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidChannelException)); - IcePHP_defineOperation($Murmur__t_Server, 'addContextCallback', 0, 0, array($IcePHP__t_int, $IcePHP__t_string, $IcePHP__t_string, $Murmur__t_ServerContextCallbackPrx, $IcePHP__t_int), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeContextCallback', 0, 0, array($Murmur__t_ServerContextCallbackPrx), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException)); - IcePHP_defineOperation($Murmur__t_Server, 'getChannelState', 2, 2, array($IcePHP__t_int), null, $Murmur__t_Channel, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException)); - IcePHP_defineOperation($Murmur__t_Server, 'setChannelState', 2, 2, array($Murmur__t_Channel), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeChannel', 0, 0, array($IcePHP__t_int), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException)); - IcePHP_defineOperation($Murmur__t_Server, 'addChannel', 0, 0, array($IcePHP__t_string, $IcePHP__t_int), null, $IcePHP__t_int, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException)); - IcePHP_defineOperation($Murmur__t_Server, 'sendMessageChannel', 0, 0, array($IcePHP__t_int, $IcePHP__t_bool, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException)); - IcePHP_defineOperation($Murmur__t_Server, 'getACL', 2, 2, array($IcePHP__t_int), array($Murmur__t_ACLList, $Murmur__t_GroupList, $IcePHP__t_bool), null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException)); - IcePHP_defineOperation($Murmur__t_Server, 'setACL', 2, 2, array($IcePHP__t_int, $Murmur__t_ACLList, $Murmur__t_GroupList, $IcePHP__t_bool), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException)); - IcePHP_defineOperation($Murmur__t_Server, 'addUserToGroup', 2, 2, array($IcePHP__t_int, $IcePHP__t_int, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSessionException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeUserFromGroup', 2, 2, array($IcePHP__t_int, $IcePHP__t_int, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSessionException)); - IcePHP_defineOperation($Murmur__t_Server, 'redirectWhisperGroup', 2, 2, array($IcePHP__t_int, $IcePHP__t_string, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUserNames', 2, 2, array($Murmur__t_IdList), null, $Murmur__t_NameMap, array($Murmur__t_ServerBootedException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUserIds', 2, 2, array($Murmur__t_NameList), null, $Murmur__t_IdMap, array($Murmur__t_ServerBootedException)); - IcePHP_defineOperation($Murmur__t_Server, 'registerUser', 0, 0, array($Murmur__t_UserInfoMap), null, $IcePHP__t_int, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException)); - IcePHP_defineOperation($Murmur__t_Server, 'unregisterUser', 0, 0, array($IcePHP__t_int), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException)); - IcePHP_defineOperation($Murmur__t_Server, 'updateRegistration', 2, 2, array($IcePHP__t_int, $Murmur__t_UserInfoMap), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException)); - IcePHP_defineOperation($Murmur__t_Server, 'getRegistration', 2, 2, array($IcePHP__t_int), null, $Murmur__t_UserInfoMap, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException)); - IcePHP_defineOperation($Murmur__t_Server, 'getRegisteredUsers', 2, 2, array($IcePHP__t_string), null, $Murmur__t_NameMap, array($Murmur__t_ServerBootedException)); - IcePHP_defineOperation($Murmur__t_Server, 'verifyPassword', 2, 2, array($IcePHP__t_string, $IcePHP__t_string), null, $IcePHP__t_int, array($Murmur__t_ServerBootedException)); - IcePHP_defineOperation($Murmur__t_Server, 'getTexture', 2, 2, array($IcePHP__t_int), null, $Murmur__t_Texture, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException)); - IcePHP_defineOperation($Murmur__t_Server, 'setTexture', 2, 2, array($IcePHP__t_int, $Murmur__t_Texture), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidTextureException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUptime', 2, 2, null, null, $IcePHP__t_int, array($Murmur__t_ServerBootedException)); -} - -if(!interface_exists('Murmur_MetaCallback')) -{ - interface Murmur_MetaCallback - { - public function started($srv); - public function stopped($srv); - } - - class Murmur_MetaCallbackPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::MetaCallback', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::MetaCallback', $facet); - } - } - - $Murmur__t_MetaCallback = IcePHP_defineClass('::Murmur::MetaCallback', 'Murmur_MetaCallback', true, $Ice__t_Object, null, null); - - $Murmur__t_MetaCallbackPrx = IcePHP_defineProxy($Murmur__t_MetaCallback); - - IcePHP_defineOperation($Murmur__t_MetaCallback, 'started', 0, 0, array($Murmur__t_ServerPrx), null, null, null); - IcePHP_defineOperation($Murmur__t_MetaCallback, 'stopped', 0, 0, array($Murmur__t_ServerPrx), null, null, null); -} - -if(!isset($Murmur__t_ServerList)) -{ - $Murmur__t_ServerList = IcePHP_defineSequence('::Murmur::ServerList', $Murmur__t_ServerPrx); -} - -if(!interface_exists('Murmur_Meta')) -{ - interface Murmur_Meta - { - public function getServer($id); - public function newServer(); - public function getBootedServers(); - public function getAllServers(); - public function getDefaultConf(); - public function getVersion($major, $minor, $patch, $text); - public function addCallback($cb); - public function removeCallback($cb); - public function getUptime(); - } - - class Murmur_MetaPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::Meta', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::Meta', $facet); - } - } - - $Murmur__t_Meta = IcePHP_defineClass('::Murmur::Meta', 'Murmur_Meta', true, $Ice__t_Object, null, null); - - $Murmur__t_MetaPrx = IcePHP_defineProxy($Murmur__t_Meta); - - IcePHP_defineOperation($Murmur__t_Meta, 'getServer', 2, 2, array($IcePHP__t_int), null, $Murmur__t_ServerPrx, null); - IcePHP_defineOperation($Murmur__t_Meta, 'newServer', 0, 0, null, null, $Murmur__t_ServerPrx, null); - IcePHP_defineOperation($Murmur__t_Meta, 'getBootedServers', 2, 2, null, null, $Murmur__t_ServerList, null); - IcePHP_defineOperation($Murmur__t_Meta, 'getAllServers', 2, 2, null, null, $Murmur__t_ServerList, null); - IcePHP_defineOperation($Murmur__t_Meta, 'getDefaultConf', 2, 2, null, null, $Murmur__t_ConfigMap, null); - IcePHP_defineOperation($Murmur__t_Meta, 'getVersion', 2, 2, null, array($IcePHP__t_int, $IcePHP__t_int, $IcePHP__t_int, $IcePHP__t_string), null, null); - IcePHP_defineOperation($Murmur__t_Meta, 'addCallback', 0, 0, array($Murmur__t_MetaCallbackPrx), null, null, array($Murmur__t_InvalidCallbackException)); - IcePHP_defineOperation($Murmur__t_Meta, 'removeCallback', 0, 0, array($Murmur__t_MetaCallbackPrx), null, null, array($Murmur__t_InvalidCallbackException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getUptime', 2, 2, null, null, $IcePHP__t_int, null); -} diff --git a/classes/Murmur_1.2.3.php b/classes/Murmur_1.2.3.php deleted file mode 100644 index db31ffa..0000000 --- a/classes/Murmur_1.2.3.php +++ /dev/null @@ -1,1147 +0,0 @@ - -// -// Generated from file `Murmur_1.2.3.ice' -// -// Warning: do not edit this file. -// -// - -require 'Ice/SliceChecksumDict.php'; - -if(!isset($Murmur__t_NetAddress)) -{ - $Murmur__t_NetAddress = IcePHP_defineSequence('::Murmur::NetAddress', $IcePHP__t_byte); -} - -if(!class_exists('Murmur_User')) -{ - class Murmur_User - { - public function __construct($session=0, $userid=0, $mute=false, $deaf=false, $suppress=false, $prioritySpeaker=false, $selfMute=false, $selfDeaf=false, $recording=false, $channel=0, $name='', $onlinesecs=0, $bytespersec=0, $version=0, $release='', $os='', $osversion='', $identity='', $context='', $comment='', $address=null, $tcponly=false, $idlesecs=0) - { - $this->session = $session; - $this->userid = $userid; - $this->mute = $mute; - $this->deaf = $deaf; - $this->suppress = $suppress; - $this->prioritySpeaker = $prioritySpeaker; - $this->selfMute = $selfMute; - $this->selfDeaf = $selfDeaf; - $this->recording = $recording; - $this->channel = $channel; - $this->name = $name; - $this->onlinesecs = $onlinesecs; - $this->bytespersec = $bytespersec; - $this->version = $version; - $this->release = $release; - $this->os = $os; - $this->osversion = $osversion; - $this->identity = $identity; - $this->context = $context; - $this->comment = $comment; - $this->address = $address; - $this->tcponly = $tcponly; - $this->idlesecs = $idlesecs; - } - - public function __toString() - { - global $Murmur__t_User; - return IcePHP_stringify($this, $Murmur__t_User); - } - - public $session; - public $userid; - public $mute; - public $deaf; - public $suppress; - public $prioritySpeaker; - public $selfMute; - public $selfDeaf; - public $recording; - public $channel; - public $name; - public $onlinesecs; - public $bytespersec; - public $version; - public $release; - public $os; - public $osversion; - public $identity; - public $context; - public $comment; - public $address; - public $tcponly; - public $idlesecs; - } - - $Murmur__t_User = IcePHP_defineStruct('::Murmur::User', 'Murmur_User', array( - array('session', $IcePHP__t_int), - array('userid', $IcePHP__t_int), - array('mute', $IcePHP__t_bool), - array('deaf', $IcePHP__t_bool), - array('suppress', $IcePHP__t_bool), - array('prioritySpeaker', $IcePHP__t_bool), - array('selfMute', $IcePHP__t_bool), - array('selfDeaf', $IcePHP__t_bool), - array('recording', $IcePHP__t_bool), - array('channel', $IcePHP__t_int), - array('name', $IcePHP__t_string), - array('onlinesecs', $IcePHP__t_int), - array('bytespersec', $IcePHP__t_int), - array('version', $IcePHP__t_int), - array('release', $IcePHP__t_string), - array('os', $IcePHP__t_string), - array('osversion', $IcePHP__t_string), - array('identity', $IcePHP__t_string), - array('context', $IcePHP__t_string), - array('comment', $IcePHP__t_string), - array('address', $Murmur__t_NetAddress), - array('tcponly', $IcePHP__t_bool), - array('idlesecs', $IcePHP__t_int))); -} - -if(!isset($Murmur__t_IntList)) -{ - $Murmur__t_IntList = IcePHP_defineSequence('::Murmur::IntList', $IcePHP__t_int); -} - -if(!class_exists('Murmur_Channel')) -{ - class Murmur_Channel - { - public function __construct($id=0, $name='', $parent=0, $links=null, $description='', $temporary=false, $position=0) - { - $this->id = $id; - $this->name = $name; - $this->parent = $parent; - $this->links = $links; - $this->description = $description; - $this->temporary = $temporary; - $this->position = $position; - } - - public function __toString() - { - global $Murmur__t_Channel; - return IcePHP_stringify($this, $Murmur__t_Channel); - } - - public $id; - public $name; - public $parent; - public $links; - public $description; - public $temporary; - public $position; - } - - $Murmur__t_Channel = IcePHP_defineStruct('::Murmur::Channel', 'Murmur_Channel', array( - array('id', $IcePHP__t_int), - array('name', $IcePHP__t_string), - array('parent', $IcePHP__t_int), - array('links', $Murmur__t_IntList), - array('description', $IcePHP__t_string), - array('temporary', $IcePHP__t_bool), - array('position', $IcePHP__t_int))); -} - -if(!class_exists('Murmur_Group')) -{ - class Murmur_Group - { - public function __construct($name='', $inherited=false, $inherit=false, $inheritable=false, $add=null, $remove=null, $members=null) - { - $this->name = $name; - $this->inherited = $inherited; - $this->inherit = $inherit; - $this->inheritable = $inheritable; - $this->add = $add; - $this->remove = $remove; - $this->members = $members; - } - - public function __toString() - { - global $Murmur__t_Group; - return IcePHP_stringify($this, $Murmur__t_Group); - } - - public $name; - public $inherited; - public $inherit; - public $inheritable; - public $add; - public $remove; - public $members; - } - - $Murmur__t_Group = IcePHP_defineStruct('::Murmur::Group', 'Murmur_Group', array( - array('name', $IcePHP__t_string), - array('inherited', $IcePHP__t_bool), - array('inherit', $IcePHP__t_bool), - array('inheritable', $IcePHP__t_bool), - array('add', $Murmur__t_IntList), - array('remove', $Murmur__t_IntList), - array('members', $Murmur__t_IntList))); -} - -if(!defined('Murmur_PermissionWrite')) -{ - define('Murmur_PermissionWrite', 1); -} - -if(!defined('Murmur_PermissionTraverse')) -{ - define('Murmur_PermissionTraverse', 2); -} - -if(!defined('Murmur_PermissionEnter')) -{ - define('Murmur_PermissionEnter', 4); -} - -if(!defined('Murmur_PermissionSpeak')) -{ - define('Murmur_PermissionSpeak', 8); -} - -if(!defined('Murmur_PermissionWhisper')) -{ - define('Murmur_PermissionWhisper', 256); -} - -if(!defined('Murmur_PermissionMuteDeafen')) -{ - define('Murmur_PermissionMuteDeafen', 16); -} - -if(!defined('Murmur_PermissionMove')) -{ - define('Murmur_PermissionMove', 32); -} - -if(!defined('Murmur_PermissionMakeChannel')) -{ - define('Murmur_PermissionMakeChannel', 64); -} - -if(!defined('Murmur_PermissionMakeTempChannel')) -{ - define('Murmur_PermissionMakeTempChannel', 1024); -} - -if(!defined('Murmur_PermissionLinkChannel')) -{ - define('Murmur_PermissionLinkChannel', 128); -} - -if(!defined('Murmur_PermissionTextMessage')) -{ - define('Murmur_PermissionTextMessage', 512); -} - -if(!defined('Murmur_PermissionKick')) -{ - define('Murmur_PermissionKick', 65536); -} - -if(!defined('Murmur_PermissionBan')) -{ - define('Murmur_PermissionBan', 131072); -} - -if(!defined('Murmur_PermissionRegister')) -{ - define('Murmur_PermissionRegister', 262144); -} - -if(!defined('Murmur_PermissionRegisterSelf')) -{ - define('Murmur_PermissionRegisterSelf', 524288); -} - -if(!class_exists('Murmur_ACL')) -{ - class Murmur_ACL - { - public function __construct($applyHere=false, $applySubs=false, $inherited=false, $userid=0, $group='', $allow=0, $deny=0) - { - $this->applyHere = $applyHere; - $this->applySubs = $applySubs; - $this->inherited = $inherited; - $this->userid = $userid; - $this->group = $group; - $this->allow = $allow; - $this->deny = $deny; - } - - public function __toString() - { - global $Murmur__t_ACL; - return IcePHP_stringify($this, $Murmur__t_ACL); - } - - public $applyHere; - public $applySubs; - public $inherited; - public $userid; - public $group; - public $allow; - public $deny; - } - - $Murmur__t_ACL = IcePHP_defineStruct('::Murmur::ACL', 'Murmur_ACL', array( - array('applyHere', $IcePHP__t_bool), - array('applySubs', $IcePHP__t_bool), - array('inherited', $IcePHP__t_bool), - array('userid', $IcePHP__t_int), - array('group', $IcePHP__t_string), - array('allow', $IcePHP__t_int), - array('deny', $IcePHP__t_int))); -} - -if(!class_exists('Murmur_Ban')) -{ - class Murmur_Ban - { - public function __construct($address=null, $bits=0, $name='', $hash='', $reason='', $start=0, $duration=0) - { - $this->address = $address; - $this->bits = $bits; - $this->name = $name; - $this->hash = $hash; - $this->reason = $reason; - $this->start = $start; - $this->duration = $duration; - } - - public function __toString() - { - global $Murmur__t_Ban; - return IcePHP_stringify($this, $Murmur__t_Ban); - } - - public $address; - public $bits; - public $name; - public $hash; - public $reason; - public $start; - public $duration; - } - - $Murmur__t_Ban = IcePHP_defineStruct('::Murmur::Ban', 'Murmur_Ban', array( - array('address', $Murmur__t_NetAddress), - array('bits', $IcePHP__t_int), - array('name', $IcePHP__t_string), - array('hash', $IcePHP__t_string), - array('reason', $IcePHP__t_string), - array('start', $IcePHP__t_int), - array('duration', $IcePHP__t_int))); -} - -if(!class_exists('Murmur_LogEntry')) -{ - class Murmur_LogEntry - { - public function __construct($timestamp=0, $txt='') - { - $this->timestamp = $timestamp; - $this->txt = $txt; - } - - public function __toString() - { - global $Murmur__t_LogEntry; - return IcePHP_stringify($this, $Murmur__t_LogEntry); - } - - public $timestamp; - public $txt; - } - - $Murmur__t_LogEntry = IcePHP_defineStruct('::Murmur::LogEntry', 'Murmur_LogEntry', array( - array('timestamp', $IcePHP__t_int), - array('txt', $IcePHP__t_string))); -} - -if(!isset($Murmur__t_Tree)) -{ - $Murmur__t_Tree = IcePHP_declareClass('::Murmur::Tree'); - $Murmur__t_TreePrx = IcePHP_defineProxy($Murmur__t_Tree); -} - -if(!isset($Murmur__t_TreeList)) -{ - $Murmur__t_TreeList = IcePHP_defineSequence('::Murmur::TreeList', $Murmur__t_Tree); -} - -if(!class_exists('Murmur_ChannelInfo')) -{ - class Murmur_ChannelInfo - { - const ChannelDescription = 0; - const ChannelPosition = 1; - } - - $Murmur__t_ChannelInfo = IcePHP_defineEnum('::Murmur::ChannelInfo', array('ChannelDescription', 'ChannelPosition')); -} - -if(!class_exists('Murmur_UserInfo')) -{ - class Murmur_UserInfo - { - const UserName = 0; - const UserEmail = 1; - const UserComment = 2; - const UserHash = 3; - const UserPassword = 4; - const UserLastActive = 5; - } - - $Murmur__t_UserInfo = IcePHP_defineEnum('::Murmur::UserInfo', array('UserName', 'UserEmail', 'UserComment', 'UserHash', 'UserPassword', 'UserLastActive')); -} - -if(!isset($Murmur__t_UserMap)) -{ - $Murmur__t_UserMap = IcePHP_defineDictionary('::Murmur::UserMap', $IcePHP__t_int, $Murmur__t_User); -} - -if(!isset($Murmur__t_ChannelMap)) -{ - $Murmur__t_ChannelMap = IcePHP_defineDictionary('::Murmur::ChannelMap', $IcePHP__t_int, $Murmur__t_Channel); -} - -if(!isset($Murmur__t_ChannelList)) -{ - $Murmur__t_ChannelList = IcePHP_defineSequence('::Murmur::ChannelList', $Murmur__t_Channel); -} - -if(!isset($Murmur__t_UserList)) -{ - $Murmur__t_UserList = IcePHP_defineSequence('::Murmur::UserList', $Murmur__t_User); -} - -if(!isset($Murmur__t_GroupList)) -{ - $Murmur__t_GroupList = IcePHP_defineSequence('::Murmur::GroupList', $Murmur__t_Group); -} - -if(!isset($Murmur__t_ACLList)) -{ - $Murmur__t_ACLList = IcePHP_defineSequence('::Murmur::ACLList', $Murmur__t_ACL); -} - -if(!isset($Murmur__t_LogList)) -{ - $Murmur__t_LogList = IcePHP_defineSequence('::Murmur::LogList', $Murmur__t_LogEntry); -} - -if(!isset($Murmur__t_BanList)) -{ - $Murmur__t_BanList = IcePHP_defineSequence('::Murmur::BanList', $Murmur__t_Ban); -} - -if(!isset($Murmur__t_IdList)) -{ - $Murmur__t_IdList = IcePHP_defineSequence('::Murmur::IdList', $IcePHP__t_int); -} - -if(!isset($Murmur__t_NameList)) -{ - $Murmur__t_NameList = IcePHP_defineSequence('::Murmur::NameList', $IcePHP__t_string); -} - -if(!isset($Murmur__t_NameMap)) -{ - $Murmur__t_NameMap = IcePHP_defineDictionary('::Murmur::NameMap', $IcePHP__t_int, $IcePHP__t_string); -} - -if(!isset($Murmur__t_IdMap)) -{ - $Murmur__t_IdMap = IcePHP_defineDictionary('::Murmur::IdMap', $IcePHP__t_string, $IcePHP__t_int); -} - -if(!isset($Murmur__t_Texture)) -{ - $Murmur__t_Texture = IcePHP_defineSequence('::Murmur::Texture', $IcePHP__t_byte); -} - -if(!isset($Murmur__t_ConfigMap)) -{ - $Murmur__t_ConfigMap = IcePHP_defineDictionary('::Murmur::ConfigMap', $IcePHP__t_string, $IcePHP__t_string); -} - -if(!isset($Murmur__t_GroupNameList)) -{ - $Murmur__t_GroupNameList = IcePHP_defineSequence('::Murmur::GroupNameList', $IcePHP__t_string); -} - -if(!isset($Murmur__t_CertificateDer)) -{ - $Murmur__t_CertificateDer = IcePHP_defineSequence('::Murmur::CertificateDer', $IcePHP__t_byte); -} - -if(!isset($Murmur__t_CertificateList)) -{ - $Murmur__t_CertificateList = IcePHP_defineSequence('::Murmur::CertificateList', $Murmur__t_CertificateDer); -} - -if(!isset($Murmur__t_UserInfoMap)) -{ - $Murmur__t_UserInfoMap = IcePHP_defineDictionary('::Murmur::UserInfoMap', $Murmur__t_UserInfo, $IcePHP__t_string); -} - -if(!class_exists('Murmur_Tree')) -{ - class Murmur_Tree extends Ice_ObjectImpl - { - public function __construct($c=null, $children=null, $users=null) - { - $this->c = is_null($c) ? new Murmur_Channel : $c; - $this->children = $children; - $this->users = $users; - } - - public static function ice_staticId() - { - return '::Murmur::Tree'; - } - - public function __toString() - { - global $Murmur__t_Tree; - return IcePHP_stringify($this, $Murmur__t_Tree); - } - - public $c; - public $children; - public $users; - } - - class Murmur_TreePrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::Tree', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::Tree', $facet); - } - } - - $Murmur__t_Tree = IcePHP_defineClass('::Murmur::Tree', 'Murmur_Tree', false, $Ice__t_Object, null, array( - array('c', $Murmur__t_Channel), - - array('children', $Murmur__t_TreeList), - - array('users', $Murmur__t_UserList))); - - $Murmur__t_TreePrx = IcePHP_defineProxy($Murmur__t_Tree); -} - -if(!class_exists('Murmur_MurmurException')) -{ - class Murmur_MurmurException extends Ice_UserException - { - public function __construct() - { - } - - public function ice_name() - { - return 'Murmur::MurmurException'; - } - - public function __toString() - { - global $Murmur__t_MurmurException; - return IcePHP_stringifyException($this, $Murmur__t_MurmurException); - } - } - - $Murmur__t_MurmurException = IcePHP_defineException('::Murmur::MurmurException', 'Murmur_MurmurException', null, null); -} - -if(!class_exists('Murmur_InvalidSessionException')) -{ - class Murmur_InvalidSessionException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidSessionException'; - } - - public function __toString() - { - global $Murmur__t_InvalidSessionException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidSessionException); - } - } - - $Murmur__t_InvalidSessionException = IcePHP_defineException('::Murmur::InvalidSessionException', 'Murmur_InvalidSessionException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidChannelException')) -{ - class Murmur_InvalidChannelException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidChannelException'; - } - - public function __toString() - { - global $Murmur__t_InvalidChannelException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidChannelException); - } - } - - $Murmur__t_InvalidChannelException = IcePHP_defineException('::Murmur::InvalidChannelException', 'Murmur_InvalidChannelException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidServerException')) -{ - class Murmur_InvalidServerException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidServerException'; - } - - public function __toString() - { - global $Murmur__t_InvalidServerException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidServerException); - } - } - - $Murmur__t_InvalidServerException = IcePHP_defineException('::Murmur::InvalidServerException', 'Murmur_InvalidServerException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_ServerBootedException')) -{ - class Murmur_ServerBootedException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::ServerBootedException'; - } - - public function __toString() - { - global $Murmur__t_ServerBootedException; - return IcePHP_stringifyException($this, $Murmur__t_ServerBootedException); - } - } - - $Murmur__t_ServerBootedException = IcePHP_defineException('::Murmur::ServerBootedException', 'Murmur_ServerBootedException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_ServerFailureException')) -{ - class Murmur_ServerFailureException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::ServerFailureException'; - } - - public function __toString() - { - global $Murmur__t_ServerFailureException; - return IcePHP_stringifyException($this, $Murmur__t_ServerFailureException); - } - } - - $Murmur__t_ServerFailureException = IcePHP_defineException('::Murmur::ServerFailureException', 'Murmur_ServerFailureException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidUserException')) -{ - class Murmur_InvalidUserException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidUserException'; - } - - public function __toString() - { - global $Murmur__t_InvalidUserException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidUserException); - } - } - - $Murmur__t_InvalidUserException = IcePHP_defineException('::Murmur::InvalidUserException', 'Murmur_InvalidUserException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidTextureException')) -{ - class Murmur_InvalidTextureException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidTextureException'; - } - - public function __toString() - { - global $Murmur__t_InvalidTextureException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidTextureException); - } - } - - $Murmur__t_InvalidTextureException = IcePHP_defineException('::Murmur::InvalidTextureException', 'Murmur_InvalidTextureException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidCallbackException')) -{ - class Murmur_InvalidCallbackException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidCallbackException'; - } - - public function __toString() - { - global $Murmur__t_InvalidCallbackException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidCallbackException); - } - } - - $Murmur__t_InvalidCallbackException = IcePHP_defineException('::Murmur::InvalidCallbackException', 'Murmur_InvalidCallbackException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidSecretException')) -{ - class Murmur_InvalidSecretException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidSecretException'; - } - - public function __toString() - { - global $Murmur__t_InvalidSecretException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidSecretException); - } - } - - $Murmur__t_InvalidSecretException = IcePHP_defineException('::Murmur::InvalidSecretException', 'Murmur_InvalidSecretException', $Murmur__t_MurmurException, null); -} - -if(!interface_exists('Murmur_ServerCallback')) -{ - interface Murmur_ServerCallback - { - public function userConnected($state); - public function userDisconnected($state); - public function userStateChanged($state); - public function channelCreated($state); - public function channelRemoved($state); - public function channelStateChanged($state); - } - - class Murmur_ServerCallbackPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerCallback', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerCallback', $facet); - } - } - - $Murmur__t_ServerCallback = IcePHP_defineClass('::Murmur::ServerCallback', 'Murmur_ServerCallback', true, $Ice__t_Object, null, null); - - $Murmur__t_ServerCallbackPrx = IcePHP_defineProxy($Murmur__t_ServerCallback); - - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userConnected', 2, 2, array($Murmur__t_User), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userDisconnected', 2, 2, array($Murmur__t_User), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userStateChanged', 2, 2, array($Murmur__t_User), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'channelCreated', 2, 2, array($Murmur__t_Channel), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'channelRemoved', 2, 2, array($Murmur__t_Channel), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'channelStateChanged', 2, 2, array($Murmur__t_Channel), null, null, null); -} - -if(!defined('Murmur_ContextServer')) -{ - define('Murmur_ContextServer', 1); -} - -if(!defined('Murmur_ContextChannel')) -{ - define('Murmur_ContextChannel', 2); -} - -if(!defined('Murmur_ContextUser')) -{ - define('Murmur_ContextUser', 4); -} - -if(!interface_exists('Murmur_ServerContextCallback')) -{ - interface Murmur_ServerContextCallback - { - public function contextAction($action, $usr, $session, $channelid); - } - - class Murmur_ServerContextCallbackPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerContextCallback', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerContextCallback', $facet); - } - } - - $Murmur__t_ServerContextCallback = IcePHP_defineClass('::Murmur::ServerContextCallback', 'Murmur_ServerContextCallback', true, $Ice__t_Object, null, null); - - $Murmur__t_ServerContextCallbackPrx = IcePHP_defineProxy($Murmur__t_ServerContextCallback); - - IcePHP_defineOperation($Murmur__t_ServerContextCallback, 'contextAction', 2, 2, array($IcePHP__t_string, $Murmur__t_User, $IcePHP__t_int, $IcePHP__t_int), null, null, null); -} - -if(!interface_exists('Murmur_ServerAuthenticator')) -{ - interface Murmur_ServerAuthenticator - { - public function authenticate($name, $pw, $certificates, $certhash, $certstrong, $newname, $groups); - public function getInfo($id, $info); - public function nameToId($name); - public function idToName($id); - public function idToTexture($id); - } - - class Murmur_ServerAuthenticatorPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerAuthenticator', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerAuthenticator', $facet); - } - } - - $Murmur__t_ServerAuthenticator = IcePHP_defineClass('::Murmur::ServerAuthenticator', 'Murmur_ServerAuthenticator', true, $Ice__t_Object, null, null); - - $Murmur__t_ServerAuthenticatorPrx = IcePHP_defineProxy($Murmur__t_ServerAuthenticator); - - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'authenticate', 2, 2, array($IcePHP__t_string, $IcePHP__t_string, $Murmur__t_CertificateList, $IcePHP__t_string, $IcePHP__t_bool), array($IcePHP__t_string, $Murmur__t_GroupNameList), $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'getInfo', 2, 2, array($IcePHP__t_int), array($Murmur__t_UserInfoMap), $IcePHP__t_bool, null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'nameToId', 2, 2, array($IcePHP__t_string), null, $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'idToName', 2, 2, array($IcePHP__t_int), null, $IcePHP__t_string, null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'idToTexture', 2, 2, array($IcePHP__t_int), null, $Murmur__t_Texture, null); -} - -if(!interface_exists('Murmur_ServerUpdatingAuthenticator')) -{ - interface Murmur_ServerUpdatingAuthenticator extends Murmur_ServerAuthenticator - { - public function registerUser($info); - public function unregisterUser($id); - public function getRegisteredUsers($filter); - public function setInfo($id, $info); - public function setTexture($id, $tex); - } - - class Murmur_ServerUpdatingAuthenticatorPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerUpdatingAuthenticator', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerUpdatingAuthenticator', $facet); - } - } - - $Murmur__t_ServerUpdatingAuthenticator = IcePHP_defineClass('::Murmur::ServerUpdatingAuthenticator', 'Murmur_ServerUpdatingAuthenticator', true, $Ice__t_Object, array($Murmur__t_ServerAuthenticator), null); - - $Murmur__t_ServerUpdatingAuthenticatorPrx = IcePHP_defineProxy($Murmur__t_ServerUpdatingAuthenticator); - - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'registerUser', 0, 0, array($Murmur__t_UserInfoMap), null, $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'unregisterUser', 0, 0, array($IcePHP__t_int), null, $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'getRegisteredUsers', 2, 2, array($IcePHP__t_string), null, $Murmur__t_NameMap, null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'setInfo', 2, 2, array($IcePHP__t_int, $Murmur__t_UserInfoMap), null, $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'setTexture', 2, 2, array($IcePHP__t_int, $Murmur__t_Texture), null, $IcePHP__t_int, null); -} - -if(!interface_exists('Murmur_Server')) -{ - interface Murmur_Server - { - public function isRunning(); - public function start(); - public function stop(); - public function delete(); - public function id(); - public function addCallback($cb); - public function removeCallback($cb); - public function setAuthenticator($auth); - public function getConf($key); - public function getAllConf(); - public function setConf($key, $value); - public function setSuperuserPassword($pw); - public function getLog($first, $last); - public function getLogLen(); - public function getUsers(); - public function getChannels(); - public function getCertificateList($session); - public function getTree(); - public function getBans(); - public function setBans($bans); - public function kickUser($session, $reason); - public function getState($session); - public function setState($state); - public function sendMessage($session, $text); - public function hasPermission($session, $channelid, $perm); - public function addContextCallback($session, $action, $text, $cb, $ctx); - public function removeContextCallback($cb); - public function getChannelState($channelid); - public function setChannelState($state); - public function removeChannel($channelid); - public function addChannel($name, $parent); - public function sendMessageChannel($channelid, $tree, $text); - public function getACL($channelid, $acls, $groups, $inherit); - public function setACL($channelid, $acls, $groups, $inherit); - public function addUserToGroup($channelid, $session, $group); - public function removeUserFromGroup($channelid, $session, $group); - public function redirectWhisperGroup($session, $source, $target); - public function getUserNames($ids); - public function getUserIds($names); - public function registerUser($info); - public function unregisterUser($userid); - public function updateRegistration($userid, $info); - public function getRegistration($userid); - public function getRegisteredUsers($filter); - public function verifyPassword($name, $pw); - public function getTexture($userid); - public function setTexture($userid, $tex); - public function getUptime(); - } - - class Murmur_ServerPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::Server', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::Server', $facet); - } - } - - $Murmur__t_Server = IcePHP_defineClass('::Murmur::Server', 'Murmur_Server', true, $Ice__t_Object, null, null); - - $Murmur__t_ServerPrx = IcePHP_defineProxy($Murmur__t_Server); - - IcePHP_defineOperation($Murmur__t_Server, 'isRunning', 2, 2, null, null, $IcePHP__t_bool, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'start', 0, 0, null, null, null, array($Murmur__t_ServerBootedException, $Murmur__t_ServerFailureException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'stop', 0, 0, null, null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'delete', 0, 0, null, null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'id', 2, 2, null, null, $IcePHP__t_int, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'addCallback', 0, 0, array($Murmur__t_ServerCallbackPrx), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeCallback', 0, 0, array($Murmur__t_ServerCallbackPrx), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setAuthenticator', 0, 0, array($Murmur__t_ServerAuthenticatorPrx), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getConf', 2, 2, array($IcePHP__t_string), null, $IcePHP__t_string, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getAllConf', 2, 2, null, null, $Murmur__t_ConfigMap, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setConf', 2, 2, array($IcePHP__t_string, $IcePHP__t_string), null, null, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setSuperuserPassword', 2, 2, array($IcePHP__t_string), null, null, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getLog', 2, 2, array($IcePHP__t_int, $IcePHP__t_int), null, $Murmur__t_LogList, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getLogLen', 2, 2, null, null, $IcePHP__t_int, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUsers', 2, 2, null, null, $Murmur__t_UserMap, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getChannels', 2, 2, null, null, $Murmur__t_ChannelMap, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getCertificateList', 2, 2, array($IcePHP__t_int), null, $Murmur__t_CertificateList, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getTree', 2, 2, null, null, $Murmur__t_Tree, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getBans', 2, 2, null, null, $Murmur__t_BanList, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setBans', 2, 2, array($Murmur__t_BanList), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'kickUser', 0, 0, array($IcePHP__t_int, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getState', 2, 2, array($IcePHP__t_int), null, $Murmur__t_User, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setState', 2, 2, array($Murmur__t_User), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'sendMessage', 0, 0, array($IcePHP__t_int, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'hasPermission', 0, 0, array($IcePHP__t_int, $IcePHP__t_int, $IcePHP__t_int), null, $IcePHP__t_bool, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'addContextCallback', 0, 0, array($IcePHP__t_int, $IcePHP__t_string, $IcePHP__t_string, $Murmur__t_ServerContextCallbackPrx, $IcePHP__t_int), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeContextCallback', 0, 0, array($Murmur__t_ServerContextCallbackPrx), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getChannelState', 2, 2, array($IcePHP__t_int), null, $Murmur__t_Channel, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setChannelState', 2, 2, array($Murmur__t_Channel), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeChannel', 0, 0, array($IcePHP__t_int), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'addChannel', 0, 0, array($IcePHP__t_string, $IcePHP__t_int), null, $IcePHP__t_int, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'sendMessageChannel', 0, 0, array($IcePHP__t_int, $IcePHP__t_bool, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getACL', 2, 2, array($IcePHP__t_int), array($Murmur__t_ACLList, $Murmur__t_GroupList, $IcePHP__t_bool), null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setACL', 2, 2, array($IcePHP__t_int, $Murmur__t_ACLList, $Murmur__t_GroupList, $IcePHP__t_bool), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'addUserToGroup', 2, 2, array($IcePHP__t_int, $IcePHP__t_int, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeUserFromGroup', 2, 2, array($IcePHP__t_int, $IcePHP__t_int, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'redirectWhisperGroup', 2, 2, array($IcePHP__t_int, $IcePHP__t_string, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUserNames', 2, 2, array($Murmur__t_IdList), null, $Murmur__t_NameMap, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUserIds', 2, 2, array($Murmur__t_NameList), null, $Murmur__t_IdMap, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'registerUser', 0, 0, array($Murmur__t_UserInfoMap), null, $IcePHP__t_int, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'unregisterUser', 0, 0, array($IcePHP__t_int), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'updateRegistration', 2, 2, array($IcePHP__t_int, $Murmur__t_UserInfoMap), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getRegistration', 2, 2, array($IcePHP__t_int), null, $Murmur__t_UserInfoMap, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getRegisteredUsers', 2, 2, array($IcePHP__t_string), null, $Murmur__t_NameMap, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'verifyPassword', 2, 2, array($IcePHP__t_string, $IcePHP__t_string), null, $IcePHP__t_int, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getTexture', 2, 2, array($IcePHP__t_int), null, $Murmur__t_Texture, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setTexture', 2, 2, array($IcePHP__t_int, $Murmur__t_Texture), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidTextureException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUptime', 2, 2, null, null, $IcePHP__t_int, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); -} - -if(!interface_exists('Murmur_MetaCallback')) -{ - interface Murmur_MetaCallback - { - public function started($srv); - public function stopped($srv); - } - - class Murmur_MetaCallbackPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::MetaCallback', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::MetaCallback', $facet); - } - } - - $Murmur__t_MetaCallback = IcePHP_defineClass('::Murmur::MetaCallback', 'Murmur_MetaCallback', true, $Ice__t_Object, null, null); - - $Murmur__t_MetaCallbackPrx = IcePHP_defineProxy($Murmur__t_MetaCallback); - - IcePHP_defineOperation($Murmur__t_MetaCallback, 'started', 0, 0, array($Murmur__t_ServerPrx), null, null, null); - IcePHP_defineOperation($Murmur__t_MetaCallback, 'stopped', 0, 0, array($Murmur__t_ServerPrx), null, null, null); -} - -if(!isset($Murmur__t_ServerList)) -{ - $Murmur__t_ServerList = IcePHP_defineSequence('::Murmur::ServerList', $Murmur__t_ServerPrx); -} - -if(!interface_exists('Murmur_Meta')) -{ - interface Murmur_Meta - { - public function getServer($id); - public function newServer(); - public function getBootedServers(); - public function getAllServers(); - public function getDefaultConf(); - public function getVersion($major, $minor, $patch, $text); - public function addCallback($cb); - public function removeCallback($cb); - public function getUptime(); - public function getSlice(); - public function getSliceChecksums(); - } - - class Murmur_MetaPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::Meta', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::Meta', $facet); - } - } - - $Murmur__t_Meta = IcePHP_defineClass('::Murmur::Meta', 'Murmur_Meta', true, $Ice__t_Object, null, null); - - $Murmur__t_MetaPrx = IcePHP_defineProxy($Murmur__t_Meta); - - IcePHP_defineOperation($Murmur__t_Meta, 'getServer', 2, 2, array($IcePHP__t_int), null, $Murmur__t_ServerPrx, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'newServer', 0, 0, null, null, $Murmur__t_ServerPrx, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getBootedServers', 2, 2, null, null, $Murmur__t_ServerList, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getAllServers', 2, 2, null, null, $Murmur__t_ServerList, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getDefaultConf', 2, 2, null, null, $Murmur__t_ConfigMap, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getVersion', 2, 2, null, array($IcePHP__t_int, $IcePHP__t_int, $IcePHP__t_int, $IcePHP__t_string), null, null); - IcePHP_defineOperation($Murmur__t_Meta, 'addCallback', 0, 0, array($Murmur__t_MetaCallbackPrx), null, null, array($Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'removeCallback', 0, 0, array($Murmur__t_MetaCallbackPrx), null, null, array($Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getUptime', 2, 2, null, null, $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_Meta, 'getSlice', 2, 2, null, null, $IcePHP__t_string, null); - IcePHP_defineOperation($Murmur__t_Meta, 'getSliceChecksums', 2, 2, null, null, $Ice__t_SliceChecksumDict, null); -} -?> diff --git a/classes/Murmur_1.2.3_debian.php b/classes/Murmur_1.2.3_debian.php deleted file mode 100644 index 3eecf69..0000000 --- a/classes/Murmur_1.2.3_debian.php +++ /dev/null @@ -1,1189 +0,0 @@ - -// -// Generated from file `Murmur.ice' -// -// Warning: do not edit this file. -// -// -// - -require_once 'Ice/SliceChecksumDict.php'; - -if(!isset($Murmur__t_NetAddress)) -{ - $Murmur__t_NetAddress = IcePHP_defineSequence('::Murmur::NetAddress', $IcePHP__t_byte); -} - -if(!class_exists('Murmur_User')) -{ - class Murmur_User - { - public function __construct($session=0, $userid=0, $mute=false, $deaf=false, $suppress=false, $prioritySpeaker=false, $selfMute=false, $selfDeaf=false, $recording=false, $channel=0, $name='', $onlinesecs=0, $bytespersec=0, $version=0, $release='', $os='', $osversion='', $identity='', $context='', $comment='', $address=null, $tcponly=false, $idlesecs=0, $udpPing=0.0, $tcpPing=0.0) - { - $this->session = $session; - $this->userid = $userid; - $this->mute = $mute; - $this->deaf = $deaf; - $this->suppress = $suppress; - $this->prioritySpeaker = $prioritySpeaker; - $this->selfMute = $selfMute; - $this->selfDeaf = $selfDeaf; - $this->recording = $recording; - $this->channel = $channel; - $this->name = $name; - $this->onlinesecs = $onlinesecs; - $this->bytespersec = $bytespersec; - $this->version = $version; - $this->release = $release; - $this->os = $os; - $this->osversion = $osversion; - $this->identity = $identity; - $this->context = $context; - $this->comment = $comment; - $this->address = $address; - $this->tcponly = $tcponly; - $this->idlesecs = $idlesecs; - $this->udpPing = $udpPing; - $this->tcpPing = $tcpPing; - } - - public function __toString() - { - global $Murmur__t_User; - return IcePHP_stringify($this, $Murmur__t_User); - } - - public $session; - public $userid; - public $mute; - public $deaf; - public $suppress; - public $prioritySpeaker; - public $selfMute; - public $selfDeaf; - public $recording; - public $channel; - public $name; - public $onlinesecs; - public $bytespersec; - public $version; - public $release; - public $os; - public $osversion; - public $identity; - public $context; - public $comment; - public $address; - public $tcponly; - public $idlesecs; - public $udpPing; - public $tcpPing; - } - - $Murmur__t_User = IcePHP_defineStruct('::Murmur::User', 'Murmur_User', array( - array('session', $IcePHP__t_int), - array('userid', $IcePHP__t_int), - array('mute', $IcePHP__t_bool), - array('deaf', $IcePHP__t_bool), - array('suppress', $IcePHP__t_bool), - array('prioritySpeaker', $IcePHP__t_bool), - array('selfMute', $IcePHP__t_bool), - array('selfDeaf', $IcePHP__t_bool), - array('recording', $IcePHP__t_bool), - array('channel', $IcePHP__t_int), - array('name', $IcePHP__t_string), - array('onlinesecs', $IcePHP__t_int), - array('bytespersec', $IcePHP__t_int), - array('version', $IcePHP__t_int), - array('release', $IcePHP__t_string), - array('os', $IcePHP__t_string), - array('osversion', $IcePHP__t_string), - array('identity', $IcePHP__t_string), - array('context', $IcePHP__t_string), - array('comment', $IcePHP__t_string), - array('address', $Murmur__t_NetAddress), - array('tcponly', $IcePHP__t_bool), - array('idlesecs', $IcePHP__t_int), - array('udpPing', $IcePHP__t_float), - array('tcpPing', $IcePHP__t_float))); -} - -if(!isset($Murmur__t_IntList)) -{ - $Murmur__t_IntList = IcePHP_defineSequence('::Murmur::IntList', $IcePHP__t_int); -} - -if(!class_exists('Murmur_TextMessage')) -{ - class Murmur_TextMessage - { - public function __construct($sessions=null, $channels=null, $trees=null, $text='') - { - $this->sessions = $sessions; - $this->channels = $channels; - $this->trees = $trees; - $this->text = $text; - } - - public function __toString() - { - global $Murmur__t_TextMessage; - return IcePHP_stringify($this, $Murmur__t_TextMessage); - } - - public $sessions; - public $channels; - public $trees; - public $text; - } - - $Murmur__t_TextMessage = IcePHP_defineStruct('::Murmur::TextMessage', 'Murmur_TextMessage', array( - array('sessions', $Murmur__t_IntList), - array('channels', $Murmur__t_IntList), - array('trees', $Murmur__t_IntList), - array('text', $IcePHP__t_string))); -} - -if(!class_exists('Murmur_Channel')) -{ - class Murmur_Channel - { - public function __construct($id=0, $name='', $parent=0, $links=null, $description='', $temporary=false, $position=0) - { - $this->id = $id; - $this->name = $name; - $this->parent = $parent; - $this->links = $links; - $this->description = $description; - $this->temporary = $temporary; - $this->position = $position; - } - - public function __toString() - { - global $Murmur__t_Channel; - return IcePHP_stringify($this, $Murmur__t_Channel); - } - - public $id; - public $name; - public $parent; - public $links; - public $description; - public $temporary; - public $position; - } - - $Murmur__t_Channel = IcePHP_defineStruct('::Murmur::Channel', 'Murmur_Channel', array( - array('id', $IcePHP__t_int), - array('name', $IcePHP__t_string), - array('parent', $IcePHP__t_int), - array('links', $Murmur__t_IntList), - array('description', $IcePHP__t_string), - array('temporary', $IcePHP__t_bool), - array('position', $IcePHP__t_int))); -} - -if(!class_exists('Murmur_Group')) -{ - class Murmur_Group - { - public function __construct($name='', $inherited=false, $inherit=false, $inheritable=false, $add=null, $remove=null, $members=null) - { - $this->name = $name; - $this->inherited = $inherited; - $this->inherit = $inherit; - $this->inheritable = $inheritable; - $this->add = $add; - $this->remove = $remove; - $this->members = $members; - } - - public function __toString() - { - global $Murmur__t_Group; - return IcePHP_stringify($this, $Murmur__t_Group); - } - - public $name; - public $inherited; - public $inherit; - public $inheritable; - public $add; - public $remove; - public $members; - } - - $Murmur__t_Group = IcePHP_defineStruct('::Murmur::Group', 'Murmur_Group', array( - array('name', $IcePHP__t_string), - array('inherited', $IcePHP__t_bool), - array('inherit', $IcePHP__t_bool), - array('inheritable', $IcePHP__t_bool), - array('add', $Murmur__t_IntList), - array('remove', $Murmur__t_IntList), - array('members', $Murmur__t_IntList))); -} - -if(!defined('Murmur_PermissionWrite')) -{ - define('Murmur_PermissionWrite', 1); -} - -if(!defined('Murmur_PermissionTraverse')) -{ - define('Murmur_PermissionTraverse', 2); -} - -if(!defined('Murmur_PermissionEnter')) -{ - define('Murmur_PermissionEnter', 4); -} - -if(!defined('Murmur_PermissionSpeak')) -{ - define('Murmur_PermissionSpeak', 8); -} - -if(!defined('Murmur_PermissionWhisper')) -{ - define('Murmur_PermissionWhisper', 256); -} - -if(!defined('Murmur_PermissionMuteDeafen')) -{ - define('Murmur_PermissionMuteDeafen', 16); -} - -if(!defined('Murmur_PermissionMove')) -{ - define('Murmur_PermissionMove', 32); -} - -if(!defined('Murmur_PermissionMakeChannel')) -{ - define('Murmur_PermissionMakeChannel', 64); -} - -if(!defined('Murmur_PermissionMakeTempChannel')) -{ - define('Murmur_PermissionMakeTempChannel', 1024); -} - -if(!defined('Murmur_PermissionLinkChannel')) -{ - define('Murmur_PermissionLinkChannel', 128); -} - -if(!defined('Murmur_PermissionTextMessage')) -{ - define('Murmur_PermissionTextMessage', 512); -} - -if(!defined('Murmur_PermissionKick')) -{ - define('Murmur_PermissionKick', 65536); -} - -if(!defined('Murmur_PermissionBan')) -{ - define('Murmur_PermissionBan', 131072); -} - -if(!defined('Murmur_PermissionRegister')) -{ - define('Murmur_PermissionRegister', 262144); -} - -if(!defined('Murmur_PermissionRegisterSelf')) -{ - define('Murmur_PermissionRegisterSelf', 524288); -} - -if(!class_exists('Murmur_ACL')) -{ - class Murmur_ACL - { - public function __construct($applyHere=false, $applySubs=false, $inherited=false, $userid=0, $group='', $allow=0, $deny=0) - { - $this->applyHere = $applyHere; - $this->applySubs = $applySubs; - $this->inherited = $inherited; - $this->userid = $userid; - $this->group = $group; - $this->allow = $allow; - $this->deny = $deny; - } - - public function __toString() - { - global $Murmur__t_ACL; - return IcePHP_stringify($this, $Murmur__t_ACL); - } - - public $applyHere; - public $applySubs; - public $inherited; - public $userid; - public $group; - public $allow; - public $deny; - } - - $Murmur__t_ACL = IcePHP_defineStruct('::Murmur::ACL', 'Murmur_ACL', array( - array('applyHere', $IcePHP__t_bool), - array('applySubs', $IcePHP__t_bool), - array('inherited', $IcePHP__t_bool), - array('userid', $IcePHP__t_int), - array('group', $IcePHP__t_string), - array('allow', $IcePHP__t_int), - array('deny', $IcePHP__t_int))); -} - -if(!class_exists('Murmur_Ban')) -{ - class Murmur_Ban - { - public function __construct($address=null, $bits=0, $name='', $hash='', $reason='', $start=0, $duration=0) - { - $this->address = $address; - $this->bits = $bits; - $this->name = $name; - $this->hash = $hash; - $this->reason = $reason; - $this->start = $start; - $this->duration = $duration; - } - - public function __toString() - { - global $Murmur__t_Ban; - return IcePHP_stringify($this, $Murmur__t_Ban); - } - - public $address; - public $bits; - public $name; - public $hash; - public $reason; - public $start; - public $duration; - } - - $Murmur__t_Ban = IcePHP_defineStruct('::Murmur::Ban', 'Murmur_Ban', array( - array('address', $Murmur__t_NetAddress), - array('bits', $IcePHP__t_int), - array('name', $IcePHP__t_string), - array('hash', $IcePHP__t_string), - array('reason', $IcePHP__t_string), - array('start', $IcePHP__t_int), - array('duration', $IcePHP__t_int))); -} - -if(!class_exists('Murmur_LogEntry')) -{ - class Murmur_LogEntry - { - public function __construct($timestamp=0, $txt='') - { - $this->timestamp = $timestamp; - $this->txt = $txt; - } - - public function __toString() - { - global $Murmur__t_LogEntry; - return IcePHP_stringify($this, $Murmur__t_LogEntry); - } - - public $timestamp; - public $txt; - } - - $Murmur__t_LogEntry = IcePHP_defineStruct('::Murmur::LogEntry', 'Murmur_LogEntry', array( - array('timestamp', $IcePHP__t_int), - array('txt', $IcePHP__t_string))); -} - -if(!isset($Murmur__t_Tree)) -{ - $Murmur__t_Tree = IcePHP_declareClass('::Murmur::Tree'); - $Murmur__t_TreePrx = IcePHP_defineProxy($Murmur__t_Tree); -} - -if(!isset($Murmur__t_TreeList)) -{ - $Murmur__t_TreeList = IcePHP_defineSequence('::Murmur::TreeList', $Murmur__t_Tree); -} - -if(!class_exists('Murmur_ChannelInfo')) -{ - class Murmur_ChannelInfo - { - const ChannelDescription = 0; - const ChannelPosition = 1; - } - - $Murmur__t_ChannelInfo = IcePHP_defineEnum('::Murmur::ChannelInfo', array('ChannelDescription', 'ChannelPosition')); -} - -if(!class_exists('Murmur_UserInfo')) -{ - class Murmur_UserInfo - { - const UserName = 0; - const UserEmail = 1; - const UserComment = 2; - const UserHash = 3; - const UserPassword = 4; - const UserLastActive = 5; - } - - $Murmur__t_UserInfo = IcePHP_defineEnum('::Murmur::UserInfo', array('UserName', 'UserEmail', 'UserComment', 'UserHash', 'UserPassword', 'UserLastActive')); -} - -if(!isset($Murmur__t_UserMap)) -{ - $Murmur__t_UserMap = IcePHP_defineDictionary('::Murmur::UserMap', $IcePHP__t_int, $Murmur__t_User); -} - -if(!isset($Murmur__t_ChannelMap)) -{ - $Murmur__t_ChannelMap = IcePHP_defineDictionary('::Murmur::ChannelMap', $IcePHP__t_int, $Murmur__t_Channel); -} - -if(!isset($Murmur__t_ChannelList)) -{ - $Murmur__t_ChannelList = IcePHP_defineSequence('::Murmur::ChannelList', $Murmur__t_Channel); -} - -if(!isset($Murmur__t_UserList)) -{ - $Murmur__t_UserList = IcePHP_defineSequence('::Murmur::UserList', $Murmur__t_User); -} - -if(!isset($Murmur__t_GroupList)) -{ - $Murmur__t_GroupList = IcePHP_defineSequence('::Murmur::GroupList', $Murmur__t_Group); -} - -if(!isset($Murmur__t_ACLList)) -{ - $Murmur__t_ACLList = IcePHP_defineSequence('::Murmur::ACLList', $Murmur__t_ACL); -} - -if(!isset($Murmur__t_LogList)) -{ - $Murmur__t_LogList = IcePHP_defineSequence('::Murmur::LogList', $Murmur__t_LogEntry); -} - -if(!isset($Murmur__t_BanList)) -{ - $Murmur__t_BanList = IcePHP_defineSequence('::Murmur::BanList', $Murmur__t_Ban); -} - -if(!isset($Murmur__t_IdList)) -{ - $Murmur__t_IdList = IcePHP_defineSequence('::Murmur::IdList', $IcePHP__t_int); -} - -if(!isset($Murmur__t_NameList)) -{ - $Murmur__t_NameList = IcePHP_defineSequence('::Murmur::NameList', $IcePHP__t_string); -} - -if(!isset($Murmur__t_NameMap)) -{ - $Murmur__t_NameMap = IcePHP_defineDictionary('::Murmur::NameMap', $IcePHP__t_int, $IcePHP__t_string); -} - -if(!isset($Murmur__t_IdMap)) -{ - $Murmur__t_IdMap = IcePHP_defineDictionary('::Murmur::IdMap', $IcePHP__t_string, $IcePHP__t_int); -} - -if(!isset($Murmur__t_Texture)) -{ - $Murmur__t_Texture = IcePHP_defineSequence('::Murmur::Texture', $IcePHP__t_byte); -} - -if(!isset($Murmur__t_ConfigMap)) -{ - $Murmur__t_ConfigMap = IcePHP_defineDictionary('::Murmur::ConfigMap', $IcePHP__t_string, $IcePHP__t_string); -} - -if(!isset($Murmur__t_GroupNameList)) -{ - $Murmur__t_GroupNameList = IcePHP_defineSequence('::Murmur::GroupNameList', $IcePHP__t_string); -} - -if(!isset($Murmur__t_CertificateDer)) -{ - $Murmur__t_CertificateDer = IcePHP_defineSequence('::Murmur::CertificateDer', $IcePHP__t_byte); -} - -if(!isset($Murmur__t_CertificateList)) -{ - $Murmur__t_CertificateList = IcePHP_defineSequence('::Murmur::CertificateList', $Murmur__t_CertificateDer); -} - -if(!isset($Murmur__t_UserInfoMap)) -{ - $Murmur__t_UserInfoMap = IcePHP_defineDictionary('::Murmur::UserInfoMap', $Murmur__t_UserInfo, $IcePHP__t_string); -} - -if(!class_exists('Murmur_Tree')) -{ - class Murmur_Tree extends Ice_ObjectImpl - { - public function __construct($c=null, $children=null, $users=null) - { - $this->c = is_null($c) ? new Murmur_Channel : $c; - $this->children = $children; - $this->users = $users; - } - - public static function ice_staticId() - { - return '::Murmur::Tree'; - } - - public function __toString() - { - global $Murmur__t_Tree; - return IcePHP_stringify($this, $Murmur__t_Tree); - } - - public $c; - public $children; - public $users; - } - - class Murmur_TreePrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::Tree', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::Tree', $facet); - } - } - - $Murmur__t_Tree = IcePHP_defineClass('::Murmur::Tree', 'Murmur_Tree', false, $Ice__t_Object, null, array( - array('c', $Murmur__t_Channel), - - array('children', $Murmur__t_TreeList), - - array('users', $Murmur__t_UserList))); - - $Murmur__t_TreePrx = IcePHP_defineProxy($Murmur__t_Tree); -} - -if(!class_exists('Murmur_MurmurException')) -{ - class Murmur_MurmurException extends Ice_UserException - { - public function __construct() - { - } - - public function ice_name() - { - return 'Murmur::MurmurException'; - } - - public function __toString() - { - global $Murmur__t_MurmurException; - return IcePHP_stringifyException($this, $Murmur__t_MurmurException); - } - } - - $Murmur__t_MurmurException = IcePHP_defineException('::Murmur::MurmurException', 'Murmur_MurmurException', null, null); -} - -if(!class_exists('Murmur_InvalidSessionException')) -{ - class Murmur_InvalidSessionException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidSessionException'; - } - - public function __toString() - { - global $Murmur__t_InvalidSessionException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidSessionException); - } - } - - $Murmur__t_InvalidSessionException = IcePHP_defineException('::Murmur::InvalidSessionException', 'Murmur_InvalidSessionException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidChannelException')) -{ - class Murmur_InvalidChannelException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidChannelException'; - } - - public function __toString() - { - global $Murmur__t_InvalidChannelException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidChannelException); - } - } - - $Murmur__t_InvalidChannelException = IcePHP_defineException('::Murmur::InvalidChannelException', 'Murmur_InvalidChannelException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidServerException')) -{ - class Murmur_InvalidServerException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidServerException'; - } - - public function __toString() - { - global $Murmur__t_InvalidServerException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidServerException); - } - } - - $Murmur__t_InvalidServerException = IcePHP_defineException('::Murmur::InvalidServerException', 'Murmur_InvalidServerException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_ServerBootedException')) -{ - class Murmur_ServerBootedException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::ServerBootedException'; - } - - public function __toString() - { - global $Murmur__t_ServerBootedException; - return IcePHP_stringifyException($this, $Murmur__t_ServerBootedException); - } - } - - $Murmur__t_ServerBootedException = IcePHP_defineException('::Murmur::ServerBootedException', 'Murmur_ServerBootedException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_ServerFailureException')) -{ - class Murmur_ServerFailureException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::ServerFailureException'; - } - - public function __toString() - { - global $Murmur__t_ServerFailureException; - return IcePHP_stringifyException($this, $Murmur__t_ServerFailureException); - } - } - - $Murmur__t_ServerFailureException = IcePHP_defineException('::Murmur::ServerFailureException', 'Murmur_ServerFailureException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidUserException')) -{ - class Murmur_InvalidUserException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidUserException'; - } - - public function __toString() - { - global $Murmur__t_InvalidUserException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidUserException); - } - } - - $Murmur__t_InvalidUserException = IcePHP_defineException('::Murmur::InvalidUserException', 'Murmur_InvalidUserException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidTextureException')) -{ - class Murmur_InvalidTextureException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidTextureException'; - } - - public function __toString() - { - global $Murmur__t_InvalidTextureException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidTextureException); - } - } - - $Murmur__t_InvalidTextureException = IcePHP_defineException('::Murmur::InvalidTextureException', 'Murmur_InvalidTextureException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidCallbackException')) -{ - class Murmur_InvalidCallbackException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidCallbackException'; - } - - public function __toString() - { - global $Murmur__t_InvalidCallbackException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidCallbackException); - } - } - - $Murmur__t_InvalidCallbackException = IcePHP_defineException('::Murmur::InvalidCallbackException', 'Murmur_InvalidCallbackException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidSecretException')) -{ - class Murmur_InvalidSecretException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidSecretException'; - } - - public function __toString() - { - global $Murmur__t_InvalidSecretException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidSecretException); - } - } - - $Murmur__t_InvalidSecretException = IcePHP_defineException('::Murmur::InvalidSecretException', 'Murmur_InvalidSecretException', $Murmur__t_MurmurException, null); -} - -if(!interface_exists('Murmur_ServerCallback')) -{ - interface Murmur_ServerCallback - { - public function userConnected($state); - public function userDisconnected($state); - public function userStateChanged($state); - public function userTextMessage($state, $message); - public function channelCreated($state); - public function channelRemoved($state); - public function channelStateChanged($state); - } - - class Murmur_ServerCallbackPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerCallback', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerCallback', $facet); - } - } - - $Murmur__t_ServerCallback = IcePHP_defineClass('::Murmur::ServerCallback', 'Murmur_ServerCallback', true, $Ice__t_Object, null, null); - - $Murmur__t_ServerCallbackPrx = IcePHP_defineProxy($Murmur__t_ServerCallback); - - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userConnected', 2, 2, array($Murmur__t_User), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userDisconnected', 2, 2, array($Murmur__t_User), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userStateChanged', 2, 2, array($Murmur__t_User), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userTextMessage', 2, 2, array($Murmur__t_User, $Murmur__t_TextMessage), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'channelCreated', 2, 2, array($Murmur__t_Channel), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'channelRemoved', 2, 2, array($Murmur__t_Channel), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'channelStateChanged', 2, 2, array($Murmur__t_Channel), null, null, null); -} - -if(!defined('Murmur_ContextServer')) -{ - define('Murmur_ContextServer', 1); -} - -if(!defined('Murmur_ContextChannel')) -{ - define('Murmur_ContextChannel', 2); -} - -if(!defined('Murmur_ContextUser')) -{ - define('Murmur_ContextUser', 4); -} - -if(!interface_exists('Murmur_ServerContextCallback')) -{ - interface Murmur_ServerContextCallback - { - public function contextAction($action, $usr, $session, $channelid); - } - - class Murmur_ServerContextCallbackPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerContextCallback', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerContextCallback', $facet); - } - } - - $Murmur__t_ServerContextCallback = IcePHP_defineClass('::Murmur::ServerContextCallback', 'Murmur_ServerContextCallback', true, $Ice__t_Object, null, null); - - $Murmur__t_ServerContextCallbackPrx = IcePHP_defineProxy($Murmur__t_ServerContextCallback); - - IcePHP_defineOperation($Murmur__t_ServerContextCallback, 'contextAction', 2, 2, array($IcePHP__t_string, $Murmur__t_User, $IcePHP__t_int, $IcePHP__t_int), null, null, null); -} - -if(!interface_exists('Murmur_ServerAuthenticator')) -{ - interface Murmur_ServerAuthenticator - { - public function authenticate($name, $pw, $certificates, $certhash, $certstrong, $newname, $groups); - public function getInfo($id, $info); - public function nameToId($name); - public function idToName($id); - public function idToTexture($id); - } - - class Murmur_ServerAuthenticatorPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerAuthenticator', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerAuthenticator', $facet); - } - } - - $Murmur__t_ServerAuthenticator = IcePHP_defineClass('::Murmur::ServerAuthenticator', 'Murmur_ServerAuthenticator', true, $Ice__t_Object, null, null); - - $Murmur__t_ServerAuthenticatorPrx = IcePHP_defineProxy($Murmur__t_ServerAuthenticator); - - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'authenticate', 2, 2, array($IcePHP__t_string, $IcePHP__t_string, $Murmur__t_CertificateList, $IcePHP__t_string, $IcePHP__t_bool), array($IcePHP__t_string, $Murmur__t_GroupNameList), $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'getInfo', 2, 2, array($IcePHP__t_int), array($Murmur__t_UserInfoMap), $IcePHP__t_bool, null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'nameToId', 2, 2, array($IcePHP__t_string), null, $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'idToName', 2, 2, array($IcePHP__t_int), null, $IcePHP__t_string, null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'idToTexture', 2, 2, array($IcePHP__t_int), null, $Murmur__t_Texture, null); -} - -if(!interface_exists('Murmur_ServerUpdatingAuthenticator')) -{ - interface Murmur_ServerUpdatingAuthenticator extends Murmur_ServerAuthenticator - { - public function registerUser($info); - public function unregisterUser($id); - public function getRegisteredUsers($filter); - public function setInfo($id, $info); - public function setTexture($id, $tex); - } - - class Murmur_ServerUpdatingAuthenticatorPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerUpdatingAuthenticator', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerUpdatingAuthenticator', $facet); - } - } - - $Murmur__t_ServerUpdatingAuthenticator = IcePHP_defineClass('::Murmur::ServerUpdatingAuthenticator', 'Murmur_ServerUpdatingAuthenticator', true, $Ice__t_Object, array($Murmur__t_ServerAuthenticator), null); - - $Murmur__t_ServerUpdatingAuthenticatorPrx = IcePHP_defineProxy($Murmur__t_ServerUpdatingAuthenticator); - - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'registerUser', 0, 0, array($Murmur__t_UserInfoMap), null, $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'unregisterUser', 0, 0, array($IcePHP__t_int), null, $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'getRegisteredUsers', 2, 2, array($IcePHP__t_string), null, $Murmur__t_NameMap, null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'setInfo', 2, 2, array($IcePHP__t_int, $Murmur__t_UserInfoMap), null, $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'setTexture', 2, 2, array($IcePHP__t_int, $Murmur__t_Texture), null, $IcePHP__t_int, null); -} - -if(!interface_exists('Murmur_Server')) -{ - interface Murmur_Server - { - public function isRunning(); - public function start(); - public function stop(); - public function delete(); - public function id(); - public function addCallback($cb); - public function removeCallback($cb); - public function setAuthenticator($auth); - public function getConf($key); - public function getAllConf(); - public function setConf($key, $value); - public function setSuperuserPassword($pw); - public function getLog($first, $last); - public function getLogLen(); - public function getUsers(); - public function getChannels(); - public function getCertificateList($session); - public function getTree(); - public function getBans(); - public function setBans($bans); - public function kickUser($session, $reason); - public function getState($session); - public function setState($state); - public function sendMessage($session, $text); - public function hasPermission($session, $channelid, $perm); - public function effectivePermissions($session, $channelid); - public function addContextCallback($session, $action, $text, $cb, $ctx); - public function removeContextCallback($cb); - public function getChannelState($channelid); - public function setChannelState($state); - public function removeChannel($channelid); - public function addChannel($name, $parent); - public function sendMessageChannel($channelid, $tree, $text); - public function getACL($channelid, $acls, $groups, $inherit); - public function setACL($channelid, $acls, $groups, $inherit); - public function addUserToGroup($channelid, $session, $group); - public function removeUserFromGroup($channelid, $session, $group); - public function redirectWhisperGroup($session, $source, $target); - public function getUserNames($ids); - public function getUserIds($names); - public function registerUser($info); - public function unregisterUser($userid); - public function updateRegistration($userid, $info); - public function getRegistration($userid); - public function getRegisteredUsers($filter); - public function verifyPassword($name, $pw); - public function getTexture($userid); - public function setTexture($userid, $tex); - public function getUptime(); - } - - class Murmur_ServerPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::Server', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::Server', $facet); - } - } - - $Murmur__t_Server = IcePHP_defineClass('::Murmur::Server', 'Murmur_Server', true, $Ice__t_Object, null, null); - - $Murmur__t_ServerPrx = IcePHP_defineProxy($Murmur__t_Server); - - IcePHP_defineOperation($Murmur__t_Server, 'isRunning', 2, 2, null, null, $IcePHP__t_bool, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'start', 0, 0, null, null, null, array($Murmur__t_ServerBootedException, $Murmur__t_ServerFailureException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'stop', 0, 0, null, null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'delete', 0, 0, null, null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'id', 2, 2, null, null, $IcePHP__t_int, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'addCallback', 0, 0, array($Murmur__t_ServerCallbackPrx), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeCallback', 0, 0, array($Murmur__t_ServerCallbackPrx), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setAuthenticator', 0, 0, array($Murmur__t_ServerAuthenticatorPrx), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getConf', 2, 2, array($IcePHP__t_string), null, $IcePHP__t_string, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getAllConf', 2, 2, null, null, $Murmur__t_ConfigMap, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setConf', 2, 2, array($IcePHP__t_string, $IcePHP__t_string), null, null, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setSuperuserPassword', 2, 2, array($IcePHP__t_string), null, null, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getLog', 2, 2, array($IcePHP__t_int, $IcePHP__t_int), null, $Murmur__t_LogList, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getLogLen', 2, 2, null, null, $IcePHP__t_int, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUsers', 2, 2, null, null, $Murmur__t_UserMap, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getChannels', 2, 2, null, null, $Murmur__t_ChannelMap, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getCertificateList', 2, 2, array($IcePHP__t_int), null, $Murmur__t_CertificateList, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getTree', 2, 2, null, null, $Murmur__t_Tree, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getBans', 2, 2, null, null, $Murmur__t_BanList, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setBans', 2, 2, array($Murmur__t_BanList), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'kickUser', 0, 0, array($IcePHP__t_int, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getState', 2, 2, array($IcePHP__t_int), null, $Murmur__t_User, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setState', 2, 2, array($Murmur__t_User), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'sendMessage', 0, 0, array($IcePHP__t_int, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'hasPermission', 0, 0, array($IcePHP__t_int, $IcePHP__t_int, $IcePHP__t_int), null, $IcePHP__t_bool, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'effectivePermissions', 2, 2, array($IcePHP__t_int, $IcePHP__t_int), null, $IcePHP__t_int, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'addContextCallback', 0, 0, array($IcePHP__t_int, $IcePHP__t_string, $IcePHP__t_string, $Murmur__t_ServerContextCallbackPrx, $IcePHP__t_int), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeContextCallback', 0, 0, array($Murmur__t_ServerContextCallbackPrx), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getChannelState', 2, 2, array($IcePHP__t_int), null, $Murmur__t_Channel, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setChannelState', 2, 2, array($Murmur__t_Channel), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeChannel', 0, 0, array($IcePHP__t_int), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'addChannel', 0, 0, array($IcePHP__t_string, $IcePHP__t_int), null, $IcePHP__t_int, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'sendMessageChannel', 0, 0, array($IcePHP__t_int, $IcePHP__t_bool, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getACL', 2, 2, array($IcePHP__t_int), array($Murmur__t_ACLList, $Murmur__t_GroupList, $IcePHP__t_bool), null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setACL', 2, 2, array($IcePHP__t_int, $Murmur__t_ACLList, $Murmur__t_GroupList, $IcePHP__t_bool), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'addUserToGroup', 2, 2, array($IcePHP__t_int, $IcePHP__t_int, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeUserFromGroup', 2, 2, array($IcePHP__t_int, $IcePHP__t_int, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'redirectWhisperGroup', 2, 2, array($IcePHP__t_int, $IcePHP__t_string, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUserNames', 2, 2, array($Murmur__t_IdList), null, $Murmur__t_NameMap, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUserIds', 2, 2, array($Murmur__t_NameList), null, $Murmur__t_IdMap, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'registerUser', 0, 0, array($Murmur__t_UserInfoMap), null, $IcePHP__t_int, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'unregisterUser', 0, 0, array($IcePHP__t_int), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'updateRegistration', 2, 2, array($IcePHP__t_int, $Murmur__t_UserInfoMap), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getRegistration', 2, 2, array($IcePHP__t_int), null, $Murmur__t_UserInfoMap, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getRegisteredUsers', 2, 2, array($IcePHP__t_string), null, $Murmur__t_NameMap, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'verifyPassword', 2, 2, array($IcePHP__t_string, $IcePHP__t_string), null, $IcePHP__t_int, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getTexture', 2, 2, array($IcePHP__t_int), null, $Murmur__t_Texture, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setTexture', 2, 2, array($IcePHP__t_int, $Murmur__t_Texture), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidTextureException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUptime', 2, 2, null, null, $IcePHP__t_int, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); -} - -if(!interface_exists('Murmur_MetaCallback')) -{ - interface Murmur_MetaCallback - { - public function started($srv); - public function stopped($srv); - } - - class Murmur_MetaCallbackPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::MetaCallback', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::MetaCallback', $facet); - } - } - - $Murmur__t_MetaCallback = IcePHP_defineClass('::Murmur::MetaCallback', 'Murmur_MetaCallback', true, $Ice__t_Object, null, null); - - $Murmur__t_MetaCallbackPrx = IcePHP_defineProxy($Murmur__t_MetaCallback); - - IcePHP_defineOperation($Murmur__t_MetaCallback, 'started', 0, 0, array($Murmur__t_ServerPrx), null, null, null); - IcePHP_defineOperation($Murmur__t_MetaCallback, 'stopped', 0, 0, array($Murmur__t_ServerPrx), null, null, null); -} - -if(!isset($Murmur__t_ServerList)) -{ - $Murmur__t_ServerList = IcePHP_defineSequence('::Murmur::ServerList', $Murmur__t_ServerPrx); -} - -if(!interface_exists('Murmur_Meta')) -{ - interface Murmur_Meta - { - public function getServer($id); - public function newServer(); - public function getBootedServers(); - public function getAllServers(); - public function getDefaultConf(); - public function getVersion($major, $minor, $patch, $text); - public function addCallback($cb); - public function removeCallback($cb); - public function getUptime(); - public function getSlice(); - public function getSliceChecksums(); - } - - class Murmur_MetaPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::Meta', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::Meta', $facet); - } - } - - $Murmur__t_Meta = IcePHP_defineClass('::Murmur::Meta', 'Murmur_Meta', true, $Ice__t_Object, null, null); - - $Murmur__t_MetaPrx = IcePHP_defineProxy($Murmur__t_Meta); - - IcePHP_defineOperation($Murmur__t_Meta, 'getServer', 2, 2, array($IcePHP__t_int), null, $Murmur__t_ServerPrx, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'newServer', 0, 0, null, null, $Murmur__t_ServerPrx, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getBootedServers', 2, 2, null, null, $Murmur__t_ServerList, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getAllServers', 2, 2, null, null, $Murmur__t_ServerList, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getDefaultConf', 2, 2, null, null, $Murmur__t_ConfigMap, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getVersion', 2, 2, null, array($IcePHP__t_int, $IcePHP__t_int, $IcePHP__t_int, $IcePHP__t_string), null, null); - IcePHP_defineOperation($Murmur__t_Meta, 'addCallback', 0, 0, array($Murmur__t_MetaCallbackPrx), null, null, array($Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'removeCallback', 0, 0, array($Murmur__t_MetaCallbackPrx), null, null, array($Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getUptime', 2, 2, null, null, $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_Meta, 'getSlice', 2, 2, null, null, $IcePHP__t_string, null); - IcePHP_defineOperation($Murmur__t_Meta, 'getSliceChecksums', 2, 2, null, null, $Ice__t_SliceChecksumDict, null); -} -?> diff --git a/classes/Murmur_1.2.4.php b/classes/Murmur_1.2.4.php deleted file mode 100644 index 2e42eba..0000000 --- a/classes/Murmur_1.2.4.php +++ /dev/null @@ -1,1213 +0,0 @@ - -// -// Generated from file `murmur.ice' -// -// Warning: do not edit this file. -// -// -// - -require_once 'Ice/SliceChecksumDict.php'; - -if(!isset($Murmur__t_NetAddress)) -{ - $Murmur__t_NetAddress = IcePHP_defineSequence('::Murmur::NetAddress', $IcePHP__t_byte); -} - -if(!class_exists('Murmur_User')) -{ - class Murmur_User - { - public function __construct($session=0, $userid=0, $mute=false, $deaf=false, $suppress=false, $prioritySpeaker=false, $selfMute=false, $selfDeaf=false, $recording=false, $channel=0, $name='', $onlinesecs=0, $bytespersec=0, $version=0, $release='', $os='', $osversion='', $identity='', $context='', $comment='', $address=null, $tcponly=false, $idlesecs=0, $udpPing=0.0, $tcpPing=0.0) - { - $this->session = $session; - $this->userid = $userid; - $this->mute = $mute; - $this->deaf = $deaf; - $this->suppress = $suppress; - $this->prioritySpeaker = $prioritySpeaker; - $this->selfMute = $selfMute; - $this->selfDeaf = $selfDeaf; - $this->recording = $recording; - $this->channel = $channel; - $this->name = $name; - $this->onlinesecs = $onlinesecs; - $this->bytespersec = $bytespersec; - $this->version = $version; - $this->release = $release; - $this->os = $os; - $this->osversion = $osversion; - $this->identity = $identity; - $this->context = $context; - $this->comment = $comment; - $this->address = $address; - $this->tcponly = $tcponly; - $this->idlesecs = $idlesecs; - $this->udpPing = $udpPing; - $this->tcpPing = $tcpPing; - } - - public function __toString() - { - global $Murmur__t_User; - return IcePHP_stringify($this, $Murmur__t_User); - } - - public $session; - public $userid; - public $mute; - public $deaf; - public $suppress; - public $prioritySpeaker; - public $selfMute; - public $selfDeaf; - public $recording; - public $channel; - public $name; - public $onlinesecs; - public $bytespersec; - public $version; - public $release; - public $os; - public $osversion; - public $identity; - public $context; - public $comment; - public $address; - public $tcponly; - public $idlesecs; - public $udpPing; - public $tcpPing; - } - - $Murmur__t_User = IcePHP_defineStruct('::Murmur::User', 'Murmur_User', array( - array('session', $IcePHP__t_int), - array('userid', $IcePHP__t_int), - array('mute', $IcePHP__t_bool), - array('deaf', $IcePHP__t_bool), - array('suppress', $IcePHP__t_bool), - array('prioritySpeaker', $IcePHP__t_bool), - array('selfMute', $IcePHP__t_bool), - array('selfDeaf', $IcePHP__t_bool), - array('recording', $IcePHP__t_bool), - array('channel', $IcePHP__t_int), - array('name', $IcePHP__t_string), - array('onlinesecs', $IcePHP__t_int), - array('bytespersec', $IcePHP__t_int), - array('version', $IcePHP__t_int), - array('release', $IcePHP__t_string), - array('os', $IcePHP__t_string), - array('osversion', $IcePHP__t_string), - array('identity', $IcePHP__t_string), - array('context', $IcePHP__t_string), - array('comment', $IcePHP__t_string), - array('address', $Murmur__t_NetAddress), - array('tcponly', $IcePHP__t_bool), - array('idlesecs', $IcePHP__t_int), - array('udpPing', $IcePHP__t_float), - array('tcpPing', $IcePHP__t_float))); -} - -if(!isset($Murmur__t_IntList)) -{ - $Murmur__t_IntList = IcePHP_defineSequence('::Murmur::IntList', $IcePHP__t_int); -} - -if(!class_exists('Murmur_TextMessage')) -{ - class Murmur_TextMessage - { - public function __construct($sessions=null, $channels=null, $trees=null, $text='') - { - $this->sessions = $sessions; - $this->channels = $channels; - $this->trees = $trees; - $this->text = $text; - } - - public function __toString() - { - global $Murmur__t_TextMessage; - return IcePHP_stringify($this, $Murmur__t_TextMessage); - } - - public $sessions; - public $channels; - public $trees; - public $text; - } - - $Murmur__t_TextMessage = IcePHP_defineStruct('::Murmur::TextMessage', 'Murmur_TextMessage', array( - array('sessions', $Murmur__t_IntList), - array('channels', $Murmur__t_IntList), - array('trees', $Murmur__t_IntList), - array('text', $IcePHP__t_string))); -} - -if(!class_exists('Murmur_Channel')) -{ - class Murmur_Channel - { - public function __construct($id=0, $name='', $parent=0, $links=null, $description='', $temporary=false, $position=0) - { - $this->id = $id; - $this->name = $name; - $this->parent = $parent; - $this->links = $links; - $this->description = $description; - $this->temporary = $temporary; - $this->position = $position; - } - - public function __toString() - { - global $Murmur__t_Channel; - return IcePHP_stringify($this, $Murmur__t_Channel); - } - - public $id; - public $name; - public $parent; - public $links; - public $description; - public $temporary; - public $position; - } - - $Murmur__t_Channel = IcePHP_defineStruct('::Murmur::Channel', 'Murmur_Channel', array( - array('id', $IcePHP__t_int), - array('name', $IcePHP__t_string), - array('parent', $IcePHP__t_int), - array('links', $Murmur__t_IntList), - array('description', $IcePHP__t_string), - array('temporary', $IcePHP__t_bool), - array('position', $IcePHP__t_int))); -} - -if(!class_exists('Murmur_Group')) -{ - class Murmur_Group - { - public function __construct($name='', $inherited=false, $inherit=false, $inheritable=false, $add=null, $remove=null, $members=null) - { - $this->name = $name; - $this->inherited = $inherited; - $this->inherit = $inherit; - $this->inheritable = $inheritable; - $this->add = $add; - $this->remove = $remove; - $this->members = $members; - } - - public function __toString() - { - global $Murmur__t_Group; - return IcePHP_stringify($this, $Murmur__t_Group); - } - - public $name; - public $inherited; - public $inherit; - public $inheritable; - public $add; - public $remove; - public $members; - } - - $Murmur__t_Group = IcePHP_defineStruct('::Murmur::Group', 'Murmur_Group', array( - array('name', $IcePHP__t_string), - array('inherited', $IcePHP__t_bool), - array('inherit', $IcePHP__t_bool), - array('inheritable', $IcePHP__t_bool), - array('add', $Murmur__t_IntList), - array('remove', $Murmur__t_IntList), - array('members', $Murmur__t_IntList))); -} - -if(!defined('Murmur_PermissionWrite')) -{ - define('Murmur_PermissionWrite', 1); -} - -if(!defined('Murmur_PermissionTraverse')) -{ - define('Murmur_PermissionTraverse', 2); -} - -if(!defined('Murmur_PermissionEnter')) -{ - define('Murmur_PermissionEnter', 4); -} - -if(!defined('Murmur_PermissionSpeak')) -{ - define('Murmur_PermissionSpeak', 8); -} - -if(!defined('Murmur_PermissionWhisper')) -{ - define('Murmur_PermissionWhisper', 256); -} - -if(!defined('Murmur_PermissionMuteDeafen')) -{ - define('Murmur_PermissionMuteDeafen', 16); -} - -if(!defined('Murmur_PermissionMove')) -{ - define('Murmur_PermissionMove', 32); -} - -if(!defined('Murmur_PermissionMakeChannel')) -{ - define('Murmur_PermissionMakeChannel', 64); -} - -if(!defined('Murmur_PermissionMakeTempChannel')) -{ - define('Murmur_PermissionMakeTempChannel', 1024); -} - -if(!defined('Murmur_PermissionLinkChannel')) -{ - define('Murmur_PermissionLinkChannel', 128); -} - -if(!defined('Murmur_PermissionTextMessage')) -{ - define('Murmur_PermissionTextMessage', 512); -} - -if(!defined('Murmur_PermissionKick')) -{ - define('Murmur_PermissionKick', 65536); -} - -if(!defined('Murmur_PermissionBan')) -{ - define('Murmur_PermissionBan', 131072); -} - -if(!defined('Murmur_PermissionRegister')) -{ - define('Murmur_PermissionRegister', 262144); -} - -if(!defined('Murmur_PermissionRegisterSelf')) -{ - define('Murmur_PermissionRegisterSelf', 524288); -} - -if(!class_exists('Murmur_ACL')) -{ - class Murmur_ACL - { - public function __construct($applyHere=false, $applySubs=false, $inherited=false, $userid=0, $group='', $allow=0, $deny=0) - { - $this->applyHere = $applyHere; - $this->applySubs = $applySubs; - $this->inherited = $inherited; - $this->userid = $userid; - $this->group = $group; - $this->allow = $allow; - $this->deny = $deny; - } - - public function __toString() - { - global $Murmur__t_ACL; - return IcePHP_stringify($this, $Murmur__t_ACL); - } - - public $applyHere; - public $applySubs; - public $inherited; - public $userid; - public $group; - public $allow; - public $deny; - } - - $Murmur__t_ACL = IcePHP_defineStruct('::Murmur::ACL', 'Murmur_ACL', array( - array('applyHere', $IcePHP__t_bool), - array('applySubs', $IcePHP__t_bool), - array('inherited', $IcePHP__t_bool), - array('userid', $IcePHP__t_int), - array('group', $IcePHP__t_string), - array('allow', $IcePHP__t_int), - array('deny', $IcePHP__t_int))); -} - -if(!class_exists('Murmur_Ban')) -{ - class Murmur_Ban - { - public function __construct($address=null, $bits=0, $name='', $hash='', $reason='', $start=0, $duration=0) - { - $this->address = $address; - $this->bits = $bits; - $this->name = $name; - $this->hash = $hash; - $this->reason = $reason; - $this->start = $start; - $this->duration = $duration; - } - - public function __toString() - { - global $Murmur__t_Ban; - return IcePHP_stringify($this, $Murmur__t_Ban); - } - - public $address; - public $bits; - public $name; - public $hash; - public $reason; - public $start; - public $duration; - } - - $Murmur__t_Ban = IcePHP_defineStruct('::Murmur::Ban', 'Murmur_Ban', array( - array('address', $Murmur__t_NetAddress), - array('bits', $IcePHP__t_int), - array('name', $IcePHP__t_string), - array('hash', $IcePHP__t_string), - array('reason', $IcePHP__t_string), - array('start', $IcePHP__t_int), - array('duration', $IcePHP__t_int))); -} - -if(!class_exists('Murmur_LogEntry')) -{ - class Murmur_LogEntry - { - public function __construct($timestamp=0, $txt='') - { - $this->timestamp = $timestamp; - $this->txt = $txt; - } - - public function __toString() - { - global $Murmur__t_LogEntry; - return IcePHP_stringify($this, $Murmur__t_LogEntry); - } - - public $timestamp; - public $txt; - } - - $Murmur__t_LogEntry = IcePHP_defineStruct('::Murmur::LogEntry', 'Murmur_LogEntry', array( - array('timestamp', $IcePHP__t_int), - array('txt', $IcePHP__t_string))); -} - -if(!isset($Murmur__t_Tree)) -{ - $Murmur__t_Tree = IcePHP_declareClass('::Murmur::Tree'); - $Murmur__t_TreePrx = IcePHP_defineProxy($Murmur__t_Tree); -} - -if(!isset($Murmur__t_TreeList)) -{ - $Murmur__t_TreeList = IcePHP_defineSequence('::Murmur::TreeList', $Murmur__t_Tree); -} - -if(!class_exists('Murmur_ChannelInfo')) -{ - class Murmur_ChannelInfo - { - const ChannelDescription = 0; - const ChannelPosition = 1; - } - - $Murmur__t_ChannelInfo = IcePHP_defineEnum('::Murmur::ChannelInfo', array('ChannelDescription', 'ChannelPosition')); -} - -if(!class_exists('Murmur_UserInfo')) -{ - class Murmur_UserInfo - { - const UserName = 0; - const UserEmail = 1; - const UserComment = 2; - const UserHash = 3; - const UserPassword = 4; - const UserLastActive = 5; - } - - $Murmur__t_UserInfo = IcePHP_defineEnum('::Murmur::UserInfo', array('UserName', 'UserEmail', 'UserComment', 'UserHash', 'UserPassword', 'UserLastActive')); -} - -if(!isset($Murmur__t_UserMap)) -{ - $Murmur__t_UserMap = IcePHP_defineDictionary('::Murmur::UserMap', $IcePHP__t_int, $Murmur__t_User); -} - -if(!isset($Murmur__t_ChannelMap)) -{ - $Murmur__t_ChannelMap = IcePHP_defineDictionary('::Murmur::ChannelMap', $IcePHP__t_int, $Murmur__t_Channel); -} - -if(!isset($Murmur__t_ChannelList)) -{ - $Murmur__t_ChannelList = IcePHP_defineSequence('::Murmur::ChannelList', $Murmur__t_Channel); -} - -if(!isset($Murmur__t_UserList)) -{ - $Murmur__t_UserList = IcePHP_defineSequence('::Murmur::UserList', $Murmur__t_User); -} - -if(!isset($Murmur__t_GroupList)) -{ - $Murmur__t_GroupList = IcePHP_defineSequence('::Murmur::GroupList', $Murmur__t_Group); -} - -if(!isset($Murmur__t_ACLList)) -{ - $Murmur__t_ACLList = IcePHP_defineSequence('::Murmur::ACLList', $Murmur__t_ACL); -} - -if(!isset($Murmur__t_LogList)) -{ - $Murmur__t_LogList = IcePHP_defineSequence('::Murmur::LogList', $Murmur__t_LogEntry); -} - -if(!isset($Murmur__t_BanList)) -{ - $Murmur__t_BanList = IcePHP_defineSequence('::Murmur::BanList', $Murmur__t_Ban); -} - -if(!isset($Murmur__t_IdList)) -{ - $Murmur__t_IdList = IcePHP_defineSequence('::Murmur::IdList', $IcePHP__t_int); -} - -if(!isset($Murmur__t_NameList)) -{ - $Murmur__t_NameList = IcePHP_defineSequence('::Murmur::NameList', $IcePHP__t_string); -} - -if(!isset($Murmur__t_NameMap)) -{ - $Murmur__t_NameMap = IcePHP_defineDictionary('::Murmur::NameMap', $IcePHP__t_int, $IcePHP__t_string); -} - -if(!isset($Murmur__t_IdMap)) -{ - $Murmur__t_IdMap = IcePHP_defineDictionary('::Murmur::IdMap', $IcePHP__t_string, $IcePHP__t_int); -} - -if(!isset($Murmur__t_Texture)) -{ - $Murmur__t_Texture = IcePHP_defineSequence('::Murmur::Texture', $IcePHP__t_byte); -} - -if(!isset($Murmur__t_ConfigMap)) -{ - $Murmur__t_ConfigMap = IcePHP_defineDictionary('::Murmur::ConfigMap', $IcePHP__t_string, $IcePHP__t_string); -} - -if(!isset($Murmur__t_GroupNameList)) -{ - $Murmur__t_GroupNameList = IcePHP_defineSequence('::Murmur::GroupNameList', $IcePHP__t_string); -} - -if(!isset($Murmur__t_CertificateDer)) -{ - $Murmur__t_CertificateDer = IcePHP_defineSequence('::Murmur::CertificateDer', $IcePHP__t_byte); -} - -if(!isset($Murmur__t_CertificateList)) -{ - $Murmur__t_CertificateList = IcePHP_defineSequence('::Murmur::CertificateList', $Murmur__t_CertificateDer); -} - -if(!isset($Murmur__t_UserInfoMap)) -{ - $Murmur__t_UserInfoMap = IcePHP_defineDictionary('::Murmur::UserInfoMap', $Murmur__t_UserInfo, $IcePHP__t_string); -} - -if(!class_exists('Murmur_Tree')) -{ - class Murmur_Tree extends Ice_ObjectImpl - { - public function __construct($c=null, $children=null, $users=null) - { - $this->c = is_null($c) ? new Murmur_Channel : $c; - $this->children = $children; - $this->users = $users; - } - - public static function ice_staticId() - { - return '::Murmur::Tree'; - } - - public function __toString() - { - global $Murmur__t_Tree; - return IcePHP_stringify($this, $Murmur__t_Tree); - } - - public $c; - public $children; - public $users; - } - - class Murmur_TreePrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::Tree', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::Tree', $facet); - } - } - - $Murmur__t_Tree = IcePHP_defineClass('::Murmur::Tree', 'Murmur_Tree', false, $Ice__t_Object, null, array( - array('c', $Murmur__t_Channel), - - array('children', $Murmur__t_TreeList), - - array('users', $Murmur__t_UserList))); - - $Murmur__t_TreePrx = IcePHP_defineProxy($Murmur__t_Tree); -} - -if(!class_exists('Murmur_MurmurException')) -{ - class Murmur_MurmurException extends Ice_UserException - { - public function __construct() - { - } - - public function ice_name() - { - return 'Murmur::MurmurException'; - } - - public function __toString() - { - global $Murmur__t_MurmurException; - return IcePHP_stringifyException($this, $Murmur__t_MurmurException); - } - } - - $Murmur__t_MurmurException = IcePHP_defineException('::Murmur::MurmurException', 'Murmur_MurmurException', null, null); -} - -if(!class_exists('Murmur_InvalidSessionException')) -{ - class Murmur_InvalidSessionException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidSessionException'; - } - - public function __toString() - { - global $Murmur__t_InvalidSessionException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidSessionException); - } - } - - $Murmur__t_InvalidSessionException = IcePHP_defineException('::Murmur::InvalidSessionException', 'Murmur_InvalidSessionException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidChannelException')) -{ - class Murmur_InvalidChannelException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidChannelException'; - } - - public function __toString() - { - global $Murmur__t_InvalidChannelException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidChannelException); - } - } - - $Murmur__t_InvalidChannelException = IcePHP_defineException('::Murmur::InvalidChannelException', 'Murmur_InvalidChannelException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidServerException')) -{ - class Murmur_InvalidServerException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidServerException'; - } - - public function __toString() - { - global $Murmur__t_InvalidServerException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidServerException); - } - } - - $Murmur__t_InvalidServerException = IcePHP_defineException('::Murmur::InvalidServerException', 'Murmur_InvalidServerException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_ServerBootedException')) -{ - class Murmur_ServerBootedException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::ServerBootedException'; - } - - public function __toString() - { - global $Murmur__t_ServerBootedException; - return IcePHP_stringifyException($this, $Murmur__t_ServerBootedException); - } - } - - $Murmur__t_ServerBootedException = IcePHP_defineException('::Murmur::ServerBootedException', 'Murmur_ServerBootedException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_ServerFailureException')) -{ - class Murmur_ServerFailureException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::ServerFailureException'; - } - - public function __toString() - { - global $Murmur__t_ServerFailureException; - return IcePHP_stringifyException($this, $Murmur__t_ServerFailureException); - } - } - - $Murmur__t_ServerFailureException = IcePHP_defineException('::Murmur::ServerFailureException', 'Murmur_ServerFailureException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidUserException')) -{ - class Murmur_InvalidUserException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidUserException'; - } - - public function __toString() - { - global $Murmur__t_InvalidUserException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidUserException); - } - } - - $Murmur__t_InvalidUserException = IcePHP_defineException('::Murmur::InvalidUserException', 'Murmur_InvalidUserException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidTextureException')) -{ - class Murmur_InvalidTextureException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidTextureException'; - } - - public function __toString() - { - global $Murmur__t_InvalidTextureException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidTextureException); - } - } - - $Murmur__t_InvalidTextureException = IcePHP_defineException('::Murmur::InvalidTextureException', 'Murmur_InvalidTextureException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidCallbackException')) -{ - class Murmur_InvalidCallbackException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidCallbackException'; - } - - public function __toString() - { - global $Murmur__t_InvalidCallbackException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidCallbackException); - } - } - - $Murmur__t_InvalidCallbackException = IcePHP_defineException('::Murmur::InvalidCallbackException', 'Murmur_InvalidCallbackException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidSecretException')) -{ - class Murmur_InvalidSecretException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidSecretException'; - } - - public function __toString() - { - global $Murmur__t_InvalidSecretException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidSecretException); - } - } - - $Murmur__t_InvalidSecretException = IcePHP_defineException('::Murmur::InvalidSecretException', 'Murmur_InvalidSecretException', $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_NestingLimitException')) -{ - class Murmur_NestingLimitException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::NestingLimitException'; - } - - public function __toString() - { - global $Murmur__t_NestingLimitException; - return IcePHP_stringifyException($this, $Murmur__t_NestingLimitException); - } - } - - $Murmur__t_NestingLimitException = IcePHP_defineException('::Murmur::NestingLimitException', 'Murmur_NestingLimitException', $Murmur__t_MurmurException, null); -} - -if(!interface_exists('Murmur_ServerCallback')) -{ - interface Murmur_ServerCallback - { - public function userConnected($state); - public function userDisconnected($state); - public function userStateChanged($state); - public function userTextMessage($state, $message); - public function channelCreated($state); - public function channelRemoved($state); - public function channelStateChanged($state); - } - - class Murmur_ServerCallbackPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerCallback', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerCallback', $facet); - } - } - - $Murmur__t_ServerCallback = IcePHP_defineClass('::Murmur::ServerCallback', 'Murmur_ServerCallback', true, $Ice__t_Object, null, null); - - $Murmur__t_ServerCallbackPrx = IcePHP_defineProxy($Murmur__t_ServerCallback); - - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userConnected', 2, 2, array($Murmur__t_User), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userDisconnected', 2, 2, array($Murmur__t_User), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userStateChanged', 2, 2, array($Murmur__t_User), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userTextMessage', 2, 2, array($Murmur__t_User, $Murmur__t_TextMessage), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'channelCreated', 2, 2, array($Murmur__t_Channel), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'channelRemoved', 2, 2, array($Murmur__t_Channel), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'channelStateChanged', 2, 2, array($Murmur__t_Channel), null, null, null); -} - -if(!defined('Murmur_ContextServer')) -{ - define('Murmur_ContextServer', 1); -} - -if(!defined('Murmur_ContextChannel')) -{ - define('Murmur_ContextChannel', 2); -} - -if(!defined('Murmur_ContextUser')) -{ - define('Murmur_ContextUser', 4); -} - -if(!interface_exists('Murmur_ServerContextCallback')) -{ - interface Murmur_ServerContextCallback - { - public function contextAction($action, $usr, $session, $channelid); - } - - class Murmur_ServerContextCallbackPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerContextCallback', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerContextCallback', $facet); - } - } - - $Murmur__t_ServerContextCallback = IcePHP_defineClass('::Murmur::ServerContextCallback', 'Murmur_ServerContextCallback', true, $Ice__t_Object, null, null); - - $Murmur__t_ServerContextCallbackPrx = IcePHP_defineProxy($Murmur__t_ServerContextCallback); - - IcePHP_defineOperation($Murmur__t_ServerContextCallback, 'contextAction', 2, 2, array($IcePHP__t_string, $Murmur__t_User, $IcePHP__t_int, $IcePHP__t_int), null, null, null); -} - -if(!interface_exists('Murmur_ServerAuthenticator')) -{ - interface Murmur_ServerAuthenticator - { - public function authenticate($name, $pw, $certificates, $certhash, $certstrong, $newname, $groups); - public function getInfo($id, $info); - public function nameToId($name); - public function idToName($id); - public function idToTexture($id); - } - - class Murmur_ServerAuthenticatorPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerAuthenticator', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerAuthenticator', $facet); - } - } - - $Murmur__t_ServerAuthenticator = IcePHP_defineClass('::Murmur::ServerAuthenticator', 'Murmur_ServerAuthenticator', true, $Ice__t_Object, null, null); - - $Murmur__t_ServerAuthenticatorPrx = IcePHP_defineProxy($Murmur__t_ServerAuthenticator); - - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'authenticate', 2, 2, array($IcePHP__t_string, $IcePHP__t_string, $Murmur__t_CertificateList, $IcePHP__t_string, $IcePHP__t_bool), array($IcePHP__t_string, $Murmur__t_GroupNameList), $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'getInfo', 2, 2, array($IcePHP__t_int), array($Murmur__t_UserInfoMap), $IcePHP__t_bool, null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'nameToId', 2, 2, array($IcePHP__t_string), null, $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'idToName', 2, 2, array($IcePHP__t_int), null, $IcePHP__t_string, null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'idToTexture', 2, 2, array($IcePHP__t_int), null, $Murmur__t_Texture, null); -} - -if(!interface_exists('Murmur_ServerUpdatingAuthenticator')) -{ - interface Murmur_ServerUpdatingAuthenticator extends Murmur_ServerAuthenticator - { - public function registerUser($info); - public function unregisterUser($id); - public function getRegisteredUsers($filter); - public function setInfo($id, $info); - public function setTexture($id, $tex); - } - - class Murmur_ServerUpdatingAuthenticatorPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerUpdatingAuthenticator', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerUpdatingAuthenticator', $facet); - } - } - - $Murmur__t_ServerUpdatingAuthenticator = IcePHP_defineClass('::Murmur::ServerUpdatingAuthenticator', 'Murmur_ServerUpdatingAuthenticator', true, $Ice__t_Object, array($Murmur__t_ServerAuthenticator), null); - - $Murmur__t_ServerUpdatingAuthenticatorPrx = IcePHP_defineProxy($Murmur__t_ServerUpdatingAuthenticator); - - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'registerUser', 0, 0, array($Murmur__t_UserInfoMap), null, $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'unregisterUser', 0, 0, array($IcePHP__t_int), null, $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'getRegisteredUsers', 2, 2, array($IcePHP__t_string), null, $Murmur__t_NameMap, null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'setInfo', 2, 2, array($IcePHP__t_int, $Murmur__t_UserInfoMap), null, $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'setTexture', 2, 2, array($IcePHP__t_int, $Murmur__t_Texture), null, $IcePHP__t_int, null); -} - -if(!interface_exists('Murmur_Server')) -{ - interface Murmur_Server - { - public function isRunning(); - public function start(); - public function stop(); - public function delete(); - public function id(); - public function addCallback($cb); - public function removeCallback($cb); - public function setAuthenticator($auth); - public function getConf($key); - public function getAllConf(); - public function setConf($key, $value); - public function setSuperuserPassword($pw); - public function getLog($first, $last); - public function getLogLen(); - public function getUsers(); - public function getChannels(); - public function getCertificateList($session); - public function getTree(); - public function getBans(); - public function setBans($bans); - public function kickUser($session, $reason); - public function getState($session); - public function setState($state); - public function sendMessage($session, $text); - public function hasPermission($session, $channelid, $perm); - public function effectivePermissions($session, $channelid); - public function addContextCallback($session, $action, $text, $cb, $ctx); - public function removeContextCallback($cb); - public function getChannelState($channelid); - public function setChannelState($state); - public function removeChannel($channelid); - public function addChannel($name, $parent); - public function sendMessageChannel($channelid, $tree, $text); - public function getACL($channelid, $acls, $groups, $inherit); - public function setACL($channelid, $acls, $groups, $inherit); - public function addUserToGroup($channelid, $session, $group); - public function removeUserFromGroup($channelid, $session, $group); - public function redirectWhisperGroup($session, $source, $target); - public function getUserNames($ids); - public function getUserIds($names); - public function registerUser($info); - public function unregisterUser($userid); - public function updateRegistration($userid, $info); - public function getRegistration($userid); - public function getRegisteredUsers($filter); - public function verifyPassword($name, $pw); - public function getTexture($userid); - public function setTexture($userid, $tex); - public function getUptime(); - } - - class Murmur_ServerPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::Server', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::Server', $facet); - } - } - - $Murmur__t_Server = IcePHP_defineClass('::Murmur::Server', 'Murmur_Server', true, $Ice__t_Object, null, null); - - $Murmur__t_ServerPrx = IcePHP_defineProxy($Murmur__t_Server); - - IcePHP_defineOperation($Murmur__t_Server, 'isRunning', 2, 2, null, null, $IcePHP__t_bool, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'start', 0, 0, null, null, null, array($Murmur__t_ServerBootedException, $Murmur__t_ServerFailureException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'stop', 0, 0, null, null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'delete', 0, 0, null, null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'id', 2, 2, null, null, $IcePHP__t_int, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'addCallback', 0, 0, array($Murmur__t_ServerCallbackPrx), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeCallback', 0, 0, array($Murmur__t_ServerCallbackPrx), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setAuthenticator', 0, 0, array($Murmur__t_ServerAuthenticatorPrx), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getConf', 2, 2, array($IcePHP__t_string), null, $IcePHP__t_string, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getAllConf', 2, 2, null, null, $Murmur__t_ConfigMap, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setConf', 2, 2, array($IcePHP__t_string, $IcePHP__t_string), null, null, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setSuperuserPassword', 2, 2, array($IcePHP__t_string), null, null, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getLog', 2, 2, array($IcePHP__t_int, $IcePHP__t_int), null, $Murmur__t_LogList, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getLogLen', 2, 2, null, null, $IcePHP__t_int, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUsers', 2, 2, null, null, $Murmur__t_UserMap, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getChannels', 2, 2, null, null, $Murmur__t_ChannelMap, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getCertificateList', 2, 2, array($IcePHP__t_int), null, $Murmur__t_CertificateList, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getTree', 2, 2, null, null, $Murmur__t_Tree, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getBans', 2, 2, null, null, $Murmur__t_BanList, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setBans', 2, 2, array($Murmur__t_BanList), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'kickUser', 0, 0, array($IcePHP__t_int, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getState', 2, 2, array($IcePHP__t_int), null, $Murmur__t_User, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setState', 2, 2, array($Murmur__t_User), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'sendMessage', 0, 0, array($IcePHP__t_int, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'hasPermission', 0, 0, array($IcePHP__t_int, $IcePHP__t_int, $IcePHP__t_int), null, $IcePHP__t_bool, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'effectivePermissions', 2, 2, array($IcePHP__t_int, $IcePHP__t_int), null, $IcePHP__t_int, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'addContextCallback', 0, 0, array($IcePHP__t_int, $IcePHP__t_string, $IcePHP__t_string, $Murmur__t_ServerContextCallbackPrx, $IcePHP__t_int), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeContextCallback', 0, 0, array($Murmur__t_ServerContextCallbackPrx), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getChannelState', 2, 2, array($IcePHP__t_int), null, $Murmur__t_Channel, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setChannelState', 2, 2, array($Murmur__t_Channel), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException, $Murmur__t_NestingLimitException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeChannel', 0, 0, array($IcePHP__t_int), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'addChannel', 0, 0, array($IcePHP__t_string, $IcePHP__t_int), null, $IcePHP__t_int, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException, $Murmur__t_NestingLimitException)); - IcePHP_defineOperation($Murmur__t_Server, 'sendMessageChannel', 0, 0, array($IcePHP__t_int, $IcePHP__t_bool, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getACL', 2, 2, array($IcePHP__t_int), array($Murmur__t_ACLList, $Murmur__t_GroupList, $IcePHP__t_bool), null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setACL', 2, 2, array($IcePHP__t_int, $Murmur__t_ACLList, $Murmur__t_GroupList, $IcePHP__t_bool), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'addUserToGroup', 2, 2, array($IcePHP__t_int, $IcePHP__t_int, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeUserFromGroup', 2, 2, array($IcePHP__t_int, $IcePHP__t_int, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'redirectWhisperGroup', 2, 2, array($IcePHP__t_int, $IcePHP__t_string, $IcePHP__t_string), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUserNames', 2, 2, array($Murmur__t_IdList), null, $Murmur__t_NameMap, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUserIds', 2, 2, array($Murmur__t_NameList), null, $Murmur__t_IdMap, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'registerUser', 0, 0, array($Murmur__t_UserInfoMap), null, $IcePHP__t_int, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'unregisterUser', 0, 0, array($IcePHP__t_int), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'updateRegistration', 2, 2, array($IcePHP__t_int, $Murmur__t_UserInfoMap), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getRegistration', 2, 2, array($IcePHP__t_int), null, $Murmur__t_UserInfoMap, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getRegisteredUsers', 2, 2, array($IcePHP__t_string), null, $Murmur__t_NameMap, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'verifyPassword', 2, 2, array($IcePHP__t_string, $IcePHP__t_string), null, $IcePHP__t_int, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getTexture', 2, 2, array($IcePHP__t_int), null, $Murmur__t_Texture, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setTexture', 2, 2, array($IcePHP__t_int, $Murmur__t_Texture), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidTextureException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUptime', 2, 2, null, null, $IcePHP__t_int, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); -} - -if(!interface_exists('Murmur_MetaCallback')) -{ - interface Murmur_MetaCallback - { - public function started($srv); - public function stopped($srv); - } - - class Murmur_MetaCallbackPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::MetaCallback', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::MetaCallback', $facet); - } - } - - $Murmur__t_MetaCallback = IcePHP_defineClass('::Murmur::MetaCallback', 'Murmur_MetaCallback', true, $Ice__t_Object, null, null); - - $Murmur__t_MetaCallbackPrx = IcePHP_defineProxy($Murmur__t_MetaCallback); - - IcePHP_defineOperation($Murmur__t_MetaCallback, 'started', 0, 0, array($Murmur__t_ServerPrx), null, null, null); - IcePHP_defineOperation($Murmur__t_MetaCallback, 'stopped', 0, 0, array($Murmur__t_ServerPrx), null, null, null); -} - -if(!isset($Murmur__t_ServerList)) -{ - $Murmur__t_ServerList = IcePHP_defineSequence('::Murmur::ServerList', $Murmur__t_ServerPrx); -} - -if(!interface_exists('Murmur_Meta')) -{ - interface Murmur_Meta - { - public function getServer($id); - public function newServer(); - public function getBootedServers(); - public function getAllServers(); - public function getDefaultConf(); - public function getVersion($major, $minor, $patch, $text); - public function addCallback($cb); - public function removeCallback($cb); - public function getUptime(); - public function getSlice(); - public function getSliceChecksums(); - } - - class Murmur_MetaPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::Meta', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::Meta', $facet); - } - } - - $Murmur__t_Meta = IcePHP_defineClass('::Murmur::Meta', 'Murmur_Meta', true, $Ice__t_Object, null, null); - - $Murmur__t_MetaPrx = IcePHP_defineProxy($Murmur__t_Meta); - - IcePHP_defineOperation($Murmur__t_Meta, 'getServer', 2, 2, array($IcePHP__t_int), null, $Murmur__t_ServerPrx, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'newServer', 0, 0, null, null, $Murmur__t_ServerPrx, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getBootedServers', 2, 2, null, null, $Murmur__t_ServerList, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getAllServers', 2, 2, null, null, $Murmur__t_ServerList, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getDefaultConf', 2, 2, null, null, $Murmur__t_ConfigMap, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getVersion', 2, 2, null, array($IcePHP__t_int, $IcePHP__t_int, $IcePHP__t_int, $IcePHP__t_string), null, null); - IcePHP_defineOperation($Murmur__t_Meta, 'addCallback', 0, 0, array($Murmur__t_MetaCallbackPrx), null, null, array($Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'removeCallback', 0, 0, array($Murmur__t_MetaCallbackPrx), null, null, array($Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getUptime', 2, 2, null, null, $IcePHP__t_int, null); - IcePHP_defineOperation($Murmur__t_Meta, 'getSlice', 2, 2, null, null, $IcePHP__t_string, null); - IcePHP_defineOperation($Murmur__t_Meta, 'getSliceChecksums', 2, 2, null, null, $Ice__t_SliceChecksumDict, null); -} -?> diff --git a/classes/Murmur_1.2.7_ice35.php b/classes/Murmur_1.2.7_ice35.php deleted file mode 100644 index be06a34..0000000 --- a/classes/Murmur_1.2.7_ice35.php +++ /dev/null @@ -1,1211 +0,0 @@ - -// -// Generated from file `Murmur.ice' -// -// Warning: do not edit this file. -// -// -// - -require_once 'Ice/SliceChecksumDict.php'; - -if(!isset($Murmur__t_NetAddress)) -{ - $Murmur__t_NetAddress = IcePHP_defineSequence('::Murmur::NetAddress', $IcePHP__t_byte); -} - -if(!class_exists('Murmur_User')) -{ - class Murmur_User - { - public function __construct($session=0, $userid=0, $mute=false, $deaf=false, $suppress=false, $prioritySpeaker=false, $selfMute=false, $selfDeaf=false, $recording=false, $channel=0, $name='', $onlinesecs=0, $bytespersec=0, $version=0, $release='', $os='', $osversion='', $identity='', $context='', $comment='', $address=null, $tcponly=false, $idlesecs=0, $udpPing=0.0, $tcpPing=0.0) - { - $this->session = $session; - $this->userid = $userid; - $this->mute = $mute; - $this->deaf = $deaf; - $this->suppress = $suppress; - $this->prioritySpeaker = $prioritySpeaker; - $this->selfMute = $selfMute; - $this->selfDeaf = $selfDeaf; - $this->recording = $recording; - $this->channel = $channel; - $this->name = $name; - $this->onlinesecs = $onlinesecs; - $this->bytespersec = $bytespersec; - $this->version = $version; - $this->release = $release; - $this->os = $os; - $this->osversion = $osversion; - $this->identity = $identity; - $this->context = $context; - $this->comment = $comment; - $this->address = $address; - $this->tcponly = $tcponly; - $this->idlesecs = $idlesecs; - $this->udpPing = $udpPing; - $this->tcpPing = $tcpPing; - } - - public function __toString() - { - global $Murmur__t_User; - return IcePHP_stringify($this, $Murmur__t_User); - } - - public $session; - public $userid; - public $mute; - public $deaf; - public $suppress; - public $prioritySpeaker; - public $selfMute; - public $selfDeaf; - public $recording; - public $channel; - public $name; - public $onlinesecs; - public $bytespersec; - public $version; - public $release; - public $os; - public $osversion; - public $identity; - public $context; - public $comment; - public $address; - public $tcponly; - public $idlesecs; - public $udpPing; - public $tcpPing; - } - - $Murmur__t_User = IcePHP_defineStruct('::Murmur::User', 'Murmur_User', array( - array('session', $IcePHP__t_int), - array('userid', $IcePHP__t_int), - array('mute', $IcePHP__t_bool), - array('deaf', $IcePHP__t_bool), - array('suppress', $IcePHP__t_bool), - array('prioritySpeaker', $IcePHP__t_bool), - array('selfMute', $IcePHP__t_bool), - array('selfDeaf', $IcePHP__t_bool), - array('recording', $IcePHP__t_bool), - array('channel', $IcePHP__t_int), - array('name', $IcePHP__t_string), - array('onlinesecs', $IcePHP__t_int), - array('bytespersec', $IcePHP__t_int), - array('version', $IcePHP__t_int), - array('release', $IcePHP__t_string), - array('os', $IcePHP__t_string), - array('osversion', $IcePHP__t_string), - array('identity', $IcePHP__t_string), - array('context', $IcePHP__t_string), - array('comment', $IcePHP__t_string), - array('address', $Murmur__t_NetAddress), - array('tcponly', $IcePHP__t_bool), - array('idlesecs', $IcePHP__t_int), - array('udpPing', $IcePHP__t_float), - array('tcpPing', $IcePHP__t_float))); -} - -if(!isset($Murmur__t_IntList)) -{ - $Murmur__t_IntList = IcePHP_defineSequence('::Murmur::IntList', $IcePHP__t_int); -} - -if(!class_exists('Murmur_TextMessage')) -{ - class Murmur_TextMessage - { - public function __construct($sessions=null, $channels=null, $trees=null, $text='') - { - $this->sessions = $sessions; - $this->channels = $channels; - $this->trees = $trees; - $this->text = $text; - } - - public function __toString() - { - global $Murmur__t_TextMessage; - return IcePHP_stringify($this, $Murmur__t_TextMessage); - } - - public $sessions; - public $channels; - public $trees; - public $text; - } - - $Murmur__t_TextMessage = IcePHP_defineStruct('::Murmur::TextMessage', 'Murmur_TextMessage', array( - array('sessions', $Murmur__t_IntList), - array('channels', $Murmur__t_IntList), - array('trees', $Murmur__t_IntList), - array('text', $IcePHP__t_string))); -} - -if(!class_exists('Murmur_Channel')) -{ - class Murmur_Channel - { - public function __construct($id=0, $name='', $parent=0, $links=null, $description='', $temporary=false, $position=0) - { - $this->id = $id; - $this->name = $name; - $this->parent = $parent; - $this->links = $links; - $this->description = $description; - $this->temporary = $temporary; - $this->position = $position; - } - - public function __toString() - { - global $Murmur__t_Channel; - return IcePHP_stringify($this, $Murmur__t_Channel); - } - - public $id; - public $name; - public $parent; - public $links; - public $description; - public $temporary; - public $position; - } - - $Murmur__t_Channel = IcePHP_defineStruct('::Murmur::Channel', 'Murmur_Channel', array( - array('id', $IcePHP__t_int), - array('name', $IcePHP__t_string), - array('parent', $IcePHP__t_int), - array('links', $Murmur__t_IntList), - array('description', $IcePHP__t_string), - array('temporary', $IcePHP__t_bool), - array('position', $IcePHP__t_int))); -} - -if(!class_exists('Murmur_Group')) -{ - class Murmur_Group - { - public function __construct($name='', $inherited=false, $inherit=false, $inheritable=false, $add=null, $remove=null, $members=null) - { - $this->name = $name; - $this->inherited = $inherited; - $this->inherit = $inherit; - $this->inheritable = $inheritable; - $this->add = $add; - $this->remove = $remove; - $this->members = $members; - } - - public function __toString() - { - global $Murmur__t_Group; - return IcePHP_stringify($this, $Murmur__t_Group); - } - - public $name; - public $inherited; - public $inherit; - public $inheritable; - public $add; - public $remove; - public $members; - } - - $Murmur__t_Group = IcePHP_defineStruct('::Murmur::Group', 'Murmur_Group', array( - array('name', $IcePHP__t_string), - array('inherited', $IcePHP__t_bool), - array('inherit', $IcePHP__t_bool), - array('inheritable', $IcePHP__t_bool), - array('add', $Murmur__t_IntList), - array('remove', $Murmur__t_IntList), - array('members', $Murmur__t_IntList))); -} - -if(!defined('Murmur_PermissionWrite')) -{ - define('Murmur_PermissionWrite', 1); -} - -if(!defined('Murmur_PermissionTraverse')) -{ - define('Murmur_PermissionTraverse', 2); -} - -if(!defined('Murmur_PermissionEnter')) -{ - define('Murmur_PermissionEnter', 4); -} - -if(!defined('Murmur_PermissionSpeak')) -{ - define('Murmur_PermissionSpeak', 8); -} - -if(!defined('Murmur_PermissionWhisper')) -{ - define('Murmur_PermissionWhisper', 256); -} - -if(!defined('Murmur_PermissionMuteDeafen')) -{ - define('Murmur_PermissionMuteDeafen', 16); -} - -if(!defined('Murmur_PermissionMove')) -{ - define('Murmur_PermissionMove', 32); -} - -if(!defined('Murmur_PermissionMakeChannel')) -{ - define('Murmur_PermissionMakeChannel', 64); -} - -if(!defined('Murmur_PermissionMakeTempChannel')) -{ - define('Murmur_PermissionMakeTempChannel', 1024); -} - -if(!defined('Murmur_PermissionLinkChannel')) -{ - define('Murmur_PermissionLinkChannel', 128); -} - -if(!defined('Murmur_PermissionTextMessage')) -{ - define('Murmur_PermissionTextMessage', 512); -} - -if(!defined('Murmur_PermissionKick')) -{ - define('Murmur_PermissionKick', 65536); -} - -if(!defined('Murmur_PermissionBan')) -{ - define('Murmur_PermissionBan', 131072); -} - -if(!defined('Murmur_PermissionRegister')) -{ - define('Murmur_PermissionRegister', 262144); -} - -if(!defined('Murmur_PermissionRegisterSelf')) -{ - define('Murmur_PermissionRegisterSelf', 524288); -} - -if(!class_exists('Murmur_ACL')) -{ - class Murmur_ACL - { - public function __construct($applyHere=false, $applySubs=false, $inherited=false, $userid=0, $group='', $allow=0, $deny=0) - { - $this->applyHere = $applyHere; - $this->applySubs = $applySubs; - $this->inherited = $inherited; - $this->userid = $userid; - $this->group = $group; - $this->allow = $allow; - $this->deny = $deny; - } - - public function __toString() - { - global $Murmur__t_ACL; - return IcePHP_stringify($this, $Murmur__t_ACL); - } - - public $applyHere; - public $applySubs; - public $inherited; - public $userid; - public $group; - public $allow; - public $deny; - } - - $Murmur__t_ACL = IcePHP_defineStruct('::Murmur::ACL', 'Murmur_ACL', array( - array('applyHere', $IcePHP__t_bool), - array('applySubs', $IcePHP__t_bool), - array('inherited', $IcePHP__t_bool), - array('userid', $IcePHP__t_int), - array('group', $IcePHP__t_string), - array('allow', $IcePHP__t_int), - array('deny', $IcePHP__t_int))); -} - -if(!class_exists('Murmur_Ban')) -{ - class Murmur_Ban - { - public function __construct($address=null, $bits=0, $name='', $hash='', $reason='', $start=0, $duration=0) - { - $this->address = $address; - $this->bits = $bits; - $this->name = $name; - $this->hash = $hash; - $this->reason = $reason; - $this->start = $start; - $this->duration = $duration; - } - - public function __toString() - { - global $Murmur__t_Ban; - return IcePHP_stringify($this, $Murmur__t_Ban); - } - - public $address; - public $bits; - public $name; - public $hash; - public $reason; - public $start; - public $duration; - } - - $Murmur__t_Ban = IcePHP_defineStruct('::Murmur::Ban', 'Murmur_Ban', array( - array('address', $Murmur__t_NetAddress), - array('bits', $IcePHP__t_int), - array('name', $IcePHP__t_string), - array('hash', $IcePHP__t_string), - array('reason', $IcePHP__t_string), - array('start', $IcePHP__t_int), - array('duration', $IcePHP__t_int))); -} - -if(!class_exists('Murmur_LogEntry')) -{ - class Murmur_LogEntry - { - public function __construct($timestamp=0, $txt='') - { - $this->timestamp = $timestamp; - $this->txt = $txt; - } - - public function __toString() - { - global $Murmur__t_LogEntry; - return IcePHP_stringify($this, $Murmur__t_LogEntry); - } - - public $timestamp; - public $txt; - } - - $Murmur__t_LogEntry = IcePHP_defineStruct('::Murmur::LogEntry', 'Murmur_LogEntry', array( - array('timestamp', $IcePHP__t_int), - array('txt', $IcePHP__t_string))); -} - -if(!isset($Murmur__t_Tree)) -{ - $Murmur__t_Tree = IcePHP_declareClass('::Murmur::Tree'); - $Murmur__t_TreePrx = IcePHP_declareProxy('::Murmur::Tree'); -} - -if(!isset($Murmur__t_TreeList)) -{ - $Murmur__t_TreeList = IcePHP_defineSequence('::Murmur::TreeList', $Murmur__t_Tree); -} - -if(!class_exists('Murmur_ChannelInfo')) -{ - class Murmur_ChannelInfo - { - const ChannelDescription = 0; - const ChannelPosition = 1; - } - - $Murmur__t_ChannelInfo = IcePHP_defineEnum('::Murmur::ChannelInfo', array('ChannelDescription', 0, 'ChannelPosition', 1)); -} - -if(!class_exists('Murmur_UserInfo')) -{ - class Murmur_UserInfo - { - const UserName = 0; - const UserEmail = 1; - const UserComment = 2; - const UserHash = 3; - const UserPassword = 4; - const UserLastActive = 5; - } - - $Murmur__t_UserInfo = IcePHP_defineEnum('::Murmur::UserInfo', array('UserName', 0, 'UserEmail', 1, 'UserComment', 2, 'UserHash', 3, 'UserPassword', 4, 'UserLastActive', 5)); -} - -if(!isset($Murmur__t_UserMap)) -{ - $Murmur__t_UserMap = IcePHP_defineDictionary('::Murmur::UserMap', $IcePHP__t_int, $Murmur__t_User); -} - -if(!isset($Murmur__t_ChannelMap)) -{ - $Murmur__t_ChannelMap = IcePHP_defineDictionary('::Murmur::ChannelMap', $IcePHP__t_int, $Murmur__t_Channel); -} - -if(!isset($Murmur__t_ChannelList)) -{ - $Murmur__t_ChannelList = IcePHP_defineSequence('::Murmur::ChannelList', $Murmur__t_Channel); -} - -if(!isset($Murmur__t_UserList)) -{ - $Murmur__t_UserList = IcePHP_defineSequence('::Murmur::UserList', $Murmur__t_User); -} - -if(!isset($Murmur__t_GroupList)) -{ - $Murmur__t_GroupList = IcePHP_defineSequence('::Murmur::GroupList', $Murmur__t_Group); -} - -if(!isset($Murmur__t_ACLList)) -{ - $Murmur__t_ACLList = IcePHP_defineSequence('::Murmur::ACLList', $Murmur__t_ACL); -} - -if(!isset($Murmur__t_LogList)) -{ - $Murmur__t_LogList = IcePHP_defineSequence('::Murmur::LogList', $Murmur__t_LogEntry); -} - -if(!isset($Murmur__t_BanList)) -{ - $Murmur__t_BanList = IcePHP_defineSequence('::Murmur::BanList', $Murmur__t_Ban); -} - -if(!isset($Murmur__t_IdList)) -{ - $Murmur__t_IdList = IcePHP_defineSequence('::Murmur::IdList', $IcePHP__t_int); -} - -if(!isset($Murmur__t_NameList)) -{ - $Murmur__t_NameList = IcePHP_defineSequence('::Murmur::NameList', $IcePHP__t_string); -} - -if(!isset($Murmur__t_NameMap)) -{ - $Murmur__t_NameMap = IcePHP_defineDictionary('::Murmur::NameMap', $IcePHP__t_int, $IcePHP__t_string); -} - -if(!isset($Murmur__t_IdMap)) -{ - $Murmur__t_IdMap = IcePHP_defineDictionary('::Murmur::IdMap', $IcePHP__t_string, $IcePHP__t_int); -} - -if(!isset($Murmur__t_Texture)) -{ - $Murmur__t_Texture = IcePHP_defineSequence('::Murmur::Texture', $IcePHP__t_byte); -} - -if(!isset($Murmur__t_ConfigMap)) -{ - $Murmur__t_ConfigMap = IcePHP_defineDictionary('::Murmur::ConfigMap', $IcePHP__t_string, $IcePHP__t_string); -} - -if(!isset($Murmur__t_GroupNameList)) -{ - $Murmur__t_GroupNameList = IcePHP_defineSequence('::Murmur::GroupNameList', $IcePHP__t_string); -} - -if(!isset($Murmur__t_CertificateDer)) -{ - $Murmur__t_CertificateDer = IcePHP_defineSequence('::Murmur::CertificateDer', $IcePHP__t_byte); -} - -if(!isset($Murmur__t_CertificateList)) -{ - $Murmur__t_CertificateList = IcePHP_defineSequence('::Murmur::CertificateList', $Murmur__t_CertificateDer); -} - -if(!isset($Murmur__t_UserInfoMap)) -{ - $Murmur__t_UserInfoMap = IcePHP_defineDictionary('::Murmur::UserInfoMap', $Murmur__t_UserInfo, $IcePHP__t_string); -} - -if(!class_exists('Murmur_Tree')) -{ - class Murmur_Tree extends Ice_ObjectImpl - { - public function __construct($c=null, $children=null, $users=null) - { - $this->c = is_null($c) ? new Murmur_Channel : $c; - $this->children = $children; - $this->users = $users; - } - - public static function ice_staticId() - { - return '::Murmur::Tree'; - } - - public function __toString() - { - global $Murmur__t_Tree; - return IcePHP_stringify($this, $Murmur__t_Tree); - } - - public $c; - public $children; - public $users; - } - - class Murmur_TreePrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::Tree', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::Tree', $facet); - } - } - - $Murmur__t_Tree = IcePHP_defineClass('::Murmur::Tree', 'Murmur_Tree', -1, false, false, $Ice__t_Object, null, array( - array('c', $Murmur__t_Channel, false, 0), - array('children', $Murmur__t_TreeList, false, 0), - array('users', $Murmur__t_UserList, false, 0))); - - $Murmur__t_TreePrx = IcePHP_defineProxy($Murmur__t_Tree); -} - -if(!class_exists('Murmur_MurmurException')) -{ - class Murmur_MurmurException extends Ice_UserException - { - public function __construct() - { - } - - public function ice_name() - { - return 'Murmur::MurmurException'; - } - - public function __toString() - { - global $Murmur__t_MurmurException; - return IcePHP_stringifyException($this, $Murmur__t_MurmurException); - } - } - - $Murmur__t_MurmurException = IcePHP_defineException('::Murmur::MurmurException', 'Murmur_MurmurException', false, null, null); -} - -if(!class_exists('Murmur_InvalidSessionException')) -{ - class Murmur_InvalidSessionException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidSessionException'; - } - - public function __toString() - { - global $Murmur__t_InvalidSessionException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidSessionException); - } - } - - $Murmur__t_InvalidSessionException = IcePHP_defineException('::Murmur::InvalidSessionException', 'Murmur_InvalidSessionException', false, $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidChannelException')) -{ - class Murmur_InvalidChannelException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidChannelException'; - } - - public function __toString() - { - global $Murmur__t_InvalidChannelException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidChannelException); - } - } - - $Murmur__t_InvalidChannelException = IcePHP_defineException('::Murmur::InvalidChannelException', 'Murmur_InvalidChannelException', false, $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidServerException')) -{ - class Murmur_InvalidServerException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidServerException'; - } - - public function __toString() - { - global $Murmur__t_InvalidServerException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidServerException); - } - } - - $Murmur__t_InvalidServerException = IcePHP_defineException('::Murmur::InvalidServerException', 'Murmur_InvalidServerException', false, $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_ServerBootedException')) -{ - class Murmur_ServerBootedException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::ServerBootedException'; - } - - public function __toString() - { - global $Murmur__t_ServerBootedException; - return IcePHP_stringifyException($this, $Murmur__t_ServerBootedException); - } - } - - $Murmur__t_ServerBootedException = IcePHP_defineException('::Murmur::ServerBootedException', 'Murmur_ServerBootedException', false, $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_ServerFailureException')) -{ - class Murmur_ServerFailureException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::ServerFailureException'; - } - - public function __toString() - { - global $Murmur__t_ServerFailureException; - return IcePHP_stringifyException($this, $Murmur__t_ServerFailureException); - } - } - - $Murmur__t_ServerFailureException = IcePHP_defineException('::Murmur::ServerFailureException', 'Murmur_ServerFailureException', false, $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidUserException')) -{ - class Murmur_InvalidUserException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidUserException'; - } - - public function __toString() - { - global $Murmur__t_InvalidUserException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidUserException); - } - } - - $Murmur__t_InvalidUserException = IcePHP_defineException('::Murmur::InvalidUserException', 'Murmur_InvalidUserException', false, $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidTextureException')) -{ - class Murmur_InvalidTextureException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidTextureException'; - } - - public function __toString() - { - global $Murmur__t_InvalidTextureException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidTextureException); - } - } - - $Murmur__t_InvalidTextureException = IcePHP_defineException('::Murmur::InvalidTextureException', 'Murmur_InvalidTextureException', false, $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidCallbackException')) -{ - class Murmur_InvalidCallbackException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidCallbackException'; - } - - public function __toString() - { - global $Murmur__t_InvalidCallbackException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidCallbackException); - } - } - - $Murmur__t_InvalidCallbackException = IcePHP_defineException('::Murmur::InvalidCallbackException', 'Murmur_InvalidCallbackException', false, $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidSecretException')) -{ - class Murmur_InvalidSecretException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidSecretException'; - } - - public function __toString() - { - global $Murmur__t_InvalidSecretException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidSecretException); - } - } - - $Murmur__t_InvalidSecretException = IcePHP_defineException('::Murmur::InvalidSecretException', 'Murmur_InvalidSecretException', false, $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_NestingLimitException')) -{ - class Murmur_NestingLimitException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::NestingLimitException'; - } - - public function __toString() - { - global $Murmur__t_NestingLimitException; - return IcePHP_stringifyException($this, $Murmur__t_NestingLimitException); - } - } - - $Murmur__t_NestingLimitException = IcePHP_defineException('::Murmur::NestingLimitException', 'Murmur_NestingLimitException', false, $Murmur__t_MurmurException, null); -} - -if(!interface_exists('Murmur_ServerCallback')) -{ - interface Murmur_ServerCallback - { - public function userConnected($state); - public function userDisconnected($state); - public function userStateChanged($state); - public function userTextMessage($state, $message); - public function channelCreated($state); - public function channelRemoved($state); - public function channelStateChanged($state); - } - - class Murmur_ServerCallbackPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerCallback', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerCallback', $facet); - } - } - - $Murmur__t_ServerCallback = IcePHP_defineClass('::Murmur::ServerCallback', 'Murmur_ServerCallback', -1, true, false, $Ice__t_Object, null, null); - - $Murmur__t_ServerCallbackPrx = IcePHP_defineProxy($Murmur__t_ServerCallback); - - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userConnected', 2, 2, 0, array(array($Murmur__t_User, false, 0)), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userDisconnected', 2, 2, 0, array(array($Murmur__t_User, false, 0)), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userStateChanged', 2, 2, 0, array(array($Murmur__t_User, false, 0)), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userTextMessage', 2, 2, 0, array(array($Murmur__t_User, false, 0), array($Murmur__t_TextMessage, false, 0)), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'channelCreated', 2, 2, 0, array(array($Murmur__t_Channel, false, 0)), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'channelRemoved', 2, 2, 0, array(array($Murmur__t_Channel, false, 0)), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'channelStateChanged', 2, 2, 0, array(array($Murmur__t_Channel, false, 0)), null, null, null); -} - -if(!defined('Murmur_ContextServer')) -{ - define('Murmur_ContextServer', 1); -} - -if(!defined('Murmur_ContextChannel')) -{ - define('Murmur_ContextChannel', 2); -} - -if(!defined('Murmur_ContextUser')) -{ - define('Murmur_ContextUser', 4); -} - -if(!interface_exists('Murmur_ServerContextCallback')) -{ - interface Murmur_ServerContextCallback - { - public function contextAction($action, $usr, $session, $channelid); - } - - class Murmur_ServerContextCallbackPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerContextCallback', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerContextCallback', $facet); - } - } - - $Murmur__t_ServerContextCallback = IcePHP_defineClass('::Murmur::ServerContextCallback', 'Murmur_ServerContextCallback', -1, true, false, $Ice__t_Object, null, null); - - $Murmur__t_ServerContextCallbackPrx = IcePHP_defineProxy($Murmur__t_ServerContextCallback); - - IcePHP_defineOperation($Murmur__t_ServerContextCallback, 'contextAction', 2, 2, 0, array(array($IcePHP__t_string, false, 0), array($Murmur__t_User, false, 0), array($IcePHP__t_int, false, 0), array($IcePHP__t_int, false, 0)), null, null, null); -} - -if(!interface_exists('Murmur_ServerAuthenticator')) -{ - interface Murmur_ServerAuthenticator - { - public function authenticate($name, $pw, $certificates, $certhash, $certstrong, $newname, $groups); - public function getInfo($id, $info); - public function nameToId($name); - public function idToName($id); - public function idToTexture($id); - } - - class Murmur_ServerAuthenticatorPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerAuthenticator', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerAuthenticator', $facet); - } - } - - $Murmur__t_ServerAuthenticator = IcePHP_defineClass('::Murmur::ServerAuthenticator', 'Murmur_ServerAuthenticator', -1, true, false, $Ice__t_Object, null, null); - - $Murmur__t_ServerAuthenticatorPrx = IcePHP_defineProxy($Murmur__t_ServerAuthenticator); - - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'authenticate', 2, 2, 0, array(array($IcePHP__t_string, false, 0), array($IcePHP__t_string, false, 0), array($Murmur__t_CertificateList, false, 0), array($IcePHP__t_string, false, 0), array($IcePHP__t_bool, false, 0)), array(array($IcePHP__t_string, false, 0), array($Murmur__t_GroupNameList, false, 0)), array($IcePHP__t_int, false, 0), null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'getInfo', 2, 2, 0, array(array($IcePHP__t_int, false, 0)), array(array($Murmur__t_UserInfoMap, false, 0)), array($IcePHP__t_bool, false, 0), null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'nameToId', 2, 2, 0, array(array($IcePHP__t_string, false, 0)), null, array($IcePHP__t_int, false, 0), null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'idToName', 2, 2, 0, array(array($IcePHP__t_int, false, 0)), null, array($IcePHP__t_string, false, 0), null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'idToTexture', 2, 2, 0, array(array($IcePHP__t_int, false, 0)), null, array($Murmur__t_Texture, false, 0), null); -} - -if(!interface_exists('Murmur_ServerUpdatingAuthenticator')) -{ - interface Murmur_ServerUpdatingAuthenticator extends Murmur_ServerAuthenticator - { - public function registerUser($info); - public function unregisterUser($id); - public function getRegisteredUsers($filter); - public function setInfo($id, $info); - public function setTexture($id, $tex); - } - - class Murmur_ServerUpdatingAuthenticatorPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerUpdatingAuthenticator', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerUpdatingAuthenticator', $facet); - } - } - - $Murmur__t_ServerUpdatingAuthenticator = IcePHP_defineClass('::Murmur::ServerUpdatingAuthenticator', 'Murmur_ServerUpdatingAuthenticator', -1, true, false, $Ice__t_Object, array($Murmur__t_ServerAuthenticator), null); - - $Murmur__t_ServerUpdatingAuthenticatorPrx = IcePHP_defineProxy($Murmur__t_ServerUpdatingAuthenticator); - - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'registerUser', 0, 0, 0, array(array($Murmur__t_UserInfoMap, false, 0)), null, array($IcePHP__t_int, false, 0), null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'unregisterUser', 0, 0, 0, array(array($IcePHP__t_int, false, 0)), null, array($IcePHP__t_int, false, 0), null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'getRegisteredUsers', 2, 2, 0, array(array($IcePHP__t_string, false, 0)), null, array($Murmur__t_NameMap, false, 0), null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'setInfo', 2, 2, 0, array(array($IcePHP__t_int, false, 0), array($Murmur__t_UserInfoMap, false, 0)), null, array($IcePHP__t_int, false, 0), null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'setTexture', 2, 2, 0, array(array($IcePHP__t_int, false, 0), array($Murmur__t_Texture, false, 0)), null, array($IcePHP__t_int, false, 0), null); -} - -if(!interface_exists('Murmur_Server')) -{ - interface Murmur_Server - { - public function isRunning(); - public function start(); - public function stop(); - public function delete(); - public function id(); - public function addCallback($cb); - public function removeCallback($cb); - public function setAuthenticator($auth); - public function getConf($key); - public function getAllConf(); - public function setConf($key, $value); - public function setSuperuserPassword($pw); - public function getLog($first, $last); - public function getLogLen(); - public function getUsers(); - public function getChannels(); - public function getCertificateList($session); - public function getTree(); - public function getBans(); - public function setBans($bans); - public function kickUser($session, $reason); - public function getState($session); - public function setState($state); - public function sendMessage($session, $text); - public function hasPermission($session, $channelid, $perm); - public function effectivePermissions($session, $channelid); - public function addContextCallback($session, $action, $text, $cb, $ctx); - public function removeContextCallback($cb); - public function getChannelState($channelid); - public function setChannelState($state); - public function removeChannel($channelid); - public function addChannel($name, $parent); - public function sendMessageChannel($channelid, $tree, $text); - public function getACL($channelid, $acls, $groups, $inherit); - public function setACL($channelid, $acls, $groups, $inherit); - public function addUserToGroup($channelid, $session, $group); - public function removeUserFromGroup($channelid, $session, $group); - public function redirectWhisperGroup($session, $source, $target); - public function getUserNames($ids); - public function getUserIds($names); - public function registerUser($info); - public function unregisterUser($userid); - public function updateRegistration($userid, $info); - public function getRegistration($userid); - public function getRegisteredUsers($filter); - public function verifyPassword($name, $pw); - public function getTexture($userid); - public function setTexture($userid, $tex); - public function getUptime(); - } - - class Murmur_ServerPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::Server', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::Server', $facet); - } - } - - $Murmur__t_Server = IcePHP_defineClass('::Murmur::Server', 'Murmur_Server', -1, true, false, $Ice__t_Object, null, null); - - $Murmur__t_ServerPrx = IcePHP_defineProxy($Murmur__t_Server); - - IcePHP_defineOperation($Murmur__t_Server, 'isRunning', 2, 2, 0, null, null, array($IcePHP__t_bool, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'start', 0, 0, 0, null, null, null, array($Murmur__t_ServerBootedException, $Murmur__t_ServerFailureException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'stop', 0, 0, 0, null, null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'delete', 0, 0, 0, null, null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'id', 2, 2, 0, null, null, array($IcePHP__t_int, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'addCallback', 0, 0, 0, array(array($Murmur__t_ServerCallbackPrx, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeCallback', 0, 0, 0, array(array($Murmur__t_ServerCallbackPrx, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setAuthenticator', 0, 0, 0, array(array($Murmur__t_ServerAuthenticatorPrx, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getConf', 2, 2, 0, array(array($IcePHP__t_string, false, 0)), null, array($IcePHP__t_string, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getAllConf', 2, 2, 0, null, null, array($Murmur__t_ConfigMap, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setConf', 2, 2, 0, array(array($IcePHP__t_string, false, 0), array($IcePHP__t_string, false, 0)), null, null, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setSuperuserPassword', 2, 2, 0, array(array($IcePHP__t_string, false, 0)), null, null, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getLog', 2, 2, 0, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_int, false, 0)), null, array($Murmur__t_LogList, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getLogLen', 2, 2, 0, null, null, array($IcePHP__t_int, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUsers', 2, 2, 0, null, null, array($Murmur__t_UserMap, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getChannels', 2, 2, 0, null, null, array($Murmur__t_ChannelMap, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getCertificateList', 2, 2, 0, array(array($IcePHP__t_int, false, 0)), null, array($Murmur__t_CertificateList, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getTree', 2, 2, 0, null, null, array($Murmur__t_Tree, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getBans', 2, 2, 0, null, null, array($Murmur__t_BanList, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setBans', 2, 2, 0, array(array($Murmur__t_BanList, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'kickUser', 0, 0, 0, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_string, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getState', 2, 2, 0, array(array($IcePHP__t_int, false, 0)), null, array($Murmur__t_User, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setState', 2, 2, 0, array(array($Murmur__t_User, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'sendMessage', 0, 0, 0, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_string, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'hasPermission', 0, 0, 0, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_int, false, 0), array($IcePHP__t_int, false, 0)), null, array($IcePHP__t_bool, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'effectivePermissions', 2, 2, 0, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_int, false, 0)), null, array($IcePHP__t_int, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'addContextCallback', 0, 0, 0, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_string, false, 0), array($IcePHP__t_string, false, 0), array($Murmur__t_ServerContextCallbackPrx, false, 0), array($IcePHP__t_int, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeContextCallback', 0, 0, 0, array(array($Murmur__t_ServerContextCallbackPrx, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getChannelState', 2, 2, 0, array(array($IcePHP__t_int, false, 0)), null, array($Murmur__t_Channel, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setChannelState', 2, 2, 0, array(array($Murmur__t_Channel, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException, $Murmur__t_NestingLimitException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeChannel', 0, 0, 0, array(array($IcePHP__t_int, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'addChannel', 0, 0, 0, array(array($IcePHP__t_string, false, 0), array($IcePHP__t_int, false, 0)), null, array($IcePHP__t_int, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException, $Murmur__t_NestingLimitException)); - IcePHP_defineOperation($Murmur__t_Server, 'sendMessageChannel', 0, 0, 0, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_bool, false, 0), array($IcePHP__t_string, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getACL', 2, 2, 0, array(array($IcePHP__t_int, false, 0)), array(array($Murmur__t_ACLList, false, 0), array($Murmur__t_GroupList, false, 0), array($IcePHP__t_bool, false, 0)), null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setACL', 2, 2, 0, array(array($IcePHP__t_int, false, 0), array($Murmur__t_ACLList, false, 0), array($Murmur__t_GroupList, false, 0), array($IcePHP__t_bool, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'addUserToGroup', 2, 2, 0, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_int, false, 0), array($IcePHP__t_string, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeUserFromGroup', 2, 2, 0, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_int, false, 0), array($IcePHP__t_string, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'redirectWhisperGroup', 2, 2, 0, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_string, false, 0), array($IcePHP__t_string, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUserNames', 2, 2, 0, array(array($Murmur__t_IdList, false, 0)), null, array($Murmur__t_NameMap, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUserIds', 2, 2, 0, array(array($Murmur__t_NameList, false, 0)), null, array($Murmur__t_IdMap, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'registerUser', 0, 0, 0, array(array($Murmur__t_UserInfoMap, false, 0)), null, array($IcePHP__t_int, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'unregisterUser', 0, 0, 0, array(array($IcePHP__t_int, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'updateRegistration', 2, 2, 0, array(array($IcePHP__t_int, false, 0), array($Murmur__t_UserInfoMap, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getRegistration', 2, 2, 0, array(array($IcePHP__t_int, false, 0)), null, array($Murmur__t_UserInfoMap, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getRegisteredUsers', 2, 2, 0, array(array($IcePHP__t_string, false, 0)), null, array($Murmur__t_NameMap, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'verifyPassword', 2, 2, 0, array(array($IcePHP__t_string, false, 0), array($IcePHP__t_string, false, 0)), null, array($IcePHP__t_int, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getTexture', 2, 2, 0, array(array($IcePHP__t_int, false, 0)), null, array($Murmur__t_Texture, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setTexture', 2, 2, 0, array(array($IcePHP__t_int, false, 0), array($Murmur__t_Texture, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidTextureException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUptime', 2, 2, 0, null, null, array($IcePHP__t_int, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); -} - -if(!interface_exists('Murmur_MetaCallback')) -{ - interface Murmur_MetaCallback - { - public function started($srv); - public function stopped($srv); - } - - class Murmur_MetaCallbackPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::MetaCallback', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::MetaCallback', $facet); - } - } - - $Murmur__t_MetaCallback = IcePHP_defineClass('::Murmur::MetaCallback', 'Murmur_MetaCallback', -1, true, false, $Ice__t_Object, null, null); - - $Murmur__t_MetaCallbackPrx = IcePHP_defineProxy($Murmur__t_MetaCallback); - - IcePHP_defineOperation($Murmur__t_MetaCallback, 'started', 0, 0, 0, array(array($Murmur__t_ServerPrx, false, 0)), null, null, null); - IcePHP_defineOperation($Murmur__t_MetaCallback, 'stopped', 0, 0, 0, array(array($Murmur__t_ServerPrx, false, 0)), null, null, null); -} - -if(!isset($Murmur__t_ServerList)) -{ - $Murmur__t_ServerList = IcePHP_defineSequence('::Murmur::ServerList', $Murmur__t_ServerPrx); -} - -if(!interface_exists('Murmur_Meta')) -{ - interface Murmur_Meta - { - public function getServer($id); - public function newServer(); - public function getBootedServers(); - public function getAllServers(); - public function getDefaultConf(); - public function getVersion($major, $minor, $patch, $text); - public function addCallback($cb); - public function removeCallback($cb); - public function getUptime(); - public function getSlice(); - public function getSliceChecksums(); - } - - class Murmur_MetaPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::Meta', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::Meta', $facet); - } - } - - $Murmur__t_Meta = IcePHP_defineClass('::Murmur::Meta', 'Murmur_Meta', -1, true, false, $Ice__t_Object, null, null); - - $Murmur__t_MetaPrx = IcePHP_defineProxy($Murmur__t_Meta); - - IcePHP_defineOperation($Murmur__t_Meta, 'getServer', 2, 2, 0, array(array($IcePHP__t_int, false, 0)), null, array($Murmur__t_ServerPrx, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'newServer', 0, 0, 0, null, null, array($Murmur__t_ServerPrx, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getBootedServers', 2, 2, 0, null, null, array($Murmur__t_ServerList, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getAllServers', 2, 2, 0, null, null, array($Murmur__t_ServerList, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getDefaultConf', 2, 2, 0, null, null, array($Murmur__t_ConfigMap, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getVersion', 2, 2, 0, null, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_int, false, 0), array($IcePHP__t_int, false, 0), array($IcePHP__t_string, false, 0)), null, null); - IcePHP_defineOperation($Murmur__t_Meta, 'addCallback', 0, 0, 0, array(array($Murmur__t_MetaCallbackPrx, false, 0)), null, null, array($Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'removeCallback', 0, 0, 0, array(array($Murmur__t_MetaCallbackPrx, false, 0)), null, null, array($Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getUptime', 2, 2, 0, null, null, array($IcePHP__t_int, false, 0), null); - IcePHP_defineOperation($Murmur__t_Meta, 'getSlice', 2, 2, 0, null, null, array($IcePHP__t_string, false, 0), null); - IcePHP_defineOperation($Murmur__t_Meta, 'getSliceChecksums', 2, 2, 0, null, null, array($Ice__t_SliceChecksumDict, false, 0), null); -} -?> diff --git a/classes/Murmur_1.3.0-snap_ice35.php b/classes/Murmur_1.3.0-snap_ice35.php deleted file mode 100644 index be06a34..0000000 --- a/classes/Murmur_1.3.0-snap_ice35.php +++ /dev/null @@ -1,1211 +0,0 @@ - -// -// Generated from file `Murmur.ice' -// -// Warning: do not edit this file. -// -// -// - -require_once 'Ice/SliceChecksumDict.php'; - -if(!isset($Murmur__t_NetAddress)) -{ - $Murmur__t_NetAddress = IcePHP_defineSequence('::Murmur::NetAddress', $IcePHP__t_byte); -} - -if(!class_exists('Murmur_User')) -{ - class Murmur_User - { - public function __construct($session=0, $userid=0, $mute=false, $deaf=false, $suppress=false, $prioritySpeaker=false, $selfMute=false, $selfDeaf=false, $recording=false, $channel=0, $name='', $onlinesecs=0, $bytespersec=0, $version=0, $release='', $os='', $osversion='', $identity='', $context='', $comment='', $address=null, $tcponly=false, $idlesecs=0, $udpPing=0.0, $tcpPing=0.0) - { - $this->session = $session; - $this->userid = $userid; - $this->mute = $mute; - $this->deaf = $deaf; - $this->suppress = $suppress; - $this->prioritySpeaker = $prioritySpeaker; - $this->selfMute = $selfMute; - $this->selfDeaf = $selfDeaf; - $this->recording = $recording; - $this->channel = $channel; - $this->name = $name; - $this->onlinesecs = $onlinesecs; - $this->bytespersec = $bytespersec; - $this->version = $version; - $this->release = $release; - $this->os = $os; - $this->osversion = $osversion; - $this->identity = $identity; - $this->context = $context; - $this->comment = $comment; - $this->address = $address; - $this->tcponly = $tcponly; - $this->idlesecs = $idlesecs; - $this->udpPing = $udpPing; - $this->tcpPing = $tcpPing; - } - - public function __toString() - { - global $Murmur__t_User; - return IcePHP_stringify($this, $Murmur__t_User); - } - - public $session; - public $userid; - public $mute; - public $deaf; - public $suppress; - public $prioritySpeaker; - public $selfMute; - public $selfDeaf; - public $recording; - public $channel; - public $name; - public $onlinesecs; - public $bytespersec; - public $version; - public $release; - public $os; - public $osversion; - public $identity; - public $context; - public $comment; - public $address; - public $tcponly; - public $idlesecs; - public $udpPing; - public $tcpPing; - } - - $Murmur__t_User = IcePHP_defineStruct('::Murmur::User', 'Murmur_User', array( - array('session', $IcePHP__t_int), - array('userid', $IcePHP__t_int), - array('mute', $IcePHP__t_bool), - array('deaf', $IcePHP__t_bool), - array('suppress', $IcePHP__t_bool), - array('prioritySpeaker', $IcePHP__t_bool), - array('selfMute', $IcePHP__t_bool), - array('selfDeaf', $IcePHP__t_bool), - array('recording', $IcePHP__t_bool), - array('channel', $IcePHP__t_int), - array('name', $IcePHP__t_string), - array('onlinesecs', $IcePHP__t_int), - array('bytespersec', $IcePHP__t_int), - array('version', $IcePHP__t_int), - array('release', $IcePHP__t_string), - array('os', $IcePHP__t_string), - array('osversion', $IcePHP__t_string), - array('identity', $IcePHP__t_string), - array('context', $IcePHP__t_string), - array('comment', $IcePHP__t_string), - array('address', $Murmur__t_NetAddress), - array('tcponly', $IcePHP__t_bool), - array('idlesecs', $IcePHP__t_int), - array('udpPing', $IcePHP__t_float), - array('tcpPing', $IcePHP__t_float))); -} - -if(!isset($Murmur__t_IntList)) -{ - $Murmur__t_IntList = IcePHP_defineSequence('::Murmur::IntList', $IcePHP__t_int); -} - -if(!class_exists('Murmur_TextMessage')) -{ - class Murmur_TextMessage - { - public function __construct($sessions=null, $channels=null, $trees=null, $text='') - { - $this->sessions = $sessions; - $this->channels = $channels; - $this->trees = $trees; - $this->text = $text; - } - - public function __toString() - { - global $Murmur__t_TextMessage; - return IcePHP_stringify($this, $Murmur__t_TextMessage); - } - - public $sessions; - public $channels; - public $trees; - public $text; - } - - $Murmur__t_TextMessage = IcePHP_defineStruct('::Murmur::TextMessage', 'Murmur_TextMessage', array( - array('sessions', $Murmur__t_IntList), - array('channels', $Murmur__t_IntList), - array('trees', $Murmur__t_IntList), - array('text', $IcePHP__t_string))); -} - -if(!class_exists('Murmur_Channel')) -{ - class Murmur_Channel - { - public function __construct($id=0, $name='', $parent=0, $links=null, $description='', $temporary=false, $position=0) - { - $this->id = $id; - $this->name = $name; - $this->parent = $parent; - $this->links = $links; - $this->description = $description; - $this->temporary = $temporary; - $this->position = $position; - } - - public function __toString() - { - global $Murmur__t_Channel; - return IcePHP_stringify($this, $Murmur__t_Channel); - } - - public $id; - public $name; - public $parent; - public $links; - public $description; - public $temporary; - public $position; - } - - $Murmur__t_Channel = IcePHP_defineStruct('::Murmur::Channel', 'Murmur_Channel', array( - array('id', $IcePHP__t_int), - array('name', $IcePHP__t_string), - array('parent', $IcePHP__t_int), - array('links', $Murmur__t_IntList), - array('description', $IcePHP__t_string), - array('temporary', $IcePHP__t_bool), - array('position', $IcePHP__t_int))); -} - -if(!class_exists('Murmur_Group')) -{ - class Murmur_Group - { - public function __construct($name='', $inherited=false, $inherit=false, $inheritable=false, $add=null, $remove=null, $members=null) - { - $this->name = $name; - $this->inherited = $inherited; - $this->inherit = $inherit; - $this->inheritable = $inheritable; - $this->add = $add; - $this->remove = $remove; - $this->members = $members; - } - - public function __toString() - { - global $Murmur__t_Group; - return IcePHP_stringify($this, $Murmur__t_Group); - } - - public $name; - public $inherited; - public $inherit; - public $inheritable; - public $add; - public $remove; - public $members; - } - - $Murmur__t_Group = IcePHP_defineStruct('::Murmur::Group', 'Murmur_Group', array( - array('name', $IcePHP__t_string), - array('inherited', $IcePHP__t_bool), - array('inherit', $IcePHP__t_bool), - array('inheritable', $IcePHP__t_bool), - array('add', $Murmur__t_IntList), - array('remove', $Murmur__t_IntList), - array('members', $Murmur__t_IntList))); -} - -if(!defined('Murmur_PermissionWrite')) -{ - define('Murmur_PermissionWrite', 1); -} - -if(!defined('Murmur_PermissionTraverse')) -{ - define('Murmur_PermissionTraverse', 2); -} - -if(!defined('Murmur_PermissionEnter')) -{ - define('Murmur_PermissionEnter', 4); -} - -if(!defined('Murmur_PermissionSpeak')) -{ - define('Murmur_PermissionSpeak', 8); -} - -if(!defined('Murmur_PermissionWhisper')) -{ - define('Murmur_PermissionWhisper', 256); -} - -if(!defined('Murmur_PermissionMuteDeafen')) -{ - define('Murmur_PermissionMuteDeafen', 16); -} - -if(!defined('Murmur_PermissionMove')) -{ - define('Murmur_PermissionMove', 32); -} - -if(!defined('Murmur_PermissionMakeChannel')) -{ - define('Murmur_PermissionMakeChannel', 64); -} - -if(!defined('Murmur_PermissionMakeTempChannel')) -{ - define('Murmur_PermissionMakeTempChannel', 1024); -} - -if(!defined('Murmur_PermissionLinkChannel')) -{ - define('Murmur_PermissionLinkChannel', 128); -} - -if(!defined('Murmur_PermissionTextMessage')) -{ - define('Murmur_PermissionTextMessage', 512); -} - -if(!defined('Murmur_PermissionKick')) -{ - define('Murmur_PermissionKick', 65536); -} - -if(!defined('Murmur_PermissionBan')) -{ - define('Murmur_PermissionBan', 131072); -} - -if(!defined('Murmur_PermissionRegister')) -{ - define('Murmur_PermissionRegister', 262144); -} - -if(!defined('Murmur_PermissionRegisterSelf')) -{ - define('Murmur_PermissionRegisterSelf', 524288); -} - -if(!class_exists('Murmur_ACL')) -{ - class Murmur_ACL - { - public function __construct($applyHere=false, $applySubs=false, $inherited=false, $userid=0, $group='', $allow=0, $deny=0) - { - $this->applyHere = $applyHere; - $this->applySubs = $applySubs; - $this->inherited = $inherited; - $this->userid = $userid; - $this->group = $group; - $this->allow = $allow; - $this->deny = $deny; - } - - public function __toString() - { - global $Murmur__t_ACL; - return IcePHP_stringify($this, $Murmur__t_ACL); - } - - public $applyHere; - public $applySubs; - public $inherited; - public $userid; - public $group; - public $allow; - public $deny; - } - - $Murmur__t_ACL = IcePHP_defineStruct('::Murmur::ACL', 'Murmur_ACL', array( - array('applyHere', $IcePHP__t_bool), - array('applySubs', $IcePHP__t_bool), - array('inherited', $IcePHP__t_bool), - array('userid', $IcePHP__t_int), - array('group', $IcePHP__t_string), - array('allow', $IcePHP__t_int), - array('deny', $IcePHP__t_int))); -} - -if(!class_exists('Murmur_Ban')) -{ - class Murmur_Ban - { - public function __construct($address=null, $bits=0, $name='', $hash='', $reason='', $start=0, $duration=0) - { - $this->address = $address; - $this->bits = $bits; - $this->name = $name; - $this->hash = $hash; - $this->reason = $reason; - $this->start = $start; - $this->duration = $duration; - } - - public function __toString() - { - global $Murmur__t_Ban; - return IcePHP_stringify($this, $Murmur__t_Ban); - } - - public $address; - public $bits; - public $name; - public $hash; - public $reason; - public $start; - public $duration; - } - - $Murmur__t_Ban = IcePHP_defineStruct('::Murmur::Ban', 'Murmur_Ban', array( - array('address', $Murmur__t_NetAddress), - array('bits', $IcePHP__t_int), - array('name', $IcePHP__t_string), - array('hash', $IcePHP__t_string), - array('reason', $IcePHP__t_string), - array('start', $IcePHP__t_int), - array('duration', $IcePHP__t_int))); -} - -if(!class_exists('Murmur_LogEntry')) -{ - class Murmur_LogEntry - { - public function __construct($timestamp=0, $txt='') - { - $this->timestamp = $timestamp; - $this->txt = $txt; - } - - public function __toString() - { - global $Murmur__t_LogEntry; - return IcePHP_stringify($this, $Murmur__t_LogEntry); - } - - public $timestamp; - public $txt; - } - - $Murmur__t_LogEntry = IcePHP_defineStruct('::Murmur::LogEntry', 'Murmur_LogEntry', array( - array('timestamp', $IcePHP__t_int), - array('txt', $IcePHP__t_string))); -} - -if(!isset($Murmur__t_Tree)) -{ - $Murmur__t_Tree = IcePHP_declareClass('::Murmur::Tree'); - $Murmur__t_TreePrx = IcePHP_declareProxy('::Murmur::Tree'); -} - -if(!isset($Murmur__t_TreeList)) -{ - $Murmur__t_TreeList = IcePHP_defineSequence('::Murmur::TreeList', $Murmur__t_Tree); -} - -if(!class_exists('Murmur_ChannelInfo')) -{ - class Murmur_ChannelInfo - { - const ChannelDescription = 0; - const ChannelPosition = 1; - } - - $Murmur__t_ChannelInfo = IcePHP_defineEnum('::Murmur::ChannelInfo', array('ChannelDescription', 0, 'ChannelPosition', 1)); -} - -if(!class_exists('Murmur_UserInfo')) -{ - class Murmur_UserInfo - { - const UserName = 0; - const UserEmail = 1; - const UserComment = 2; - const UserHash = 3; - const UserPassword = 4; - const UserLastActive = 5; - } - - $Murmur__t_UserInfo = IcePHP_defineEnum('::Murmur::UserInfo', array('UserName', 0, 'UserEmail', 1, 'UserComment', 2, 'UserHash', 3, 'UserPassword', 4, 'UserLastActive', 5)); -} - -if(!isset($Murmur__t_UserMap)) -{ - $Murmur__t_UserMap = IcePHP_defineDictionary('::Murmur::UserMap', $IcePHP__t_int, $Murmur__t_User); -} - -if(!isset($Murmur__t_ChannelMap)) -{ - $Murmur__t_ChannelMap = IcePHP_defineDictionary('::Murmur::ChannelMap', $IcePHP__t_int, $Murmur__t_Channel); -} - -if(!isset($Murmur__t_ChannelList)) -{ - $Murmur__t_ChannelList = IcePHP_defineSequence('::Murmur::ChannelList', $Murmur__t_Channel); -} - -if(!isset($Murmur__t_UserList)) -{ - $Murmur__t_UserList = IcePHP_defineSequence('::Murmur::UserList', $Murmur__t_User); -} - -if(!isset($Murmur__t_GroupList)) -{ - $Murmur__t_GroupList = IcePHP_defineSequence('::Murmur::GroupList', $Murmur__t_Group); -} - -if(!isset($Murmur__t_ACLList)) -{ - $Murmur__t_ACLList = IcePHP_defineSequence('::Murmur::ACLList', $Murmur__t_ACL); -} - -if(!isset($Murmur__t_LogList)) -{ - $Murmur__t_LogList = IcePHP_defineSequence('::Murmur::LogList', $Murmur__t_LogEntry); -} - -if(!isset($Murmur__t_BanList)) -{ - $Murmur__t_BanList = IcePHP_defineSequence('::Murmur::BanList', $Murmur__t_Ban); -} - -if(!isset($Murmur__t_IdList)) -{ - $Murmur__t_IdList = IcePHP_defineSequence('::Murmur::IdList', $IcePHP__t_int); -} - -if(!isset($Murmur__t_NameList)) -{ - $Murmur__t_NameList = IcePHP_defineSequence('::Murmur::NameList', $IcePHP__t_string); -} - -if(!isset($Murmur__t_NameMap)) -{ - $Murmur__t_NameMap = IcePHP_defineDictionary('::Murmur::NameMap', $IcePHP__t_int, $IcePHP__t_string); -} - -if(!isset($Murmur__t_IdMap)) -{ - $Murmur__t_IdMap = IcePHP_defineDictionary('::Murmur::IdMap', $IcePHP__t_string, $IcePHP__t_int); -} - -if(!isset($Murmur__t_Texture)) -{ - $Murmur__t_Texture = IcePHP_defineSequence('::Murmur::Texture', $IcePHP__t_byte); -} - -if(!isset($Murmur__t_ConfigMap)) -{ - $Murmur__t_ConfigMap = IcePHP_defineDictionary('::Murmur::ConfigMap', $IcePHP__t_string, $IcePHP__t_string); -} - -if(!isset($Murmur__t_GroupNameList)) -{ - $Murmur__t_GroupNameList = IcePHP_defineSequence('::Murmur::GroupNameList', $IcePHP__t_string); -} - -if(!isset($Murmur__t_CertificateDer)) -{ - $Murmur__t_CertificateDer = IcePHP_defineSequence('::Murmur::CertificateDer', $IcePHP__t_byte); -} - -if(!isset($Murmur__t_CertificateList)) -{ - $Murmur__t_CertificateList = IcePHP_defineSequence('::Murmur::CertificateList', $Murmur__t_CertificateDer); -} - -if(!isset($Murmur__t_UserInfoMap)) -{ - $Murmur__t_UserInfoMap = IcePHP_defineDictionary('::Murmur::UserInfoMap', $Murmur__t_UserInfo, $IcePHP__t_string); -} - -if(!class_exists('Murmur_Tree')) -{ - class Murmur_Tree extends Ice_ObjectImpl - { - public function __construct($c=null, $children=null, $users=null) - { - $this->c = is_null($c) ? new Murmur_Channel : $c; - $this->children = $children; - $this->users = $users; - } - - public static function ice_staticId() - { - return '::Murmur::Tree'; - } - - public function __toString() - { - global $Murmur__t_Tree; - return IcePHP_stringify($this, $Murmur__t_Tree); - } - - public $c; - public $children; - public $users; - } - - class Murmur_TreePrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::Tree', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::Tree', $facet); - } - } - - $Murmur__t_Tree = IcePHP_defineClass('::Murmur::Tree', 'Murmur_Tree', -1, false, false, $Ice__t_Object, null, array( - array('c', $Murmur__t_Channel, false, 0), - array('children', $Murmur__t_TreeList, false, 0), - array('users', $Murmur__t_UserList, false, 0))); - - $Murmur__t_TreePrx = IcePHP_defineProxy($Murmur__t_Tree); -} - -if(!class_exists('Murmur_MurmurException')) -{ - class Murmur_MurmurException extends Ice_UserException - { - public function __construct() - { - } - - public function ice_name() - { - return 'Murmur::MurmurException'; - } - - public function __toString() - { - global $Murmur__t_MurmurException; - return IcePHP_stringifyException($this, $Murmur__t_MurmurException); - } - } - - $Murmur__t_MurmurException = IcePHP_defineException('::Murmur::MurmurException', 'Murmur_MurmurException', false, null, null); -} - -if(!class_exists('Murmur_InvalidSessionException')) -{ - class Murmur_InvalidSessionException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidSessionException'; - } - - public function __toString() - { - global $Murmur__t_InvalidSessionException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidSessionException); - } - } - - $Murmur__t_InvalidSessionException = IcePHP_defineException('::Murmur::InvalidSessionException', 'Murmur_InvalidSessionException', false, $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidChannelException')) -{ - class Murmur_InvalidChannelException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidChannelException'; - } - - public function __toString() - { - global $Murmur__t_InvalidChannelException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidChannelException); - } - } - - $Murmur__t_InvalidChannelException = IcePHP_defineException('::Murmur::InvalidChannelException', 'Murmur_InvalidChannelException', false, $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidServerException')) -{ - class Murmur_InvalidServerException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidServerException'; - } - - public function __toString() - { - global $Murmur__t_InvalidServerException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidServerException); - } - } - - $Murmur__t_InvalidServerException = IcePHP_defineException('::Murmur::InvalidServerException', 'Murmur_InvalidServerException', false, $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_ServerBootedException')) -{ - class Murmur_ServerBootedException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::ServerBootedException'; - } - - public function __toString() - { - global $Murmur__t_ServerBootedException; - return IcePHP_stringifyException($this, $Murmur__t_ServerBootedException); - } - } - - $Murmur__t_ServerBootedException = IcePHP_defineException('::Murmur::ServerBootedException', 'Murmur_ServerBootedException', false, $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_ServerFailureException')) -{ - class Murmur_ServerFailureException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::ServerFailureException'; - } - - public function __toString() - { - global $Murmur__t_ServerFailureException; - return IcePHP_stringifyException($this, $Murmur__t_ServerFailureException); - } - } - - $Murmur__t_ServerFailureException = IcePHP_defineException('::Murmur::ServerFailureException', 'Murmur_ServerFailureException', false, $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidUserException')) -{ - class Murmur_InvalidUserException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidUserException'; - } - - public function __toString() - { - global $Murmur__t_InvalidUserException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidUserException); - } - } - - $Murmur__t_InvalidUserException = IcePHP_defineException('::Murmur::InvalidUserException', 'Murmur_InvalidUserException', false, $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidTextureException')) -{ - class Murmur_InvalidTextureException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidTextureException'; - } - - public function __toString() - { - global $Murmur__t_InvalidTextureException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidTextureException); - } - } - - $Murmur__t_InvalidTextureException = IcePHP_defineException('::Murmur::InvalidTextureException', 'Murmur_InvalidTextureException', false, $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidCallbackException')) -{ - class Murmur_InvalidCallbackException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidCallbackException'; - } - - public function __toString() - { - global $Murmur__t_InvalidCallbackException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidCallbackException); - } - } - - $Murmur__t_InvalidCallbackException = IcePHP_defineException('::Murmur::InvalidCallbackException', 'Murmur_InvalidCallbackException', false, $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_InvalidSecretException')) -{ - class Murmur_InvalidSecretException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::InvalidSecretException'; - } - - public function __toString() - { - global $Murmur__t_InvalidSecretException; - return IcePHP_stringifyException($this, $Murmur__t_InvalidSecretException); - } - } - - $Murmur__t_InvalidSecretException = IcePHP_defineException('::Murmur::InvalidSecretException', 'Murmur_InvalidSecretException', false, $Murmur__t_MurmurException, null); -} - -if(!class_exists('Murmur_NestingLimitException')) -{ - class Murmur_NestingLimitException extends Murmur_MurmurException - { - public function __construct() - { - parent::__construct(); - } - - public function ice_name() - { - return 'Murmur::NestingLimitException'; - } - - public function __toString() - { - global $Murmur__t_NestingLimitException; - return IcePHP_stringifyException($this, $Murmur__t_NestingLimitException); - } - } - - $Murmur__t_NestingLimitException = IcePHP_defineException('::Murmur::NestingLimitException', 'Murmur_NestingLimitException', false, $Murmur__t_MurmurException, null); -} - -if(!interface_exists('Murmur_ServerCallback')) -{ - interface Murmur_ServerCallback - { - public function userConnected($state); - public function userDisconnected($state); - public function userStateChanged($state); - public function userTextMessage($state, $message); - public function channelCreated($state); - public function channelRemoved($state); - public function channelStateChanged($state); - } - - class Murmur_ServerCallbackPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerCallback', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerCallback', $facet); - } - } - - $Murmur__t_ServerCallback = IcePHP_defineClass('::Murmur::ServerCallback', 'Murmur_ServerCallback', -1, true, false, $Ice__t_Object, null, null); - - $Murmur__t_ServerCallbackPrx = IcePHP_defineProxy($Murmur__t_ServerCallback); - - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userConnected', 2, 2, 0, array(array($Murmur__t_User, false, 0)), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userDisconnected', 2, 2, 0, array(array($Murmur__t_User, false, 0)), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userStateChanged', 2, 2, 0, array(array($Murmur__t_User, false, 0)), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'userTextMessage', 2, 2, 0, array(array($Murmur__t_User, false, 0), array($Murmur__t_TextMessage, false, 0)), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'channelCreated', 2, 2, 0, array(array($Murmur__t_Channel, false, 0)), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'channelRemoved', 2, 2, 0, array(array($Murmur__t_Channel, false, 0)), null, null, null); - IcePHP_defineOperation($Murmur__t_ServerCallback, 'channelStateChanged', 2, 2, 0, array(array($Murmur__t_Channel, false, 0)), null, null, null); -} - -if(!defined('Murmur_ContextServer')) -{ - define('Murmur_ContextServer', 1); -} - -if(!defined('Murmur_ContextChannel')) -{ - define('Murmur_ContextChannel', 2); -} - -if(!defined('Murmur_ContextUser')) -{ - define('Murmur_ContextUser', 4); -} - -if(!interface_exists('Murmur_ServerContextCallback')) -{ - interface Murmur_ServerContextCallback - { - public function contextAction($action, $usr, $session, $channelid); - } - - class Murmur_ServerContextCallbackPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerContextCallback', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerContextCallback', $facet); - } - } - - $Murmur__t_ServerContextCallback = IcePHP_defineClass('::Murmur::ServerContextCallback', 'Murmur_ServerContextCallback', -1, true, false, $Ice__t_Object, null, null); - - $Murmur__t_ServerContextCallbackPrx = IcePHP_defineProxy($Murmur__t_ServerContextCallback); - - IcePHP_defineOperation($Murmur__t_ServerContextCallback, 'contextAction', 2, 2, 0, array(array($IcePHP__t_string, false, 0), array($Murmur__t_User, false, 0), array($IcePHP__t_int, false, 0), array($IcePHP__t_int, false, 0)), null, null, null); -} - -if(!interface_exists('Murmur_ServerAuthenticator')) -{ - interface Murmur_ServerAuthenticator - { - public function authenticate($name, $pw, $certificates, $certhash, $certstrong, $newname, $groups); - public function getInfo($id, $info); - public function nameToId($name); - public function idToName($id); - public function idToTexture($id); - } - - class Murmur_ServerAuthenticatorPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerAuthenticator', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerAuthenticator', $facet); - } - } - - $Murmur__t_ServerAuthenticator = IcePHP_defineClass('::Murmur::ServerAuthenticator', 'Murmur_ServerAuthenticator', -1, true, false, $Ice__t_Object, null, null); - - $Murmur__t_ServerAuthenticatorPrx = IcePHP_defineProxy($Murmur__t_ServerAuthenticator); - - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'authenticate', 2, 2, 0, array(array($IcePHP__t_string, false, 0), array($IcePHP__t_string, false, 0), array($Murmur__t_CertificateList, false, 0), array($IcePHP__t_string, false, 0), array($IcePHP__t_bool, false, 0)), array(array($IcePHP__t_string, false, 0), array($Murmur__t_GroupNameList, false, 0)), array($IcePHP__t_int, false, 0), null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'getInfo', 2, 2, 0, array(array($IcePHP__t_int, false, 0)), array(array($Murmur__t_UserInfoMap, false, 0)), array($IcePHP__t_bool, false, 0), null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'nameToId', 2, 2, 0, array(array($IcePHP__t_string, false, 0)), null, array($IcePHP__t_int, false, 0), null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'idToName', 2, 2, 0, array(array($IcePHP__t_int, false, 0)), null, array($IcePHP__t_string, false, 0), null); - IcePHP_defineOperation($Murmur__t_ServerAuthenticator, 'idToTexture', 2, 2, 0, array(array($IcePHP__t_int, false, 0)), null, array($Murmur__t_Texture, false, 0), null); -} - -if(!interface_exists('Murmur_ServerUpdatingAuthenticator')) -{ - interface Murmur_ServerUpdatingAuthenticator extends Murmur_ServerAuthenticator - { - public function registerUser($info); - public function unregisterUser($id); - public function getRegisteredUsers($filter); - public function setInfo($id, $info); - public function setTexture($id, $tex); - } - - class Murmur_ServerUpdatingAuthenticatorPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::ServerUpdatingAuthenticator', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::ServerUpdatingAuthenticator', $facet); - } - } - - $Murmur__t_ServerUpdatingAuthenticator = IcePHP_defineClass('::Murmur::ServerUpdatingAuthenticator', 'Murmur_ServerUpdatingAuthenticator', -1, true, false, $Ice__t_Object, array($Murmur__t_ServerAuthenticator), null); - - $Murmur__t_ServerUpdatingAuthenticatorPrx = IcePHP_defineProxy($Murmur__t_ServerUpdatingAuthenticator); - - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'registerUser', 0, 0, 0, array(array($Murmur__t_UserInfoMap, false, 0)), null, array($IcePHP__t_int, false, 0), null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'unregisterUser', 0, 0, 0, array(array($IcePHP__t_int, false, 0)), null, array($IcePHP__t_int, false, 0), null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'getRegisteredUsers', 2, 2, 0, array(array($IcePHP__t_string, false, 0)), null, array($Murmur__t_NameMap, false, 0), null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'setInfo', 2, 2, 0, array(array($IcePHP__t_int, false, 0), array($Murmur__t_UserInfoMap, false, 0)), null, array($IcePHP__t_int, false, 0), null); - IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticator, 'setTexture', 2, 2, 0, array(array($IcePHP__t_int, false, 0), array($Murmur__t_Texture, false, 0)), null, array($IcePHP__t_int, false, 0), null); -} - -if(!interface_exists('Murmur_Server')) -{ - interface Murmur_Server - { - public function isRunning(); - public function start(); - public function stop(); - public function delete(); - public function id(); - public function addCallback($cb); - public function removeCallback($cb); - public function setAuthenticator($auth); - public function getConf($key); - public function getAllConf(); - public function setConf($key, $value); - public function setSuperuserPassword($pw); - public function getLog($first, $last); - public function getLogLen(); - public function getUsers(); - public function getChannels(); - public function getCertificateList($session); - public function getTree(); - public function getBans(); - public function setBans($bans); - public function kickUser($session, $reason); - public function getState($session); - public function setState($state); - public function sendMessage($session, $text); - public function hasPermission($session, $channelid, $perm); - public function effectivePermissions($session, $channelid); - public function addContextCallback($session, $action, $text, $cb, $ctx); - public function removeContextCallback($cb); - public function getChannelState($channelid); - public function setChannelState($state); - public function removeChannel($channelid); - public function addChannel($name, $parent); - public function sendMessageChannel($channelid, $tree, $text); - public function getACL($channelid, $acls, $groups, $inherit); - public function setACL($channelid, $acls, $groups, $inherit); - public function addUserToGroup($channelid, $session, $group); - public function removeUserFromGroup($channelid, $session, $group); - public function redirectWhisperGroup($session, $source, $target); - public function getUserNames($ids); - public function getUserIds($names); - public function registerUser($info); - public function unregisterUser($userid); - public function updateRegistration($userid, $info); - public function getRegistration($userid); - public function getRegisteredUsers($filter); - public function verifyPassword($name, $pw); - public function getTexture($userid); - public function setTexture($userid, $tex); - public function getUptime(); - } - - class Murmur_ServerPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::Server', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::Server', $facet); - } - } - - $Murmur__t_Server = IcePHP_defineClass('::Murmur::Server', 'Murmur_Server', -1, true, false, $Ice__t_Object, null, null); - - $Murmur__t_ServerPrx = IcePHP_defineProxy($Murmur__t_Server); - - IcePHP_defineOperation($Murmur__t_Server, 'isRunning', 2, 2, 0, null, null, array($IcePHP__t_bool, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'start', 0, 0, 0, null, null, null, array($Murmur__t_ServerBootedException, $Murmur__t_ServerFailureException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'stop', 0, 0, 0, null, null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'delete', 0, 0, 0, null, null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'id', 2, 2, 0, null, null, array($IcePHP__t_int, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'addCallback', 0, 0, 0, array(array($Murmur__t_ServerCallbackPrx, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeCallback', 0, 0, 0, array(array($Murmur__t_ServerCallbackPrx, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setAuthenticator', 0, 0, 0, array(array($Murmur__t_ServerAuthenticatorPrx, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getConf', 2, 2, 0, array(array($IcePHP__t_string, false, 0)), null, array($IcePHP__t_string, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getAllConf', 2, 2, 0, null, null, array($Murmur__t_ConfigMap, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setConf', 2, 2, 0, array(array($IcePHP__t_string, false, 0), array($IcePHP__t_string, false, 0)), null, null, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setSuperuserPassword', 2, 2, 0, array(array($IcePHP__t_string, false, 0)), null, null, array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getLog', 2, 2, 0, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_int, false, 0)), null, array($Murmur__t_LogList, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getLogLen', 2, 2, 0, null, null, array($IcePHP__t_int, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUsers', 2, 2, 0, null, null, array($Murmur__t_UserMap, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getChannels', 2, 2, 0, null, null, array($Murmur__t_ChannelMap, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getCertificateList', 2, 2, 0, array(array($IcePHP__t_int, false, 0)), null, array($Murmur__t_CertificateList, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getTree', 2, 2, 0, null, null, array($Murmur__t_Tree, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getBans', 2, 2, 0, null, null, array($Murmur__t_BanList, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setBans', 2, 2, 0, array(array($Murmur__t_BanList, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'kickUser', 0, 0, 0, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_string, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getState', 2, 2, 0, array(array($IcePHP__t_int, false, 0)), null, array($Murmur__t_User, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setState', 2, 2, 0, array(array($Murmur__t_User, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'sendMessage', 0, 0, 0, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_string, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'hasPermission', 0, 0, 0, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_int, false, 0), array($IcePHP__t_int, false, 0)), null, array($IcePHP__t_bool, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'effectivePermissions', 2, 2, 0, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_int, false, 0)), null, array($IcePHP__t_int, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'addContextCallback', 0, 0, 0, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_string, false, 0), array($IcePHP__t_string, false, 0), array($Murmur__t_ServerContextCallbackPrx, false, 0), array($IcePHP__t_int, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeContextCallback', 0, 0, 0, array(array($Murmur__t_ServerContextCallbackPrx, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getChannelState', 2, 2, 0, array(array($IcePHP__t_int, false, 0)), null, array($Murmur__t_Channel, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setChannelState', 2, 2, 0, array(array($Murmur__t_Channel, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException, $Murmur__t_NestingLimitException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeChannel', 0, 0, 0, array(array($IcePHP__t_int, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'addChannel', 0, 0, 0, array(array($IcePHP__t_string, false, 0), array($IcePHP__t_int, false, 0)), null, array($IcePHP__t_int, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException, $Murmur__t_NestingLimitException)); - IcePHP_defineOperation($Murmur__t_Server, 'sendMessageChannel', 0, 0, 0, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_bool, false, 0), array($IcePHP__t_string, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getACL', 2, 2, 0, array(array($IcePHP__t_int, false, 0)), array(array($Murmur__t_ACLList, false, 0), array($Murmur__t_GroupList, false, 0), array($IcePHP__t_bool, false, 0)), null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setACL', 2, 2, 0, array(array($IcePHP__t_int, false, 0), array($Murmur__t_ACLList, false, 0), array($Murmur__t_GroupList, false, 0), array($IcePHP__t_bool, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'addUserToGroup', 2, 2, 0, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_int, false, 0), array($IcePHP__t_string, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'removeUserFromGroup', 2, 2, 0, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_int, false, 0), array($IcePHP__t_string, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'redirectWhisperGroup', 2, 2, 0, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_string, false, 0), array($IcePHP__t_string, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUserNames', 2, 2, 0, array(array($Murmur__t_IdList, false, 0)), null, array($Murmur__t_NameMap, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUserIds', 2, 2, 0, array(array($Murmur__t_NameList, false, 0)), null, array($Murmur__t_IdMap, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'registerUser', 0, 0, 0, array(array($Murmur__t_UserInfoMap, false, 0)), null, array($IcePHP__t_int, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'unregisterUser', 0, 0, 0, array(array($IcePHP__t_int, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'updateRegistration', 2, 2, 0, array(array($IcePHP__t_int, false, 0), array($Murmur__t_UserInfoMap, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getRegistration', 2, 2, 0, array(array($IcePHP__t_int, false, 0)), null, array($Murmur__t_UserInfoMap, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getRegisteredUsers', 2, 2, 0, array(array($IcePHP__t_string, false, 0)), null, array($Murmur__t_NameMap, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'verifyPassword', 2, 2, 0, array(array($IcePHP__t_string, false, 0), array($IcePHP__t_string, false, 0)), null, array($IcePHP__t_int, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getTexture', 2, 2, 0, array(array($IcePHP__t_int, false, 0)), null, array($Murmur__t_Texture, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'setTexture', 2, 2, 0, array(array($IcePHP__t_int, false, 0), array($Murmur__t_Texture, false, 0)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidTextureException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Server, 'getUptime', 2, 2, 0, null, null, array($IcePHP__t_int, false, 0), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); -} - -if(!interface_exists('Murmur_MetaCallback')) -{ - interface Murmur_MetaCallback - { - public function started($srv); - public function stopped($srv); - } - - class Murmur_MetaCallbackPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::MetaCallback', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::MetaCallback', $facet); - } - } - - $Murmur__t_MetaCallback = IcePHP_defineClass('::Murmur::MetaCallback', 'Murmur_MetaCallback', -1, true, false, $Ice__t_Object, null, null); - - $Murmur__t_MetaCallbackPrx = IcePHP_defineProxy($Murmur__t_MetaCallback); - - IcePHP_defineOperation($Murmur__t_MetaCallback, 'started', 0, 0, 0, array(array($Murmur__t_ServerPrx, false, 0)), null, null, null); - IcePHP_defineOperation($Murmur__t_MetaCallback, 'stopped', 0, 0, 0, array(array($Murmur__t_ServerPrx, false, 0)), null, null, null); -} - -if(!isset($Murmur__t_ServerList)) -{ - $Murmur__t_ServerList = IcePHP_defineSequence('::Murmur::ServerList', $Murmur__t_ServerPrx); -} - -if(!interface_exists('Murmur_Meta')) -{ - interface Murmur_Meta - { - public function getServer($id); - public function newServer(); - public function getBootedServers(); - public function getAllServers(); - public function getDefaultConf(); - public function getVersion($major, $minor, $patch, $text); - public function addCallback($cb); - public function removeCallback($cb); - public function getUptime(); - public function getSlice(); - public function getSliceChecksums(); - } - - class Murmur_MetaPrxHelper - { - public static function checkedCast($proxy, $facetOrCtx=null, $ctx=null) - { - return $proxy->ice_checkedCast('::Murmur::Meta', $facetOrCtx, $ctx); - } - - public static function uncheckedCast($proxy, $facet=null) - { - return $proxy->ice_uncheckedCast('::Murmur::Meta', $facet); - } - } - - $Murmur__t_Meta = IcePHP_defineClass('::Murmur::Meta', 'Murmur_Meta', -1, true, false, $Ice__t_Object, null, null); - - $Murmur__t_MetaPrx = IcePHP_defineProxy($Murmur__t_Meta); - - IcePHP_defineOperation($Murmur__t_Meta, 'getServer', 2, 2, 0, array(array($IcePHP__t_int, false, 0)), null, array($Murmur__t_ServerPrx, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'newServer', 0, 0, 0, null, null, array($Murmur__t_ServerPrx, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getBootedServers', 2, 2, 0, null, null, array($Murmur__t_ServerList, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getAllServers', 2, 2, 0, null, null, array($Murmur__t_ServerList, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getDefaultConf', 2, 2, 0, null, null, array($Murmur__t_ConfigMap, false, 0), array($Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getVersion', 2, 2, 0, null, array(array($IcePHP__t_int, false, 0), array($IcePHP__t_int, false, 0), array($IcePHP__t_int, false, 0), array($IcePHP__t_string, false, 0)), null, null); - IcePHP_defineOperation($Murmur__t_Meta, 'addCallback', 0, 0, 0, array(array($Murmur__t_MetaCallbackPrx, false, 0)), null, null, array($Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'removeCallback', 0, 0, 0, array(array($Murmur__t_MetaCallbackPrx, false, 0)), null, null, array($Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); - IcePHP_defineOperation($Murmur__t_Meta, 'getUptime', 2, 2, 0, null, null, array($IcePHP__t_int, false, 0), null); - IcePHP_defineOperation($Murmur__t_Meta, 'getSlice', 2, 2, 0, null, null, array($IcePHP__t_string, false, 0), null); - IcePHP_defineOperation($Murmur__t_Meta, 'getSliceChecksums', 2, 2, 0, null, null, array($Ice__t_SliceChecksumDict, false, 0), null); -} -?> diff --git a/classes/Murmur_1.3.0_ice37.php b/classes/Murmur_1.3.0_ice37.php new file mode 100644 index 0000000..67c214a --- /dev/null +++ b/classes/Murmur_1.3.0_ice37.php @@ -0,0 +1,1490 @@ + +// +// Generated from file `Murmur.ice' +// +// Warning: do not edit this file. +// +// +// + + +namespace +{ + require_once 'Ice/SliceChecksumDict.php'; +} + +namespace Murmur +{ + global $Murmur__t_NetAddress; + + if(!isset($Murmur__t_NetAddress)) + { + global $IcePHP__t_byte; + $Murmur__t_NetAddress = IcePHP_defineSequence('::Murmur::NetAddress', $IcePHP__t_byte); + } +} + +namespace Murmur +{ + global $Murmur__t_User; + class User + { + public function __construct($session=0, $userid=0, $mute=false, $deaf=false, $suppress=false, $prioritySpeaker=false, $selfMute=false, $selfDeaf=false, $recording=false, $channel=0, $name='', $onlinesecs=0, $bytespersec=0, $version=0, $release='', $os='', $osversion='', $identity='', $context='', $comment='', $address=null, $tcponly=false, $idlesecs=0, $udpPing=0.0, $tcpPing=0.0) + { + $this->session = $session; + $this->userid = $userid; + $this->mute = $mute; + $this->deaf = $deaf; + $this->suppress = $suppress; + $this->prioritySpeaker = $prioritySpeaker; + $this->selfMute = $selfMute; + $this->selfDeaf = $selfDeaf; + $this->recording = $recording; + $this->channel = $channel; + $this->name = $name; + $this->onlinesecs = $onlinesecs; + $this->bytespersec = $bytespersec; + $this->version = $version; + $this->release = $release; + $this->os = $os; + $this->osversion = $osversion; + $this->identity = $identity; + $this->context = $context; + $this->comment = $comment; + $this->address = $address; + $this->tcponly = $tcponly; + $this->idlesecs = $idlesecs; + $this->udpPing = $udpPing; + $this->tcpPing = $tcpPing; + } + + public function __toString() + { + global $Murmur__t_User; + return IcePHP_stringify($this, $Murmur__t_User); + } + + public $session; + public $userid; + public $mute; + public $deaf; + public $suppress; + public $prioritySpeaker; + public $selfMute; + public $selfDeaf; + public $recording; + public $channel; + public $name; + public $onlinesecs; + public $bytespersec; + public $version; + public $release; + public $os; + public $osversion; + public $identity; + public $context; + public $comment; + public $address; + public $tcponly; + public $idlesecs; + public $udpPing; + public $tcpPing; + } + + global $IcePHP__t_int; + global $IcePHP__t_bool; + global $IcePHP__t_string; + global $Murmur__t_NetAddress; + global $IcePHP__t_float; + $Murmur__t_User = IcePHP_defineStruct('::Murmur::User', '\\Murmur\\User', array( + array('session', $IcePHP__t_int), + array('userid', $IcePHP__t_int), + array('mute', $IcePHP__t_bool), + array('deaf', $IcePHP__t_bool), + array('suppress', $IcePHP__t_bool), + array('prioritySpeaker', $IcePHP__t_bool), + array('selfMute', $IcePHP__t_bool), + array('selfDeaf', $IcePHP__t_bool), + array('recording', $IcePHP__t_bool), + array('channel', $IcePHP__t_int), + array('name', $IcePHP__t_string), + array('onlinesecs', $IcePHP__t_int), + array('bytespersec', $IcePHP__t_int), + array('version', $IcePHP__t_int), + array('release', $IcePHP__t_string), + array('os', $IcePHP__t_string), + array('osversion', $IcePHP__t_string), + array('identity', $IcePHP__t_string), + array('context', $IcePHP__t_string), + array('comment', $IcePHP__t_string), + array('address', $Murmur__t_NetAddress), + array('tcponly', $IcePHP__t_bool), + array('idlesecs', $IcePHP__t_int), + array('udpPing', $IcePHP__t_float), + array('tcpPing', $IcePHP__t_float))); +} + +namespace Murmur +{ + global $Murmur__t_IntList; + + if(!isset($Murmur__t_IntList)) + { + global $IcePHP__t_int; + $Murmur__t_IntList = IcePHP_defineSequence('::Murmur::IntList', $IcePHP__t_int); + } +} + +namespace Murmur +{ + global $Murmur__t_TextMessage; + class TextMessage + { + public function __construct($sessions=null, $channels=null, $trees=null, $text='') + { + $this->sessions = $sessions; + $this->channels = $channels; + $this->trees = $trees; + $this->text = $text; + } + + public function __toString() + { + global $Murmur__t_TextMessage; + return IcePHP_stringify($this, $Murmur__t_TextMessage); + } + + public $sessions; + public $channels; + public $trees; + public $text; + } + + global $Murmur__t_IntList; + global $IcePHP__t_string; + $Murmur__t_TextMessage = IcePHP_defineStruct('::Murmur::TextMessage', '\\Murmur\\TextMessage', array( + array('sessions', $Murmur__t_IntList), + array('channels', $Murmur__t_IntList), + array('trees', $Murmur__t_IntList), + array('text', $IcePHP__t_string))); +} + +namespace Murmur +{ + global $Murmur__t_Channel; + class Channel + { + public function __construct($id=0, $name='', $parent=0, $links=null, $description='', $temporary=false, $position=0) + { + $this->id = $id; + $this->name = $name; + $this->parent = $parent; + $this->links = $links; + $this->description = $description; + $this->temporary = $temporary; + $this->position = $position; + } + + public function __toString() + { + global $Murmur__t_Channel; + return IcePHP_stringify($this, $Murmur__t_Channel); + } + + public $id; + public $name; + public $parent; + public $links; + public $description; + public $temporary; + public $position; + } + + global $IcePHP__t_int; + global $IcePHP__t_string; + global $Murmur__t_IntList; + global $IcePHP__t_bool; + $Murmur__t_Channel = IcePHP_defineStruct('::Murmur::Channel', '\\Murmur\\Channel', array( + array('id', $IcePHP__t_int), + array('name', $IcePHP__t_string), + array('parent', $IcePHP__t_int), + array('links', $Murmur__t_IntList), + array('description', $IcePHP__t_string), + array('temporary', $IcePHP__t_bool), + array('position', $IcePHP__t_int))); +} + +namespace Murmur +{ + global $Murmur__t_Group; + class Group + { + public function __construct($name='', $inherited=false, $inherit=false, $inheritable=false, $add=null, $remove=null, $members=null) + { + $this->name = $name; + $this->inherited = $inherited; + $this->inherit = $inherit; + $this->inheritable = $inheritable; + $this->add = $add; + $this->remove = $remove; + $this->members = $members; + } + + public function __toString() + { + global $Murmur__t_Group; + return IcePHP_stringify($this, $Murmur__t_Group); + } + + public $name; + public $inherited; + public $inherit; + public $inheritable; + public $add; + public $remove; + public $members; + } + + global $IcePHP__t_string; + global $IcePHP__t_bool; + global $Murmur__t_IntList; + $Murmur__t_Group = IcePHP_defineStruct('::Murmur::Group', '\\Murmur\\Group', array( + array('name', $IcePHP__t_string), + array('inherited', $IcePHP__t_bool), + array('inherit', $IcePHP__t_bool), + array('inheritable', $IcePHP__t_bool), + array('add', $Murmur__t_IntList), + array('remove', $Murmur__t_IntList), + array('members', $Murmur__t_IntList))); +} + +namespace Murmur +{ + if(!defined('\\Murmur\\PermissionWrite')) + { + define(__NAMESPACE__ . '\\PermissionWrite', 1); + } +} + +namespace Murmur +{ + if(!defined('\\Murmur\\PermissionTraverse')) + { + define(__NAMESPACE__ . '\\PermissionTraverse', 2); + } +} + +namespace Murmur +{ + if(!defined('\\Murmur\\PermissionEnter')) + { + define(__NAMESPACE__ . '\\PermissionEnter', 4); + } +} + +namespace Murmur +{ + if(!defined('\\Murmur\\PermissionSpeak')) + { + define(__NAMESPACE__ . '\\PermissionSpeak', 8); + } +} + +namespace Murmur +{ + if(!defined('\\Murmur\\PermissionWhisper')) + { + define(__NAMESPACE__ . '\\PermissionWhisper', 256); + } +} + +namespace Murmur +{ + if(!defined('\\Murmur\\PermissionMuteDeafen')) + { + define(__NAMESPACE__ . '\\PermissionMuteDeafen', 16); + } +} + +namespace Murmur +{ + if(!defined('\\Murmur\\PermissionMove')) + { + define(__NAMESPACE__ . '\\PermissionMove', 32); + } +} + +namespace Murmur +{ + if(!defined('\\Murmur\\PermissionMakeChannel')) + { + define(__NAMESPACE__ . '\\PermissionMakeChannel', 64); + } +} + +namespace Murmur +{ + if(!defined('\\Murmur\\PermissionMakeTempChannel')) + { + define(__NAMESPACE__ . '\\PermissionMakeTempChannel', 1024); + } +} + +namespace Murmur +{ + if(!defined('\\Murmur\\PermissionLinkChannel')) + { + define(__NAMESPACE__ . '\\PermissionLinkChannel', 128); + } +} + +namespace Murmur +{ + if(!defined('\\Murmur\\PermissionTextMessage')) + { + define(__NAMESPACE__ . '\\PermissionTextMessage', 512); + } +} + +namespace Murmur +{ + if(!defined('\\Murmur\\PermissionKick')) + { + define(__NAMESPACE__ . '\\PermissionKick', 65536); + } +} + +namespace Murmur +{ + if(!defined('\\Murmur\\PermissionBan')) + { + define(__NAMESPACE__ . '\\PermissionBan', 131072); + } +} + +namespace Murmur +{ + if(!defined('\\Murmur\\PermissionRegister')) + { + define(__NAMESPACE__ . '\\PermissionRegister', 262144); + } +} + +namespace Murmur +{ + if(!defined('\\Murmur\\PermissionRegisterSelf')) + { + define(__NAMESPACE__ . '\\PermissionRegisterSelf', 524288); + } +} + +namespace Murmur +{ + global $Murmur__t_ACL; + class ACL + { + public function __construct($applyHere=false, $applySubs=false, $inherited=false, $userid=0, $group='', $allow=0, $deny=0) + { + $this->applyHere = $applyHere; + $this->applySubs = $applySubs; + $this->inherited = $inherited; + $this->userid = $userid; + $this->group = $group; + $this->allow = $allow; + $this->deny = $deny; + } + + public function __toString() + { + global $Murmur__t_ACL; + return IcePHP_stringify($this, $Murmur__t_ACL); + } + + public $applyHere; + public $applySubs; + public $inherited; + public $userid; + public $group; + public $allow; + public $deny; + } + + global $IcePHP__t_bool; + global $IcePHP__t_int; + global $IcePHP__t_string; + $Murmur__t_ACL = IcePHP_defineStruct('::Murmur::ACL', '\\Murmur\\ACL', array( + array('applyHere', $IcePHP__t_bool), + array('applySubs', $IcePHP__t_bool), + array('inherited', $IcePHP__t_bool), + array('userid', $IcePHP__t_int), + array('group', $IcePHP__t_string), + array('allow', $IcePHP__t_int), + array('deny', $IcePHP__t_int))); +} + +namespace Murmur +{ + global $Murmur__t_Ban; + class Ban + { + public function __construct($address=null, $bits=0, $name='', $hash='', $reason='', $start=0, $duration=0) + { + $this->address = $address; + $this->bits = $bits; + $this->name = $name; + $this->hash = $hash; + $this->reason = $reason; + $this->start = $start; + $this->duration = $duration; + } + + public function __toString() + { + global $Murmur__t_Ban; + return IcePHP_stringify($this, $Murmur__t_Ban); + } + + public $address; + public $bits; + public $name; + public $hash; + public $reason; + public $start; + public $duration; + } + + global $Murmur__t_NetAddress; + global $IcePHP__t_int; + global $IcePHP__t_string; + $Murmur__t_Ban = IcePHP_defineStruct('::Murmur::Ban', '\\Murmur\\Ban', array( + array('address', $Murmur__t_NetAddress), + array('bits', $IcePHP__t_int), + array('name', $IcePHP__t_string), + array('hash', $IcePHP__t_string), + array('reason', $IcePHP__t_string), + array('start', $IcePHP__t_int), + array('duration', $IcePHP__t_int))); +} + +namespace Murmur +{ + global $Murmur__t_LogEntry; + class LogEntry + { + public function __construct($timestamp=0, $txt='') + { + $this->timestamp = $timestamp; + $this->txt = $txt; + } + + public function __toString() + { + global $Murmur__t_LogEntry; + return IcePHP_stringify($this, $Murmur__t_LogEntry); + } + + public $timestamp; + public $txt; + } + + global $IcePHP__t_int; + global $IcePHP__t_string; + $Murmur__t_LogEntry = IcePHP_defineStruct('::Murmur::LogEntry', '\\Murmur\\LogEntry', array( + array('timestamp', $IcePHP__t_int), + array('txt', $IcePHP__t_string))); +} + +namespace Murmur +{ + global $Murmur__t_Tree; + if(!isset($Murmur__t_Tree)) + { + $Murmur__t_Tree = IcePHP_declareClass('::Murmur::Tree'); + } +} + +namespace Murmur +{ + global $Murmur__t_TreeList; + + if(!isset($Murmur__t_TreeList)) + { + global $Murmur__t_Tree; + $Murmur__t_TreeList = IcePHP_defineSequence('::Murmur::TreeList', $Murmur__t_Tree); + } +} + +namespace Murmur +{ + global $Murmur__t_ChannelInfo; + class ChannelInfo + { + const ChannelDescription = 0; + const ChannelPosition = 1; + } + + $Murmur__t_ChannelInfo = IcePHP_defineEnum('::Murmur::ChannelInfo', array('ChannelDescription', 0, 'ChannelPosition', 1)); +} + +namespace Murmur +{ + global $Murmur__t_UserInfo; + class UserInfo + { + const UserName = 0; + const UserEmail = 1; + const UserComment = 2; + const UserHash = 3; + const UserPassword = 4; + const UserLastActive = 5; + } + + $Murmur__t_UserInfo = IcePHP_defineEnum('::Murmur::UserInfo', array('UserName', 0, 'UserEmail', 1, 'UserComment', 2, 'UserHash', 3, 'UserPassword', 4, 'UserLastActive', 5)); +} + +namespace Murmur +{ + global $Murmur__t_UserMap; + + if(!isset($Murmur__t_UserMap)) + { + global $IcePHP__t_int; + global $Murmur__t_User; + $Murmur__t_UserMap = IcePHP_defineDictionary('::Murmur::UserMap', $IcePHP__t_int, $Murmur__t_User); + } +} + +namespace Murmur +{ + global $Murmur__t_ChannelMap; + + if(!isset($Murmur__t_ChannelMap)) + { + global $IcePHP__t_int; + global $Murmur__t_Channel; + $Murmur__t_ChannelMap = IcePHP_defineDictionary('::Murmur::ChannelMap', $IcePHP__t_int, $Murmur__t_Channel); + } +} + +namespace Murmur +{ + global $Murmur__t_ChannelList; + + if(!isset($Murmur__t_ChannelList)) + { + global $Murmur__t_Channel; + $Murmur__t_ChannelList = IcePHP_defineSequence('::Murmur::ChannelList', $Murmur__t_Channel); + } +} + +namespace Murmur +{ + global $Murmur__t_UserList; + + if(!isset($Murmur__t_UserList)) + { + global $Murmur__t_User; + $Murmur__t_UserList = IcePHP_defineSequence('::Murmur::UserList', $Murmur__t_User); + } +} + +namespace Murmur +{ + global $Murmur__t_GroupList; + + if(!isset($Murmur__t_GroupList)) + { + global $Murmur__t_Group; + $Murmur__t_GroupList = IcePHP_defineSequence('::Murmur::GroupList', $Murmur__t_Group); + } +} + +namespace Murmur +{ + global $Murmur__t_ACLList; + + if(!isset($Murmur__t_ACLList)) + { + global $Murmur__t_ACL; + $Murmur__t_ACLList = IcePHP_defineSequence('::Murmur::ACLList', $Murmur__t_ACL); + } +} + +namespace Murmur +{ + global $Murmur__t_LogList; + + if(!isset($Murmur__t_LogList)) + { + global $Murmur__t_LogEntry; + $Murmur__t_LogList = IcePHP_defineSequence('::Murmur::LogList', $Murmur__t_LogEntry); + } +} + +namespace Murmur +{ + global $Murmur__t_BanList; + + if(!isset($Murmur__t_BanList)) + { + global $Murmur__t_Ban; + $Murmur__t_BanList = IcePHP_defineSequence('::Murmur::BanList', $Murmur__t_Ban); + } +} + +namespace Murmur +{ + global $Murmur__t_IdList; + + if(!isset($Murmur__t_IdList)) + { + global $IcePHP__t_int; + $Murmur__t_IdList = IcePHP_defineSequence('::Murmur::IdList', $IcePHP__t_int); + } +} + +namespace Murmur +{ + global $Murmur__t_NameList; + + if(!isset($Murmur__t_NameList)) + { + global $IcePHP__t_string; + $Murmur__t_NameList = IcePHP_defineSequence('::Murmur::NameList', $IcePHP__t_string); + } +} + +namespace Murmur +{ + global $Murmur__t_NameMap; + + if(!isset($Murmur__t_NameMap)) + { + global $IcePHP__t_int; + global $IcePHP__t_string; + $Murmur__t_NameMap = IcePHP_defineDictionary('::Murmur::NameMap', $IcePHP__t_int, $IcePHP__t_string); + } +} + +namespace Murmur +{ + global $Murmur__t_IdMap; + + if(!isset($Murmur__t_IdMap)) + { + global $IcePHP__t_string; + global $IcePHP__t_int; + $Murmur__t_IdMap = IcePHP_defineDictionary('::Murmur::IdMap', $IcePHP__t_string, $IcePHP__t_int); + } +} + +namespace Murmur +{ + global $Murmur__t_Texture; + + if(!isset($Murmur__t_Texture)) + { + global $IcePHP__t_byte; + $Murmur__t_Texture = IcePHP_defineSequence('::Murmur::Texture', $IcePHP__t_byte); + } +} + +namespace Murmur +{ + global $Murmur__t_ConfigMap; + + if(!isset($Murmur__t_ConfigMap)) + { + global $IcePHP__t_string; + global $IcePHP__t_string; + $Murmur__t_ConfigMap = IcePHP_defineDictionary('::Murmur::ConfigMap', $IcePHP__t_string, $IcePHP__t_string); + } +} + +namespace Murmur +{ + global $Murmur__t_GroupNameList; + + if(!isset($Murmur__t_GroupNameList)) + { + global $IcePHP__t_string; + $Murmur__t_GroupNameList = IcePHP_defineSequence('::Murmur::GroupNameList', $IcePHP__t_string); + } +} + +namespace Murmur +{ + global $Murmur__t_CertificateDer; + + if(!isset($Murmur__t_CertificateDer)) + { + global $IcePHP__t_byte; + $Murmur__t_CertificateDer = IcePHP_defineSequence('::Murmur::CertificateDer', $IcePHP__t_byte); + } +} + +namespace Murmur +{ + global $Murmur__t_CertificateList; + + if(!isset($Murmur__t_CertificateList)) + { + global $Murmur__t_CertificateDer; + $Murmur__t_CertificateList = IcePHP_defineSequence('::Murmur::CertificateList', $Murmur__t_CertificateDer); + } +} + +namespace Murmur +{ + global $Murmur__t_UserInfoMap; + + if(!isset($Murmur__t_UserInfoMap)) + { + global $Murmur__t_UserInfo; + global $IcePHP__t_string; + $Murmur__t_UserInfoMap = IcePHP_defineDictionary('::Murmur::UserInfoMap', $Murmur__t_UserInfo, $IcePHP__t_string); + } +} + +namespace Murmur +{ + global $Murmur__t_Tree; + class Tree extends \Ice\Value + { + public function __construct($c=null, $children=null, $users=null) + { + $this->c = is_null($c) ? new \Murmur\Channel : $c; + $this->children = $children; + $this->users = $users; + } + + public function ice_id() + { + return '::Murmur::Tree'; + } + + public static function ice_staticId() + { + return '::Murmur::Tree'; + } + + public function __toString() + { + global $Murmur__t_Tree; + return IcePHP_stringify($this, $Murmur__t_Tree); + } + + public $c; + public $children; + public $users; + } + + global $Ice__t_Value; + global $Murmur__t_Channel; + global $Murmur__t_TreeList; + global $Murmur__t_UserList; + $Murmur__t_Tree = IcePHP_defineClass('::Murmur::Tree', '\\Murmur\\Tree', -1, false, false, $Ice__t_Value, array( + array('c', $Murmur__t_Channel, false, 0), + array('children', $Murmur__t_TreeList, false, 0), + array('users', $Murmur__t_UserList, false, 0))); +} + +namespace Murmur +{ + global $Murmur__t_MurmurException; + class MurmurException extends \Ice\UserException + { + public function __construct() + { + } + + public function ice_id() + { + return '::Murmur::MurmurException'; + } + + public function __toString() + { + global $Murmur__t_MurmurException; + return IcePHP_stringifyException($this, $Murmur__t_MurmurException); + } + } + + $Murmur__t_MurmurException = IcePHP_defineException('::Murmur::MurmurException', '\\Murmur\\MurmurException', false, null, null); +} + +namespace Murmur +{ + global $Murmur__t_InvalidSessionException; + class InvalidSessionException extends \Murmur\MurmurException + { + public function __construct() + { + parent::__construct(); + } + + public function ice_id() + { + return '::Murmur::InvalidSessionException'; + } + + public function __toString() + { + global $Murmur__t_InvalidSessionException; + return IcePHP_stringifyException($this, $Murmur__t_InvalidSessionException); + } + } + + $Murmur__t_InvalidSessionException = IcePHP_defineException('::Murmur::InvalidSessionException', '\\Murmur\\InvalidSessionException', false, $Murmur__t_MurmurException, null); +} + +namespace Murmur +{ + global $Murmur__t_InvalidChannelException; + class InvalidChannelException extends \Murmur\MurmurException + { + public function __construct() + { + parent::__construct(); + } + + public function ice_id() + { + return '::Murmur::InvalidChannelException'; + } + + public function __toString() + { + global $Murmur__t_InvalidChannelException; + return IcePHP_stringifyException($this, $Murmur__t_InvalidChannelException); + } + } + + $Murmur__t_InvalidChannelException = IcePHP_defineException('::Murmur::InvalidChannelException', '\\Murmur\\InvalidChannelException', false, $Murmur__t_MurmurException, null); +} + +namespace Murmur +{ + global $Murmur__t_InvalidServerException; + class InvalidServerException extends \Murmur\MurmurException + { + public function __construct() + { + parent::__construct(); + } + + public function ice_id() + { + return '::Murmur::InvalidServerException'; + } + + public function __toString() + { + global $Murmur__t_InvalidServerException; + return IcePHP_stringifyException($this, $Murmur__t_InvalidServerException); + } + } + + $Murmur__t_InvalidServerException = IcePHP_defineException('::Murmur::InvalidServerException', '\\Murmur\\InvalidServerException', false, $Murmur__t_MurmurException, null); +} + +namespace Murmur +{ + global $Murmur__t_ServerBootedException; + class ServerBootedException extends \Murmur\MurmurException + { + public function __construct() + { + parent::__construct(); + } + + public function ice_id() + { + return '::Murmur::ServerBootedException'; + } + + public function __toString() + { + global $Murmur__t_ServerBootedException; + return IcePHP_stringifyException($this, $Murmur__t_ServerBootedException); + } + } + + $Murmur__t_ServerBootedException = IcePHP_defineException('::Murmur::ServerBootedException', '\\Murmur\\ServerBootedException', false, $Murmur__t_MurmurException, null); +} + +namespace Murmur +{ + global $Murmur__t_ServerFailureException; + class ServerFailureException extends \Murmur\MurmurException + { + public function __construct() + { + parent::__construct(); + } + + public function ice_id() + { + return '::Murmur::ServerFailureException'; + } + + public function __toString() + { + global $Murmur__t_ServerFailureException; + return IcePHP_stringifyException($this, $Murmur__t_ServerFailureException); + } + } + + $Murmur__t_ServerFailureException = IcePHP_defineException('::Murmur::ServerFailureException', '\\Murmur\\ServerFailureException', false, $Murmur__t_MurmurException, null); +} + +namespace Murmur +{ + global $Murmur__t_InvalidUserException; + class InvalidUserException extends \Murmur\MurmurException + { + public function __construct() + { + parent::__construct(); + } + + public function ice_id() + { + return '::Murmur::InvalidUserException'; + } + + public function __toString() + { + global $Murmur__t_InvalidUserException; + return IcePHP_stringifyException($this, $Murmur__t_InvalidUserException); + } + } + + $Murmur__t_InvalidUserException = IcePHP_defineException('::Murmur::InvalidUserException', '\\Murmur\\InvalidUserException', false, $Murmur__t_MurmurException, null); +} + +namespace Murmur +{ + global $Murmur__t_InvalidTextureException; + class InvalidTextureException extends \Murmur\MurmurException + { + public function __construct() + { + parent::__construct(); + } + + public function ice_id() + { + return '::Murmur::InvalidTextureException'; + } + + public function __toString() + { + global $Murmur__t_InvalidTextureException; + return IcePHP_stringifyException($this, $Murmur__t_InvalidTextureException); + } + } + + $Murmur__t_InvalidTextureException = IcePHP_defineException('::Murmur::InvalidTextureException', '\\Murmur\\InvalidTextureException', false, $Murmur__t_MurmurException, null); +} + +namespace Murmur +{ + global $Murmur__t_InvalidCallbackException; + class InvalidCallbackException extends \Murmur\MurmurException + { + public function __construct() + { + parent::__construct(); + } + + public function ice_id() + { + return '::Murmur::InvalidCallbackException'; + } + + public function __toString() + { + global $Murmur__t_InvalidCallbackException; + return IcePHP_stringifyException($this, $Murmur__t_InvalidCallbackException); + } + } + + $Murmur__t_InvalidCallbackException = IcePHP_defineException('::Murmur::InvalidCallbackException', '\\Murmur\\InvalidCallbackException', false, $Murmur__t_MurmurException, null); +} + +namespace Murmur +{ + global $Murmur__t_InvalidSecretException; + class InvalidSecretException extends \Murmur\MurmurException + { + public function __construct() + { + parent::__construct(); + } + + public function ice_id() + { + return '::Murmur::InvalidSecretException'; + } + + public function __toString() + { + global $Murmur__t_InvalidSecretException; + return IcePHP_stringifyException($this, $Murmur__t_InvalidSecretException); + } + } + + $Murmur__t_InvalidSecretException = IcePHP_defineException('::Murmur::InvalidSecretException', '\\Murmur\\InvalidSecretException', false, $Murmur__t_MurmurException, null); +} + +namespace Murmur +{ + global $Murmur__t_NestingLimitException; + class NestingLimitException extends \Murmur\MurmurException + { + public function __construct() + { + parent::__construct(); + } + + public function ice_id() + { + return '::Murmur::NestingLimitException'; + } + + public function __toString() + { + global $Murmur__t_NestingLimitException; + return IcePHP_stringifyException($this, $Murmur__t_NestingLimitException); + } + } + + $Murmur__t_NestingLimitException = IcePHP_defineException('::Murmur::NestingLimitException', '\\Murmur\\NestingLimitException', false, $Murmur__t_MurmurException, null); +} + +namespace Murmur +{ + global $Murmur__t_WriteOnlyException; + class WriteOnlyException extends \Murmur\MurmurException + { + public function __construct() + { + parent::__construct(); + } + + public function ice_id() + { + return '::Murmur::WriteOnlyException'; + } + + public function __toString() + { + global $Murmur__t_WriteOnlyException; + return IcePHP_stringifyException($this, $Murmur__t_WriteOnlyException); + } + } + + $Murmur__t_WriteOnlyException = IcePHP_defineException('::Murmur::WriteOnlyException', '\\Murmur\\WriteOnlyException', false, $Murmur__t_MurmurException, null); +} + +namespace Murmur +{ + global $Murmur__t_InvalidInputDataException; + class InvalidInputDataException extends \Murmur\MurmurException + { + public function __construct() + { + parent::__construct(); + } + + public function ice_id() + { + return '::Murmur::InvalidInputDataException'; + } + + public function __toString() + { + global $Murmur__t_InvalidInputDataException; + return IcePHP_stringifyException($this, $Murmur__t_InvalidInputDataException); + } + } + + $Murmur__t_InvalidInputDataException = IcePHP_defineException('::Murmur::InvalidInputDataException', '\\Murmur\\InvalidInputDataException', false, $Murmur__t_MurmurException, null); +} + +namespace Murmur +{ + global $Murmur__t_ServerCallback; + global $Murmur__t_ServerCallbackPrx; + + class ServerCallbackPrxHelper + { + public static function checkedCast($proxy, $facetOrContext=null, $context=null) + { + return $proxy->ice_checkedCast('::Murmur::ServerCallback', $facetOrContext, $context); + } + + public static function uncheckedCast($proxy, $facet=null) + { + return $proxy->ice_uncheckedCast('::Murmur::ServerCallback', $facet); + } + + public static function ice_staticId() + { + return '::Murmur::ServerCallback'; + } + } + $Murmur__t_ServerCallback = IcePHP_defineClass('::Murmur::ServerCallback', '\\Murmur\\ServerCallback', -1, false, true, null, null); + + global $Ice__t_ObjectPrx; + $Murmur__t_ServerCallbackPrx = IcePHP_defineProxy('::Murmur::ServerCallback', $Ice__t_ObjectPrx, null); + + global $Murmur__t_User; + global $Murmur__t_TextMessage; + global $Murmur__t_Channel; + IcePHP_defineOperation($Murmur__t_ServerCallbackPrx, 'userConnected', 2, 2, 0, array(array($Murmur__t_User)), null, null, null); + IcePHP_defineOperation($Murmur__t_ServerCallbackPrx, 'userDisconnected', 2, 2, 0, array(array($Murmur__t_User)), null, null, null); + IcePHP_defineOperation($Murmur__t_ServerCallbackPrx, 'userStateChanged', 2, 2, 0, array(array($Murmur__t_User)), null, null, null); + IcePHP_defineOperation($Murmur__t_ServerCallbackPrx, 'userTextMessage', 2, 2, 0, array(array($Murmur__t_User), array($Murmur__t_TextMessage)), null, null, null); + IcePHP_defineOperation($Murmur__t_ServerCallbackPrx, 'channelCreated', 2, 2, 0, array(array($Murmur__t_Channel)), null, null, null); + IcePHP_defineOperation($Murmur__t_ServerCallbackPrx, 'channelRemoved', 2, 2, 0, array(array($Murmur__t_Channel)), null, null, null); + IcePHP_defineOperation($Murmur__t_ServerCallbackPrx, 'channelStateChanged', 2, 2, 0, array(array($Murmur__t_Channel)), null, null, null); +} + +namespace Murmur +{ + if(!defined('\\Murmur\\ContextServer')) + { + define(__NAMESPACE__ . '\\ContextServer', 1); + } +} + +namespace Murmur +{ + if(!defined('\\Murmur\\ContextChannel')) + { + define(__NAMESPACE__ . '\\ContextChannel', 2); + } +} + +namespace Murmur +{ + if(!defined('\\Murmur\\ContextUser')) + { + define(__NAMESPACE__ . '\\ContextUser', 4); + } +} + +namespace Murmur +{ + global $Murmur__t_ServerContextCallback; + global $Murmur__t_ServerContextCallbackPrx; + + class ServerContextCallbackPrxHelper + { + public static function checkedCast($proxy, $facetOrContext=null, $context=null) + { + return $proxy->ice_checkedCast('::Murmur::ServerContextCallback', $facetOrContext, $context); + } + + public static function uncheckedCast($proxy, $facet=null) + { + return $proxy->ice_uncheckedCast('::Murmur::ServerContextCallback', $facet); + } + + public static function ice_staticId() + { + return '::Murmur::ServerContextCallback'; + } + } + $Murmur__t_ServerContextCallback = IcePHP_defineClass('::Murmur::ServerContextCallback', '\\Murmur\\ServerContextCallback', -1, false, true, null, null); + + global $Ice__t_ObjectPrx; + $Murmur__t_ServerContextCallbackPrx = IcePHP_defineProxy('::Murmur::ServerContextCallback', $Ice__t_ObjectPrx, null); + + global $IcePHP__t_string; + global $Murmur__t_User; + global $IcePHP__t_int; + IcePHP_defineOperation($Murmur__t_ServerContextCallbackPrx, 'contextAction', 2, 2, 0, array(array($IcePHP__t_string), array($Murmur__t_User), array($IcePHP__t_int), array($IcePHP__t_int)), null, null, null); +} + +namespace Murmur +{ + global $Murmur__t_ServerAuthenticator; + global $Murmur__t_ServerAuthenticatorPrx; + + class ServerAuthenticatorPrxHelper + { + public static function checkedCast($proxy, $facetOrContext=null, $context=null) + { + return $proxy->ice_checkedCast('::Murmur::ServerAuthenticator', $facetOrContext, $context); + } + + public static function uncheckedCast($proxy, $facet=null) + { + return $proxy->ice_uncheckedCast('::Murmur::ServerAuthenticator', $facet); + } + + public static function ice_staticId() + { + return '::Murmur::ServerAuthenticator'; + } + } + $Murmur__t_ServerAuthenticator = IcePHP_defineClass('::Murmur::ServerAuthenticator', '\\Murmur\\ServerAuthenticator', -1, false, true, null, null); + + global $Ice__t_ObjectPrx; + $Murmur__t_ServerAuthenticatorPrx = IcePHP_defineProxy('::Murmur::ServerAuthenticator', $Ice__t_ObjectPrx, null); + + global $IcePHP__t_string; + global $Murmur__t_CertificateList; + global $IcePHP__t_bool; + global $Murmur__t_GroupNameList; + global $IcePHP__t_int; + global $Murmur__t_UserInfoMap; + global $Murmur__t_Texture; + IcePHP_defineOperation($Murmur__t_ServerAuthenticatorPrx, 'authenticate', 2, 2, 0, array(array($IcePHP__t_string), array($IcePHP__t_string), array($Murmur__t_CertificateList), array($IcePHP__t_string), array($IcePHP__t_bool)), array(array($IcePHP__t_string), array($Murmur__t_GroupNameList)), array($IcePHP__t_int), null); + IcePHP_defineOperation($Murmur__t_ServerAuthenticatorPrx, 'getInfo', 2, 2, 0, array(array($IcePHP__t_int)), array(array($Murmur__t_UserInfoMap)), array($IcePHP__t_bool), null); + IcePHP_defineOperation($Murmur__t_ServerAuthenticatorPrx, 'nameToId', 2, 2, 0, array(array($IcePHP__t_string)), null, array($IcePHP__t_int), null); + IcePHP_defineOperation($Murmur__t_ServerAuthenticatorPrx, 'idToName', 2, 2, 0, array(array($IcePHP__t_int)), null, array($IcePHP__t_string), null); + IcePHP_defineOperation($Murmur__t_ServerAuthenticatorPrx, 'idToTexture', 2, 2, 0, array(array($IcePHP__t_int)), null, array($Murmur__t_Texture), null); +} + +namespace Murmur +{ + global $Murmur__t_ServerUpdatingAuthenticator; + global $Murmur__t_ServerUpdatingAuthenticatorPrx; + + class ServerUpdatingAuthenticatorPrxHelper + { + public static function checkedCast($proxy, $facetOrContext=null, $context=null) + { + return $proxy->ice_checkedCast('::Murmur::ServerUpdatingAuthenticator', $facetOrContext, $context); + } + + public static function uncheckedCast($proxy, $facet=null) + { + return $proxy->ice_uncheckedCast('::Murmur::ServerUpdatingAuthenticator', $facet); + } + + public static function ice_staticId() + { + return '::Murmur::ServerUpdatingAuthenticator'; + } + } + $Murmur__t_ServerUpdatingAuthenticator = IcePHP_defineClass('::Murmur::ServerUpdatingAuthenticator', '\\Murmur\\ServerUpdatingAuthenticator', -1, false, true, null, null); + + global $Ice__t_ObjectPrx; + $Murmur__t_ServerUpdatingAuthenticatorPrx = IcePHP_defineProxy('::Murmur::ServerUpdatingAuthenticator', $Ice__t_ObjectPrx, array($Murmur__t_ServerAuthenticatorPrx)); + + global $Murmur__t_UserInfoMap; + global $IcePHP__t_int; + global $IcePHP__t_string; + global $Murmur__t_NameMap; + global $Murmur__t_Texture; + IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticatorPrx, 'registerUser', 0, 0, 0, array(array($Murmur__t_UserInfoMap)), null, array($IcePHP__t_int), null); + IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticatorPrx, 'unregisterUser', 0, 0, 0, array(array($IcePHP__t_int)), null, array($IcePHP__t_int), null); + IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticatorPrx, 'getRegisteredUsers', 2, 2, 0, array(array($IcePHP__t_string)), null, array($Murmur__t_NameMap), null); + IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticatorPrx, 'setInfo', 2, 2, 0, array(array($IcePHP__t_int), array($Murmur__t_UserInfoMap)), null, array($IcePHP__t_int), null); + IcePHP_defineOperation($Murmur__t_ServerUpdatingAuthenticatorPrx, 'setTexture', 2, 2, 0, array(array($IcePHP__t_int), array($Murmur__t_Texture)), null, array($IcePHP__t_int), null); +} + +namespace Murmur +{ + global $Murmur__t_Server; + global $Murmur__t_ServerPrx; + + class ServerPrxHelper + { + public static function checkedCast($proxy, $facetOrContext=null, $context=null) + { + return $proxy->ice_checkedCast('::Murmur::Server', $facetOrContext, $context); + } + + public static function uncheckedCast($proxy, $facet=null) + { + return $proxy->ice_uncheckedCast('::Murmur::Server', $facet); + } + + public static function ice_staticId() + { + return '::Murmur::Server'; + } + } + $Murmur__t_Server = IcePHP_defineClass('::Murmur::Server', '\\Murmur\\Server', -1, false, true, null, null); + + global $Ice__t_ObjectPrx; + $Murmur__t_ServerPrx = IcePHP_defineProxy('::Murmur::Server', $Ice__t_ObjectPrx, null); + + global $IcePHP__t_bool; + global $IcePHP__t_int; + global $Murmur__t_ServerCallbackPrx; + global $Murmur__t_ServerAuthenticatorPrx; + global $IcePHP__t_string; + global $Murmur__t_ConfigMap; + global $Murmur__t_LogList; + global $Murmur__t_UserMap; + global $Murmur__t_ChannelMap; + global $Murmur__t_CertificateList; + global $Murmur__t_Tree; + global $Murmur__t_BanList; + global $Murmur__t_User; + global $Murmur__t_ServerContextCallbackPrx; + global $Murmur__t_Channel; + global $Murmur__t_ACLList; + global $Murmur__t_GroupList; + global $Murmur__t_IdList; + global $Murmur__t_NameMap; + global $Murmur__t_NameList; + global $Murmur__t_IdMap; + global $Murmur__t_UserInfoMap; + global $Murmur__t_Texture; + IcePHP_defineOperation($Murmur__t_ServerPrx, 'isRunning', 2, 2, 0, null, null, array($IcePHP__t_bool), array($Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'start', 0, 0, 0, null, null, null, array($Murmur__t_ServerBootedException, $Murmur__t_ServerFailureException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'stop', 0, 0, 0, null, null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'delete', 0, 0, 0, null, null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'id', 2, 2, 0, null, null, array($IcePHP__t_int), array($Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'addCallback', 0, 0, 0, array(array($Murmur__t_ServerCallbackPrx)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'removeCallback', 0, 0, 0, array(array($Murmur__t_ServerCallbackPrx)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'setAuthenticator', 0, 0, 0, array(array($Murmur__t_ServerAuthenticatorPrx)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'getConf', 2, 2, 0, array(array($IcePHP__t_string)), null, array($IcePHP__t_string), array($Murmur__t_InvalidSecretException, $Murmur__t_WriteOnlyException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'getAllConf', 2, 2, 0, null, null, array($Murmur__t_ConfigMap), array($Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'setConf', 2, 2, 0, array(array($IcePHP__t_string), array($IcePHP__t_string)), null, null, array($Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'setSuperuserPassword', 2, 2, 0, array(array($IcePHP__t_string)), null, null, array($Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'getLog', 2, 2, 0, array(array($IcePHP__t_int), array($IcePHP__t_int)), null, array($Murmur__t_LogList), array($Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'getLogLen', 2, 2, 0, null, null, array($IcePHP__t_int), array($Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'getUsers', 2, 2, 0, null, null, array($Murmur__t_UserMap), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'getChannels', 2, 2, 0, null, null, array($Murmur__t_ChannelMap), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'getCertificateList', 2, 2, 0, array(array($IcePHP__t_int)), null, array($Murmur__t_CertificateList), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'getTree', 2, 2, 0, null, null, array($Murmur__t_Tree), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'getBans', 2, 2, 0, null, null, array($Murmur__t_BanList), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'setBans', 2, 2, 0, array(array($Murmur__t_BanList)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'kickUser', 0, 0, 0, array(array($IcePHP__t_int), array($IcePHP__t_string)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'getState', 2, 2, 0, array(array($IcePHP__t_int)), null, array($Murmur__t_User), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'setState', 2, 2, 0, array(array($Murmur__t_User)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'sendMessage', 0, 0, 0, array(array($IcePHP__t_int), array($IcePHP__t_string)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'hasPermission', 0, 0, 0, array(array($IcePHP__t_int), array($IcePHP__t_int), array($IcePHP__t_int)), null, array($IcePHP__t_bool), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'effectivePermissions', 2, 2, 0, array(array($IcePHP__t_int), array($IcePHP__t_int)), null, array($IcePHP__t_int), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'addContextCallback', 0, 0, 0, array(array($IcePHP__t_int), array($IcePHP__t_string), array($IcePHP__t_string), array($Murmur__t_ServerContextCallbackPrx), array($IcePHP__t_int)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'removeContextCallback', 0, 0, 0, array(array($Murmur__t_ServerContextCallbackPrx)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'getChannelState', 2, 2, 0, array(array($IcePHP__t_int)), null, array($Murmur__t_Channel), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'setChannelState', 2, 2, 0, array(array($Murmur__t_Channel)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException, $Murmur__t_NestingLimitException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'removeChannel', 0, 0, 0, array(array($IcePHP__t_int)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'addChannel', 0, 0, 0, array(array($IcePHP__t_string), array($IcePHP__t_int)), null, array($IcePHP__t_int), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException, $Murmur__t_NestingLimitException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'sendMessageChannel', 0, 0, 0, array(array($IcePHP__t_int), array($IcePHP__t_bool), array($IcePHP__t_string)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'getACL', 2, 2, 0, array(array($IcePHP__t_int)), array(array($Murmur__t_ACLList), array($Murmur__t_GroupList), array($IcePHP__t_bool)), null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'setACL', 2, 2, 0, array(array($IcePHP__t_int), array($Murmur__t_ACLList), array($Murmur__t_GroupList), array($IcePHP__t_bool)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'addUserToGroup', 2, 2, 0, array(array($IcePHP__t_int), array($IcePHP__t_int), array($IcePHP__t_string)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'removeUserFromGroup', 2, 2, 0, array(array($IcePHP__t_int), array($IcePHP__t_int), array($IcePHP__t_string)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidChannelException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'redirectWhisperGroup', 2, 2, 0, array(array($IcePHP__t_int), array($IcePHP__t_string), array($IcePHP__t_string)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSessionException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'getUserNames', 2, 2, 0, array(array($Murmur__t_IdList)), null, array($Murmur__t_NameMap), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'getUserIds', 2, 2, 0, array(array($Murmur__t_NameList)), null, array($Murmur__t_IdMap), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'registerUser', 0, 0, 0, array(array($Murmur__t_UserInfoMap)), null, array($IcePHP__t_int), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'unregisterUser', 0, 0, 0, array(array($IcePHP__t_int)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'updateRegistration', 2, 2, 0, array(array($IcePHP__t_int), array($Murmur__t_UserInfoMap)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'getRegistration', 2, 2, 0, array(array($IcePHP__t_int)), null, array($Murmur__t_UserInfoMap), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'getRegisteredUsers', 2, 2, 0, array(array($IcePHP__t_string)), null, array($Murmur__t_NameMap), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'verifyPassword', 2, 2, 0, array(array($IcePHP__t_string), array($IcePHP__t_string)), null, array($IcePHP__t_int), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'getTexture', 2, 2, 0, array(array($IcePHP__t_int)), null, array($Murmur__t_Texture), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'setTexture', 2, 2, 0, array(array($IcePHP__t_int), array($Murmur__t_Texture)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidUserException, $Murmur__t_InvalidTextureException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'getUptime', 2, 2, 0, null, null, array($IcePHP__t_int), array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_ServerPrx, 'updateCertificate', 2, 2, 0, array(array($IcePHP__t_string), array($IcePHP__t_string), array($IcePHP__t_string)), null, null, array($Murmur__t_ServerBootedException, $Murmur__t_InvalidSecretException, $Murmur__t_InvalidInputDataException)); +} + +namespace Murmur +{ + global $Murmur__t_MetaCallback; + global $Murmur__t_MetaCallbackPrx; + + class MetaCallbackPrxHelper + { + public static function checkedCast($proxy, $facetOrContext=null, $context=null) + { + return $proxy->ice_checkedCast('::Murmur::MetaCallback', $facetOrContext, $context); + } + + public static function uncheckedCast($proxy, $facet=null) + { + return $proxy->ice_uncheckedCast('::Murmur::MetaCallback', $facet); + } + + public static function ice_staticId() + { + return '::Murmur::MetaCallback'; + } + } + $Murmur__t_MetaCallback = IcePHP_defineClass('::Murmur::MetaCallback', '\\Murmur\\MetaCallback', -1, false, true, null, null); + + global $Ice__t_ObjectPrx; + $Murmur__t_MetaCallbackPrx = IcePHP_defineProxy('::Murmur::MetaCallback', $Ice__t_ObjectPrx, null); + + global $Murmur__t_ServerPrx; + IcePHP_defineOperation($Murmur__t_MetaCallbackPrx, 'started', 0, 0, 0, array(array($Murmur__t_ServerPrx)), null, null, null); + IcePHP_defineOperation($Murmur__t_MetaCallbackPrx, 'stopped', 0, 0, 0, array(array($Murmur__t_ServerPrx)), null, null, null); +} + +namespace Murmur +{ + global $Murmur__t_ServerList; + + if(!isset($Murmur__t_ServerList)) + { + global $Murmur__t_ServerPrx; + $Murmur__t_ServerList = IcePHP_defineSequence('::Murmur::ServerList', $Murmur__t_ServerPrx); + } +} + +namespace Murmur +{ + global $Murmur__t_Meta; + global $Murmur__t_MetaPrx; + + class MetaPrxHelper + { + public static function checkedCast($proxy, $facetOrContext=null, $context=null) + { + return $proxy->ice_checkedCast('::Murmur::Meta', $facetOrContext, $context); + } + + public static function uncheckedCast($proxy, $facet=null) + { + return $proxy->ice_uncheckedCast('::Murmur::Meta', $facet); + } + + public static function ice_staticId() + { + return '::Murmur::Meta'; + } + } + $Murmur__t_Meta = IcePHP_defineClass('::Murmur::Meta', '\\Murmur\\Meta', -1, false, true, null, null); + + global $Ice__t_ObjectPrx; + $Murmur__t_MetaPrx = IcePHP_defineProxy('::Murmur::Meta', $Ice__t_ObjectPrx, null); + + global $IcePHP__t_int; + global $Murmur__t_ServerPrx; + global $Murmur__t_ServerList; + global $Murmur__t_ConfigMap; + global $IcePHP__t_string; + global $Murmur__t_MetaCallbackPrx; + global $Ice__t_SliceChecksumDict; + IcePHP_defineOperation($Murmur__t_MetaPrx, 'getServer', 2, 2, 0, array(array($IcePHP__t_int)), null, array($Murmur__t_ServerPrx), array($Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_MetaPrx, 'newServer', 0, 0, 0, null, null, array($Murmur__t_ServerPrx), array($Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_MetaPrx, 'getBootedServers', 2, 2, 0, null, null, array($Murmur__t_ServerList), array($Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_MetaPrx, 'getAllServers', 2, 2, 0, null, null, array($Murmur__t_ServerList), array($Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_MetaPrx, 'getDefaultConf', 2, 2, 0, null, null, array($Murmur__t_ConfigMap), array($Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_MetaPrx, 'getVersion', 2, 2, 0, null, array(array($IcePHP__t_int), array($IcePHP__t_int), array($IcePHP__t_int), array($IcePHP__t_string)), null, null); + IcePHP_defineOperation($Murmur__t_MetaPrx, 'addCallback', 0, 0, 0, array(array($Murmur__t_MetaCallbackPrx)), null, null, array($Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_MetaPrx, 'removeCallback', 0, 0, 0, array(array($Murmur__t_MetaCallbackPrx)), null, null, array($Murmur__t_InvalidCallbackException, $Murmur__t_InvalidSecretException)); + IcePHP_defineOperation($Murmur__t_MetaPrx, 'getUptime', 2, 2, 0, null, null, array($IcePHP__t_int), null); + IcePHP_defineOperation($Murmur__t_MetaPrx, 'getSlice', 2, 2, 0, null, null, array($IcePHP__t_string), null); + IcePHP_defineOperation($Murmur__t_MetaPrx, 'getSliceChecksums', 2, 2, 0, null, null, array($Ice__t_SliceChecksumDict), null); +} +?> diff --git a/classes/ServerInterface.php b/classes/ServerInterface.php index 89d0fec..2e30815 100644 --- a/classes/ServerInterface.php +++ b/classes/ServerInterface.php @@ -5,25 +5,37 @@ require_once(MUMPHPI_MAINDIR.'/classes/HelperFunctions.php'); require_once(MUMPHPI_MAINDIR.'/classes/MessageManager.php'); -if (extension_loaded('ice') && function_exists('Ice_intVersion') && Ice_intVersion() >= 30400) { - $ICE_INCLUSION_FILENAME = 'Ice.php'; - // Ice.php is a hard dependency. Whatever includes this file will require Ice to work. - if (!stream_resolve_include_path($ICE_INCLUSION_FILENAME)) { - MessageManager::addError(TranslationManager::getText('error_iceInclusionFileNotFound')); - MessageManager::echoAll(); - exit(); - } +if(!extension_loaded('ice')) +{ + error_log('FATAL: IcePHP extension is not loaded. Revise your IcePHP installation.'); + exit(1); +} +if (!function_exists('Ice\intVersion')) { + error_log('FATAL: The required Ice function intVersion() was not found. Revise your IcePHP installation.'); + exit(1); +} +if (Ice\intVersion() < 30400) { + error_log('FATAL: The loaded Ice extension version is unsupported. It must be higher or equal 3.4.'); + exit(1); +} - if (!stream_resolve_include_path(SettingsManager::getInstance()->getIceGeneratedMurmurPHPFileName())) { - MessageManager::addError(TranslationManager::getText('error_iceMurmurPHPFileNotFound') . ' Current setting: ' . SettingsManager::getInstance()->getIceGeneratedMurmurPHPFileName()); - MessageManager::echoAll(); - exit(); - } +$ICE_INCLUSION_FILENAME = 'Ice.php'; +// Ice.php is a hard dependency. Whatever includes this file will require Ice to work. +if (!stream_resolve_include_path($ICE_INCLUSION_FILENAME)) { + MessageManager::addError(TranslationManager::getText('error_iceInclusionFileNotFound')); + MessageManager::echoAll(); + exit(); +} - require_once $ICE_INCLUSION_FILENAME; - require_once SettingsManager::getInstance()->getIceGeneratedMurmurPHPFileName(); +if (!stream_resolve_include_path(SettingsManager::getInstance()->getIceGeneratedMurmurPHPFileName())) { + MessageManager::addError(TranslationManager::getText('error_iceMurmurPHPFileNotFound') . ' Current setting: ' . SettingsManager::getInstance()->getIceGeneratedMurmurPHPFileName()); + MessageManager::echoAll(); + exit(); } +require_once $ICE_INCLUSION_FILENAME; +require_once SettingsManager::getInstance()->getIceGeneratedMurmurPHPFileName(); + /** * Provides murmur server functionality */ @@ -62,65 +74,24 @@ function __construct() } else { $this->contextVars = SettingsManager::getInstance()->getDbInterface_iceSecrets(); - if (!function_exists('Ice_intVersion') || Ice_intVersion() < 30400) { - $this->initIce33(); - } else { - $this->initIce34(); - } - + $this->initIce(); $this->connect(); } } - private function initIce33() + private function initIce() { - // ice 3.3 - - //TODO it would be good to be able to add a check if slice file is loaded - //if (empty(ini_get('ice.slice'))) { - //MessageManager::addError(tr('error_noIceSliceLoaded')); - - global $ICE; - Ice_loadProfile(); - try - { - $conn = $ICE->stringToProxy(SettingsManager::getInstance()->getDbInterface_address()); - $this->meta = $conn->ice_checkedCast("::Murmur::Meta"); - // use IceSecret if set - if (!empty($this->contextVars)) { - $this->meta = $this->meta->ice_context($this->contextVars); - } - $this->meta = $this->meta->ice_timeout(10000); - } - catch (Ice_ProxyParseException $e) - { - MessageManager::addError(tr('error_invalidIceInterface_address')); - } - } - - private function initIce34() - { - // ice 3.4 - $initData = new Ice_InitializationData; - $initData->properties = Ice_createProperties(); + $initData = new Ice\InitializationData; + $initData->properties = Ice\createProperties(); $initData->properties->setProperty('Ice.ImplicitContext', 'Shared'); $initData->properties->setProperty('Ice.Default.EncodingVersion', '1.0'); - $ICE = Ice_initialize($initData); - /* - * getImplicitContext() is not implemented for icePHP yet… - * $ICE->getImplicitContext(); - * foreach ($this->contextVars as $key=>$value) { - * $ICE->getImplicitContext()->put($key, $value); - * } - * which should result in - * $ICE->getImplicitContext()->put('secret', 'ts'); - * $ICE->getImplicitContext()->put('icesecret', 'ts'); - */ + $ICE = Ice\initialize($initData); + try { - $this->meta = Murmur_MetaPrxHelper::checkedCast($ICE->stringToProxy(SettingsManager::getInstance()->getDbInterface_address())); + $this->meta = Murmur\MetaPrxHelper::checkedCast($ICE->stringToProxy(SettingsManager::getInstance()->getDbInterface_address())); $this->meta = $this->meta->ice_context($this->contextVars); //TODO: catch ProxyParseException, EndpointParseException, IdentityParseException from stringToProxy() - } catch (Ice_ConnectionRefusedException $exc) { + } catch (Ice\ConnectionRefusedException $exc) { MessageManager::addError(tr('error_iceConnectionRefused')); } } @@ -130,7 +101,7 @@ private function connect() // to check the connection get the version (e.g. was a needed (context-)password not provided?) try { $this->version = $this->getVersion(); - } catch (Ice_UnknownUserException $exc) { + } catch (Ice\UnknownUserException $exc) { switch ($exc->unknown) { case 'Murmur::InvalidSecretException': //TODO i18n @@ -143,7 +114,7 @@ private function connect() MessageManager::addError('Unknown exception was thrown. Please report to the developer. Class: ' . get_class($exc) . isset($exc->unknown)?' ->unknown: '.$exc->unknown:'' . ' Stacktrage:' . $exc->getTraceAsString() . ''); break; } - } catch (Ice_LocalException $exc) { + } catch (Ice\LocalException $exc) { //TODO i18n MessageManager::addError('Unknown exception was thrown. Please report to the developer. Class: ' . get_class($exc) . ' Stacktrage:
' . $exc->getTraceAsString() . ''); } @@ -456,13 +427,13 @@ function addUser($srvid, $name, $password, $email=null) $tmpUid = $tmpServer->registerUser($reg->toArray()); echo TranslationManager::getInstance()->getText('doregister_success').'
'; var_dump($exc); echo ''; } @@ -518,7 +489,7 @@ function updateUserTexture($srvid, $uid, $newTexture) } $this->getServer($srvid)->setTexture($uid, $newTexture); return true; - } catch(Murmur_InvalidTextureException $exc) { + } catch(Murmur\InvalidTextureException $exc) { MessageManager::addError(tr('error_invalidTexture')); return false; } @@ -568,7 +539,7 @@ function ban($serverId, $ip, $bits=32) $srv = $this->getServer(intval($serverId)); $bans = $srv->getBans(); - $ban = new Murmur_Ban(); + $ban = new Murmur\Ban(); $ban->address = $ip; $ban->bits = $bits; $bans[] = $ban; diff --git a/classes/SettingsManager.php b/classes/SettingsManager.php index 65dcb38..c9bf2b3 100644 --- a/classes/SettingsManager.php +++ b/classes/SettingsManager.php @@ -50,7 +50,7 @@ function __construct() $this->dbInterface_type = $dbInterface_type; $this->dbInterface_address = $dbInterface_address; $this->dbInterface_icesecrets = $dbInterface_icesecrets; - $this->iceGeneratedMurmurPHPFileName = isset($iceGeneratedMurmurPHPFileName)?$iceGeneratedMurmurPHPFileName:'Murmur_1.2.2.php'; + $this->iceGeneratedMurmurPHPFileName = isset($iceGeneratedMurmurPHPFileName)?$iceGeneratedMurmurPHPFileName:'Murmur_1.3.0_ice37.php'; $this->theme = $theme; $this->defaultLanguage = $defaultLanguage; $this->useCaptcha = $useCaptcha; diff --git a/libs/Murmur11x.ice b/libs/Murmur11x.ice deleted file mode 100644 index 526e97e..0000000 --- a/libs/Murmur11x.ice +++ /dev/null @@ -1,701 +0,0 @@ -/** - * - * Information and control of the murmur server. Each server has - * one [Meta] interface that controls global information, and - * each virtual server has a [Server] interface. - * - **/ - -module Murmur -{ - /** A connected player. - **/ - struct Player { - /** Session ID. This identifies the connection to the server. */ - int session; - /** Player ID. Matches [RegisteredPlayer::playerid] or -1 if the player is anonymous. */ - int playerid; - /** Is player muted by the server? */ - bool mute; - /** Is player deafened by the server? If true, this implies mute. */ - bool deaf; - /** Is the player suppressed by the server? This means the user is not muted, but does not have speech privileges in the current channel. */ - bool suppressed; - /** Is the player self-muted? */ - bool selfMute; - /** Is the player self-deafened? If true, this implies mute. */ - bool selfDeaf; - /** Channel ID the player is in. Matches [Channel::id]. */ - int channel; - /** The name of the player. */ - string name; - /** Seconds player has been online. */ - int onlinesecs; - /** Average transmission rate in bytes per second over the last few seconds. */ - int bytespersec; - }; - - sequence