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').'
'; - } catch(Murmur_InvalidServerException $exc) { // This is depreciated (murmur.ice) + } catch(Murmur\InvalidServerException $exc) { // This is depreciated (murmur.ice) echo 'Invalid server. Please check your server selection.
go back
If the problem persists, please contact a server admin or webmaster.
'; - } catch(Murmur_ServerBootedException $exc) { + } catch(Murmur\ServerBootedException $exc) { echo 'Server is currently not running, but it has to to be able to register.
Please contact a server admin'; - } catch(Murmur_InvalidUserException $exc) { + } catch(Murmur\InvalidUserException $exc) { echo 'The username you specified is probably already in use or invalid. Please try another one.
go back'; - } catch(Ice_UnknownUserException $exc) { // This should not happen + } catch(Ice\UnknownUserException $exc) { // This should not happen echo $exc->unknown.'
'; // echo '
'; 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 IntList; - - /** A channel. - **/ - struct Channel { - /** Channel ID. This is unique per channel, and the root channel is always id 0. */ - int id; - /** Name of the channel. There can not be two channels with the same parent that has the same name. */ - string name; - /** ID of parent channel, or -1 if this is the root channel. */ - int parent; - /** List of id of linked channels. */ - IntList links; - }; - - /** A group. Groups are defined per channel, and can inherit members from parent channels. - **/ - struct Group { - /** Group name */ - string name; - /** Is this group inherited from a parent channel? Read-only. */ - bool inherited; - /** Does this group inherit members from parent channels? */ - bool inherit; - /** Can subchannels inherit members from this group? */ - bool inheritable; - /** List of players to add to the group. */ - IntList add; - /** List of inherited players to remove from the group. */ - IntList remove; - /** Current members of the group, including inherited members. Read-only. */ - IntList members; - }; - - /** Write access to channel control. Implies all other permissions (except Speak). */ - const int PermissionWrite = 0x01; - /** Traverse channel. Without this, a client cannot reach subchannels, no matter which privileges he has there. */ - const int PermissionTraverse = 0x02; - /** Enter channel. */ - const int PermissionEnter = 0x04; - /** Speak in channel. */ - const int PermissionSpeak = 0x08; - /** Alt-speak in channel. This is different from Speak, so you can set up different permissions. */ - const int PermissionAltSpeak = 0x100; - /** Mute and deafen other players in this channel. */ - const int PermissionMuteDeafen = 0x10; - /** Move and Kick players from channel. You need this permission in both the source and destination channel to move another player. - * If you have this privilege on the root channel, you can ban players. - */ - const int PermissionMoveKick = 0x20; - /** Make new channel as a subchannel of this channel. */ - const int PermissionMakeChannel = 0x40; - /** Link this channel. You need this permission in both the source and destination channel to link channels, or in either channel to unlink them. */ - const int PermissionLinkChannel = 0x80; - - /** Access Control List for a channel. ACLs are defined per channel, and can be inherited from parent channels. - **/ - struct ACL { - /** Does the ACL apply to this channel? */ - bool applyHere; - /** Does the ACL apply to subchannels? */ - bool applySubs; - /** Is this ACL inherited from a parent channel? Read-only. */ - bool inherited; - /** ID of player this ACL applies to. -1 if using a group name. */ - int playerid; - /** Group this ACL applies to. Blank if using playerid. */ - string group; - /** Binary mask of privileges to allow. */ - int allow; - /** Binary mask of privileges to deny. */ - int deny; - }; - - /** A single ip mask for a ban. - **/ - struct Ban { - /** IPv4 address to ban, represented as a single integer. */ - int address; - /** Number of bits in ban to apply. This uses CIDR notation, so putting 24 here is the equivalent of netmask 255.255.255.0. */ - int bits; - }; - - /** A registered player. - **/ - struct RegisteredPlayer { - /** Player id. Matches the playerid in [Player::playerid]. */ - int playerid; - /** Player name. */ - string name; - /** Player email. */ - string email; - /** Player password. Write-only. */ - string pw; - }; - - /** A entry in the log. - **/ - struct LogEntry { - /** Timestamp in UNIX time_t */ - int timestamp; - /** The log message. */ - string txt; - }; - - class Tree; - sequence TreeList; - - dictionary PlayerMap; - dictionary ChannelMap; - sequence ChannelList; - sequence PlayerList; - sequence GroupList; - sequence ACLList; - sequence LogList; - sequence BanList; - sequence IdList; - sequence NameList; - dictionary NameMap; - dictionary IdMap; - sequence RegisteredPlayerList; - sequence Texture; - dictionary ConfigMap; - sequence GroupNameList; - - /** Player and subchannel state. Read-only. - **/ - class Tree { - /** Channel definition of current channel. */ - Channel c; - /** List of subchannels. */ - TreeList children; - /** Players in this channel. */ - PlayerList players; - }; - - exception MurmurException {}; - /** This is thrown when you specify an invalid session. This may happen if the player has disconnected since your last call to [Server::getPlayers]. See [Player::session] */ - exception InvalidSessionException extends MurmurException {}; - /** This is thrown when you specify an invalid channel id. This may happen if the channel was removed by another provess. It can also be thrown if you try to add an invalid channel. */ - exception InvalidChannelException extends MurmurException {}; - /** This is thrown when you try to do an operation on a server that does not exist. This may happen if someone has removed the server. */ - exception InvalidServerException extends MurmurException {}; - /** This happens if you try to fetch player or channel state on a stopped server, if you try to stop an already stopped server or start an already started server. */ - exception ServerBootedException extends MurmurException {}; - /** This is thrown if [Server::start] fails, and should generally be the cause for some concern. */ - exception ServerFailureException extends MurmurException {}; - /** This is thrown when you specify an invalid playerid. See [RegisteredPlayer::playerid]. */ - exception InvalidPlayerException extends MurmurException {}; - /** This is thrown when you try to set an invalid texture. */ - exception InvalidTextureException extends MurmurException {}; - /** This is thrown when you supply an invalid callback. */ - exception InvalidCallbackException extends MurmurException {}; - - /** Callback interface for servers. You can supply an implementation of this to receive notification - * messages from the server. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that all callbacks are done asynchronously; murmur does not wait for the callback to - * complete before continuing processing. - * Note that callbacks are removed when a server is stopped, so you should have a callback for - * [MetaCallback::started] which calls [Server::addCallback]. - * @see MetaCallback - * @see Server::addCallback - */ - interface ServerCallback { - /** Called when a player connects to the server. - * @param state State of connected player. - */ - idempotent void playerConnected(Player state); - /** Called when a player disconnects from the server. The player has already been removed, so you can no longer use methods like [Server::getState] - * to retrieve the player's state. - * @param state State of disconnected player. - */ - idempotent void playerDisconnected(Player state); - /** Called when a player state changes. This is called if the player moves, is renamed, is muted, deafened etc. - * @param state New state of player. - */ - idempotent void playerStateChanged(Player state); - /** Called when a new channel is created. - * @param state State of new channel. - */ - idempotent void channelCreated(Channel state); - /** Called when a channel is removed. The channel has already been removed, you can no longer use methods like [Server::getChannelState] - * @param state State of removed channel. - */ - idempotent void channelRemoved(Channel state); - /** Called when a new channel state changes. This is called if the channel is moved, renamed or if new links are added. - * @param state New state of channel. - */ - idempotent void channelStateChanged(Channel state); - }; - - /** Context for actions in the Server menu. */ - const int ContextServer = 0x01; - /** Context for actions in the Channel menu. */ - const int ContextChannel = 0x02; - /** Context for actions in the Player menu. */ - const int ContextPlayer = 0x04; - - /** Callback interface for context actions. You need to supply one of these for [Server::addContext]. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that all callbacks are done asynchronously; murmur does not wait for the callback to - * complete before continuing processing. - */ - interface ServerContextCallback { - /** Called when a context action is performed. - * @param action Action to be performed. - * @param user User which initiated the action. - * @param session If nonzero, session of target player. - * @param channelid If nonzero, session of target channel. - */ - idempotent void contextAction(string action, Player user, int session, int channelid); - }; - - /** Callback interface for server authentication. You need to supply one of these for [Server::setAuthenticator]. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that unlike [ServerCallback] and [ServerContextCallback], these methods are called - * synchronously. If the response lags, the entire murmur server will lag. - * Also note that, as the method calls are synchronous, calling a function from [Server] or [Meta] will - * deadlock the server. - */ - interface ServerAuthenticator { - /** Called to authenticate a player. If you do not know the playername in question, always return -2 from this - * method to fall through to normal database authentication. - * Note that if authentication succeeds, murmur will create a record of the player in it's database, reserving - * the playername and id so it cannot be used for normal database authentication. - * - * @param name Playername to authenticate. - * @param pw Password to authenticate with. - * @param newname Set this to change the playername from the supplied one. - * @param groups List of groups on the root channel that the player will be added to for the duration of the connection. - * @return PlayerID of authenticated player, -1 for authentication failures and -2 for unknown player (fallthrough). - */ - idempotent int authenticate(string name, string pw, out string newname, out GroupNameList groups); - - /** Map a name to a player id. - * @param name Playername to map. - * @return Player id or -2 for unknown name. - */ - idempotent int nameToId(string name); - - /** Map a player to a Player id. - * @param id Player id to map. - * @return Name of player or empty string for unknown id. - */ - idempotent string idToName(int id); - - /** Map a player to a custom Texture. - * @param id Player id to map. - * @return User texture or an empty texture for unknwon players or players without textures. - */ - idempotent Texture idToTexture(int id); - }; - - /** Callback interface for server authentication and registration. This allows you to support both authentication - * and account updating. - * You do not need to implement this if all you want is authentication, you only need this if other scripts - * connected to the same server calls e.g. [Server::setTexture]. - * Almost all of these methods all fall through, meaning murmur should continue the operation against its - * own database. - */ - interface ServerUpdatingAuthenticator extends ServerAuthenticator { - /** Register a new player. - * @param name Playername to register. - * @return Player id of new player, -1 for registration failure, or -2 to fall through. - */ - int registerPlayer(string name); - - /** Unregister a player. - * @param id Playerid to unregister. - * @return 1 for successfull unregistration, 0 for unsuccessfull unregistration, -1 to fall through. - */ - int unregisterPlayer(int id); - - /** Get a list of registered players matching filter. - * @param filter Substring playernames must contain. If empty, return all registered players. - * @return List of matching registered players. - */ - idempotent RegisteredPlayerList getRegisteredPlayers(string filter); - - /** Get single player registration. - * @param id Playerid of registered player. - * @param name Name of registered player. - * @param email Email address of registered player. - * @return 1 for successfull fetch, 0 for unsuccessfull fetch, -1 to fall through. - */ - idempotent int getRegistration(int id, out string name, out string email); - - /** Set password of player registration. - * @param id Playerid of registered player. - * @param pw New password. - * @return 1 for successfull update, 0 for unsuccessfull update, -1 to fall through. - */ - idempotent int setPassword(int id, string pw); - - /** Set Email address of player registration. - * @param id Playerid of registered player. - * @param pw email New Email address. - * @return 1 for successfull update, 0 for unsuccessfull update, -1 to fall through. - */ - idempotent int setEmail(int id, string email); - - /** Set playername of player registration. - * @param id Playerid of registered player. - * @param name New Playername. - * @return 1 for successfull update, 0 for unsuccessfull update, -1 to fall through. - */ - idempotent int setName(int id, string name); - - /** Set texture of player registration. - * @param id Playerid of registered player. - * @param tex New texture. - * @return 1 for successfull update, 0 for unsuccessfull update, -1 to fall through. - */ - idempotent int setTexture(int id, Texture tex); - }; - - /** Per-server interface. This includes all methods for configuring and altering - * the state of a single virtual server. You can retrieve a pointer to this interface - * from one of the methods in [Meta]. - **/ - ["amd"] interface Server { - /** Shows if the server currently running (accepting players). - * - * @return Run-state of server. - */ - idempotent bool isRunning(); - - /** Start server. */ - void start() throws ServerBootedException, ServerFailureException; - - /** Stop server. */ - void stop() throws ServerBootedException; - - /** Delete server and all it's configuration. */ - void delete() throws ServerBootedException; - - /** Fetch the server id. - * - * @return Unique server id. - */ - idempotent int id(); - - /** Add a callback. The callback will receive notifications about changes to players and channels. - * - * @param cb Callback interface which will receive notifications. - * @see removeCallback - */ - void addCallback(ServerCallback *cb) throws ServerBootedException, InvalidCallbackException; - - /** Remove a callback. - * - * @param cb Callback interface to be removed. - * @see addCallback - */ - void removeCallback(ServerCallback *cb) throws ServerBootedException, InvalidCallbackException; - - /** Set external authenticator. If set, all authentications from clients are forwarded to this - * proxy. - * - * @param auth Authenticator object to perform subsequent authentications. - */ - void setAuthenticator(ServerAuthenticator *auth) throws ServerBootedException, InvalidCallbackException; - - /** Retrieve configuration item. - * @param key Configuration key. - * @return Configuration value. If this is empty, see [Meta::getDefaultConf] - */ - idempotent string getConf(string key); - - /** Retrieve all configuration items. - * @return All configured values. If a value isn't set here, the value from [Meta::getDefaultConf] is used. - */ - idempotent ConfigMap getAllConf(); - - /** Set a configuration item. - * @param key Configuration key. - * @param value Configuration value. - */ - idempotent void setConf(string key, string value); - - /** Set superuser password. This is just a convenience for using [updateregistration] on player id 0. - * @param pw Password. - */ - idempotent void setSuperuserPassword(string pw); - - /** Fetch log entries. - * @param first Lowest numbered entry to fetch. 0 is the most recent item. - * @param last Last entry to fetch. - * @return List of log entries. - */ - idempotent LogList getLog(int first, int last); - - /** Fetch all players. This returns all currently connected players on the server. - * @return List of connected players. - * @see getState - */ - idempotent PlayerMap getPlayers() throws ServerBootedException; - - /** Fetch all channels. This returns all defined channels on the server. The root channel is always channel 0. - * @return List of defined channels. - * @see getChannelState - */ - idempotent ChannelMap getChannels() throws ServerBootedException; - - /** Fetch all channels and connected players as a tree. This retrieves an easy-to-use representation of the server - * as a tree. This is primarily used for viewing the state of the server on a webpage. - * @return Recursive tree of all channels and connected players. - */ - idempotent Tree getTree() throws ServerBootedException; - - /** Fetch all current IP bans on the server. - * @return List of bans. - */ - idempotent BanList getBans() throws ServerBootedException; - - /** Set all current IP bans on the server. This will replace any bans already present, so if you want to add a ban, be sure to call [getBans] and then - * append to the returned list before calling this method. - * @param bans List of bans. - */ - idempotent void setBans(BanList bans) throws ServerBootedException; - - /** Kick a player. The player is not banned, and is free to rejoin the server. - * @param session Connection ID of player. See [Player::session]. - * @param reason Text message to show when player is kicked. - */ - void kickPlayer(int session, string reason) throws ServerBootedException, InvalidSessionException; - - /** Get state of a single connected player. - * @param session Connection ID of player. See [Player::session]. - * @return State of connected player. - * @see setState - * @see getPlayers - */ - idempotent Player getState(int session) throws ServerBootedException, InvalidSessionException; - - /** Set player state. You can use this to move, mute and deafen players. - * @param state Player state to set. - * @see getState - */ - idempotent void setState(Player state) throws ServerBootedException, InvalidSessionException, InvalidChannelException; - - /** Send text message to a single player. - * @param session Connection ID of player. See [Player::session]. - * @param text Message to send. - * @see sendMessageChannel - */ - void sendMessage(int session, string text) throws ServerBootedException, InvalidSessionException; - - /** Check if player is permitted to perform action. - * @param session Connection ID of player. See [Player::session]. - * @param channelid ID of Channel. See [Channel::id]. - * @param perm Permission bits to check. - * @return true if any of the permissions in perm were set for the user. - */ - bool hasPermission(int session, int channelid, int perm) throws ServerBootedException, InvalidSessionException, InvalidChannelException; - - /** Add a context callback. This is done per player, and will add a context menu action for the player. - * - * @param session Session of user which should receive context entry. - * @param action Action string, a unique name to associate with the action. - * @param text Name of action shown to user. - * @param cb Callback interface which will receive notifications. - * @param ctx Context this should be used in. Needs to be one or a combination of [ContextServer], [ContextChannel] and [ContextPlayer]. - * @see removeContextCallback - */ - void addContextCallback(int session, string action, string text, ServerContextCallback *cb, int ctx) throws ServerBootedException, InvalidCallbackException; - - /** Remove a callback. - * - * @param cb Callback interface to be removed. This callback will be removed from all from all players. - * @see addContextCallback - */ - void removeContextCallback(ServerContextCallback *cb) throws ServerBootedException, InvalidCallbackException; - - /** Get state of single channel. - * @param channelid ID of Channel. See [Channel::id]. - * @return State of channel. - * @see setChannelState - * @see getChannels - */ - idempotent Channel getChannelState(int channelid) throws ServerBootedException, InvalidChannelException; - - /** Set state of a single channel. You can use this to move or relink channels. - * @param state Channel state to set. - * @see getChannelState - */ - idempotent void setChannelState(Channel state) throws ServerBootedException, InvalidChannelException; - - /** Remove a channel and all its subchannels. - * @param channelid ID of Channel. See [Channel::id]. - */ - void removeChannel(int channelid) throws ServerBootedException, InvalidChannelException; - - /** Add a new channel. - * @param name Name of new channel. - * @param parent Channel ID of parent channel. See [Channel::id]. - * @return ID of newly created channel. - */ - int addChannel(string name, int parent) throws ServerBootedException, InvalidChannelException; - - /** Send text message to channel or a tree of channels. - * @param channelid Channel ID of channel to send to. See [Channel::id]. - * @param tree If true, the message will be sent to the channel and all its subchannels. - * @param text Message to send. - * @see sendMessage - */ - void sendMessageChannel(int channelid, bool tree, string text) throws ServerBootedException, InvalidChannelException; - - /** Retrieve ACLs and Groups on a channel. - * @param channelid Channel ID of channel to fetch from. See [Channel::id]. - * @param acls List of ACLs on the channel. This will include inherited ACLs. - * @param groups List of groups on the channel. This will include inherited groups. - * @param inherit Does this channel inherit ACLs from the parent channel? - */ - idempotent void getACL(int channelid, out ACLList acls, out GroupList groups, out bool inherit) throws ServerBootedException, InvalidChannelException; - - /** Set ACLs and Groups on a channel. Note that this will replace all existing ACLs and groups on the channel. - * @param channelid Channel ID of channel to fetch from. See [Channel::id]. - * @param acls List of ACLs on the channel. - * @param groups List of groups on the channel. - * @param inherit Should this channel inherit ACLs from the parent channel? - */ - idempotent void setACL(int channelid, ACLList acls, GroupList groups, bool inherit) throws ServerBootedException, InvalidChannelException; - - /** Map a list of [Player::playerid] or [RegisteredPlayer::playerid] to a matching name. - * @param List of ids. - * @return Matching list of names, with an empty string representing invalid or unknown ids. - */ - idempotent NameMap getPlayerNames(IdList ids) throws ServerBootedException; - - /** Map a list of player names to a matching [RegisteredPlayer::playerid]. - * @param List of names. - * @reuturn List of matching ids, with -1 representing invalid or unknown player names. - */ - idempotent IdMap getPlayerIds(NameList names) throws ServerBootedException; - - /** Register a new player. - * @param name Name of player to register. - * @return The ID of the player. See [RegisteredPlayer::playerid]. - */ - int registerPlayer(string name) throws ServerBootedException, InvalidPlayerException; - - /** Remove a player registration. - * @param playerid ID of registered player. See [RegisteredPlayer::playerid]. - */ - void unregisterPlayer(int playerid) throws ServerBootedException, InvalidPlayerException; - - /** Update the registration for a player. You can use this to set the email or password of a player, - * and can also use it to change the player's name. - * @param registration Updated registration record. - */ - idempotent void updateregistration(RegisteredPlayer registration) throws ServerBootedException, InvalidPlayerException; - - /** Fetch registration for a single player. - * @param playerid ID of registered player. See [RegisteredPlayer::playerid]. - * @return Registration record. - */ - idempotent RegisteredPlayer getRegistration(int playerid) throws ServerBootedException, InvalidPlayerException; - - /** Fetch a group of registered players. - * @param filter Substring of player name. If blank, will retrieve all registered players. - * @return List of registration records. - */ - idempotent RegisteredPlayerList getRegisteredPlayers(string filter) throws ServerBootedException; - - /** Verify the password of a player. You can use this to verify a player's credentials. - * @param name Player name. See [RegisteredPlayer::name]. - * @param pw Player password. - * @return Player ID of registered player (See [RegisteredPlayer::playerid]), -1 for failed authentication or -2 for unknown usernames. - */ - idempotent int verifyPassword(string name, string pw) throws ServerBootedException; - - /** Fetch user texture. Textures are stored as zlib compress()ed 600x60 32-bit RGBA data. - * @param playerid ID of registered player. See [RegisteredPlayer::playerid]. - * @return Custom texture associated with player or an empty texture. - */ - idempotent Texture getTexture(int playerid) throws ServerBootedException, InvalidPlayerException; - - /** Set user texture. The texture is a 600x60 32-bit RGBA raw texture, optionally zlib compress()ed. - * @param playerid ID of registered player. See [RegisteredPlayer::playerid]. - * @param tex Texture to set for the player, or an empty texture to remove the existing texture. - */ - idempotent void setTexture(int playerid, Texture tex) throws ServerBootedException, InvalidPlayerException, InvalidTextureException; - }; - - /** Callback interface for Meta. You can supply an implementation of this to recieve notifications - * when servers are stopped or started. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that all callbacks are done asynchronously; murmur does not wait for the callback to - * complete before continuing processing. - * @see ServerCallback - * @see Meta::addCallback - */ - interface MetaCallback { - /** Called when a server is started. The server is up and running when this event is sent, so all methods that - * need a running server will work. - * @param srv Interface for started server. - */ - void started(Server *srv); - - /** Called when a server is stopped. The server is already stopped when this event is sent, so no methods that - * need a running server will work. - * @param srv Interface for started server. - */ - void stopped(Server *srv); - }; - - sequence ServerList; - - /** This is the meta interface. It is primarily used for retrieving the [Server] interfaces for each individual server. - **/ - ["amd"] interface Meta { - /** Fetch interface to specific server. - * @param id Server ID. See [Server::getId]. - * @return Interface for specified server, or a null proxy if id is invalid. - */ - idempotent Server *getServer(int id); - - /** Create a new server. Call [Server::getId] on the returned interface to find it's ID. - * @return Interface for new server. - */ - Server *newServer(); - - /** Fetch list of all currently running servers. - * @return List of interfaces for running servers. - */ - idempotent ServerList getBootedServers(); - - /** Fetch list of all defined servers. - * @return List of interfaces for all servers. - */ - idempotent ServerList getAllServers(); - - /** Fetch default configuraion. This returns the configuration items that were set in the configuration file, or - * the built-in default. The individual servers will use these values unless they have been overridden in the - * server specific configuration. The only special case is the port, which defaults to the value defined here + - * the servers ID - 1 (so that virtual server #1 uses the defined port, server #2 uses port+1 etc). - * @return Default configuration of the servers. - */ - idempotent ConfigMap getDefaultConf(); - - /** Fetch version of Murmur. - * @param major Major version. - * @param minor Minor version. - * @param patch Patchlevel. - * @param text Textual representation of version. Note that this may not match the [major], [minor] and [patch] levels, as it - * may be simply the compile date or the SVN revision. This is usually the text you want to present to users. - */ - idempotent void getVersion(out int major, out int minor, out int patch, out string text); - - /** Add a callback. The callback will receive notifications when servers are started or stopped. - * - * @param cb Callback interface which will receive notifications. - */ - void addCallback(MetaCallback *cb) throws InvalidCallbackException; - - /** Remove a callback. - * - * @param cb Callback interface to be removed. - */ - void removeCallback(MetaCallback *cb) throws InvalidCallbackException; - }; -}; diff --git a/libs/Murmur120_fixed.ice b/libs/Murmur120_fixed.ice deleted file mode 100644 index 329ee98..0000000 --- a/libs/Murmur120_fixed.ice +++ /dev/null @@ -1,766 +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 network address in IPv6 format. - **/ - ["python:seq:tuple"] sequence NetAddress; - - /** A connected user. - **/ - struct User { - /** Session ID. This identifies the connection to the server. */ - int session; - /** User ID. -1 if the user is anonymous. */ - int userid; - /** Is user muted by the server? */ - bool mute; - /** Is user deafened by the server? If true, this implies mute. */ - bool deaf; - /** Is the user suppressed by the server? This means the user is not muted, but does not have speech privileges in the current channel. */ - bool suppress; - /** Is the user self-muted? */ - bool selfMute; - /** Is the user self-deafened? If true, this implies mute. */ - bool selfDeaf; - /** Channel ID the user is in. Matches [Channel::id]. */ - int channel; - /** The name of the user. */ - string name; - /** Seconds user has been online. */ - int onlinesecs; - /** Average transmission rate in bytes per second over the last few seconds. */ - int bytespersec; - /** Client version. Major version in upper 16 bits, followed by 8 bits of minor version and 8 bits of patchlevel. Version 1.2.3 = 0x010203. */ - int version; - /** Client release. For official releases, this equals the version. For snapshots and git compiles, this will be something else. */ - string release; - /** Client OS. */ - string os; - /** Client OS Version. */ - string osversion; - /** Plugin Identity. This will be the user's unique ID inside the current game. */ - string identity; - /** Plugin context. This is a binary blob identifying the game and team the user is on. */ - string context; - /** User comment. Shown as tooltip for this user. */ - string comment; - /** Client address. */ - NetAddress address; - /** TCP only. True until UDP connectivity is established. */ - bool tcponly; - /** Idle time. This is how many seconds it is since the user last spoke. Other activity is not counted. */ - int idlesecs; - }; - - sequence IntList; - - /** A channel. - **/ - struct Channel { - /** Channel ID. This is unique per channel, and the root channel is always id 0. */ - int id; - /** Name of the channel. There can not be two channels with the same parent that has the same name. */ - string name; - /** ID of parent channel, or -1 if this is the root channel. */ - int parent; - /** List of id of linked channels. */ - IntList links; - /** Description of channel. Shown as tooltip for this channel. */ - string description; - /** Channel is temporary, and will be removed when the last user leaves it. */ - bool temporary; - /** Position of the channel which is used in Client for sorting. */ - int position; - }; - - /** A group. Groups are defined per channel, and can inherit members from parent channels. - **/ - struct Group { - /** Group name */ - string name; - /** Is this group inherited from a parent channel? Read-only. */ - bool inherited; - /** Does this group inherit members from parent channels? */ - bool inherit; - /** Can subchannels inherit members from this group? */ - bool inheritable; - /** List of users to add to the group. */ - IntList add; - /** List of inherited users to remove from the group. */ - IntList remove; - /** Current members of the group, including inherited members. Read-only. */ - IntList members; - }; - - /** Write access to channel control. Implies all other permissions (except Speak). */ - const int PermissionWrite = 0x01; - /** Traverse channel. Without this, a client cannot reach subchannels, no matter which privileges he has there. */ - const int PermissionTraverse = 0x02; - /** Enter channel. */ - const int PermissionEnter = 0x04; - /** Speak in channel. */ - const int PermissionSpeak = 0x08; - /** Whisper to channel. This is different from Speak, so you can set up different permissions. */ - const int PermissionWhisper = 0x100; - /** Mute and deafen other users in this channel. */ - const int PermissionMuteDeafen = 0x10; - /** Move users from channel. You need this permission in both the source and destination channel to move another user. */ - const int PermissionMove = 0x20; - /** Make new channel as a subchannel of this channel. */ - const int PermissionMakeChannel = 0x40; - /** Make new temporary channel as a subchannel of this channel. */ - const int PermissionMakeTempChannel = 0x400; - /** Link this channel. You need this permission in both the source and destination channel to link channels, or in either channel to unlink them. */ - const int PermissionLinkChannel = 0x80; - /** Send text message to channel. */ - const int PermissionTextMessage = 0x200; - /** Kick user from server. Only valid on root channel. */ - const int PermissionKick = 0x10000; - /** Ban user from server. Only valid on root channel. */ - const int PermissionBan = 0x20000; - /** Register and unregister users. Only valid on root channel. */ - const int PermissionRegister = 0x40000; - /** Register and unregister users. Only valid on root channel. */ - const int PermissionRegisterSelf = 0x80000; - - - /** Access Control List for a channel. ACLs are defined per channel, and can be inherited from parent channels. - **/ - struct ACL { - /** Does the ACL apply to this channel? */ - bool applyHere; - /** Does the ACL apply to subchannels? */ - bool applySubs; - /** Is this ACL inherited from a parent channel? Read-only. */ - bool inherited; - /** ID of user this ACL applies to. -1 if using a group name. */ - int userid; - /** Group this ACL applies to. Blank if using userid. */ - string group; - /** Binary mask of privileges to allow. */ - int allow; - /** Binary mask of privileges to deny. */ - int deny; - }; - - /** A single ip mask for a ban. - **/ - struct Ban { - /** Address to ban. */ - NetAddress address; - /** Number of bits in ban to apply. */ - int bits; - /** Username associated with ban. */ - string name; - /** Hash of banned user. */ - string hash; - /** Reason for ban. */ - string reason; - /** Date ban was applied in unix time format. */ - long start; - /** Duration of ban. */ - int duration; - }; - - /** A entry in the log. - **/ - struct LogEntry { - /** Timestamp in UNIX time_t */ - int timestamp; - /** The log message. */ - string txt; - }; - - class Tree; - sequence TreeList; - - enum ChannelInfo { ChannelDescription, ChannelPosition }; - enum UserInfo { UserName, UserEmail, UserComment, UserHash, UserPassword }; - - dictionary UserMap; - dictionary ChannelMap; - sequence ChannelList; - sequence UserList; - sequence GroupList; - sequence ACLList; - sequence LogList; - sequence BanList; - sequence IdList; - sequence NameList; - dictionary NameMap; - dictionary IdMap; - sequence Texture; - dictionary ConfigMap; - sequence GroupNameList; - sequence CertificateDer; - sequence CertificateList; - - /** User information map. - * Older versions of ice-php can't handle enums as keys. If you are using one of these, replace 'UserInfo' with 'byte'. - */ - - /*FIXME enum-keys in newer ice version*/ - dictionary UserInfoMap; - /*dictionary UserInfoMap;*/ - - /** User and subchannel state. Read-only. - **/ - class Tree { - /** Channel definition of current channel. */ - Channel c; - /** List of subchannels. */ - TreeList children; - /** Users in this channel. */ - UserList users; - }; - - exception MurmurException {}; - /** This is thrown when you specify an invalid session. This may happen if the user has disconnected since your last call to [Server::getUsers]. See [User::session] */ - exception InvalidSessionException extends MurmurException {}; - /** This is thrown when you specify an invalid channel id. This may happen if the channel was removed by another provess. It can also be thrown if you try to add an invalid channel. */ - exception InvalidChannelException extends MurmurException {}; - /** This is thrown when you try to do an operation on a server that does not exist. This may happen if someone has removed the server. */ - exception InvalidServerException extends MurmurException {}; - /** This happens if you try to fetch user or channel state on a stopped server, if you try to stop an already stopped server or start an already started server. */ - exception ServerBootedException extends MurmurException {}; - /** This is thrown if [Server::start] fails, and should generally be the cause for some concern. */ - exception ServerFailureException extends MurmurException {}; - /** This is thrown when you specify an invalid userid. */ - exception InvalidUserException extends MurmurException {}; - /** This is thrown when you try to set an invalid texture. */ - exception InvalidTextureException extends MurmurException {}; - /** This is thrown when you supply an invalid callback. */ - exception InvalidCallbackException extends MurmurException {}; - - /** Callback interface for servers. You can supply an implementation of this to receive notification - * messages from the server. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that all callbacks are done asynchronously; murmur does not wait for the callback to - * complete before continuing processing. - * Note that callbacks are removed when a server is stopped, so you should have a callback for - * [MetaCallback::started] which calls [Server::addCallback]. - * @see MetaCallback - * @see Server::addCallback - */ - interface ServerCallback { - /** Called when a user connects to the server. - * @param state State of connected user. - */ - idempotent void userConnected(User state); - /** Called when a user disconnects from the server. The user has already been removed, so you can no longer use methods like [Server::getState] - * to retrieve the user's state. - * @param state State of disconnected user. - */ - idempotent void userDisconnected(User state); - /** Called when a user state changes. This is called if the user moves, is renamed, is muted, deafened etc. - * @param state New state of user. - */ - idempotent void userStateChanged(User state); - /** Called when a new channel is created. - * @param state State of new channel. - */ - idempotent void channelCreated(Channel state); - /** Called when a channel is removed. The channel has already been removed, you can no longer use methods like [Server::getChannelState] - * @param state State of removed channel. - */ - idempotent void channelRemoved(Channel state); - /** Called when a new channel state changes. This is called if the channel is moved, renamed or if new links are added. - * @param state New state of channel. - */ - idempotent void channelStateChanged(Channel state); - }; - - /** Context for actions in the Server menu. */ - const int ContextServer = 0x01; - /** Context for actions in the Channel menu. */ - const int ContextChannel = 0x02; - /** Context for actions in the User menu. */ - const int ContextUser = 0x04; - - /** Callback interface for context actions. You need to supply one of these for [Server::addContext]. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that all callbacks are done asynchronously; murmur does not wait for the callback to - * complete before continuing processing. - */ - interface ServerContextCallback { - /** Called when a context action is performed. - * @param action Action to be performed. - * @param usr User which initiated the action. - * @param session If nonzero, session of target user. - * @param channelid If nonzero, session of target channel. - */ - idempotent void contextAction(string action, User usr, int session, int channelid); - }; - - /** Callback interface for server authentication. You need to supply one of these for [Server::setAuthenticator]. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that unlike [ServerCallback] and [ServerContextCallback], these methods are called - * synchronously. If the response lags, the entire murmur server will lag. - * Also note that, as the method calls are synchronous, making a call to [Server] or [Meta] will - * deadlock the server. - */ - interface ServerAuthenticator { - /** Called to authenticate a user. If you do not know the username in question, always return -2 from this - * method to fall through to normal database authentication. - * Note that if authentication succeeds, murmur will create a record of the user in it's database, reserving - * the username and id so it cannot be used for normal database authentication. - * The data in the certificate (name, email addresses etc), as well as the list of signing certificates, - * should only be trusted if certstrong is true. - * - * @param name Username to authenticate. - * @param pw Password to authenticate with. - * @param certificates List of der encoded certificates the user connected with. - * @param certhash Hash of user certificate, as used by murmur internally when matching. - * @param certstrong True if certificate was valid and signed by a trusted CA. - * @param newname Set this to change the username from the supplied one. - * @param groups List of groups on the root channel that the user will be added to for the duration of the connection. - * @return UserID of authenticated user, -1 for authentication failures and -2 for unknown user (fallthrough). - */ - idempotent int authenticate(string name, string pw, CertificateList certificates, string certhash, bool certstrong, out string newname, out GroupNameList groups); - - /** Fetch information about a user. This is used to retrieve information like email address, keyhash etc. If you - * want murmur to take care of this information itself, simply return false to fall through. - * @param id User id. - * @param key Key of information to be retrieved. - * @param info Information about user. This needs to include at least "name". - * @return true if information is present, false to fall through. - */ - idempotent bool getInfo(int id, out UserInfoMap info); - - /** Map a name to a user id. - * @param name Username to map. - * @return User id or -2 for unknown name. - */ - idempotent int nameToId(string name); - - /** Map a user to a User id. - * @param id User id to map. - * @return Name of user or empty string for unknown id. - */ - idempotent string idToName(int id); - - /** Map a user to a custom Texture. - * @param id User id to map. - * @return User texture or an empty texture for unknwon users or users without textures. - */ - idempotent Texture idToTexture(int id); - }; - - /** Callback interface for server authentication and registration. This allows you to support both authentication - * and account updating. - * You do not need to implement this if all you want is authentication, you only need this if other scripts - * connected to the same server calls e.g. [Server::setTexture]. - * Almost all of these methods support fall through, meaning murmur should continue the operation against its - * own database. - */ - interface ServerUpdatingAuthenticator extends ServerAuthenticator { - /** Register a new user. - * @param info Information about user to register. - * @return User id of new user, -1 for registration failure, or -2 to fall through. - */ - int registerUser(UserInfoMap info); - - /** Unregister a user. - * @param id Userid to unregister. - * @return 1 for successfull unregistration, 0 for unsuccessfull unregistration, -1 to fall through. - */ - int unregisterUser(int id); - - /** Get a list of registered users matching filter. - * @param filter Substring usernames must contain. If empty, return all registered users. - * @return List of matching registered users. - */ - idempotent NameMap getRegisteredUsers(string filter); - - /** Set additional information for user registration. - * @param id Userid of registered user. - * @param info Information to set about user. This should be merged with existing information. - * @return 1 for successfull update, 0 for unsuccessfull update, -1 to fall through. - */ - idempotent int setInfo(int id, UserInfoMap info); - - /** Set texture of user registration. - * @param id Userid of registered user. - * @param tex New texture. - * @return 1 for successfull update, 0 for unsuccessfull update, -1 to fall through. - */ - idempotent int setTexture(int id, Texture tex); - }; - - /** Per-server interface. This includes all methods for configuring and altering - * the state of a single virtual server. You can retrieve a pointer to this interface - * from one of the methods in [Meta]. - **/ - ["amd"] interface Server { - /** Shows if the server currently running (accepting users). - * - * @return Run-state of server. - */ - idempotent bool isRunning(); - - /** Start server. */ - void start() throws ServerBootedException, ServerFailureException; - - /** Stop server. */ - void stop() throws ServerBootedException; - - /** Delete server and all it's configuration. */ - void delete() throws ServerBootedException; - - /** Fetch the server id. - * - * @return Unique server id. - */ - idempotent int id(); - - /** Add a callback. The callback will receive notifications about changes to users and channels. - * - * @param cb Callback interface which will receive notifications. - * @see removeCallback - */ - void addCallback(ServerCallback *cb) throws ServerBootedException, InvalidCallbackException; - - /** Remove a callback. - * - * @param cb Callback interface to be removed. - * @see addCallback - */ - void removeCallback(ServerCallback *cb) throws ServerBootedException, InvalidCallbackException; - - /** Set external authenticator. If set, all authentications from clients are forwarded to this - * proxy. - * - * @param auth Authenticator object to perform subsequent authentications. - */ - void setAuthenticator(ServerAuthenticator *auth) throws ServerBootedException, InvalidCallbackException; - - /** Retrieve configuration item. - * @param key Configuration key. - * @return Configuration value. If this is empty, see [Meta::getDefaultConf] - */ - idempotent string getConf(string key); - - /** Retrieve all configuration items. - * @return All configured values. If a value isn't set here, the value from [Meta::getDefaultConf] is used. - */ - idempotent ConfigMap getAllConf(); - - /** Set a configuration item. - * @param key Configuration key. - * @param value Configuration value. - */ - idempotent void setConf(string key, string value); - - /** Set superuser password. This is just a convenience for using [updateRegistration] on user id 0. - * @param pw Password. - */ - idempotent void setSuperuserPassword(string pw); - - /** Fetch log entries. - * @param first Lowest numbered entry to fetch. 0 is the most recent item. - * @param last Last entry to fetch. - * @return List of log entries. - */ - idempotent LogList getLog(int first, int last); - - /** Fetch all users. This returns all currently connected users on the server. - * @return List of connected users. - * @see getState - */ - idempotent UserMap getUsers() throws ServerBootedException; - - /** Fetch all channels. This returns all defined channels on the server. The root channel is always channel 0. - * @return List of defined channels. - * @see getChannelState - */ - idempotent ChannelMap getChannels() throws ServerBootedException; - - /** Fetch all channels and connected users as a tree. This retrieves an easy-to-use representation of the server - * as a tree. This is primarily used for viewing the state of the server on a webpage. - * @return Recursive tree of all channels and connected users. - */ - idempotent Tree getTree() throws ServerBootedException; - - /** Fetch all current IP bans on the server. - * @return List of bans. - */ - idempotent BanList getBans() throws ServerBootedException; - - /** Set all current IP bans on the server. This will replace any bans already present, so if you want to add a ban, be sure to call [getBans] and then - * append to the returned list before calling this method. - * @param bans List of bans. - */ - idempotent void setBans(BanList bans) throws ServerBootedException; - - /** Kick a user. The user is not banned, and is free to rejoin the server. - * @param session Connection ID of user. See [User::session]. - * @param reason Text message to show when user is kicked. - */ - void kickUser(int session, string reason) throws ServerBootedException, InvalidSessionException; - - /** Get state of a single connected user. - * @param session Connection ID of user. See [User::session]. - * @return State of connected user. - * @see setState - * @see getUsers - */ - idempotent User getState(int session) throws ServerBootedException, InvalidSessionException; - - /** Set user state. You can use this to move, mute and deafen users. - * @param state User state to set. - * @see getState - */ - idempotent void setState(User state) throws ServerBootedException, InvalidSessionException, InvalidChannelException; - - /** Send text message to a single user. - * @param session Connection ID of user. See [User::session]. - * @param text Message to send. - * @see sendMessageChannel - */ - void sendMessage(int session, string text) throws ServerBootedException, InvalidSessionException; - - /** Check if user is permitted to perform action. - * @param session Connection ID of user. See [User::session]. - * @param channelid ID of Channel. See [Channel::id]. - * @param perm Permission bits to check. - * @return true if any of the permissions in perm were set for the user. - */ - bool hasPermission(int session, int channelid, int perm) throws ServerBootedException, InvalidSessionException, InvalidChannelException; - - /** Add a context callback. This is done per user, and will add a context menu action for the user. - * - * @param session Session of user which should receive context entry. - * @param action Action string, a unique name to associate with the action. - * @param text Name of action shown to user. - * @param cb Callback interface which will receive notifications. - * @param ctx Context this should be used in. Needs to be one or a combination of [ContextServer], [ContextChannel] and [ContextUser]. - * @see removeContextCallback - */ - void addContextCallback(int session, string action, string text, ServerContextCallback *cb, int ctx) throws ServerBootedException, InvalidCallbackException; - - /** Remove a callback. - * - * @param cb Callback interface to be removed. This callback will be removed from all from all users. - * @see addContextCallback - */ - void removeContextCallback(ServerContextCallback *cb) throws ServerBootedException, InvalidCallbackException; - - /** Get state of single channel. - * @param channelid ID of Channel. See [Channel::id]. - * @return State of channel. - * @see setChannelState - * @see getChannels - */ - idempotent Channel getChannelState(int channelid) throws ServerBootedException, InvalidChannelException; - - /** Set state of a single channel. You can use this to move or relink channels. - * @param state Channel state to set. - * @see getChannelState - */ - idempotent void setChannelState(Channel state) throws ServerBootedException, InvalidChannelException; - - /** Remove a channel and all its subchannels. - * @param channelid ID of Channel. See [Channel::id]. - */ - void removeChannel(int channelid) throws ServerBootedException, InvalidChannelException; - - /** Add a new channel. - * @param name Name of new channel. - * @param parent Channel ID of parent channel. See [Channel::id]. - * @return ID of newly created channel. - */ - int addChannel(string name, int parent) throws ServerBootedException, InvalidChannelException; - - /** Send text message to channel or a tree of channels. - * @param channelid Channel ID of channel to send to. See [Channel::id]. - * @param tree If true, the message will be sent to the channel and all its subchannels. - * @param text Message to send. - * @see sendMessage - */ - void sendMessageChannel(int channelid, bool tree, string text) throws ServerBootedException, InvalidChannelException; - - /** Retrieve ACLs and Groups on a channel. - * @param channelid Channel ID of channel to fetch from. See [Channel::id]. - * @param acls List of ACLs on the channel. This will include inherited ACLs. - * @param groups List of groups on the channel. This will include inherited groups. - * @param inherit Does this channel inherit ACLs from the parent channel? - */ - idempotent void getACL(int channelid, out ACLList acls, out GroupList groups, out bool inherit) throws ServerBootedException, InvalidChannelException; - - /** Set ACLs and Groups on a channel. Note that this will replace all existing ACLs and groups on the channel. - * @param channelid Channel ID of channel to fetch from. See [Channel::id]. - * @param acls List of ACLs on the channel. - * @param groups List of groups on the channel. - * @param inherit Should this channel inherit ACLs from the parent channel? - */ - idempotent void setACL(int channelid, ACLList acls, GroupList groups, bool inherit) throws ServerBootedException, InvalidChannelException; - - /** Temporarily add a user to a group on a channel. This state is not saved, and is intended for temporary memberships. - * @param channelid Channel ID of channel to add to. See [Channel::id]. - * @param session Connection ID of user. See [User::session]. - * @param group Group name to add to. - */ - idempotent void addUserToGroup(int channelid, int session, string group) throws ServerBootedException, InvalidChannelException, InvalidSessionException; - - /** Remove a user from a temporary group membership on a channel. This state is not saved, and is intended for temporary memberships. - * @param channelid Channel ID of channel to add to. See [Channel::id]. - * @param session Connection ID of user. See [User::session]. - * @param group Group name to remove from. - */ - idempotent void removeUserFromGroup(int channelid, int session, string group) throws ServerBootedException, InvalidChannelException, InvalidSessionException; - - /** Redirect whisper targets for user. If set, whenever a user tries to whisper to group "source", the whisper will be redirected to group "target". - * This is intended for context groups. - * @param session Connection ID of user. See [User::session]. - * @param source Group name to redirect from. - * @param target Group name to redirect to. - */ - idempotent void redirectWhisperGroup(int session, string source, string target) throws ServerBootedException, InvalidSessionException; - - /** Map a list of [User::userid] to a matching name. - * @param List of ids. - * @return Matching list of names, with an empty string representing invalid or unknown ids. - */ - idempotent NameMap getUserNames(IdList ids) throws ServerBootedException; - - /** Map a list of user names to a matching id. - * @param List of names. - * @reuturn List of matching ids, with -1 representing invalid or unknown user names. - */ - idempotent IdMap getUserIds(NameList names) throws ServerBootedException; - - /** Register a new user. - * @param info Information about new user. Must include at least "name". - * @return The ID of the user. See [RegisteredUser::userid]. - */ - int registerUser(UserInfoMap info) throws ServerBootedException, InvalidUserException; - - /** Remove a user registration. - * @param userid ID of registered user. See [RegisteredUser::userid]. - */ - void unregisterUser(int userid) throws ServerBootedException, InvalidUserException; - - /** Update the registration for a user. You can use this to set the email or password of a user, - * and can also use it to change the user's name. - * @param registration Updated registration record. - */ - idempotent void updateRegistration(int userid, UserInfoMap info) throws ServerBootedException, InvalidUserException; - - /** Fetch registration for a single user. - * @param userid ID of registered user. See [RegisteredUser::userid]. - * @return Registration record. - */ - idempotent UserInfoMap getRegistration(int userid) throws ServerBootedException, InvalidUserException; - - /** Fetch a group of registered users. - * @param filter Substring of user name. If blank, will retrieve all registered users. - * @return List of registration records. - */ - idempotent NameMap getRegisteredUsers(string filter) throws ServerBootedException; - - /** Verify the password of a user. You can use this to verify a user's credentials. - * @param name User name. See [RegisteredUser::name]. - * @param pw User password. - * @return User ID of registered user (See [RegisteredUser::userid]), -1 for failed authentication or -2 for unknown usernames. - */ - idempotent int verifyPassword(string name, string pw) throws ServerBootedException; - - /** Fetch user texture. Textures are stored as zlib compress()ed 600x60 32-bit BGRA data. - * @param userid ID of registered user. See [RegisteredUser::userid]. - * @return Custom texture associated with user or an empty texture. - */ - idempotent Texture getTexture(int userid) throws ServerBootedException, InvalidUserException; - - /** Set user texture. The texture is a 600x60 32-bit BGRA raw texture, optionally zlib compress()ed. - * @param userid ID of registered user. See [RegisteredUser::userid]. - * @param tex Texture to set for the user, or an empty texture to remove the existing texture. - */ - idempotent void setTexture(int userid, Texture tex) throws ServerBootedException, InvalidUserException, InvalidTextureException; - }; - - /** Callback interface for Meta. You can supply an implementation of this to recieve notifications - * when servers are stopped or started. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that all callbacks are done asynchronously; murmur does not wait for the callback to - * complete before continuing processing. - * @see ServerCallback - * @see Meta::addCallback - */ - interface MetaCallback { - /** Called when a server is started. The server is up and running when this event is sent, so all methods that - * need a running server will work. - * @param srv Interface for started server. - */ - void started(Server *srv); - - /** Called when a server is stopped. The server is already stopped when this event is sent, so no methods that - * need a running server will work. - * @param srv Interface for started server. - */ - void stopped(Server *srv); - }; - - sequence ServerList; - - /** This is the meta interface. It is primarily used for retrieving the [Server] interfaces for each individual server. - **/ - ["amd"] interface Meta { - /** Fetch interface to specific server. - * @param id Server ID. See [Server::getId]. - * @return Interface for specified server, or a null proxy if id is invalid. - */ - idempotent Server *getServer(int id); - - /** Create a new server. Call [Server::getId] on the returned interface to find it's ID. - * @return Interface for new server. - */ - Server *newServer(); - - /** Fetch list of all currently running servers. - * @return List of interfaces for running servers. - */ - idempotent ServerList getBootedServers(); - - /** Fetch list of all defined servers. - * @return List of interfaces for all servers. - */ - idempotent ServerList getAllServers(); - - /** Fetch default configuraion. This returns the configuration items that were set in the configuration file, or - * the built-in default. The individual servers will use these values unless they have been overridden in the - * server specific configuration. The only special case is the port, which defaults to the value defined here + - * the servers ID - 1 (so that virtual server #1 uses the defined port, server #2 uses port+1 etc). - * @return Default configuration of the servers. - */ - idempotent ConfigMap getDefaultConf(); - - /** Fetch version of Murmur. - * @param major Major version. - * @param minor Minor version. - * @param patch Patchlevel. - * @param text Textual representation of version. Note that this may not match the [major], [minor] and [patch] levels, as it - * may be simply the compile date or the SVN revision. This is usually the text you want to present to users. - */ - idempotent void getVersion(out int major, out int minor, out int patch, out string text); - - /** Add a callback. The callback will receive notifications when servers are started or stopped. - * - * @param cb Callback interface which will receive notifications. - */ - void addCallback(MetaCallback *cb) throws InvalidCallbackException; - - /** Remove a callback. - * - * @param cb Callback interface to be removed. - */ - void removeCallback(MetaCallback *cb) throws InvalidCallbackException; - }; -}; diff --git a/libs/Murmur121_fixed.ice b/libs/Murmur121_fixed.ice deleted file mode 100644 index f877755..0000000 --- a/libs/Murmur121_fixed.ice +++ /dev/null @@ -1,772 +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 network address in IPv6 format. - **/ - ["python:seq:tuple"] sequence NetAddress; - - /** A connected user. - **/ - struct User { - /** Session ID. This identifies the connection to the server. */ - int session; - /** User ID. -1 if the user is anonymous. */ - int userid; - /** Is user muted by the server? */ - bool mute; - /** Is user deafened by the server? If true, this implies mute. */ - bool deaf; - /** Is the user suppressed by the server? This means the user is not muted, but does not have speech privileges in the current channel. */ - bool suppress; - /** Is the user self-muted? */ - bool selfMute; - /** Is the user self-deafened? If true, this implies mute. */ - bool selfDeaf; - /** Channel ID the user is in. Matches [Channel::id]. */ - int channel; - /** The name of the user. */ - string name; - /** Seconds user has been online. */ - int onlinesecs; - /** Average transmission rate in bytes per second over the last few seconds. */ - int bytespersec; - /** Client version. Major version in upper 16 bits, followed by 8 bits of minor version and 8 bits of patchlevel. Version 1.2.3 = 0x010203. */ - int version; - /** Client release. For official releases, this equals the version. For snapshots and git compiles, this will be something else. */ - string release; - /** Client OS. */ - string os; - /** Client OS Version. */ - string osversion; - /** Plugin Identity. This will be the user's unique ID inside the current game. */ - string identity; - /** Plugin context. This is a binary blob identifying the game and team the user is on. */ - string context; - /** User comment. Shown as tooltip for this user. */ - string comment; - /** Client address. */ - NetAddress address; - /** TCP only. True until UDP connectivity is established. */ - bool tcponly; - /** Idle time. This is how many seconds it is since the user last spoke. Other activity is not counted. */ - int idlesecs; - }; - - sequence IntList; - - /** A channel. - **/ - struct Channel { - /** Channel ID. This is unique per channel, and the root channel is always id 0. */ - int id; - /** Name of the channel. There can not be two channels with the same parent that has the same name. */ - string name; - /** ID of parent channel, or -1 if this is the root channel. */ - int parent; - /** List of id of linked channels. */ - IntList links; - /** Description of channel. Shown as tooltip for this channel. */ - string description; - /** Channel is temporary, and will be removed when the last user leaves it. */ - bool temporary; - /** Position of the channel which is used in Client for sorting. */ - int position; - }; - - /** A group. Groups are defined per channel, and can inherit members from parent channels. - **/ - struct Group { - /** Group name */ - string name; - /** Is this group inherited from a parent channel? Read-only. */ - bool inherited; - /** Does this group inherit members from parent channels? */ - bool inherit; - /** Can subchannels inherit members from this group? */ - bool inheritable; - /** List of users to add to the group. */ - IntList add; - /** List of inherited users to remove from the group. */ - IntList remove; - /** Current members of the group, including inherited members. Read-only. */ - IntList members; - }; - - /** Write access to channel control. Implies all other permissions (except Speak). */ - const int PermissionWrite = 0x01; - /** Traverse channel. Without this, a client cannot reach subchannels, no matter which privileges he has there. */ - const int PermissionTraverse = 0x02; - /** Enter channel. */ - const int PermissionEnter = 0x04; - /** Speak in channel. */ - const int PermissionSpeak = 0x08; - /** Whisper to channel. This is different from Speak, so you can set up different permissions. */ - const int PermissionWhisper = 0x100; - /** Mute and deafen other users in this channel. */ - const int PermissionMuteDeafen = 0x10; - /** Move users from channel. You need this permission in both the source and destination channel to move another user. */ - const int PermissionMove = 0x20; - /** Make new channel as a subchannel of this channel. */ - const int PermissionMakeChannel = 0x40; - /** Make new temporary channel as a subchannel of this channel. */ - const int PermissionMakeTempChannel = 0x400; - /** Link this channel. You need this permission in both the source and destination channel to link channels, or in either channel to unlink them. */ - const int PermissionLinkChannel = 0x80; - /** Send text message to channel. */ - const int PermissionTextMessage = 0x200; - /** Kick user from server. Only valid on root channel. */ - const int PermissionKick = 0x10000; - /** Ban user from server. Only valid on root channel. */ - const int PermissionBan = 0x20000; - /** Register and unregister users. Only valid on root channel. */ - const int PermissionRegister = 0x40000; - /** Register and unregister users. Only valid on root channel. */ - const int PermissionRegisterSelf = 0x80000; - - - /** Access Control List for a channel. ACLs are defined per channel, and can be inherited from parent channels. - **/ - struct ACL { - /** Does the ACL apply to this channel? */ - bool applyHere; - /** Does the ACL apply to subchannels? */ - bool applySubs; - /** Is this ACL inherited from a parent channel? Read-only. */ - bool inherited; - /** ID of user this ACL applies to. -1 if using a group name. */ - int userid; - /** Group this ACL applies to. Blank if using userid. */ - string group; - /** Binary mask of privileges to allow. */ - int allow; - /** Binary mask of privileges to deny. */ - int deny; - }; - - /** A single ip mask for a ban. - **/ - struct Ban { - /** Address to ban. */ - NetAddress address; - /** Number of bits in ban to apply. */ - int bits; - /** Username associated with ban. */ - string name; - /** Hash of banned user. */ - string hash; - /** Reason for ban. */ - string reason; - /** Date ban was applied in unix time format. */ - long start; - /** Duration of ban. */ - int duration; - }; - - /** A entry in the log. - **/ - struct LogEntry { - /** Timestamp in UNIX time_t */ - int timestamp; - /** The log message. */ - string txt; - }; - - class Tree; - sequence TreeList; - - enum ChannelInfo { ChannelDescription, ChannelPosition }; - enum UserInfo { UserName, UserEmail, UserComment, UserHash, UserPassword }; - - dictionary UserMap; - dictionary ChannelMap; - sequence ChannelList; - sequence UserList; - sequence GroupList; - sequence ACLList; - sequence LogList; - sequence BanList; - sequence IdList; - sequence NameList; - dictionary NameMap; - dictionary IdMap; - sequence Texture; - dictionary ConfigMap; - sequence GroupNameList; - sequence CertificateDer; - sequence CertificateList; - - /** User information map. - * Older versions of ice-php can't handle enums as keys. If you are using one of these, replace 'UserInfo' with 'byte'. - */ - - /*FIXME enum-keys in newer ice version*/ - dictionary UserInfoMap; - /*dictionary UserInfoMap;*/ - - /** User and subchannel state. Read-only. - **/ - class Tree { - /** Channel definition of current channel. */ - Channel c; - /** List of subchannels. */ - TreeList children; - /** Users in this channel. */ - UserList users; - }; - - exception MurmurException {}; - /** This is thrown when you specify an invalid session. This may happen if the user has disconnected since your last call to [Server::getUsers]. See [User::session] */ - exception InvalidSessionException extends MurmurException {}; - /** This is thrown when you specify an invalid channel id. This may happen if the channel was removed by another provess. It can also be thrown if you try to add an invalid channel. */ - exception InvalidChannelException extends MurmurException {}; - /** This is thrown when you try to do an operation on a server that does not exist. This may happen if someone has removed the server. */ - exception InvalidServerException extends MurmurException {}; - /** This happens if you try to fetch user or channel state on a stopped server, if you try to stop an already stopped server or start an already started server. */ - exception ServerBootedException extends MurmurException {}; - /** This is thrown if [Server::start] fails, and should generally be the cause for some concern. */ - exception ServerFailureException extends MurmurException {}; - /** This is thrown when you specify an invalid userid. */ - exception InvalidUserException extends MurmurException {}; - /** This is thrown when you try to set an invalid texture. */ - exception InvalidTextureException extends MurmurException {}; - /** This is thrown when you supply an invalid callback. */ - exception InvalidCallbackException extends MurmurException {}; - - /** Callback interface for servers. You can supply an implementation of this to receive notification - * messages from the server. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that all callbacks are done asynchronously; murmur does not wait for the callback to - * complete before continuing processing. - * Note that callbacks are removed when a server is stopped, so you should have a callback for - * [MetaCallback::started] which calls [Server::addCallback]. - * @see MetaCallback - * @see Server::addCallback - */ - interface ServerCallback { - /** Called when a user connects to the server. - * @param state State of connected user. - */ - idempotent void userConnected(User state); - /** Called when a user disconnects from the server. The user has already been removed, so you can no longer use methods like [Server::getState] - * to retrieve the user's state. - * @param state State of disconnected user. - */ - idempotent void userDisconnected(User state); - /** Called when a user state changes. This is called if the user moves, is renamed, is muted, deafened etc. - * @param state New state of user. - */ - idempotent void userStateChanged(User state); - /** Called when a new channel is created. - * @param state State of new channel. - */ - idempotent void channelCreated(Channel state); - /** Called when a channel is removed. The channel has already been removed, you can no longer use methods like [Server::getChannelState] - * @param state State of removed channel. - */ - idempotent void channelRemoved(Channel state); - /** Called when a new channel state changes. This is called if the channel is moved, renamed or if new links are added. - * @param state New state of channel. - */ - idempotent void channelStateChanged(Channel state); - }; - - /** Context for actions in the Server menu. */ - const int ContextServer = 0x01; - /** Context for actions in the Channel menu. */ - const int ContextChannel = 0x02; - /** Context for actions in the User menu. */ - const int ContextUser = 0x04; - - /** Callback interface for context actions. You need to supply one of these for [Server::addContext]. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that all callbacks are done asynchronously; murmur does not wait for the callback to - * complete before continuing processing. - */ - interface ServerContextCallback { - /** Called when a context action is performed. - * @param action Action to be performed. - * @param usr User which initiated the action. - * @param session If nonzero, session of target user. - * @param channelid If nonzero, session of target channel. - */ - idempotent void contextAction(string action, User usr, int session, int channelid); - }; - - /** Callback interface for server authentication. You need to supply one of these for [Server::setAuthenticator]. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that unlike [ServerCallback] and [ServerContextCallback], these methods are called - * synchronously. If the response lags, the entire murmur server will lag. - * Also note that, as the method calls are synchronous, making a call to [Server] or [Meta] will - * deadlock the server. - */ - interface ServerAuthenticator { - /** Called to authenticate a user. If you do not know the username in question, always return -2 from this - * method to fall through to normal database authentication. - * Note that if authentication succeeds, murmur will create a record of the user in it's database, reserving - * the username and id so it cannot be used for normal database authentication. - * The data in the certificate (name, email addresses etc), as well as the list of signing certificates, - * should only be trusted if certstrong is true. - * - * @param name Username to authenticate. - * @param pw Password to authenticate with. - * @param certificates List of der encoded certificates the user connected with. - * @param certhash Hash of user certificate, as used by murmur internally when matching. - * @param certstrong True if certificate was valid and signed by a trusted CA. - * @param newname Set this to change the username from the supplied one. - * @param groups List of groups on the root channel that the user will be added to for the duration of the connection. - * @return UserID of authenticated user, -1 for authentication failures and -2 for unknown user (fallthrough). - */ - idempotent int authenticate(string name, string pw, CertificateList certificates, string certhash, bool certstrong, out string newname, out GroupNameList groups); - - /** Fetch information about a user. This is used to retrieve information like email address, keyhash etc. If you - * want murmur to take care of this information itself, simply return false to fall through. - * @param id User id. - * @param key Key of information to be retrieved. - * @param info Information about user. This needs to include at least "name". - * @return true if information is present, false to fall through. - */ - idempotent bool getInfo(int id, out UserInfoMap info); - - /** Map a name to a user id. - * @param name Username to map. - * @return User id or -2 for unknown name. - */ - idempotent int nameToId(string name); - - /** Map a user to a User id. - * @param id User id to map. - * @return Name of user or empty string for unknown id. - */ - idempotent string idToName(int id); - - /** Map a user to a custom Texture. - * @param id User id to map. - * @return User texture or an empty texture for unknwon users or users without textures. - */ - idempotent Texture idToTexture(int id); - }; - - /** Callback interface for server authentication and registration. This allows you to support both authentication - * and account updating. - * You do not need to implement this if all you want is authentication, you only need this if other scripts - * connected to the same server calls e.g. [Server::setTexture]. - * Almost all of these methods support fall through, meaning murmur should continue the operation against its - * own database. - */ - interface ServerUpdatingAuthenticator extends ServerAuthenticator { - /** Register a new user. - * @param info Information about user to register. - * @return User id of new user, -1 for registration failure, or -2 to fall through. - */ - int registerUser(UserInfoMap info); - - /** Unregister a user. - * @param id Userid to unregister. - * @return 1 for successfull unregistration, 0 for unsuccessfull unregistration, -1 to fall through. - */ - int unregisterUser(int id); - - /** Get a list of registered users matching filter. - * @param filter Substring usernames must contain. If empty, return all registered users. - * @return List of matching registered users. - */ - idempotent NameMap getRegisteredUsers(string filter); - - /** Set additional information for user registration. - * @param id Userid of registered user. - * @param info Information to set about user. This should be merged with existing information. - * @return 1 for successfull update, 0 for unsuccessfull update, -1 to fall through. - */ - idempotent int setInfo(int id, UserInfoMap info); - - /** Set texture of user registration. - * @param id Userid of registered user. - * @param tex New texture. - * @return 1 for successfull update, 0 for unsuccessfull update, -1 to fall through. - */ - idempotent int setTexture(int id, Texture tex); - }; - - /** Per-server interface. This includes all methods for configuring and altering - * the state of a single virtual server. You can retrieve a pointer to this interface - * from one of the methods in [Meta]. - **/ - ["amd"] interface Server { - /** Shows if the server currently running (accepting users). - * - * @return Run-state of server. - */ - idempotent bool isRunning(); - - /** Start server. */ - void start() throws ServerBootedException, ServerFailureException; - - /** Stop server. */ - void stop() throws ServerBootedException; - - /** Delete server and all it's configuration. */ - void delete() throws ServerBootedException; - - /** Fetch the server id. - * - * @return Unique server id. - */ - idempotent int id(); - - /** Add a callback. The callback will receive notifications about changes to users and channels. - * - * @param cb Callback interface which will receive notifications. - * @see removeCallback - */ - void addCallback(ServerCallback *cb) throws ServerBootedException, InvalidCallbackException; - - /** Remove a callback. - * - * @param cb Callback interface to be removed. - * @see addCallback - */ - void removeCallback(ServerCallback *cb) throws ServerBootedException, InvalidCallbackException; - - /** Set external authenticator. If set, all authentications from clients are forwarded to this - * proxy. - * - * @param auth Authenticator object to perform subsequent authentications. - */ - void setAuthenticator(ServerAuthenticator *auth) throws ServerBootedException, InvalidCallbackException; - - /** Retrieve configuration item. - * @param key Configuration key. - * @return Configuration value. If this is empty, see [Meta::getDefaultConf] - */ - idempotent string getConf(string key); - - /** Retrieve all configuration items. - * @return All configured values. If a value isn't set here, the value from [Meta::getDefaultConf] is used. - */ - idempotent ConfigMap getAllConf(); - - /** Set a configuration item. - * @param key Configuration key. - * @param value Configuration value. - */ - idempotent void setConf(string key, string value); - - /** Set superuser password. This is just a convenience for using [updateRegistration] on user id 0. - * @param pw Password. - */ - idempotent void setSuperuserPassword(string pw); - - /** Fetch log entries. - * @param first Lowest numbered entry to fetch. 0 is the most recent item. - * @param last Last entry to fetch. - * @return List of log entries. - */ - idempotent LogList getLog(int first, int last); - - /** Fetch all users. This returns all currently connected users on the server. - * @return List of connected users. - * @see getState - */ - idempotent UserMap getUsers() throws ServerBootedException; - - /** Fetch all channels. This returns all defined channels on the server. The root channel is always channel 0. - * @return List of defined channels. - * @see getChannelState - */ - idempotent ChannelMap getChannels() throws ServerBootedException; - - /** Fetch certificate of user. This returns the complete certificate chain of a user. - * @param session Connection ID of user. See [User::session]. - * @return Certificate list of user. - */ - idempotent CertificateList getCertificateList(int session) throws ServerBootedException, InvalidSessionException; - - /** Fetch all channels and connected users as a tree. This retrieves an easy-to-use representation of the server - * as a tree. This is primarily used for viewing the state of the server on a webpage. - * @return Recursive tree of all channels and connected users. - */ - idempotent Tree getTree() throws ServerBootedException; - - /** Fetch all current IP bans on the server. - * @return List of bans. - */ - idempotent BanList getBans() throws ServerBootedException; - - /** Set all current IP bans on the server. This will replace any bans already present, so if you want to add a ban, be sure to call [getBans] and then - * append to the returned list before calling this method. - * @param bans List of bans. - */ - idempotent void setBans(BanList bans) throws ServerBootedException; - - /** Kick a user. The user is not banned, and is free to rejoin the server. - * @param session Connection ID of user. See [User::session]. - * @param reason Text message to show when user is kicked. - */ - void kickUser(int session, string reason) throws ServerBootedException, InvalidSessionException; - - /** Get state of a single connected user. - * @param session Connection ID of user. See [User::session]. - * @return State of connected user. - * @see setState - * @see getUsers - */ - idempotent User getState(int session) throws ServerBootedException, InvalidSessionException; - - /** Set user state. You can use this to move, mute and deafen users. - * @param state User state to set. - * @see getState - */ - idempotent void setState(User state) throws ServerBootedException, InvalidSessionException, InvalidChannelException; - - /** Send text message to a single user. - * @param session Connection ID of user. See [User::session]. - * @param text Message to send. - * @see sendMessageChannel - */ - void sendMessage(int session, string text) throws ServerBootedException, InvalidSessionException; - - /** Check if user is permitted to perform action. - * @param session Connection ID of user. See [User::session]. - * @param channelid ID of Channel. See [Channel::id]. - * @param perm Permission bits to check. - * @return true if any of the permissions in perm were set for the user. - */ - bool hasPermission(int session, int channelid, int perm) throws ServerBootedException, InvalidSessionException, InvalidChannelException; - - /** Add a context callback. This is done per user, and will add a context menu action for the user. - * - * @param session Session of user which should receive context entry. - * @param action Action string, a unique name to associate with the action. - * @param text Name of action shown to user. - * @param cb Callback interface which will receive notifications. - * @param ctx Context this should be used in. Needs to be one or a combination of [ContextServer], [ContextChannel] and [ContextUser]. - * @see removeContextCallback - */ - void addContextCallback(int session, string action, string text, ServerContextCallback *cb, int ctx) throws ServerBootedException, InvalidCallbackException; - - /** Remove a callback. - * - * @param cb Callback interface to be removed. This callback will be removed from all from all users. - * @see addContextCallback - */ - void removeContextCallback(ServerContextCallback *cb) throws ServerBootedException, InvalidCallbackException; - - /** Get state of single channel. - * @param channelid ID of Channel. See [Channel::id]. - * @return State of channel. - * @see setChannelState - * @see getChannels - */ - idempotent Channel getChannelState(int channelid) throws ServerBootedException, InvalidChannelException; - - /** Set state of a single channel. You can use this to move or relink channels. - * @param state Channel state to set. - * @see getChannelState - */ - idempotent void setChannelState(Channel state) throws ServerBootedException, InvalidChannelException; - - /** Remove a channel and all its subchannels. - * @param channelid ID of Channel. See [Channel::id]. - */ - void removeChannel(int channelid) throws ServerBootedException, InvalidChannelException; - - /** Add a new channel. - * @param name Name of new channel. - * @param parent Channel ID of parent channel. See [Channel::id]. - * @return ID of newly created channel. - */ - int addChannel(string name, int parent) throws ServerBootedException, InvalidChannelException; - - /** Send text message to channel or a tree of channels. - * @param channelid Channel ID of channel to send to. See [Channel::id]. - * @param tree If true, the message will be sent to the channel and all its subchannels. - * @param text Message to send. - * @see sendMessage - */ - void sendMessageChannel(int channelid, bool tree, string text) throws ServerBootedException, InvalidChannelException; - - /** Retrieve ACLs and Groups on a channel. - * @param channelid Channel ID of channel to fetch from. See [Channel::id]. - * @param acls List of ACLs on the channel. This will include inherited ACLs. - * @param groups List of groups on the channel. This will include inherited groups. - * @param inherit Does this channel inherit ACLs from the parent channel? - */ - idempotent void getACL(int channelid, out ACLList acls, out GroupList groups, out bool inherit) throws ServerBootedException, InvalidChannelException; - - /** Set ACLs and Groups on a channel. Note that this will replace all existing ACLs and groups on the channel. - * @param channelid Channel ID of channel to fetch from. See [Channel::id]. - * @param acls List of ACLs on the channel. - * @param groups List of groups on the channel. - * @param inherit Should this channel inherit ACLs from the parent channel? - */ - idempotent void setACL(int channelid, ACLList acls, GroupList groups, bool inherit) throws ServerBootedException, InvalidChannelException; - - /** Temporarily add a user to a group on a channel. This state is not saved, and is intended for temporary memberships. - * @param channelid Channel ID of channel to add to. See [Channel::id]. - * @param session Connection ID of user. See [User::session]. - * @param group Group name to add to. - */ - idempotent void addUserToGroup(int channelid, int session, string group) throws ServerBootedException, InvalidChannelException, InvalidSessionException; - - /** Remove a user from a temporary group membership on a channel. This state is not saved, and is intended for temporary memberships. - * @param channelid Channel ID of channel to add to. See [Channel::id]. - * @param session Connection ID of user. See [User::session]. - * @param group Group name to remove from. - */ - idempotent void removeUserFromGroup(int channelid, int session, string group) throws ServerBootedException, InvalidChannelException, InvalidSessionException; - - /** Redirect whisper targets for user. If set, whenever a user tries to whisper to group "source", the whisper will be redirected to group "target". - * This is intended for context groups. - * @param session Connection ID of user. See [User::session]. - * @param source Group name to redirect from. - * @param target Group name to redirect to. - */ - idempotent void redirectWhisperGroup(int session, string source, string target) throws ServerBootedException, InvalidSessionException; - - /** Map a list of [User::userid] to a matching name. - * @param List of ids. - * @return Matching list of names, with an empty string representing invalid or unknown ids. - */ - idempotent NameMap getUserNames(IdList ids) throws ServerBootedException; - - /** Map a list of user names to a matching id. - * @param List of names. - * @reuturn List of matching ids, with -1 representing invalid or unknown user names. - */ - idempotent IdMap getUserIds(NameList names) throws ServerBootedException; - - /** Register a new user. - * @param info Information about new user. Must include at least "name". - * @return The ID of the user. See [RegisteredUser::userid]. - */ - int registerUser(UserInfoMap info) throws ServerBootedException, InvalidUserException; - - /** Remove a user registration. - * @param userid ID of registered user. See [RegisteredUser::userid]. - */ - void unregisterUser(int userid) throws ServerBootedException, InvalidUserException; - - /** Update the registration for a user. You can use this to set the email or password of a user, - * and can also use it to change the user's name. - * @param registration Updated registration record. - */ - idempotent void updateRegistration(int userid, UserInfoMap info) throws ServerBootedException, InvalidUserException; - - /** Fetch registration for a single user. - * @param userid ID of registered user. See [RegisteredUser::userid]. - * @return Registration record. - */ - idempotent UserInfoMap getRegistration(int userid) throws ServerBootedException, InvalidUserException; - - /** Fetch a group of registered users. - * @param filter Substring of user name. If blank, will retrieve all registered users. - * @return List of registration records. - */ - idempotent NameMap getRegisteredUsers(string filter) throws ServerBootedException; - - /** Verify the password of a user. You can use this to verify a user's credentials. - * @param name User name. See [RegisteredUser::name]. - * @param pw User password. - * @return User ID of registered user (See [RegisteredUser::userid]), -1 for failed authentication or -2 for unknown usernames. - */ - idempotent int verifyPassword(string name, string pw) throws ServerBootedException; - - /** Fetch user texture. Textures are stored as zlib compress()ed 600x60 32-bit BGRA data. - * @param userid ID of registered user. See [RegisteredUser::userid]. - * @return Custom texture associated with user or an empty texture. - */ - idempotent Texture getTexture(int userid) throws ServerBootedException, InvalidUserException; - - /** Set user texture. The texture is a 600x60 32-bit BGRA raw texture, optionally zlib compress()ed. - * @param userid ID of registered user. See [RegisteredUser::userid]. - * @param tex Texture to set for the user, or an empty texture to remove the existing texture. - */ - idempotent void setTexture(int userid, Texture tex) throws ServerBootedException, InvalidUserException, InvalidTextureException; - }; - - /** Callback interface for Meta. You can supply an implementation of this to recieve notifications - * when servers are stopped or started. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that all callbacks are done asynchronously; murmur does not wait for the callback to - * complete before continuing processing. - * @see ServerCallback - * @see Meta::addCallback - */ - interface MetaCallback { - /** Called when a server is started. The server is up and running when this event is sent, so all methods that - * need a running server will work. - * @param srv Interface for started server. - */ - void started(Server *srv); - - /** Called when a server is stopped. The server is already stopped when this event is sent, so no methods that - * need a running server will work. - * @param srv Interface for started server. - */ - void stopped(Server *srv); - }; - - sequence ServerList; - - /** This is the meta interface. It is primarily used for retrieving the [Server] interfaces for each individual server. - **/ - ["amd"] interface Meta { - /** Fetch interface to specific server. - * @param id Server ID. See [Server::getId]. - * @return Interface for specified server, or a null proxy if id is invalid. - */ - idempotent Server *getServer(int id); - - /** Create a new server. Call [Server::getId] on the returned interface to find it's ID. - * @return Interface for new server. - */ - Server *newServer(); - - /** Fetch list of all currently running servers. - * @return List of interfaces for running servers. - */ - idempotent ServerList getBootedServers(); - - /** Fetch list of all defined servers. - * @return List of interfaces for all servers. - */ - idempotent ServerList getAllServers(); - - /** Fetch default configuraion. This returns the configuration items that were set in the configuration file, or - * the built-in default. The individual servers will use these values unless they have been overridden in the - * server specific configuration. The only special case is the port, which defaults to the value defined here + - * the servers ID - 1 (so that virtual server #1 uses the defined port, server #2 uses port+1 etc). - * @return Default configuration of the servers. - */ - idempotent ConfigMap getDefaultConf(); - - /** Fetch version of Murmur. - * @param major Major version. - * @param minor Minor version. - * @param patch Patchlevel. - * @param text Textual representation of version. Note that this may not match the [major], [minor] and [patch] levels, as it - * may be simply the compile date or the SVN revision. This is usually the text you want to present to users. - */ - idempotent void getVersion(out int major, out int minor, out int patch, out string text); - - /** Add a callback. The callback will receive notifications when servers are started or stopped. - * - * @param cb Callback interface which will receive notifications. - */ - void addCallback(MetaCallback *cb) throws InvalidCallbackException; - - /** Remove a callback. - * - * @param cb Callback interface to be removed. - */ - void removeCallback(MetaCallback *cb) throws InvalidCallbackException; - }; -}; diff --git a/libs/Murmur122_fixed.ice b/libs/Murmur122_fixed.ice deleted file mode 100644 index 2473c97..0000000 --- a/libs/Murmur122_fixed.ice +++ /dev/null @@ -1,782 +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 network address in IPv6 format. - **/ - ["python:seq:tuple"] sequence NetAddress; - - /** A connected user. - **/ - struct User { - /** Session ID. This identifies the connection to the server. */ - int session; - /** User ID. -1 if the user is anonymous. */ - int userid; - /** Is user muted by the server? */ - bool mute; - /** Is user deafened by the server? If true, this implies mute. */ - bool deaf; - /** Is the user suppressed by the server? This means the user is not muted, but does not have speech privileges in the current channel. */ - bool suppress; - /** Is the user self-muted? */ - bool selfMute; - /** Is the user self-deafened? If true, this implies mute. */ - bool selfDeaf; - /** Channel ID the user is in. Matches [Channel::id]. */ - int channel; - /** The name of the user. */ - string name; - /** Seconds user has been online. */ - int onlinesecs; - /** Average transmission rate in bytes per second over the last few seconds. */ - int bytespersec; - /** Client version. Major version in upper 16 bits, followed by 8 bits of minor version and 8 bits of patchlevel. Version 1.2.3 = 0x010203. */ - int version; - /** Client release. For official releases, this equals the version. For snapshots and git compiles, this will be something else. */ - string release; - /** Client OS. */ - string os; - /** Client OS Version. */ - string osversion; - /** Plugin Identity. This will be the user's unique ID inside the current game. */ - string identity; - /** Plugin context. This is a binary blob identifying the game and team the user is on. */ - string context; - /** User comment. Shown as tooltip for this user. */ - string comment; - /** Client address. */ - NetAddress address; - /** TCP only. True until UDP connectivity is established. */ - bool tcponly; - /** Idle time. This is how many seconds it is since the user last spoke. Other activity is not counted. */ - int idlesecs; - }; - - sequence IntList; - - /** A channel. - **/ - struct Channel { - /** Channel ID. This is unique per channel, and the root channel is always id 0. */ - int id; - /** Name of the channel. There can not be two channels with the same parent that has the same name. */ - string name; - /** ID of parent channel, or -1 if this is the root channel. */ - int parent; - /** List of id of linked channels. */ - IntList links; - /** Description of channel. Shown as tooltip for this channel. */ - string description; - /** Channel is temporary, and will be removed when the last user leaves it. */ - bool temporary; - /** Position of the channel which is used in Client for sorting. */ - int position; - }; - - /** A group. Groups are defined per channel, and can inherit members from parent channels. - **/ - struct Group { - /** Group name */ - string name; - /** Is this group inherited from a parent channel? Read-only. */ - bool inherited; - /** Does this group inherit members from parent channels? */ - bool inherit; - /** Can subchannels inherit members from this group? */ - bool inheritable; - /** List of users to add to the group. */ - IntList add; - /** List of inherited users to remove from the group. */ - IntList remove; - /** Current members of the group, including inherited members. Read-only. */ - IntList members; - }; - - /** Write access to channel control. Implies all other permissions (except Speak). */ - const int PermissionWrite = 0x01; - /** Traverse channel. Without this, a client cannot reach subchannels, no matter which privileges he has there. */ - const int PermissionTraverse = 0x02; - /** Enter channel. */ - const int PermissionEnter = 0x04; - /** Speak in channel. */ - const int PermissionSpeak = 0x08; - /** Whisper to channel. This is different from Speak, so you can set up different permissions. */ - const int PermissionWhisper = 0x100; - /** Mute and deafen other users in this channel. */ - const int PermissionMuteDeafen = 0x10; - /** Move users from channel. You need this permission in both the source and destination channel to move another user. */ - const int PermissionMove = 0x20; - /** Make new channel as a subchannel of this channel. */ - const int PermissionMakeChannel = 0x40; - /** Make new temporary channel as a subchannel of this channel. */ - const int PermissionMakeTempChannel = 0x400; - /** Link this channel. You need this permission in both the source and destination channel to link channels, or in either channel to unlink them. */ - const int PermissionLinkChannel = 0x80; - /** Send text message to channel. */ - const int PermissionTextMessage = 0x200; - /** Kick user from server. Only valid on root channel. */ - const int PermissionKick = 0x10000; - /** Ban user from server. Only valid on root channel. */ - const int PermissionBan = 0x20000; - /** Register and unregister users. Only valid on root channel. */ - const int PermissionRegister = 0x40000; - /** Register and unregister users. Only valid on root channel. */ - const int PermissionRegisterSelf = 0x80000; - - - /** Access Control List for a channel. ACLs are defined per channel, and can be inherited from parent channels. - **/ - struct ACL { - /** Does the ACL apply to this channel? */ - bool applyHere; - /** Does the ACL apply to subchannels? */ - bool applySubs; - /** Is this ACL inherited from a parent channel? Read-only. */ - bool inherited; - /** ID of user this ACL applies to. -1 if using a group name. */ - int userid; - /** Group this ACL applies to. Blank if using userid. */ - string group; - /** Binary mask of privileges to allow. */ - int allow; - /** Binary mask of privileges to deny. */ - int deny; - }; - - /** A single ip mask for a ban. - **/ - struct Ban { - /** Address to ban. */ - NetAddress address; - /** Number of bits in ban to apply. */ - int bits; - /** Username associated with ban. */ - string name; - /** Hash of banned user. */ - string hash; - /** Reason for ban. */ - string reason; - /** Date ban was applied in unix time format. */ - long start; - /** Duration of ban. */ - int duration; - }; - - /** A entry in the log. - **/ - struct LogEntry { - /** Timestamp in UNIX time_t */ - int timestamp; - /** The log message. */ - string txt; - }; - - class Tree; - sequence TreeList; - - enum ChannelInfo { ChannelDescription, ChannelPosition }; - enum UserInfo { UserName, UserEmail, UserComment, UserHash, UserPassword }; - - dictionary UserMap; - dictionary ChannelMap; - sequence ChannelList; - sequence UserList; - sequence GroupList; - sequence ACLList; - sequence LogList; - sequence BanList; - sequence IdList; - sequence NameList; - dictionary NameMap; - dictionary IdMap; - sequence Texture; - dictionary ConfigMap; - sequence GroupNameList; - sequence CertificateDer; - sequence CertificateList; - - /** User information map. - * Older versions of ice-php can't handle enums as keys. If you are using one of these, replace 'UserInfo' with 'byte'. - */ - dictionary UserInfoMap; - /*dictionary UserInfoMap;*/ - - /** User and subchannel state. Read-only. - **/ - class Tree { - /** Channel definition of current channel. */ - Channel c; - /** List of subchannels. */ - TreeList children; - /** Users in this channel. */ - UserList users; - }; - - exception MurmurException {}; - /** This is thrown when you specify an invalid session. This may happen if the user has disconnected since your last call to [Server::getUsers]. See [User::session] */ - exception InvalidSessionException extends MurmurException {}; - /** This is thrown when you specify an invalid channel id. This may happen if the channel was removed by another provess. It can also be thrown if you try to add an invalid channel. */ - exception InvalidChannelException extends MurmurException {}; - /** This is thrown when you try to do an operation on a server that does not exist. This may happen if someone has removed the server. */ - exception InvalidServerException extends MurmurException {}; - /** This happens if you try to fetch user or channel state on a stopped server, if you try to stop an already stopped server or start an already started server. */ - exception ServerBootedException extends MurmurException {}; - /** This is thrown if [Server::start] fails, and should generally be the cause for some concern. */ - exception ServerFailureException extends MurmurException {}; - /** This is thrown when you specify an invalid userid. */ - exception InvalidUserException extends MurmurException {}; - /** This is thrown when you try to set an invalid texture. */ - exception InvalidTextureException extends MurmurException {}; - /** This is thrown when you supply an invalid callback. */ - exception InvalidCallbackException extends MurmurException {}; - /** This is thrown when you supply the wrong secret in the calling context. */ - exception InvalidSecretException extends MurmurException {}; - - /** Callback interface for servers. You can supply an implementation of this to receive notification - * messages from the server. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that all callbacks are done asynchronously; murmur does not wait for the callback to - * complete before continuing processing. - * Note that callbacks are removed when a server is stopped, so you should have a callback for - * [MetaCallback::started] which calls [Server::addCallback]. - * @see MetaCallback - * @see Server::addCallback - */ - interface ServerCallback { - /** Called when a user connects to the server. - * @param state State of connected user. - */ - idempotent void userConnected(User state); - /** Called when a user disconnects from the server. The user has already been removed, so you can no longer use methods like [Server::getState] - * to retrieve the user's state. - * @param state State of disconnected user. - */ - idempotent void userDisconnected(User state); - /** Called when a user state changes. This is called if the user moves, is renamed, is muted, deafened etc. - * @param state New state of user. - */ - idempotent void userStateChanged(User state); - /** Called when a new channel is created. - * @param state State of new channel. - */ - idempotent void channelCreated(Channel state); - /** Called when a channel is removed. The channel has already been removed, you can no longer use methods like [Server::getChannelState] - * @param state State of removed channel. - */ - idempotent void channelRemoved(Channel state); - /** Called when a new channel state changes. This is called if the channel is moved, renamed or if new links are added. - * @param state New state of channel. - */ - idempotent void channelStateChanged(Channel state); - }; - - /** Context for actions in the Server menu. */ - const int ContextServer = 0x01; - /** Context for actions in the Channel menu. */ - const int ContextChannel = 0x02; - /** Context for actions in the User menu. */ - const int ContextUser = 0x04; - - /** Callback interface for context actions. You need to supply one of these for [Server::addContext]. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that all callbacks are done asynchronously; murmur does not wait for the callback to - * complete before continuing processing. - */ - interface ServerContextCallback { - /** Called when a context action is performed. - * @param action Action to be performed. - * @param usr User which initiated the action. - * @param session If nonzero, session of target user. - * @param channelid If nonzero, session of target channel. - */ - idempotent void contextAction(string action, User usr, int session, int channelid); - }; - - /** Callback interface for server authentication. You need to supply one of these for [Server::setAuthenticator]. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that unlike [ServerCallback] and [ServerContextCallback], these methods are called - * synchronously. If the response lags, the entire murmur server will lag. - * Also note that, as the method calls are synchronous, making a call to [Server] or [Meta] will - * deadlock the server. - */ - interface ServerAuthenticator { - /** Called to authenticate a user. If you do not know the username in question, always return -2 from this - * method to fall through to normal database authentication. - * Note that if authentication succeeds, murmur will create a record of the user in it's database, reserving - * the username and id so it cannot be used for normal database authentication. - * The data in the certificate (name, email addresses etc), as well as the list of signing certificates, - * should only be trusted if certstrong is true. - * - * @param name Username to authenticate. - * @param pw Password to authenticate with. - * @param certificates List of der encoded certificates the user connected with. - * @param certhash Hash of user certificate, as used by murmur internally when matching. - * @param certstrong True if certificate was valid and signed by a trusted CA. - * @param newname Set this to change the username from the supplied one. - * @param groups List of groups on the root channel that the user will be added to for the duration of the connection. - * @return UserID of authenticated user, -1 for authentication failures and -2 for unknown user (fallthrough). - */ - idempotent int authenticate(string name, string pw, CertificateList certificates, string certhash, bool certstrong, out string newname, out GroupNameList groups); - - /** Fetch information about a user. This is used to retrieve information like email address, keyhash etc. If you - * want murmur to take care of this information itself, simply return false to fall through. - * @param id User id. - * @param key Key of information to be retrieved. - * @param info Information about user. This needs to include at least "name". - * @return true if information is present, false to fall through. - */ - idempotent bool getInfo(int id, out UserInfoMap info); - - /** Map a name to a user id. - * @param name Username to map. - * @return User id or -2 for unknown name. - */ - idempotent int nameToId(string name); - - /** Map a user to a User id. - * @param id User id to map. - * @return Name of user or empty string for unknown id. - */ - idempotent string idToName(int id); - - /** Map a user to a custom Texture. - * @param id User id to map. - * @return User texture or an empty texture for unknwon users or users without textures. - */ - idempotent Texture idToTexture(int id); - }; - - /** Callback interface for server authentication and registration. This allows you to support both authentication - * and account updating. - * You do not need to implement this if all you want is authentication, you only need this if other scripts - * connected to the same server calls e.g. [Server::setTexture]. - * Almost all of these methods support fall through, meaning murmur should continue the operation against its - * own database. - */ - interface ServerUpdatingAuthenticator extends ServerAuthenticator { - /** Register a new user. - * @param info Information about user to register. - * @return User id of new user, -1 for registration failure, or -2 to fall through. - */ - int registerUser(UserInfoMap info); - - /** Unregister a user. - * @param id Userid to unregister. - * @return 1 for successfull unregistration, 0 for unsuccessfull unregistration, -1 to fall through. - */ - int unregisterUser(int id); - - /** Get a list of registered users matching filter. - * @param filter Substring usernames must contain. If empty, return all registered users. - * @return List of matching registered users. - */ - idempotent NameMap getRegisteredUsers(string filter); - - /** Set additional information for user registration. - * @param id Userid of registered user. - * @param info Information to set about user. This should be merged with existing information. - * @return 1 for successfull update, 0 for unsuccessfull update, -1 to fall through. - */ - idempotent int setInfo(int id, UserInfoMap info); - - /** Set texture of user registration. - * @param id Userid of registered user. - * @param tex New texture. - * @return 1 for successfull update, 0 for unsuccessfull update, -1 to fall through. - */ - idempotent int setTexture(int id, Texture tex); - }; - - /** Per-server interface. This includes all methods for configuring and altering - * the state of a single virtual server. You can retrieve a pointer to this interface - * from one of the methods in [Meta]. - **/ - ["amd"] interface Server { - /** Shows if the server currently running (accepting users). - * - * @return Run-state of server. - */ - idempotent bool isRunning(); - - /** Start server. */ - void start() throws ServerBootedException, ServerFailureException; - - /** Stop server. */ - void stop() throws ServerBootedException; - - /** Delete server and all it's configuration. */ - void delete() throws ServerBootedException; - - /** Fetch the server id. - * - * @return Unique server id. - */ - idempotent int id(); - - /** Add a callback. The callback will receive notifications about changes to users and channels. - * - * @param cb Callback interface which will receive notifications. - * @see removeCallback - */ - void addCallback(ServerCallback *cb) throws ServerBootedException, InvalidCallbackException; - - /** Remove a callback. - * - * @param cb Callback interface to be removed. - * @see addCallback - */ - void removeCallback(ServerCallback *cb) throws ServerBootedException, InvalidCallbackException; - - /** Set external authenticator. If set, all authentications from clients are forwarded to this - * proxy. - * - * @param auth Authenticator object to perform subsequent authentications. - */ - void setAuthenticator(ServerAuthenticator *auth) throws ServerBootedException, InvalidCallbackException; - - /** Retrieve configuration item. - * @param key Configuration key. - * @return Configuration value. If this is empty, see [Meta::getDefaultConf] - */ - idempotent string getConf(string key); - - /** Retrieve all configuration items. - * @return All configured values. If a value isn't set here, the value from [Meta::getDefaultConf] is used. - */ - idempotent ConfigMap getAllConf(); - - /** Set a configuration item. - * @param key Configuration key. - * @param value Configuration value. - */ - idempotent void setConf(string key, string value); - - /** Set superuser password. This is just a convenience for using [updateRegistration] on user id 0. - * @param pw Password. - */ - idempotent void setSuperuserPassword(string pw); - - /** Fetch log entries. - * @param first Lowest numbered entry to fetch. 0 is the most recent item. - * @param last Last entry to fetch. - * @return List of log entries. - */ - idempotent LogList getLog(int first, int last); - - /** Fetch all users. This returns all currently connected users on the server. - * @return List of connected users. - * @see getState - */ - idempotent UserMap getUsers() throws ServerBootedException; - - /** Fetch all channels. This returns all defined channels on the server. The root channel is always channel 0. - * @return List of defined channels. - * @see getChannelState - */ - idempotent ChannelMap getChannels() throws ServerBootedException; - - /** Fetch certificate of user. This returns the complete certificate chain of a user. - * @param session Connection ID of user. See [User::session]. - * @return Certificate list of user. - */ - idempotent CertificateList getCertificateList(int session) throws ServerBootedException, InvalidSessionException; - - /** Fetch all channels and connected users as a tree. This retrieves an easy-to-use representation of the server - * as a tree. This is primarily used for viewing the state of the server on a webpage. - * @return Recursive tree of all channels and connected users. - */ - idempotent Tree getTree() throws ServerBootedException; - - /** Fetch all current IP bans on the server. - * @return List of bans. - */ - idempotent BanList getBans() throws ServerBootedException; - - /** Set all current IP bans on the server. This will replace any bans already present, so if you want to add a ban, be sure to call [getBans] and then - * append to the returned list before calling this method. - * @param bans List of bans. - */ - idempotent void setBans(BanList bans) throws ServerBootedException; - - /** Kick a user. The user is not banned, and is free to rejoin the server. - * @param session Connection ID of user. See [User::session]. - * @param reason Text message to show when user is kicked. - */ - void kickUser(int session, string reason) throws ServerBootedException, InvalidSessionException; - - /** Get state of a single connected user. - * @param session Connection ID of user. See [User::session]. - * @return State of connected user. - * @see setState - * @see getUsers - */ - idempotent User getState(int session) throws ServerBootedException, InvalidSessionException; - - /** Set user state. You can use this to move, mute and deafen users. - * @param state User state to set. - * @see getState - */ - idempotent void setState(User state) throws ServerBootedException, InvalidSessionException, InvalidChannelException; - - /** Send text message to a single user. - * @param session Connection ID of user. See [User::session]. - * @param text Message to send. - * @see sendMessageChannel - */ - void sendMessage(int session, string text) throws ServerBootedException, InvalidSessionException; - - /** Check if user is permitted to perform action. - * @param session Connection ID of user. See [User::session]. - * @param channelid ID of Channel. See [Channel::id]. - * @param perm Permission bits to check. - * @return true if any of the permissions in perm were set for the user. - */ - bool hasPermission(int session, int channelid, int perm) throws ServerBootedException, InvalidSessionException, InvalidChannelException; - - /** Add a context callback. This is done per user, and will add a context menu action for the user. - * - * @param session Session of user which should receive context entry. - * @param action Action string, a unique name to associate with the action. - * @param text Name of action shown to user. - * @param cb Callback interface which will receive notifications. - * @param ctx Context this should be used in. Needs to be one or a combination of [ContextServer], [ContextChannel] and [ContextUser]. - * @see removeContextCallback - */ - void addContextCallback(int session, string action, string text, ServerContextCallback *cb, int ctx) throws ServerBootedException, InvalidCallbackException; - - /** Remove a callback. - * - * @param cb Callback interface to be removed. This callback will be removed from all from all users. - * @see addContextCallback - */ - void removeContextCallback(ServerContextCallback *cb) throws ServerBootedException, InvalidCallbackException; - - /** Get state of single channel. - * @param channelid ID of Channel. See [Channel::id]. - * @return State of channel. - * @see setChannelState - * @see getChannels - */ - idempotent Channel getChannelState(int channelid) throws ServerBootedException, InvalidChannelException; - - /** Set state of a single channel. You can use this to move or relink channels. - * @param state Channel state to set. - * @see getChannelState - */ - idempotent void setChannelState(Channel state) throws ServerBootedException, InvalidChannelException; - - /** Remove a channel and all its subchannels. - * @param channelid ID of Channel. See [Channel::id]. - */ - void removeChannel(int channelid) throws ServerBootedException, InvalidChannelException; - - /** Add a new channel. - * @param name Name of new channel. - * @param parent Channel ID of parent channel. See [Channel::id]. - * @return ID of newly created channel. - */ - int addChannel(string name, int parent) throws ServerBootedException, InvalidChannelException; - - /** Send text message to channel or a tree of channels. - * @param channelid Channel ID of channel to send to. See [Channel::id]. - * @param tree If true, the message will be sent to the channel and all its subchannels. - * @param text Message to send. - * @see sendMessage - */ - void sendMessageChannel(int channelid, bool tree, string text) throws ServerBootedException, InvalidChannelException; - - /** Retrieve ACLs and Groups on a channel. - * @param channelid Channel ID of channel to fetch from. See [Channel::id]. - * @param acls List of ACLs on the channel. This will include inherited ACLs. - * @param groups List of groups on the channel. This will include inherited groups. - * @param inherit Does this channel inherit ACLs from the parent channel? - */ - idempotent void getACL(int channelid, out ACLList acls, out GroupList groups, out bool inherit) throws ServerBootedException, InvalidChannelException; - - /** Set ACLs and Groups on a channel. Note that this will replace all existing ACLs and groups on the channel. - * @param channelid Channel ID of channel to fetch from. See [Channel::id]. - * @param acls List of ACLs on the channel. - * @param groups List of groups on the channel. - * @param inherit Should this channel inherit ACLs from the parent channel? - */ - idempotent void setACL(int channelid, ACLList acls, GroupList groups, bool inherit) throws ServerBootedException, InvalidChannelException; - - /** Temporarily add a user to a group on a channel. This state is not saved, and is intended for temporary memberships. - * @param channelid Channel ID of channel to add to. See [Channel::id]. - * @param session Connection ID of user. See [User::session]. - * @param group Group name to add to. - */ - idempotent void addUserToGroup(int channelid, int session, string group) throws ServerBootedException, InvalidChannelException, InvalidSessionException; - - /** Remove a user from a temporary group membership on a channel. This state is not saved, and is intended for temporary memberships. - * @param channelid Channel ID of channel to add to. See [Channel::id]. - * @param session Connection ID of user. See [User::session]. - * @param group Group name to remove from. - */ - idempotent void removeUserFromGroup(int channelid, int session, string group) throws ServerBootedException, InvalidChannelException, InvalidSessionException; - - /** Redirect whisper targets for user. If set, whenever a user tries to whisper to group "source", the whisper will be redirected to group "target". - * To remove a redirect pass an empty target string. This is intended for context groups. - * @param session Connection ID of user. See [User::session]. - * @param source Group name to redirect from. - * @param target Group name to redirect to. - */ - idempotent void redirectWhisperGroup(int session, string source, string target) throws ServerBootedException, InvalidSessionException; - - /** Map a list of [User::userid] to a matching name. - * @param List of ids. - * @return Matching list of names, with an empty string representing invalid or unknown ids. - */ - idempotent NameMap getUserNames(IdList ids) throws ServerBootedException; - - /** Map a list of user names to a matching id. - * @param List of names. - * @reuturn List of matching ids, with -1 representing invalid or unknown user names. - */ - idempotent IdMap getUserIds(NameList names) throws ServerBootedException; - - /** Register a new user. - * @param info Information about new user. Must include at least "name". - * @return The ID of the user. See [RegisteredUser::userid]. - */ - int registerUser(UserInfoMap info) throws ServerBootedException, InvalidUserException; - - /** Remove a user registration. - * @param userid ID of registered user. See [RegisteredUser::userid]. - */ - void unregisterUser(int userid) throws ServerBootedException, InvalidUserException; - - /** Update the registration for a user. You can use this to set the email or password of a user, - * and can also use it to change the user's name. - * @param registration Updated registration record. - */ - idempotent void updateRegistration(int userid, UserInfoMap info) throws ServerBootedException, InvalidUserException; - - /** Fetch registration for a single user. - * @param userid ID of registered user. See [RegisteredUser::userid]. - * @return Registration record. - */ - idempotent UserInfoMap getRegistration(int userid) throws ServerBootedException, InvalidUserException; - - /** Fetch a group of registered users. - * @param filter Substring of user name. If blank, will retrieve all registered users. - * @return List of registration records. - */ - idempotent NameMap getRegisteredUsers(string filter) throws ServerBootedException; - - /** Verify the password of a user. You can use this to verify a user's credentials. - * @param name User name. See [RegisteredUser::name]. - * @param pw User password. - * @return User ID of registered user (See [RegisteredUser::userid]), -1 for failed authentication or -2 for unknown usernames. - */ - idempotent int verifyPassword(string name, string pw) throws ServerBootedException; - - /** Fetch user texture. Textures are stored as zlib compress()ed 600x60 32-bit BGRA data. - * @param userid ID of registered user. See [RegisteredUser::userid]. - * @return Custom texture associated with user or an empty texture. - */ - idempotent Texture getTexture(int userid) throws ServerBootedException, InvalidUserException; - - /** Set user texture. The texture is a 600x60 32-bit BGRA raw texture, optionally zlib compress()ed. - * @param userid ID of registered user. See [RegisteredUser::userid]. - * @param tex Texture to set for the user, or an empty texture to remove the existing texture. - */ - idempotent void setTexture(int userid, Texture tex) throws ServerBootedException, InvalidUserException, InvalidTextureException; - - /** Get virtual server uptime. - * @return Uptime of the virtual server in seconds - */ - idempotent int getUptime() throws ServerBootedException; - }; - - /** Callback interface for Meta. You can supply an implementation of this to recieve notifications - * when servers are stopped or started. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that all callbacks are done asynchronously; murmur does not wait for the callback to - * complete before continuing processing. - * @see ServerCallback - * @see Meta::addCallback - */ - interface MetaCallback { - /** Called when a server is started. The server is up and running when this event is sent, so all methods that - * need a running server will work. - * @param srv Interface for started server. - */ - void started(Server *srv); - - /** Called when a server is stopped. The server is already stopped when this event is sent, so no methods that - * need a running server will work. - * @param srv Interface for started server. - */ - void stopped(Server *srv); - }; - - sequence ServerList; - - /** This is the meta interface. It is primarily used for retrieving the [Server] interfaces for each individual server. - **/ - ["amd"] interface Meta { - /** Fetch interface to specific server. - * @param id Server ID. See [Server::getId]. - * @return Interface for specified server, or a null proxy if id is invalid. - */ - idempotent Server *getServer(int id); - - /** Create a new server. Call [Server::getId] on the returned interface to find it's ID. - * @return Interface for new server. - */ - Server *newServer(); - - /** Fetch list of all currently running servers. - * @return List of interfaces for running servers. - */ - idempotent ServerList getBootedServers(); - - /** Fetch list of all defined servers. - * @return List of interfaces for all servers. - */ - idempotent ServerList getAllServers(); - - /** Fetch default configuraion. This returns the configuration items that were set in the configuration file, or - * the built-in default. The individual servers will use these values unless they have been overridden in the - * server specific configuration. The only special case is the port, which defaults to the value defined here + - * the servers ID - 1 (so that virtual server #1 uses the defined port, server #2 uses port+1 etc). - * @return Default configuration of the servers. - */ - idempotent ConfigMap getDefaultConf(); - - /** Fetch version of Murmur. - * @param major Major version. - * @param minor Minor version. - * @param patch Patchlevel. - * @param text Textual representation of version. Note that this may not match the [major], [minor] and [patch] levels, as it - * may be simply the compile date or the SVN revision. This is usually the text you want to present to users. - */ - idempotent void getVersion(out int major, out int minor, out int patch, out string text); - - /** Add a callback. The callback will receive notifications when servers are started or stopped. - * - * @param cb Callback interface which will receive notifications. - */ - void addCallback(MetaCallback *cb) throws InvalidCallbackException; - - /** Remove a callback. - * - * @param cb Callback interface to be removed. - */ - void removeCallback(MetaCallback *cb) throws InvalidCallbackException; - - /** Get murmur uptime. - * @return Uptime of murmur in seconds - */ - idempotent int getUptime(); - }; -}; diff --git a/libs/Murmur123_fixed.ice b/libs/Murmur123_fixed.ice deleted file mode 100644 index 051b7fd..0000000 --- a/libs/Murmur123_fixed.ice +++ /dev/null @@ -1,805 +0,0 @@ -/** - * - * Information and control of the murmur server. Each server has - * one {@link Meta} interface that controls global information, and - * each virtual server has a {@link Server} interface. - * - **/ - -/*FIX sadly this file is GPL and can't be copied into this LGPL release -#include */ - -module Murmur -{ - - /** A network address in IPv6 format. - **/ - ["python:seq:tuple"] sequence NetAddress; - - /** A connected user. - **/ - struct User { - /** Session ID. This identifies the connection to the server. */ - int session; - /** User ID. -1 if the user is anonymous. */ - int userid; - /** Is user muted by the server? */ - bool mute; - /** Is user deafened by the server? If true, this implies mute. */ - bool deaf; - /** Is the user suppressed by the server? This means the user is not muted, but does not have speech privileges in the current channel. */ - bool suppress; - /** Is the user a priority speaker? */ - bool prioritySpeaker; - /** Is the user self-muted? */ - bool selfMute; - /** Is the user self-deafened? If true, this implies mute. */ - bool selfDeaf; - /** Is the User recording? (This flag is read-only and cannot be changed using setState().) **/ - bool recording; - /** Channel ID the user is in. Matches {@link Channel.id}. */ - int channel; - /** The name of the user. */ - string name; - /** Seconds user has been online. */ - int onlinesecs; - /** Average transmission rate in bytes per second over the last few seconds. */ - int bytespersec; - /** Client version. Major version in upper 16 bits, followed by 8 bits of minor version and 8 bits of patchlevel. Version 1.2.3 = 0x010203. */ - int version; - /** Client release. For official releases, this equals the version. For snapshots and git compiles, this will be something else. */ - string release; - /** Client OS. */ - string os; - /** Client OS Version. */ - string osversion; - /** Plugin Identity. This will be the user's unique ID inside the current game. */ - string identity; - /** Plugin context. This is a binary blob identifying the game and team the user is on. */ - string context; - /** User comment. Shown as tooltip for this user. */ - string comment; - /** Client address. */ - NetAddress address; - /** TCP only. True until UDP connectivity is established. */ - bool tcponly; - /** Idle time. This is how many seconds it is since the user last spoke. Other activity is not counted. */ - int idlesecs; - }; - - sequence IntList; - - /** A channel. - **/ - struct Channel { - /** Channel ID. This is unique per channel, and the root channel is always id 0. */ - int id; - /** Name of the channel. There can not be two channels with the same parent that has the same name. */ - string name; - /** ID of parent channel, or -1 if this is the root channel. */ - int parent; - /** List of id of linked channels. */ - IntList links; - /** Description of channel. Shown as tooltip for this channel. */ - string description; - /** Channel is temporary, and will be removed when the last user leaves it. */ - bool temporary; - /** Position of the channel which is used in Client for sorting. */ - int position; - }; - - /** A group. Groups are defined per channel, and can inherit members from parent channels. - **/ - struct Group { - /** Group name */ - string name; - /** Is this group inherited from a parent channel? Read-only. */ - bool inherited; - /** Does this group inherit members from parent channels? */ - bool inherit; - /** Can subchannels inherit members from this group? */ - bool inheritable; - /** List of users to add to the group. */ - IntList add; - /** List of inherited users to remove from the group. */ - IntList remove; - /** Current members of the group, including inherited members. Read-only. */ - IntList members; - }; - - /** Write access to channel control. Implies all other permissions (except Speak). */ - const int PermissionWrite = 0x01; - /** Traverse channel. Without this, a client cannot reach subchannels, no matter which privileges he has there. */ - const int PermissionTraverse = 0x02; - /** Enter channel. */ - const int PermissionEnter = 0x04; - /** Speak in channel. */ - const int PermissionSpeak = 0x08; - /** Whisper to channel. This is different from Speak, so you can set up different permissions. */ - const int PermissionWhisper = 0x100; - /** Mute and deafen other users in this channel. */ - const int PermissionMuteDeafen = 0x10; - /** Move users from channel. You need this permission in both the source and destination channel to move another user. */ - const int PermissionMove = 0x20; - /** Make new channel as a subchannel of this channel. */ - const int PermissionMakeChannel = 0x40; - /** Make new temporary channel as a subchannel of this channel. */ - const int PermissionMakeTempChannel = 0x400; - /** Link this channel. You need this permission in both the source and destination channel to link channels, or in either channel to unlink them. */ - const int PermissionLinkChannel = 0x80; - /** Send text message to channel. */ - const int PermissionTextMessage = 0x200; - /** Kick user from server. Only valid on root channel. */ - const int PermissionKick = 0x10000; - /** Ban user from server. Only valid on root channel. */ - const int PermissionBan = 0x20000; - /** Register and unregister users. Only valid on root channel. */ - const int PermissionRegister = 0x40000; - /** Register and unregister users. Only valid on root channel. */ - const int PermissionRegisterSelf = 0x80000; - - - /** Access Control List for a channel. ACLs are defined per channel, and can be inherited from parent channels. - **/ - struct ACL { - /** Does the ACL apply to this channel? */ - bool applyHere; - /** Does the ACL apply to subchannels? */ - bool applySubs; - /** Is this ACL inherited from a parent channel? Read-only. */ - bool inherited; - /** ID of user this ACL applies to. -1 if using a group name. */ - int userid; - /** Group this ACL applies to. Blank if using userid. */ - string group; - /** Binary mask of privileges to allow. */ - int allow; - /** Binary mask of privileges to deny. */ - int deny; - }; - - /** A single ip mask for a ban. - **/ - struct Ban { - /** Address to ban. */ - NetAddress address; - /** Number of bits in ban to apply. */ - int bits; - /** Username associated with ban. */ - string name; - /** Hash of banned user. */ - string hash; - /** Reason for ban. */ - string reason; - /** Date ban was applied in unix time format. */ - int start; - /** Duration of ban. */ - int duration; - }; - - /** A entry in the log. - **/ - struct LogEntry { - /** Timestamp in UNIX time_t */ - int timestamp; - /** The log message. */ - string txt; - }; - - class Tree; - sequence TreeList; - - enum ChannelInfo { ChannelDescription, ChannelPosition }; - enum UserInfo { UserName, UserEmail, UserComment, UserHash, UserPassword, UserLastActive }; - - dictionary UserMap; - dictionary ChannelMap; - sequence ChannelList; - sequence UserList; - sequence GroupList; - sequence ACLList; - sequence LogList; - sequence BanList; - sequence IdList; - sequence NameList; - dictionary NameMap; - dictionary IdMap; - sequence Texture; - dictionary ConfigMap; - sequence GroupNameList; - sequence CertificateDer; - sequence CertificateList; - - /** User information map. - * Older versions of ice-php can't handle enums as keys. If you are using one of these, replace 'UserInfo' with 'byte'. - */ - dictionary UserInfoMap; - /*FIX see comment above - dictionary UserInfoMap;*/ - - /** User and subchannel state. Read-only. - **/ - class Tree { - /** Channel definition of current channel. */ - Channel c; - /** List of subchannels. */ - TreeList children; - /** Users in this channel. */ - UserList users; - }; - - exception MurmurException {}; - /** This is thrown when you specify an invalid session. This may happen if the user has disconnected since your last call to {@link Server.getUsers}. See {@link User.session} */ - exception InvalidSessionException extends MurmurException {}; - /** This is thrown when you specify an invalid channel id. This may happen if the channel was removed by another provess. It can also be thrown if you try to add an invalid channel. */ - exception InvalidChannelException extends MurmurException {}; - /** This is thrown when you try to do an operation on a server that does not exist. This may happen if someone has removed the server. */ - exception InvalidServerException extends MurmurException {}; - /** This happens if you try to fetch user or channel state on a stopped server, if you try to stop an already stopped server or start an already started server. */ - exception ServerBootedException extends MurmurException {}; - /** This is thrown if {@link Server.start} fails, and should generally be the cause for some concern. */ - exception ServerFailureException extends MurmurException {}; - /** This is thrown when you specify an invalid userid. */ - exception InvalidUserException extends MurmurException {}; - /** This is thrown when you try to set an invalid texture. */ - exception InvalidTextureException extends MurmurException {}; - /** This is thrown when you supply an invalid callback. */ - exception InvalidCallbackException extends MurmurException {}; - /** This is thrown when you supply the wrong secret in the calling context. */ - exception InvalidSecretException extends MurmurException {}; - - /** Callback interface for servers. You can supply an implementation of this to receive notification - * messages from the server. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that all callbacks are done asynchronously; murmur does not wait for the callback to - * complete before continuing processing. - * Note that callbacks are removed when a server is stopped, so you should have a callback for - * {@link MetaCallback.started} which calls {@link Server.addCallback}. - * @see MetaCallback - * @see Server.addCallback - */ - interface ServerCallback { - /** Called when a user connects to the server. - * @param state State of connected user. - */ - idempotent void userConnected(User state); - /** Called when a user disconnects from the server. The user has already been removed, so you can no longer use methods like {@link Server.getState} - * to retrieve the user's state. - * @param state State of disconnected user. - */ - idempotent void userDisconnected(User state); - /** Called when a user state changes. This is called if the user moves, is renamed, is muted, deafened etc. - * @param state New state of user. - */ - idempotent void userStateChanged(User state); - /** Called when a new channel is created. - * @param state State of new channel. - */ - idempotent void channelCreated(Channel state); - /** Called when a channel is removed. The channel has already been removed, you can no longer use methods like {@link Server.getChannelState} - * @param state State of removed channel. - */ - idempotent void channelRemoved(Channel state); - /** Called when a new channel state changes. This is called if the channel is moved, renamed or if new links are added. - * @param state New state of channel. - */ - idempotent void channelStateChanged(Channel state); - }; - - /** Context for actions in the Server menu. */ - const int ContextServer = 0x01; - /** Context for actions in the Channel menu. */ - const int ContextChannel = 0x02; - /** Context for actions in the User menu. */ - const int ContextUser = 0x04; - - /** Callback interface for context actions. You need to supply one of these for {@link Server.addContext}. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that all callbacks are done asynchronously; murmur does not wait for the callback to - * complete before continuing processing. - */ - interface ServerContextCallback { - /** Called when a context action is performed. - * @param action Action to be performed. - * @param usr User which initiated the action. - * @param session If nonzero, session of target user. - * @param channelid If nonzero, session of target channel. - */ - idempotent void contextAction(string action, User usr, int session, int channelid); - }; - - /** Callback interface for server authentication. You need to supply one of these for {@link Server.setAuthenticator}. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that unlike {@link ServerCallback} and {@link ServerContextCallback}, these methods are called - * synchronously. If the response lags, the entire murmur server will lag. - * Also note that, as the method calls are synchronous, making a call to {@link Server} or {@link Meta} will - * deadlock the server. - */ - interface ServerAuthenticator { - /** Called to authenticate a user. If you do not know the username in question, always return -2 from this - * method to fall through to normal database authentication. - * Note that if authentication succeeds, murmur will create a record of the user in it's database, reserving - * the username and id so it cannot be used for normal database authentication. - * The data in the certificate (name, email addresses etc), as well as the list of signing certificates, - * should only be trusted if certstrong is true. - * - * @param name Username to authenticate. - * @param pw Password to authenticate with. - * @param certificates List of der encoded certificates the user connected with. - * @param certhash Hash of user certificate, as used by murmur internally when matching. - * @param certstrong True if certificate was valid and signed by a trusted CA. - * @param newname Set this to change the username from the supplied one. - * @param groups List of groups on the root channel that the user will be added to for the duration of the connection. - * @return UserID of authenticated user, -1 for authentication failures and -2 for unknown user (fallthrough). - */ - idempotent int authenticate(string name, string pw, CertificateList certificates, string certhash, bool certstrong, out string newname, out GroupNameList groups); - - /** Fetch information about a user. This is used to retrieve information like email address, keyhash etc. If you - * want murmur to take care of this information itself, simply return false to fall through. - * @param id User id. - * @param info Information about user. This needs to include at least "name". - * @return true if information is present, false to fall through. - */ - idempotent bool getInfo(int id, out UserInfoMap info); - - /** Map a name to a user id. - * @param name Username to map. - * @return User id or -2 for unknown name. - */ - idempotent int nameToId(string name); - - /** Map a user id to a username. - * @param id User id to map. - * @return Name of user or empty string for unknown id. - */ - idempotent string idToName(int id); - - /** Map a user to a custom Texture. - * @param id User id to map. - * @return User texture or an empty texture for unknwon users or users without textures. - */ - idempotent Texture idToTexture(int id); - }; - - /** Callback interface for server authentication and registration. This allows you to support both authentication - * and account updating. - * You do not need to implement this if all you want is authentication, you only need this if other scripts - * connected to the same server calls e.g. {@link Server.setTexture}. - * Almost all of these methods support fall through, meaning murmur should continue the operation against its - * own database. - */ - interface ServerUpdatingAuthenticator extends ServerAuthenticator { - /** Register a new user. - * @param info Information about user to register. - * @return User id of new user, -1 for registration failure, or -2 to fall through. - */ - int registerUser(UserInfoMap info); - - /** Unregister a user. - * @param id Userid to unregister. - * @return 1 for successfull unregistration, 0 for unsuccessfull unregistration, -1 to fall through. - */ - int unregisterUser(int id); - - /** Get a list of registered users matching filter. - * @param filter Substring usernames must contain. If empty, return all registered users. - * @return List of matching registered users. - */ - idempotent NameMap getRegisteredUsers(string filter); - - /** Set additional information for user registration. - * @param id Userid of registered user. - * @param info Information to set about user. This should be merged with existing information. - * @return 1 for successfull update, 0 for unsuccessfull update, -1 to fall through. - */ - idempotent int setInfo(int id, UserInfoMap info); - - /** Set texture (now called avatar) of user registration. - * @param id registrationId of registered user. - * @param tex New texture. - * @return 1 for successfull update, 0 for unsuccessfull update, -1 to fall through. - */ - idempotent int setTexture(int id, Texture tex); - }; - - /** Per-server interface. This includes all methods for configuring and altering - * the state of a single virtual server. You can retrieve a pointer to this interface - * from one of the methods in {@link Meta}. - **/ - ["amd"] interface Server { - /** Shows if the server currently running (accepting users). - * - * @return Run-state of server. - */ - idempotent bool isRunning() throws InvalidSecretException; - - /** Start server. */ - void start() throws ServerBootedException, ServerFailureException, InvalidSecretException; - - /** Stop server. */ - void stop() throws ServerBootedException, InvalidSecretException; - - /** Delete server and all it's configuration. */ - void delete() throws ServerBootedException, InvalidSecretException; - - /** Fetch the server id. - * - * @return Unique server id. - */ - idempotent int id() throws InvalidSecretException; - - /** Add a callback. The callback will receive notifications about changes to users and channels. - * - * @param cb Callback interface which will receive notifications. - * @see removeCallback - */ - void addCallback(ServerCallback *cb) throws ServerBootedException, InvalidCallbackException, InvalidSecretException; - - /** Remove a callback. - * - * @param cb Callback interface to be removed. - * @see addCallback - */ - void removeCallback(ServerCallback *cb) throws ServerBootedException, InvalidCallbackException, InvalidSecretException; - - /** Set external authenticator. If set, all authentications from clients are forwarded to this - * proxy. - * - * @param auth Authenticator object to perform subsequent authentications. - */ - void setAuthenticator(ServerAuthenticator *auth) throws ServerBootedException, InvalidCallbackException, InvalidSecretException; - - /** Retrieve configuration item. - * @param key Configuration key. - * @return Configuration value. If this is empty, see {@link Meta.getDefaultConf} - */ - idempotent string getConf(string key) throws InvalidSecretException; - - /** Retrieve all configuration items. - * @return All configured values. If a value isn't set here, the value from {@link Meta.getDefaultConf} is used. - */ - idempotent ConfigMap getAllConf() throws InvalidSecretException; - - /** Set a configuration item. - * @param key Configuration key. - * @param value Configuration value. - */ - idempotent void setConf(string key, string value) throws InvalidSecretException; - - /** Set superuser password. This is just a convenience for using {@link updateRegistration} on user id 0. - * @param pw Password. - */ - idempotent void setSuperuserPassword(string pw) throws InvalidSecretException; - - /** Fetch log entries. - * @param first Lowest numbered entry to fetch. 0 is the most recent item. - * @param last Last entry to fetch. - * @return List of log entries. - */ - idempotent LogList getLog(int first, int last) throws InvalidSecretException; - - /** Fetch length of log - * @return Number of entries in log - */ - idempotent int getLogLen() throws InvalidSecretException; - - /** Fetch all users. This returns all currently connected users on the server. - * @return List of connected users. - * @see getState - */ - idempotent UserMap getUsers() throws ServerBootedException, InvalidSecretException; - - /** Fetch all channels. This returns all defined channels on the server. The root channel is always channel 0. - * @return List of defined channels. - * @see getChannelState - */ - idempotent ChannelMap getChannels() throws ServerBootedException, InvalidSecretException; - - /** Fetch certificate of user. This returns the complete certificate chain of a user. - * @param session Connection ID of user. See {@link User.session}. - * @return Certificate list of user. - */ - idempotent CertificateList getCertificateList(int session) throws ServerBootedException, InvalidSessionException, InvalidSecretException; - - /** Fetch all channels and connected users as a tree. This retrieves an easy-to-use representation of the server - * as a tree. This is primarily used for viewing the state of the server on a webpage. - * @return Recursive tree of all channels and connected users. - */ - idempotent Tree getTree() throws ServerBootedException, InvalidSecretException; - - /** Fetch all current IP bans on the server. - * @return List of bans. - */ - idempotent BanList getBans() throws ServerBootedException, InvalidSecretException; - - /** Set all current IP bans on the server. This will replace any bans already present, so if you want to add a ban, be sure to call {@link getBans} and then - * append to the returned list before calling this method. - * @param bans List of bans. - */ - idempotent void setBans(BanList bans) throws ServerBootedException, InvalidSecretException; - - /** Kick a user. The user is not banned, and is free to rejoin the server. - * @param session Connection ID of user. See {@link User.session}. - * @param reason Text message to show when user is kicked. - */ - void kickUser(int session, string reason) throws ServerBootedException, InvalidSessionException, InvalidSecretException; - - /** Get state of a single connected user. - * @param session Connection ID of user. See {@link User.session}. - * @return State of connected user. - * @see setState - * @see getUsers - */ - idempotent User getState(int session) throws ServerBootedException, InvalidSessionException, InvalidSecretException; - - /** Set user state. You can use this to move, mute and deafen users. - * @param state User state to set. - * @see getState - */ - idempotent void setState(User state) throws ServerBootedException, InvalidSessionException, InvalidChannelException, InvalidSecretException; - - /** Send text message to a single user. - * @param session Connection ID of user. See {@link User.session}. - * @param text Message to send. - * @see sendMessageChannel - */ - void sendMessage(int session, string text) throws ServerBootedException, InvalidSessionException, InvalidSecretException; - - /** Check if user is permitted to perform action. - * @param session Connection ID of user. See {@link User.session}. - * @param channelid ID of Channel. See {@link Channel.id}. - * @param perm Permission bits to check. - * @return true if any of the permissions in perm were set for the user. - */ - bool hasPermission(int session, int channelid, int perm) throws ServerBootedException, InvalidSessionException, InvalidChannelException, InvalidSecretException; - - /** Add a context callback. This is done per user, and will add a context menu action for the user. - * - * @param session Session of user which should receive context entry. - * @param action Action string, a unique name to associate with the action. - * @param text Name of action shown to user. - * @param cb Callback interface which will receive notifications. - * @param ctx Context this should be used in. Needs to be one or a combination of {@link ContextServer}, {@link ContextChannel} and {@link ContextUser}. - * @see removeContextCallback - */ - void addContextCallback(int session, string action, string text, ServerContextCallback *cb, int ctx) throws ServerBootedException, InvalidCallbackException, InvalidSecretException; - - /** Remove a callback. - * - * @param cb Callback interface to be removed. This callback will be removed from all from all users. - * @see addContextCallback - */ - void removeContextCallback(ServerContextCallback *cb) throws ServerBootedException, InvalidCallbackException, InvalidSecretException; - - /** Get state of single channel. - * @param channelid ID of Channel. See {@link Channel.id}. - * @return State of channel. - * @see setChannelState - * @see getChannels - */ - idempotent Channel getChannelState(int channelid) throws ServerBootedException, InvalidChannelException, InvalidSecretException; - - /** Set state of a single channel. You can use this to move or relink channels. - * @param state Channel state to set. - * @see getChannelState - */ - idempotent void setChannelState(Channel state) throws ServerBootedException, InvalidChannelException, InvalidSecretException; - - /** Remove a channel and all its subchannels. - * @param channelid ID of Channel. See {@link Channel.id}. - */ - void removeChannel(int channelid) throws ServerBootedException, InvalidChannelException, InvalidSecretException; - - /** Add a new channel. - * @param name Name of new channel. - * @param parent Channel ID of parent channel. See {@link Channel.id}. - * @return ID of newly created channel. - */ - int addChannel(string name, int parent) throws ServerBootedException, InvalidChannelException, InvalidSecretException; - - /** Send text message to channel or a tree of channels. - * @param channelid Channel ID of channel to send to. See {@link Channel.id}. - * @param tree If true, the message will be sent to the channel and all its subchannels. - * @param text Message to send. - * @see sendMessage - */ - void sendMessageChannel(int channelid, bool tree, string text) throws ServerBootedException, InvalidChannelException, InvalidSecretException; - - /** Retrieve ACLs and Groups on a channel. - * @param channelid Channel ID of channel to fetch from. See {@link Channel.id}. - * @param acls List of ACLs on the channel. This will include inherited ACLs. - * @param groups List of groups on the channel. This will include inherited groups. - * @param inherit Does this channel inherit ACLs from the parent channel? - */ - idempotent void getACL(int channelid, out ACLList acls, out GroupList groups, out bool inherit) throws ServerBootedException, InvalidChannelException, InvalidSecretException; - - /** Set ACLs and Groups on a channel. Note that this will replace all existing ACLs and groups on the channel. - * @param channelid Channel ID of channel to fetch from. See {@link Channel.id}. - * @param acls List of ACLs on the channel. - * @param groups List of groups on the channel. - * @param inherit Should this channel inherit ACLs from the parent channel? - */ - idempotent void setACL(int channelid, ACLList acls, GroupList groups, bool inherit) throws ServerBootedException, InvalidChannelException, InvalidSecretException; - - /** Temporarily add a user to a group on a channel. This state is not saved, and is intended for temporary memberships. - * @param channelid Channel ID of channel to add to. See {@link Channel.id}. - * @param session Connection ID of user. See {@link User.session}. - * @param group Group name to add to. - */ - idempotent void addUserToGroup(int channelid, int session, string group) throws ServerBootedException, InvalidChannelException, InvalidSessionException, InvalidSecretException; - - /** Remove a user from a temporary group membership on a channel. This state is not saved, and is intended for temporary memberships. - * @param channelid Channel ID of channel to add to. See {@link Channel.id}. - * @param session Connection ID of user. See {@link User.session}. - * @param group Group name to remove from. - */ - idempotent void removeUserFromGroup(int channelid, int session, string group) throws ServerBootedException, InvalidChannelException, InvalidSessionException, InvalidSecretException; - - /** Redirect whisper targets for user. If set, whenever a user tries to whisper to group "source", the whisper will be redirected to group "target". - * To remove a redirect pass an empty target string. This is intended for context groups. - * @param session Connection ID of user. See {@link User.session}. - * @param source Group name to redirect from. - * @param target Group name to redirect to. - */ - idempotent void redirectWhisperGroup(int session, string source, string target) throws ServerBootedException, InvalidSessionException, InvalidSecretException; - - /** Map a list of {@link User.userid} to a matching name. - * @param List of ids. - * @return Matching list of names, with an empty string representing invalid or unknown ids. - */ - idempotent NameMap getUserNames(IdList ids) throws ServerBootedException, InvalidSecretException; - - /** Map a list of user names to a matching id. - * @param List of names. - * @reuturn List of matching ids, with -1 representing invalid or unknown user names. - */ - idempotent IdMap getUserIds(NameList names) throws ServerBootedException, InvalidSecretException; - - /** Register a new user. - * @param info Information about new user. Must include at least "name". - * @return The ID of the user. See {@link RegisteredUser.userid}. - */ - int registerUser(UserInfoMap info) throws ServerBootedException, InvalidUserException, InvalidSecretException; - - /** Remove a user registration. - * @param userid ID of registered user. See {@link RegisteredUser.userid}. - */ - void unregisterUser(int userid) throws ServerBootedException, InvalidUserException, InvalidSecretException; - - /** Update the registration for a user. You can use this to set the email or password of a user, - * and can also use it to change the user's name. - * @param registration Updated registration record. - */ - idempotent void updateRegistration(int userid, UserInfoMap info) throws ServerBootedException, InvalidUserException, InvalidSecretException; - - /** Fetch registration for a single user. - * @param userid ID of registered user. See {@link RegisteredUser.userid}. - * @return Registration record. - */ - idempotent UserInfoMap getRegistration(int userid) throws ServerBootedException, InvalidUserException, InvalidSecretException; - - /** Fetch a group of registered users. - * @param filter Substring of user name. If blank, will retrieve all registered users. - * @return List of registration records. - */ - idempotent NameMap getRegisteredUsers(string filter) throws ServerBootedException, InvalidSecretException; - - /** Verify the password of a user. You can use this to verify a user's credentials. - * @param name User name. See {@link RegisteredUser.name}. - * @param pw User password. - * @return User ID of registered user (See {@link RegisteredUser.userid}), -1 for failed authentication or -2 for unknown usernames. - */ - idempotent int verifyPassword(string name, string pw) throws ServerBootedException, InvalidSecretException; - - /** Fetch user texture. Textures are stored as zlib compress()ed 600x60 32-bit BGRA data. - * @param userid ID of registered user. See {@link RegisteredUser.userid}. - * @return Custom texture associated with user or an empty texture. - */ - idempotent Texture getTexture(int userid) throws ServerBootedException, InvalidUserException, InvalidSecretException; - - /** Set a user texture (now called avatar). - * @param userid ID of registered user. See {@link RegisteredUser.userid}. - * @param tex Texture (as a Byte-Array) to set for the user, or an empty texture to remove the existing texture. - */ - idempotent void setTexture(int userid, Texture tex) throws ServerBootedException, InvalidUserException, InvalidTextureException, InvalidSecretException; - - /** Get virtual server uptime. - * @return Uptime of the virtual server in seconds - */ - idempotent int getUptime() throws ServerBootedException, InvalidSecretException; - }; - - /** Callback interface for Meta. You can supply an implementation of this to receive notifications - * when servers are stopped or started. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that all callbacks are done asynchronously; murmur does not wait for the callback to - * complete before continuing processing. - * @see ServerCallback - * @see Meta.addCallback - */ - interface MetaCallback { - /** Called when a server is started. The server is up and running when this event is sent, so all methods that - * need a running server will work. - * @param srv Interface for started server. - */ - void started(Server *srv); - - /** Called when a server is stopped. The server is already stopped when this event is sent, so no methods that - * need a running server will work. - * @param srv Interface for started server. - */ - void stopped(Server *srv); - }; - - sequence ServerList; - - /** This is the meta interface. It is primarily used for retrieving the {@link Server} interfaces for each individual server. - **/ - ["amd"] interface Meta { - /** Fetch interface to specific server. - * @param id Server ID. See {@link Server.getId}. - * @return Interface for specified server, or a null proxy if id is invalid. - */ - idempotent Server *getServer(int id) throws InvalidSecretException; - - /** Create a new server. Call {@link Server.getId} on the returned interface to find it's ID. - * @return Interface for new server. - */ - Server *newServer() throws InvalidSecretException; - - /** Fetch list of all currently running servers. - * @return List of interfaces for running servers. - */ - idempotent ServerList getBootedServers() throws InvalidSecretException; - - /** Fetch list of all defined servers. - * @return List of interfaces for all servers. - */ - idempotent ServerList getAllServers() throws InvalidSecretException; - - /** Fetch default configuraion. This returns the configuration items that were set in the configuration file, or - * the built-in default. The individual servers will use these values unless they have been overridden in the - * server specific configuration. The only special case is the port, which defaults to the value defined here + - * the servers ID - 1 (so that virtual server #1 uses the defined port, server #2 uses port+1 etc). - * @return Default configuration of the servers. - */ - idempotent ConfigMap getDefaultConf() throws InvalidSecretException; - - /** Fetch version of Murmur. - * @param major Major version. - * @param minor Minor version. - * @param patch Patchlevel. - * @param text Textual representation of version. Note that this may not match the {@link major}, {@link minor} and {@link patch} levels, as it - * may be simply the compile date or the SVN revision. This is usually the text you want to present to users. - */ - idempotent void getVersion(out int major, out int minor, out int patch, out string text); - - /** Add a callback. The callback will receive notifications when servers are started or stopped. - * - * @param cb Callback interface which will receive notifications. - */ - void addCallback(MetaCallback *cb) throws InvalidCallbackException, InvalidSecretException; - - /** Remove a callback. - * - * @param cb Callback interface to be removed. - */ - void removeCallback(MetaCallback *cb) throws InvalidCallbackException, InvalidSecretException; - - /** Get murmur uptime. - * @return Uptime of murmur in seconds - */ - idempotent int getUptime(); - - /** Get slice file. - * @return Contents of the slice file server compiled with. - */ - idempotent string getSlice(); - - /** Returns a checksum dict for the slice file. - * @return Checksum dict - */ - /*FIX to not require .ice include - idempotent Ice::SliceChecksumDict getSliceChecksums();*/ - }; -}; diff --git a/libs/Murmur124_fixed.ice b/libs/Murmur124_fixed.ice deleted file mode 100644 index e54edaa..0000000 --- a/libs/Murmur124_fixed.ice +++ /dev/null @@ -1,840 +0,0 @@ -/** - * - * Information and control of the murmur server. Each server has - * one {@link Meta} interface that controls global information, and - * each virtual server has a {@link Server} interface. - * - **/ - -/*FIX sadly this file is GPL and can't be copied into this LGPL release -#include */ - -module Murmur -{ - - /** A network address in IPv6 format. - **/ - ["python:seq:tuple"] sequence NetAddress; - - /** A connected user. - **/ - struct User { - /** Session ID. This identifies the connection to the server. */ - int session; - /** User ID. -1 if the user is anonymous. */ - int userid; - /** Is user muted by the server? */ - bool mute; - /** Is user deafened by the server? If true, this implies mute. */ - bool deaf; - /** Is the user suppressed by the server? This means the user is not muted, but does not have speech privileges in the current channel. */ - bool suppress; - /** Is the user a priority speaker? */ - bool prioritySpeaker; - /** Is the user self-muted? */ - bool selfMute; - /** Is the user self-deafened? If true, this implies mute. */ - bool selfDeaf; - /** Is the User recording? (This flag is read-only and cannot be changed using setState().) **/ - bool recording; - /** Channel ID the user is in. Matches {@link Channel.id}. */ - int channel; - /** The name of the user. */ - string name; - /** Seconds user has been online. */ - int onlinesecs; - /** Average transmission rate in bytes per second over the last few seconds. */ - int bytespersec; - /** Client version. Major version in upper 16 bits, followed by 8 bits of minor version and 8 bits of patchlevel. Version 1.2.3 = 0x010203. */ - int version; - /** Client release. For official releases, this equals the version. For snapshots and git compiles, this will be something else. */ - string release; - /** Client OS. */ - string os; - /** Client OS Version. */ - string osversion; - /** Plugin Identity. This will be the user's unique ID inside the current game. */ - string identity; - /** Plugin context. This is a binary blob identifying the game and team the user is on. */ - string context; - /** User comment. Shown as tooltip for this user. */ - string comment; - /** Client address. */ - NetAddress address; - /** TCP only. True until UDP connectivity is established. */ - bool tcponly; - /** Idle time. This is how many seconds it is since the user last spoke. Other activity is not counted. */ - int idlesecs; - /** UDP Ping Average. This is the average ping for the user via UDP over the duration of the connection. */ - float udpPing; - /** TCP Ping Average. This is the average ping for the user via TCP over the duration of the connection. */ - float tcpPing; - }; - - sequence IntList; - - /** A text message between users. - **/ - struct TextMessage { - /** Sessions (connected users) who were sent this message. */ - IntList sessions; - /** Channels who were sent this message. */ - IntList channels; - /** Trees of channels who were sent this message. */ - IntList trees; - /** The contents of the message. */ - string text; - }; - - /** A channel. - **/ - struct Channel { - /** Channel ID. This is unique per channel, and the root channel is always id 0. */ - int id; - /** Name of the channel. There can not be two channels with the same parent that has the same name. */ - string name; - /** ID of parent channel, or -1 if this is the root channel. */ - int parent; - /** List of id of linked channels. */ - IntList links; - /** Description of channel. Shown as tooltip for this channel. */ - string description; - /** Channel is temporary, and will be removed when the last user leaves it. */ - bool temporary; - /** Position of the channel which is used in Client for sorting. */ - int position; - }; - - /** A group. Groups are defined per channel, and can inherit members from parent channels. - **/ - struct Group { - /** Group name */ - string name; - /** Is this group inherited from a parent channel? Read-only. */ - bool inherited; - /** Does this group inherit members from parent channels? */ - bool inherit; - /** Can subchannels inherit members from this group? */ - bool inheritable; - /** List of users to add to the group. */ - IntList add; - /** List of inherited users to remove from the group. */ - IntList remove; - /** Current members of the group, including inherited members. Read-only. */ - IntList members; - }; - - /** Write access to channel control. Implies all other permissions (except Speak). */ - const int PermissionWrite = 0x01; - /** Traverse channel. Without this, a client cannot reach subchannels, no matter which privileges he has there. */ - const int PermissionTraverse = 0x02; - /** Enter channel. */ - const int PermissionEnter = 0x04; - /** Speak in channel. */ - const int PermissionSpeak = 0x08; - /** Whisper to channel. This is different from Speak, so you can set up different permissions. */ - const int PermissionWhisper = 0x100; - /** Mute and deafen other users in this channel. */ - const int PermissionMuteDeafen = 0x10; - /** Move users from channel. You need this permission in both the source and destination channel to move another user. */ - const int PermissionMove = 0x20; - /** Make new channel as a subchannel of this channel. */ - const int PermissionMakeChannel = 0x40; - /** Make new temporary channel as a subchannel of this channel. */ - const int PermissionMakeTempChannel = 0x400; - /** Link this channel. You need this permission in both the source and destination channel to link channels, or in either channel to unlink them. */ - const int PermissionLinkChannel = 0x80; - /** Send text message to channel. */ - const int PermissionTextMessage = 0x200; - /** Kick user from server. Only valid on root channel. */ - const int PermissionKick = 0x10000; - /** Ban user from server. Only valid on root channel. */ - const int PermissionBan = 0x20000; - /** Register and unregister users. Only valid on root channel. */ - const int PermissionRegister = 0x40000; - /** Register and unregister users. Only valid on root channel. */ - const int PermissionRegisterSelf = 0x80000; - - - /** Access Control List for a channel. ACLs are defined per channel, and can be inherited from parent channels. - **/ - struct ACL { - /** Does the ACL apply to this channel? */ - bool applyHere; - /** Does the ACL apply to subchannels? */ - bool applySubs; - /** Is this ACL inherited from a parent channel? Read-only. */ - bool inherited; - /** ID of user this ACL applies to. -1 if using a group name. */ - int userid; - /** Group this ACL applies to. Blank if using userid. */ - string group; - /** Binary mask of privileges to allow. */ - int allow; - /** Binary mask of privileges to deny. */ - int deny; - }; - - /** A single ip mask for a ban. - **/ - struct Ban { - /** Address to ban. */ - NetAddress address; - /** Number of bits in ban to apply. */ - int bits; - /** Username associated with ban. */ - string name; - /** Hash of banned user. */ - string hash; - /** Reason for ban. */ - string reason; - /** Date ban was applied in unix time format. */ - int start; - /** Duration of ban. */ - int duration; - }; - - /** A entry in the log. - **/ - struct LogEntry { - /** Timestamp in UNIX time_t */ - int timestamp; - /** The log message. */ - string txt; - }; - - class Tree; - sequence TreeList; - - enum ChannelInfo { ChannelDescription, ChannelPosition }; - enum UserInfo { UserName, UserEmail, UserComment, UserHash, UserPassword, UserLastActive }; - - dictionary UserMap; - dictionary ChannelMap; - sequence ChannelList; - sequence UserList; - sequence GroupList; - sequence ACLList; - sequence LogList; - sequence BanList; - sequence IdList; - sequence NameList; - dictionary NameMap; - dictionary IdMap; - sequence Texture; - dictionary ConfigMap; - sequence GroupNameList; - sequence CertificateDer; - sequence CertificateList; - - /** User information map. - * Older versions of ice-php can't handle enums as keys. If you are using one of these, replace 'UserInfo' with 'byte'. - */ - dictionary UserInfoMap; - /*FIX see comment above - - dictionary UserInfoMap;*/ - - /** User and subchannel state. Read-only. - **/ - class Tree { - /** Channel definition of current channel. */ - Channel c; - /** List of subchannels. */ - TreeList children; - /** Users in this channel. */ - UserList users; - }; - - exception MurmurException {}; - /** This is thrown when you specify an invalid session. This may happen if the user has disconnected since your last call to {@link Server.getUsers}. See {@link User.session} */ - exception InvalidSessionException extends MurmurException {}; - /** This is thrown when you specify an invalid channel id. This may happen if the channel was removed by another provess. It can also be thrown if you try to add an invalid channel. */ - exception InvalidChannelException extends MurmurException {}; - /** This is thrown when you try to do an operation on a server that does not exist. This may happen if someone has removed the server. */ - exception InvalidServerException extends MurmurException {}; - /** This happens if you try to fetch user or channel state on a stopped server, if you try to stop an already stopped server or start an already started server. */ - exception ServerBootedException extends MurmurException {}; - /** This is thrown if {@link Server.start} fails, and should generally be the cause for some concern. */ - exception ServerFailureException extends MurmurException {}; - /** This is thrown when you specify an invalid userid. */ - exception InvalidUserException extends MurmurException {}; - /** This is thrown when you try to set an invalid texture. */ - exception InvalidTextureException extends MurmurException {}; - /** This is thrown when you supply an invalid callback. */ - exception InvalidCallbackException extends MurmurException {}; - /** This is thrown when you supply the wrong secret in the calling context. */ - exception InvalidSecretException extends MurmurException {}; - /** This is thrown when the channel operation would excede the channel nesting limit */ - exception NestingLimitException extends MurmurException {}; - - /** Callback interface for servers. You can supply an implementation of this to receive notification - * messages from the server. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that all callbacks are done asynchronously; murmur does not wait for the callback to - * complete before continuing processing. - * Note that callbacks are removed when a server is stopped, so you should have a callback for - * {@link MetaCallback.started} which calls {@link Server.addCallback}. - * @see MetaCallback - * @see Server.addCallback - */ - interface ServerCallback { - /** Called when a user connects to the server. - * @param state State of connected user. - */ - idempotent void userConnected(User state); - /** Called when a user disconnects from the server. The user has already been removed, so you can no longer use methods like {@link Server.getState} - * to retrieve the user's state. - * @param state State of disconnected user. - */ - idempotent void userDisconnected(User state); - /** Called when a user state changes. This is called if the user moves, is renamed, is muted, deafened etc. - * @param state New state of user. - */ - idempotent void userStateChanged(User state); - /** Called when user writes a text message - * @param state the User sending the message - * @param message the TextMessage the user has sent - */ - idempotent void userTextMessage(User state, TextMessage message); - /** Called when a new channel is created. - * @param state State of new channel. - */ - idempotent void channelCreated(Channel state); - /** Called when a channel is removed. The channel has already been removed, you can no longer use methods like {@link Server.getChannelState} - * @param state State of removed channel. - */ - idempotent void channelRemoved(Channel state); - /** Called when a new channel state changes. This is called if the channel is moved, renamed or if new links are added. - * @param state New state of channel. - */ - idempotent void channelStateChanged(Channel state); - }; - - /** Context for actions in the Server menu. */ - const int ContextServer = 0x01; - /** Context for actions in the Channel menu. */ - const int ContextChannel = 0x02; - /** Context for actions in the User menu. */ - const int ContextUser = 0x04; - - /** Callback interface for context actions. You need to supply one of these for {@link Server.addContext}. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that all callbacks are done asynchronously; murmur does not wait for the callback to - * complete before continuing processing. - */ - interface ServerContextCallback { - /** Called when a context action is performed. - * @param action Action to be performed. - * @param usr User which initiated the action. - * @param session If nonzero, session of target user. - * @param channelid If nonzero, session of target channel. - */ - idempotent void contextAction(string action, User usr, int session, int channelid); - }; - - /** Callback interface for server authentication. You need to supply one of these for {@link Server.setAuthenticator}. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that unlike {@link ServerCallback} and {@link ServerContextCallback}, these methods are called - * synchronously. If the response lags, the entire murmur server will lag. - * Also note that, as the method calls are synchronous, making a call to {@link Server} or {@link Meta} will - * deadlock the server. - */ - interface ServerAuthenticator { - /** Called to authenticate a user. If you do not know the username in question, always return -2 from this - * method to fall through to normal database authentication. - * Note that if authentication succeeds, murmur will create a record of the user in it's database, reserving - * the username and id so it cannot be used for normal database authentication. - * The data in the certificate (name, email addresses etc), as well as the list of signing certificates, - * should only be trusted if certstrong is true. - * - * @param name Username to authenticate. - * @param pw Password to authenticate with. - * @param certificates List of der encoded certificates the user connected with. - * @param certhash Hash of user certificate, as used by murmur internally when matching. - * @param certstrong True if certificate was valid and signed by a trusted CA. - * @param newname Set this to change the username from the supplied one. - * @param groups List of groups on the root channel that the user will be added to for the duration of the connection. - * @return UserID of authenticated user, -1 for authentication failures and -2 for unknown user (fallthrough). - */ - idempotent int authenticate(string name, string pw, CertificateList certificates, string certhash, bool certstrong, out string newname, out GroupNameList groups); - - /** Fetch information about a user. This is used to retrieve information like email address, keyhash etc. If you - * want murmur to take care of this information itself, simply return false to fall through. - * @param id User id. - * @param info Information about user. This needs to include at least "name". - * @return true if information is present, false to fall through. - */ - idempotent bool getInfo(int id, out UserInfoMap info); - - /** Map a name to a user id. - * @param name Username to map. - * @return User id or -2 for unknown name. - */ - idempotent int nameToId(string name); - - /** Map a user id to a username. - * @param id User id to map. - * @return Name of user or empty string for unknown id. - */ - idempotent string idToName(int id); - - /** Map a user to a custom Texture. - * @param id User id to map. - * @return User texture or an empty texture for unknwon users or users without textures. - */ - idempotent Texture idToTexture(int id); - }; - - /** Callback interface for server authentication and registration. This allows you to support both authentication - * and account updating. - * You do not need to implement this if all you want is authentication, you only need this if other scripts - * connected to the same server calls e.g. {@link Server.setTexture}. - * Almost all of these methods support fall through, meaning murmur should continue the operation against its - * own database. - */ - interface ServerUpdatingAuthenticator extends ServerAuthenticator { - /** Register a new user. - * @param info Information about user to register. - * @return User id of new user, -1 for registration failure, or -2 to fall through. - */ - int registerUser(UserInfoMap info); - - /** Unregister a user. - * @param id Userid to unregister. - * @return 1 for successfull unregistration, 0 for unsuccessfull unregistration, -1 to fall through. - */ - int unregisterUser(int id); - - /** Get a list of registered users matching filter. - * @param filter Substring usernames must contain. If empty, return all registered users. - * @return List of matching registered users. - */ - idempotent NameMap getRegisteredUsers(string filter); - - /** Set additional information for user registration. - * @param id Userid of registered user. - * @param info Information to set about user. This should be merged with existing information. - * @return 1 for successfull update, 0 for unsuccessfull update, -1 to fall through. - */ - idempotent int setInfo(int id, UserInfoMap info); - - /** Set texture (now called avatar) of user registration. - * @param id registrationId of registered user. - * @param tex New texture. - * @return 1 for successfull update, 0 for unsuccessfull update, -1 to fall through. - */ - idempotent int setTexture(int id, Texture tex); - }; - - /** Per-server interface. This includes all methods for configuring and altering - * the state of a single virtual server. You can retrieve a pointer to this interface - * from one of the methods in {@link Meta}. - **/ - ["amd"] interface Server { - /** Shows if the server currently running (accepting users). - * - * @return Run-state of server. - */ - idempotent bool isRunning() throws InvalidSecretException; - - /** Start server. */ - void start() throws ServerBootedException, ServerFailureException, InvalidSecretException; - - /** Stop server. - * Note: Server will be restarted on Murmur restart unless explicitly disabled - * with setConf("boot", false) - */ - void stop() throws ServerBootedException, InvalidSecretException; - - /** Delete server and all it's configuration. */ - void delete() throws ServerBootedException, InvalidSecretException; - - /** Fetch the server id. - * - * @return Unique server id. - */ - idempotent int id() throws InvalidSecretException; - - /** Add a callback. The callback will receive notifications about changes to users and channels. - * - * @param cb Callback interface which will receive notifications. - * @see removeCallback - */ - void addCallback(ServerCallback *cb) throws ServerBootedException, InvalidCallbackException, InvalidSecretException; - - /** Remove a callback. - * - * @param cb Callback interface to be removed. - * @see addCallback - */ - void removeCallback(ServerCallback *cb) throws ServerBootedException, InvalidCallbackException, InvalidSecretException; - - /** Set external authenticator. If set, all authentications from clients are forwarded to this - * proxy. - * - * @param auth Authenticator object to perform subsequent authentications. - */ - void setAuthenticator(ServerAuthenticator *auth) throws ServerBootedException, InvalidCallbackException, InvalidSecretException; - - /** Retrieve configuration item. - * @param key Configuration key. - * @return Configuration value. If this is empty, see {@link Meta.getDefaultConf} - */ - idempotent string getConf(string key) throws InvalidSecretException; - - /** Retrieve all configuration items. - * @return All configured values. If a value isn't set here, the value from {@link Meta.getDefaultConf} is used. - */ - idempotent ConfigMap getAllConf() throws InvalidSecretException; - - /** Set a configuration item. - * @param key Configuration key. - * @param value Configuration value. - */ - idempotent void setConf(string key, string value) throws InvalidSecretException; - - /** Set superuser password. This is just a convenience for using {@link updateRegistration} on user id 0. - * @param pw Password. - */ - idempotent void setSuperuserPassword(string pw) throws InvalidSecretException; - - /** Fetch log entries. - * @param first Lowest numbered entry to fetch. 0 is the most recent item. - * @param last Last entry to fetch. - * @return List of log entries. - */ - idempotent LogList getLog(int first, int last) throws InvalidSecretException; - - /** Fetch length of log - * @return Number of entries in log - */ - idempotent int getLogLen() throws InvalidSecretException; - - /** Fetch all users. This returns all currently connected users on the server. - * @return List of connected users. - * @see getState - */ - idempotent UserMap getUsers() throws ServerBootedException, InvalidSecretException; - - /** Fetch all channels. This returns all defined channels on the server. The root channel is always channel 0. - * @return List of defined channels. - * @see getChannelState - */ - idempotent ChannelMap getChannels() throws ServerBootedException, InvalidSecretException; - - /** Fetch certificate of user. This returns the complete certificate chain of a user. - * @param session Connection ID of user. See {@link User.session}. - * @return Certificate list of user. - */ - idempotent CertificateList getCertificateList(int session) throws ServerBootedException, InvalidSessionException, InvalidSecretException; - - /** Fetch all channels and connected users as a tree. This retrieves an easy-to-use representation of the server - * as a tree. This is primarily used for viewing the state of the server on a webpage. - * @return Recursive tree of all channels and connected users. - */ - idempotent Tree getTree() throws ServerBootedException, InvalidSecretException; - - /** Fetch all current IP bans on the server. - * @return List of bans. - */ - idempotent BanList getBans() throws ServerBootedException, InvalidSecretException; - - /** Set all current IP bans on the server. This will replace any bans already present, so if you want to add a ban, be sure to call {@link getBans} and then - * append to the returned list before calling this method. - * @param bans List of bans. - */ - idempotent void setBans(BanList bans) throws ServerBootedException, InvalidSecretException; - - /** Kick a user. The user is not banned, and is free to rejoin the server. - * @param session Connection ID of user. See {@link User.session}. - * @param reason Text message to show when user is kicked. - */ - void kickUser(int session, string reason) throws ServerBootedException, InvalidSessionException, InvalidSecretException; - - /** Get state of a single connected user. - * @param session Connection ID of user. See {@link User.session}. - * @return State of connected user. - * @see setState - * @see getUsers - */ - idempotent User getState(int session) throws ServerBootedException, InvalidSessionException, InvalidSecretException; - - /** Set user state. You can use this to move, mute and deafen users. - * @param state User state to set. - * @see getState - */ - idempotent void setState(User state) throws ServerBootedException, InvalidSessionException, InvalidChannelException, InvalidSecretException; - - /** Send text message to a single user. - * @param session Connection ID of user. See {@link User.session}. - * @param text Message to send. - * @see sendMessageChannel - */ - void sendMessage(int session, string text) throws ServerBootedException, InvalidSessionException, InvalidSecretException; - - /** Check if user is permitted to perform action. - * @param session Connection ID of user. See {@link User.session}. - * @param channelid ID of Channel. See {@link Channel.id}. - * @param perm Permission bits to check. - * @return true if any of the permissions in perm were set for the user. - */ - bool hasPermission(int session, int channelid, int perm) throws ServerBootedException, InvalidSessionException, InvalidChannelException, InvalidSecretException; - - /** Return users effective permissions - * @param session Connection ID of user. See {@link User.session}. - * @param channelid ID of Channel. See {@link Channel.id}. - * @return bitfield of allowed actions - */ - idempotent int effectivePermissions(int session, int channelid) throws ServerBootedException, InvalidSessionException, InvalidChannelException, InvalidSecretException; - - /** Add a context callback. This is done per user, and will add a context menu action for the user. - * - * @param session Session of user which should receive context entry. - * @param action Action string, a unique name to associate with the action. - * @param text Name of action shown to user. - * @param cb Callback interface which will receive notifications. - * @param ctx Context this should be used in. Needs to be one or a combination of {@link ContextServer}, {@link ContextChannel} and {@link ContextUser}. - * @see removeContextCallback - */ - void addContextCallback(int session, string action, string text, ServerContextCallback *cb, int ctx) throws ServerBootedException, InvalidCallbackException, InvalidSecretException; - - /** Remove a callback. - * - * @param cb Callback interface to be removed. This callback will be removed from all from all users. - * @see addContextCallback - */ - void removeContextCallback(ServerContextCallback *cb) throws ServerBootedException, InvalidCallbackException, InvalidSecretException; - - /** Get state of single channel. - * @param channelid ID of Channel. See {@link Channel.id}. - * @return State of channel. - * @see setChannelState - * @see getChannels - */ - idempotent Channel getChannelState(int channelid) throws ServerBootedException, InvalidChannelException, InvalidSecretException; - - /** Set state of a single channel. You can use this to move or relink channels. - * @param state Channel state to set. - * @see getChannelState - */ - idempotent void setChannelState(Channel state) throws ServerBootedException, InvalidChannelException, InvalidSecretException, NestingLimitException; - - /** Remove a channel and all its subchannels. - * @param channelid ID of Channel. See {@link Channel.id}. - */ - void removeChannel(int channelid) throws ServerBootedException, InvalidChannelException, InvalidSecretException; - - /** Add a new channel. - * @param name Name of new channel. - * @param parent Channel ID of parent channel. See {@link Channel.id}. - * @return ID of newly created channel. - */ - int addChannel(string name, int parent) throws ServerBootedException, InvalidChannelException, InvalidSecretException, NestingLimitException; - - /** Send text message to channel or a tree of channels. - * @param channelid Channel ID of channel to send to. See {@link Channel.id}. - * @param tree If true, the message will be sent to the channel and all its subchannels. - * @param text Message to send. - * @see sendMessage - */ - void sendMessageChannel(int channelid, bool tree, string text) throws ServerBootedException, InvalidChannelException, InvalidSecretException; - - /** Retrieve ACLs and Groups on a channel. - * @param channelid Channel ID of channel to fetch from. See {@link Channel.id}. - * @param acls List of ACLs on the channel. This will include inherited ACLs. - * @param groups List of groups on the channel. This will include inherited groups. - * @param inherit Does this channel inherit ACLs from the parent channel? - */ - idempotent void getACL(int channelid, out ACLList acls, out GroupList groups, out bool inherit) throws ServerBootedException, InvalidChannelException, InvalidSecretException; - - /** Set ACLs and Groups on a channel. Note that this will replace all existing ACLs and groups on the channel. - * @param channelid Channel ID of channel to fetch from. See {@link Channel.id}. - * @param acls List of ACLs on the channel. - * @param groups List of groups on the channel. - * @param inherit Should this channel inherit ACLs from the parent channel? - */ - idempotent void setACL(int channelid, ACLList acls, GroupList groups, bool inherit) throws ServerBootedException, InvalidChannelException, InvalidSecretException; - - /** Temporarily add a user to a group on a channel. This state is not saved, and is intended for temporary memberships. - * @param channelid Channel ID of channel to add to. See {@link Channel.id}. - * @param session Connection ID of user. See {@link User.session}. - * @param group Group name to add to. - */ - idempotent void addUserToGroup(int channelid, int session, string group) throws ServerBootedException, InvalidChannelException, InvalidSessionException, InvalidSecretException; - - /** Remove a user from a temporary group membership on a channel. This state is not saved, and is intended for temporary memberships. - * @param channelid Channel ID of channel to add to. See {@link Channel.id}. - * @param session Connection ID of user. See {@link User.session}. - * @param group Group name to remove from. - */ - idempotent void removeUserFromGroup(int channelid, int session, string group) throws ServerBootedException, InvalidChannelException, InvalidSessionException, InvalidSecretException; - - /** Redirect whisper targets for user. If set, whenever a user tries to whisper to group "source", the whisper will be redirected to group "target". - * To remove a redirect pass an empty target string. This is intended for context groups. - * @param session Connection ID of user. See {@link User.session}. - * @param source Group name to redirect from. - * @param target Group name to redirect to. - */ - idempotent void redirectWhisperGroup(int session, string source, string target) throws ServerBootedException, InvalidSessionException, InvalidSecretException; - - /** Map a list of {@link User.userid} to a matching name. - * @param List of ids. - * @return Matching list of names, with an empty string representing invalid or unknown ids. - */ - idempotent NameMap getUserNames(IdList ids) throws ServerBootedException, InvalidSecretException; - - /** Map a list of user names to a matching id. - * @param List of names. - * @reuturn List of matching ids, with -1 representing invalid or unknown user names. - */ - idempotent IdMap getUserIds(NameList names) throws ServerBootedException, InvalidSecretException; - - /** Register a new user. - * @param info Information about new user. Must include at least "name". - * @return The ID of the user. See {@link RegisteredUser.userid}. - */ - int registerUser(UserInfoMap info) throws ServerBootedException, InvalidUserException, InvalidSecretException; - - /** Remove a user registration. - * @param userid ID of registered user. See {@link RegisteredUser.userid}. - */ - void unregisterUser(int userid) throws ServerBootedException, InvalidUserException, InvalidSecretException; - - /** Update the registration for a user. You can use this to set the email or password of a user, - * and can also use it to change the user's name. - * @param registration Updated registration record. - */ - idempotent void updateRegistration(int userid, UserInfoMap info) throws ServerBootedException, InvalidUserException, InvalidSecretException; - - /** Fetch registration for a single user. - * @param userid ID of registered user. See {@link RegisteredUser.userid}. - * @return Registration record. - */ - idempotent UserInfoMap getRegistration(int userid) throws ServerBootedException, InvalidUserException, InvalidSecretException; - - /** Fetch a group of registered users. - * @param filter Substring of user name. If blank, will retrieve all registered users. - * @return List of registration records. - */ - idempotent NameMap getRegisteredUsers(string filter) throws ServerBootedException, InvalidSecretException; - - /** Verify the password of a user. You can use this to verify a user's credentials. - * @param name User name. See {@link RegisteredUser.name}. - * @param pw User password. - * @return User ID of registered user (See {@link RegisteredUser.userid}), -1 for failed authentication or -2 for unknown usernames. - */ - idempotent int verifyPassword(string name, string pw) throws ServerBootedException, InvalidSecretException; - - /** Fetch user texture. Textures are stored as zlib compress()ed 600x60 32-bit BGRA data. - * @param userid ID of registered user. See {@link RegisteredUser.userid}. - * @return Custom texture associated with user or an empty texture. - */ - idempotent Texture getTexture(int userid) throws ServerBootedException, InvalidUserException, InvalidSecretException; - - /** Set a user texture (now called avatar). - * @param userid ID of registered user. See {@link RegisteredUser.userid}. - * @param tex Texture (as a Byte-Array) to set for the user, or an empty texture to remove the existing texture. - */ - idempotent void setTexture(int userid, Texture tex) throws ServerBootedException, InvalidUserException, InvalidTextureException, InvalidSecretException; - - /** Get virtual server uptime. - * @return Uptime of the virtual server in seconds - */ - idempotent int getUptime() throws ServerBootedException, InvalidSecretException; - }; - - /** Callback interface for Meta. You can supply an implementation of this to receive notifications - * when servers are stopped or started. - * If an added callback ever throws an exception or goes away, it will be automatically removed. - * Please note that all callbacks are done asynchronously; murmur does not wait for the callback to - * complete before continuing processing. - * @see ServerCallback - * @see Meta.addCallback - */ - interface MetaCallback { - /** Called when a server is started. The server is up and running when this event is sent, so all methods that - * need a running server will work. - * @param srv Interface for started server. - */ - void started(Server *srv); - - /** Called when a server is stopped. The server is already stopped when this event is sent, so no methods that - * need a running server will work. - * @param srv Interface for started server. - */ - void stopped(Server *srv); - }; - - sequence ServerList; - - /** This is the meta interface. It is primarily used for retrieving the {@link Server} interfaces for each individual server. - **/ - ["amd"] interface Meta { - /** Fetch interface to specific server. - * @param id Server ID. See {@link Server.getId}. - * @return Interface for specified server, or a null proxy if id is invalid. - */ - idempotent Server *getServer(int id) throws InvalidSecretException; - - /** Create a new server. Call {@link Server.getId} on the returned interface to find it's ID. - * @return Interface for new server. - */ - Server *newServer() throws InvalidSecretException; - - /** Fetch list of all currently running servers. - * @return List of interfaces for running servers. - */ - idempotent ServerList getBootedServers() throws InvalidSecretException; - - /** Fetch list of all defined servers. - * @return List of interfaces for all servers. - */ - idempotent ServerList getAllServers() throws InvalidSecretException; - - /** Fetch default configuraion. This returns the configuration items that were set in the configuration file, or - * the built-in default. The individual servers will use these values unless they have been overridden in the - * server specific configuration. The only special case is the port, which defaults to the value defined here + - * the servers ID - 1 (so that virtual server #1 uses the defined port, server #2 uses port+1 etc). - * @return Default configuration of the servers. - */ - idempotent ConfigMap getDefaultConf() throws InvalidSecretException; - - /** Fetch version of Murmur. - * @param major Major version. - * @param minor Minor version. - * @param patch Patchlevel. - * @param text Textual representation of version. Note that this may not match the {@link major}, {@link minor} and {@link patch} levels, as it - * may be simply the compile date or the SVN revision. This is usually the text you want to present to users. - */ - idempotent void getVersion(out int major, out int minor, out int patch, out string text); - - /** Add a callback. The callback will receive notifications when servers are started or stopped. - * - * @param cb Callback interface which will receive notifications. - */ - void addCallback(MetaCallback *cb) throws InvalidCallbackException, InvalidSecretException; - - /** Remove a callback. - * - * @param cb Callback interface to be removed. - */ - void removeCallback(MetaCallback *cb) throws InvalidCallbackException, InvalidSecretException; - - /** Get murmur uptime. - * @return Uptime of murmur in seconds - */ - idempotent int getUptime(); - - /** Get slice file. - * @return Contents of the slice file server compiled with. - */ - idempotent string getSlice(); - - /** Returns a checksum dict for the slice file. - * @return Checksum dict - */ - /*FIX to not require .ice include - idempotent Ice::SliceChecksumDict getSliceChecksums();*/ - }; -}; diff --git a/settings.inc.default.php b/settings.inc.default.php index cbdce7e..70f781c 100644 --- a/settings.inc.default.php +++ b/settings.inc.default.php @@ -36,12 +36,12 @@ // This means if you want write access (to be able to fully use the admin interface) you can only use one value for both Murmur-secrets (this was tested on snapshot 02071e). 'secret' => '', ); -// This setting only becomes active for php-zeroc-ice versions at or above 3.4. Before 3.4 IcePHPs ice.slice setting was used. +// This setting only becomes active for php-zeroc-ice versions at or above 3.7. // PHP file generated from murmur.ice file with slice2php (see FAQ). Has to be in MumPIs classes subdir. // This should specify a file that exists and matches your murmur server version as close as possible. -// May be values like Murmur_1.2.3.php or Murmur_1.2.4.php (check your MumPI/classes folder). +// May be values like Murmur_1.3.0_ice37.php (check your MumPI/classes folder). // If you have a different version of Mumble-Server / Murmur, you may want to compile it yourself; see FAQ on how to: https://github.com/Kissaki/MumPI/wiki/FAQ -$iceGeneratedMurmurPHPFileName = 'Murmur_1.2.4.php'; +$iceGeneratedMurmurPHPFileName = 'Murmur_1.3.0_ice37.php'; // db type for Interface functionality // (does not have anything to do with mumble/murmur) diff --git a/themes/user/default/profile.template.php b/themes/user/default/profile.template.php index 103e789..608ca28 100644 --- a/themes/user/default/profile.template.php +++ b/themes/user/default/profile.template.php @@ -31,7 +31,7 @@ if (isset($_GET['remove_texture'])) { try { ServerInterface::getInstance()->updateUserTexture($_SESSION['serverid'], $_SESSION['userid'], array()); - } catch(Murmur_InvalidTextureException $exc) { + } catch(Murmur\InvalidTextureException $exc) { MessageManager::addWarning(tr('profile_removetexturefailed')); } } diff --git a/user/index.php b/user/index.php index 929008d..a4ac5d5 100644 --- a/user/index.php +++ b/user/index.php @@ -24,7 +24,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/viewer/index.php b/viewer/index.php index 49e23b0..18d23da 100644 --- a/viewer/index.php +++ b/viewer/index.php @@ -25,7 +25,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();