// Die Methoden in dieser Klasse werden weiter unten als Soap Service bereit gestellt require_once 'classes/cs_connection_soap.php'; // Den WSDL Cache abschalten #ini_set("soap.wsdl_cache_enabled", "0"); /* Erzeugt eine neue SoapServer Instanz. Der erste Parameter (null) bedeutet, dass keine WSDL Datei verwendet werden soll. Wenn keine WSDL Datei angegeben wird, muss die uri Option gesetzt sein. */ $uri = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; // plugins if (!empty($_GET['plugin'])) { $plugin_config_file = 'etc/commsy/plugin.php'; if (file_exists($plugin_config_file)) { include_once $plugin_config_file; $plugin_name = $_GET['plugin']; $plugin_class = $environment->getPluginClass($plugin_name); if (!empty($plugin_class) and method_exists($plugin_class, 'getURIforSoapServer')) { $uri_server = $plugin_class->getURIforSoapServer(); unset($plugin_class); if (!empty($uri_server)) { $uri = $uri_server; } } } } $server = new SoapServer(null, array('uri' => $uri)); #$wsdl_url = 'http://'; #$wsdl_url .= $_SERVER['HTTP_HOST']; #$wsdl_url .= str_replace('soap.php','soap_wsdl.php',$_SERVER['PHP_SELF']); #$wsdl_url .= str_replace('soap.php','commsy.wsdl',$_SERVER['PHP_SELF']); #$server = new SoapServer($wsdl_url);
if ($environment->inProjectRoom() or $environment->inCommunityRoom() or $environment->inPrivateRoom() or $environment->inGroupRoom()) { $portal_id = $environment->getCurrentPortalID(); } else { $portal_id = $environment->getCurrentContextID(); } if ($session_commsy_id != $portal_id and $session->getValue('user_id') != 'guest' and $session->getValue('user_id') != 'root' and $environment->getCurrentFunction() != 'getfile' and $environment->getCurrentFunction() != 'getingray' and !$outofservice) { redirect($session_commsy_id, 'home', 'index'); } $authentication = $environment->getAuthenticationObject(); $authentication->setModule($current_module); $authentication->setFunction($current_function); // check, if user is allowed here in this context (no password uid evaluation) // and set current user $plugin_boolean_with_check = true; if ($environment->isPlugin($environment->getCurrentModule())) { $plugin_class = $environment->getPluginClass($environment->getCurrentModule()); if (method_exists($plugin_class, 'accessPageWithCheck')) { $plugin_boolean_with_check = $plugin_class->accessPageWithCheck($environment->getCurrentFunction()); } } if (!$authentication->check($session->getValue('user_id'), $session->getValue('auth_source')) and $environment->getCurrentFunction() != 'logout' and $environment->getCurrentFunction() != 'change' and $plugin_boolean_with_check) { ############################################### # show error box in room ############################################### #$params = array(); #$params['environment'] = $environment; #$params['with_modifying_actions'] = true; #$errorbox = $class_factory->getClass(ERRORBOX_VIEW,$params); #unset($params); #$error_array = $authentication->getErrorArray(); #if (!empty($error_array)) {