From: <wis...@us...> - 2009-10-06 21:36:16
|
Revision: 3708 http://xoops.svn.sourceforge.net/xoops/?rev=3708&view=rev Author: wishcraft Date: 2009-10-06 21:35:49 +0000 (Tue, 06 Oct 2009) Log Message: ----------- Xortify 1.15 (FR) - Xoops 2.3+ Module Added Paths: ----------- XoopsModules/xortify/releases/1.15/ XoopsModules/xortify/releases/1.15/xortify/ XoopsModules/xortify/releases/1.15/xortify/INSTALL XoopsModules/xortify/releases/1.15/xortify/admin/ XoopsModules/xortify/releases/1.15/xortify/admin/index.php XoopsModules/xortify/releases/1.15/xortify/admin/menu.php XoopsModules/xortify/releases/1.15/xortify/class/ XoopsModules/xortify/releases/1.15/xortify/class/auth/ XoopsModules/xortify/releases/1.15/xortify/class/auth/auth.php XoopsModules/xortify/releases/1.15/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/1.15/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/1.15/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/1.15/xortify/class/index.html XoopsModules/xortify/releases/1.15/xortify/class/nusoap/ XoopsModules/xortify/releases/1.15/xortify/class/nusoap/changelog XoopsModules/xortify/releases/1.15/xortify/class/nusoap/class.nusoap_base.php XoopsModules/xortify/releases/1.15/xortify/class/nusoap/class.soap_fault.php XoopsModules/xortify/releases/1.15/xortify/class/nusoap/class.soap_parser.php XoopsModules/xortify/releases/1.15/xortify/class/nusoap/class.soap_server.php XoopsModules/xortify/releases/1.15/xortify/class/nusoap/class.soap_transport_http.php XoopsModules/xortify/releases/1.15/xortify/class/nusoap/class.soap_val.php XoopsModules/xortify/releases/1.15/xortify/class/nusoap/class.soapclient.php XoopsModules/xortify/releases/1.15/xortify/class/nusoap/class.wsdl.php XoopsModules/xortify/releases/1.15/xortify/class/nusoap/class.wsdlcache.php XoopsModules/xortify/releases/1.15/xortify/class/nusoap/class.xmlschema.php XoopsModules/xortify/releases/1.15/xortify/class/nusoap/index.html XoopsModules/xortify/releases/1.15/xortify/class/nusoap/nusoap.php XoopsModules/xortify/releases/1.15/xortify/class/nusoap/nusoapmime.php XoopsModules/xortify/releases/1.15/xortify/class/soap.php XoopsModules/xortify/releases/1.15/xortify/images/ XoopsModules/xortify/releases/1.15/xortify/images/Thumbs.db XoopsModules/xortify/releases/1.15/xortify/images/accessdenied.png XoopsModules/xortify/releases/1.15/xortify/images/accesslist.png XoopsModules/xortify/releases/1.15/xortify/images/index.html XoopsModules/xortify/releases/1.15/xortify/images/xortify_slogo.png XoopsModules/xortify/releases/1.15/xortify/include/ XoopsModules/xortify/releases/1.15/xortify/include/forms.objects.php XoopsModules/xortify/releases/1.15/xortify/include/forms.xortify.php XoopsModules/xortify/releases/1.15/xortify/include/functions.php XoopsModules/xortify/releases/1.15/xortify/include/post.loader.footer.php XoopsModules/xortify/releases/1.15/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/1.15/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/1.15/xortify/index.html XoopsModules/xortify/releases/1.15/xortify/language/ XoopsModules/xortify/releases/1.15/xortify/language/english/ XoopsModules/xortify/releases/1.15/xortify/language/english/admin.php XoopsModules/xortify/releases/1.15/xortify/language/english/index.html XoopsModules/xortify/releases/1.15/xortify/language/english/main.php XoopsModules/xortify/releases/1.15/xortify/language/english/modinfo.php XoopsModules/xortify/releases/1.15/xortify/language/index.html XoopsModules/xortify/releases/1.15/xortify/providers/ XoopsModules/xortify/releases/1.15/xortify/providers/index.html XoopsModules/xortify/releases/1.15/xortify/providers/protector/ XoopsModules/xortify/releases/1.15/xortify/providers/protector/index.html XoopsModules/xortify/releases/1.15/xortify/providers/protector/postcheck.inc.php XoopsModules/xortify/releases/1.15/xortify/providers/protector/postcheck_functions.php XoopsModules/xortify/releases/1.15/xortify/providers/protector/precheck.inc.php XoopsModules/xortify/releases/1.15/xortify/providers/protector/precheck_functions.php XoopsModules/xortify/releases/1.15/xortify/providers/providers.php XoopsModules/xortify/releases/1.15/xortify/providers/xortify/ XoopsModules/xortify/releases/1.15/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/1.15/xortify/providers/xortify/index.html XoopsModules/xortify/releases/1.15/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/1.15/xortify/templates/ XoopsModules/xortify/releases/1.15/xortify/templates/index.html XoopsModules/xortify/releases/1.15/xortify/xoops_version.php Added: XoopsModules/xortify/releases/1.15/xortify/INSTALL =================================================================== --- XoopsModules/xortify/releases/1.15/xortify/INSTALL (rev 0) +++ XoopsModules/xortify/releases/1.15/xortify/INSTALL 2009-10-06 21:35:49 UTC (rev 3708) @@ -0,0 +1,53 @@ ++-----------------------------------------------------------------------------------+ +| | +| XXX XXX OOOOO RRRRR TTTTTT IIIIII FFFFFF YYY YYY | +| XX XX OO OO RR RR TT II FF YY YY | +| XXX OO OO RRRR TT II FFFF YYYY | +| XX XX OO OO RR RR TT II FF YY | +| XXX XXX OOOOO RR RR TT IIIIII FF YY version 1.15 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.22) | +| * Xortify Network Security Drone | +| | +| Sign up a username for Xortify.com you can do this in the module if everything | +| is working fine and there isn't any problem with the API SOAP communications. | +| | +| You will recieve an activation notice but you account will already be active. | +| | +| You will need to alter mainfile.php and do the following:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | ++--[ Step 1 - mainfile.php ]--------------------------------------------------------+ +| | +| You will need to change the following the main file has the following code on it | +| | +| [code] | +| if (!isset($xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") { | +| include XOOPS_ROOT_PATH."/include/common.php"; | +| } | +| [/code] | +| | +| You will need to alter that to this after it is all install. | +| | +| [code] | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/pre.loader.mainfile.php' ); | +| if (!isset($xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") { | +| include XOOPS_ROOT_PATH."/include/common.php"; | +| } | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.loader.mainfile.php' ); | +| [/code] | +| | ++--[ Step 2 - footer.php ----------------------------------------------------------+ +| | +| At the bottom of footer.php place this line without the [|] Of course. | +| | +| [code] | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.loader.footer.php' ); | +| [/code] | +| | ++-----------------------------------------------------------------------------------+ \ No newline at end of file Added: XoopsModules/xortify/releases/1.15/xortify/admin/index.php =================================================================== --- XoopsModules/xortify/releases/1.15/xortify/admin/index.php (rev 0) +++ XoopsModules/xortify/releases/1.15/xortify/admin/index.php 2009-10-06 21:35:49 UTC (rev 3708) @@ -0,0 +1,87 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@xo...> + * @copyright copyright (c) 2000-2003 XOOPS.org + */ + + + include('../../../mainfile.php'); + include('../../../include/cp_functions.php'); + include('../include/functions.php'); + include('../include/forms.xortify.php'); + + xoops_cp_header(); + + switch($_REQUEST['op']) { + default: + case "signup": + + switch ($_REQUEST['fct']) + { + case "save": + + $xortifyAuth =& XortifyAuthFactory::getAuthConnection(); + $myts =& MyTextSanitizer::getInstance(); + $uname = isset($_POST['uname']) ? $myts->stripSlashesGPC(trim($_POST['uname'])) : ''; + $email = isset($_POST['email']) ? $myts->stripSlashesGPC(trim($_POST['email'])) : ''; + $url = isset($_POST['url']) ? $myts->stripSlashesGPC(trim($_POST['url'])) : ''; + $pass = isset($_POST['pass']) ? $myts->stripSlashesGPC(trim($_POST['pass'])) : ''; + $vpass = isset($_POST['vpass']) ? $myts->stripSlashesGPC(trim($_POST['vpass'])) : ''; + $agree = (isset($_POST['agree']) && intval($_POST['agree'])) ? 1 : 0; + + if ($agree != 1) { + $stop .= _US_UNEEDAGREE . '<br />'; + } + + $validate = $xortifyAuth->validate($uname, $email, $pass, $vpass); + + if ($validate!=false) + $stop .= "User details didn't validate with Xortify.com<br/>$validate"; + + xoops_load("captcha"); + $xoopsCaptcha = XoopsCaptcha::getInstance(); + if (! $xoopsCaptcha->verify() ) { + $stop .= $xoopsCaptcha->getMessage(); + } + + if ($stop!='') { + xortify_adminMenu(1); + echo "<p align='center' style='font-size: 15px; color: #FF0000;'>$stop</p>"; + echo XortifySignupForm(); + } else { + @$xortifyAuth->create_user( $_REQUEST['viewemail'], $uname, $email, $url, $actkey, + $pass, $_REQUEST['timezone'], $_REQUEST['mailok'], $xortifyAuth->check_siteinfo(array())); + + $moduleHandler =& xoops_gethandler('module'); + $configHandler =& xoops_gethandler('config'); + $xoModule = $moduleHandler->getByDirname('xortify'); + $configs = $configHandler->getConfigs(new Criteria('conf_modid', $xoModule->mid()) ); + foreach($configs as $id => $config) + switch($config->getVar('conf_name')) { + case 'xortify_username': + $config->setVar('conf_value', $uname); + @$configHandler->insertConfig($config); + break; + case 'xortify_password': + $config->setVar('conf_value', $pass); + @$configHandler->insertConfig($config); + break; + } + redirect_header("index.php", 4, _XOR_USERCREATED_PLEASEACTIVATE); + exit(0); + } + break; + default: + xortify_adminMenu(1); + echo XortifySignupForm(); + break; + } + break; + } + + xortify_footer_adminMenu(); + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/xortify/releases/1.15/xortify/admin/menu.php =================================================================== --- XoopsModules/xortify/releases/1.15/xortify/admin/menu.php (rev 0) +++ XoopsModules/xortify/releases/1.15/xortify/admin/menu.php 2009-10-06 21:35:49 UTC (rev 3708) @@ -0,0 +1,19 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@xo...> + * @copyright copyright (c) 2000-2003 XOOPS.org + */ + + +global $adminmenu; +$adminmenu=array(); +//$adminmenu[1]['title'] = _XOR_ADMENU1; +//$adminmenu[1]['link'] = "admin/index.php"; +$adminmenu[1]['title'] = _XOR_ADMENU2; +$adminmenu[1]['icon'] = 'images/accesslist.png'; +$adminmenu[1]['image'] = 'images/accesslist.png'; +$adminmenu[1]['link'] = "admin/index.php?op=signup"; +?> \ No newline at end of file Added: XoopsModules/xortify/releases/1.15/xortify/class/auth/auth.php =================================================================== --- XoopsModules/xortify/releases/1.15/xortify/class/auth/auth.php (rev 0) +++ XoopsModules/xortify/releases/1.15/xortify/class/auth/auth.php 2009-10-06 21:35:49 UTC (rev 3708) @@ -0,0 +1,116 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@xo...> + * @copyright copyright (c) 2000-2003 XOOPS.org + */ + +class XortifyAuth { + + var $_dao; + + var $_errors; + /** + * Authentication Service constructor + */ + function XortifyAuth (&$dao){ + $this->_dao = $dao; + } + + /** + * @abstract need to be write in the dervied class + */ + function authenticate() { + $authenticated = false; + + return $authenticated; + } + + /** + * add an error + * + * @param string $value error to add + * @access public + */ + function setErrors($err_no, $err_str) + { + $this->_errors[$err_no] = trim($err_str); + } + + /** + * return the errors for this object as an array + * + * @return array an array of errors + * @access public + */ + function getErrors() + { + return $this->_errors; + } + + /** + * return the errors for this object as html + * + * @return string html listing the errors + * @access public + */ + function getHtmlErrors() + { + global $xoopsConfig; + $ret = '<br>'; + if ( $xoopsConfig['debug_mode'] == 1 || $xoopsConfig['debug_mode'] == 2 ) + { + if (!empty($this->_errors)) { + foreach ($this->_errors as $errno => $errstr) { + $ret .= $errstr . '<br/>'; + } + } else { + $ret .= _NONE.'<br />'; + } + $ret .= sprintf(_AUTH_MSG_AUTH_METHOD, $this->auth_method); + } + else { + $ret .= _US_INCORRECTLOGIN; + } + return $ret; + } + + /** + * checks for variables require in siteinfo package in the auth library + * + * @param array $siteinfo + * + * @return array $siteinfo + * @access public + */ + function check_siteinfo($siteinfo){ + + global $xoopsConfig; + if (!isset($siteinfo)||empty($siteinfo)||!is_array($siteinfo)){ + $siteinfo = array(); + $siteinfo['sitename'] = $xoopsConfig['sitename']; + $siteinfo['adminmail'] = $xoopsConfig['adminmail']; + $siteinfo['systemkey'] = $xoopsConfig['systemkey']; + $siteinfo['xoops_url'] = XOOPS_URL; + } + + if (!isset($siteinfo['sitename'])||empty($siteinfo['sitename'])) + $siteinfo['sitename'] = $xoopsConfig['sitename']; + + if (!isset($siteinfo['adminmail'])||empty($siteinfo['adminmail'])) + $siteinfo['adminmail'] = $xoopsConfig['adminmail']; + + if (!isset($siteinfo['xoops_url'])||empty($siteinfo['xoops_url'])) + $siteinfo['xoops_url'] = XOOPS_URL; + + if (!isset($siteinfo['systemkey'])||empty($siteinfo['systemkey'])) + $siteinfo['systemkey'] = $xoopsConfig['systemkey']; + + return $siteinfo; + } +} + + +?> Added: XoopsModules/xortify/releases/1.15/xortify/class/auth/auth_soap.php =================================================================== --- XoopsModules/xortify/releases/1.15/xortify/class/auth/auth_soap.php (rev 0) +++ XoopsModules/xortify/releases/1.15/xortify/class/auth/auth_soap.php 2009-10-06 21:35:49 UTC (rev 3708) @@ -0,0 +1,177 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@xo...> + * @copyright copyright (c) 2000-2003 XOOPS.org + */ + +define('XORTIFY_API_LOCAL', 'http://www.xortify.com/modules/xsoap/'); +define('XORTIFY_API_URI', 'http://www.xortify.com/modules/xsoap/'); + +include_once XOOPS_ROOT_PATH . '/modules/xortify/class/auth/auth_soap_provisionning.php'; + +if (!file_exists(XOOPS_ROOT_PATH.'/class/soap/xoopssoap.php')){ + foreach (get_loaded_extensions() as $ext){ + if ($ext=="soap") + $native=true; + } + if ($native!=true) { + define('XOOPS_SOAP_LIB','NUSOAP'); + require_once('../nusoap/nusoap.php'); + } else { + define('XOOPS_SOAP_LIB','PHPSOAP'); + } +} else { + require_once (XOOPS_ROOT_PATH.'/class/soap/xoopssoap.php'); +} + +class XortifyAuthSoap extends XortifyAuth { + + var $soap_client; + var $soap_xoops_username = ''; + var $soap_xoops_password = ''; + var $_dao; + /** + * Authentication Service constructor + */ + function XortifyAuthSoap (&$dao) { + switch (XOOPS_SOAP_LIB){ + case "NUSOAP": + $this->soap_client = @new soapclient(XORTIFY_API_URI, 'xsoap.wsdl'); + break; + case "PHPSOAP": + $this->soap_client = @new soapclient(NULL, array('location' => XORTIFY_API_LOCAL, 'uri' => XORTIFY_API_URI)); + break; + } + } + + + /** + * Authenticate user again SOAP directory (Bind) + * + * @param string $uname Username + * @param string $pwd Password + * + * @return bool + */ + function authenticate($uname, $pwd = null) { + $authenticated = false; + + if (!$this->soap_client) { + $this->setErrors(0, _AUTH_SOAP_EXTENSION_NOT_LOAD); + return $authenticated; + } + + + $rnd = rand(-100000, 100000000); + switch (XOOPS_SOAP_LIB){ + case "NUSOAP": + $result = @$this->soap_client->call('xoops_authentication', array("username"=> $this->soap_xoops_username, "password"=> $this->soap_xoops_password, "auth" => array('username' => $uname, "password" => $pwd, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pwd), "rand"=>$rnd))); + break; + case "PHPSOAP": + $result = @$this->soap_client->__soapCall('xoops_authentication', array("username"=> $this->soap_xoops_username, "password"=> $this->soap_xoops_password, "auth" => array('username' => $uname, "password" => $pwd, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pwd), "rand"=>$rnd))); + break; + } + return $result["RESULT"]; + } + + + /** + * validate a user via soap + * + * @param string $uname + * @param string $email + * @param string $pass + * @param string $vpass + * + * @return string + */ + function validate($uname, $email, $pass, $vpass){ + + $rnd = rand(-100000, 100000000); + switch (XOOPS_SOAP_LIB){ + case "NUSOAP": + $result = @$this->soap_client->call('xoops_user_validate', array("username"=> $this->soap_xoops_username, "password"=> $this->soap_xoops_password, "validate" => array('uname' => $uname, "pass" => $pass, "vpass" => $vpass, "email" => $email, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pass), "rand"=>$rnd))); + break; + case "PHPSOAP": + $result = @$this->soap_client->__soapCall('xoops_user_validate', array("username"=> $this->soap_xoops_username, "password"=> $this->soap_xoops_password, "validate" => array('uname' => $uname, "pass" => $pass, "vpass" => $vpass, "email" => $email, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pass), "rand"=>$rnd))); + break; + } + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + + } + + /** + * get the xoops site disclaimer via soap + * + * @return string + */ + function network_disclaimer(){ + + switch (XOOPS_SOAP_LIB){ + case "NUSOAP": + $result = @$this->soap_client->call('xoops_network_disclaimer', array("username"=> $this->soap_xoops_username, "password"=> $this->soap_xoops_password)); + break; + case "PHPSOAP": + $result = @$this->soap_client->__soapCall('xoops_network_disclaimer', array("username"=> $this->soap_xoops_username, "password"=> $this->soap_xoops_password)); + break; + } + + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + + } + + /** + * create a user + * + * @param bool $user_viewemail + * @param string $uname + * @param string $email + * @param string $url + * @param string $actkey + * @param string $pass + * @param integer $timezone_offset + * @param bool $user_mailok + * @param array $siteinfo + * + * @return array + */ + function create_user($user_viewemail, $uname, $email, $url, $actkey, + $pass, $timezone_offset, $user_mailok, $siteinfo){ + + $siteinfo = $this->check_siteinfo($siteinfo); + + $rnd = rand(-100000, 100000000); + switch (XOOPS_SOAP_LIB){ + case "NUSOAP": + $result = @$this->soap_client->call('xoops_create_user', array("username"=> $this->soap_xoops_username, "password"=> $this->soap_xoops_password, "user" => array('user_viewemail' =>$user_viewemail, 'uname' => $uname, 'email' => $email, 'url' => $url, 'actkey' => $actkey, 'pass' => $pass, 'timezone_offset' => $timezone_offset, 'user_mailok' => $user_mailok, "time" => time(), "siteinfo" => $siteinfo, "passhash" => sha1((time()-$rnd).$uname.$pass), "rand"=>$rnd))); + break; + case "PHPSOAP": + $result = @$this->soap_client->__soapCall('xoops_create_user', array("username"=> $this->soap_xoops_username, "password"=> $this->soap_xoops_password, "user" => array('user_viewemail' =>$user_viewemail, 'uname' => $uname, 'email' => $email, 'url' => $url, 'actkey' => $actkey, 'pass' => $pass, 'timezone_offset' => $timezone_offset, 'user_mailok' => $user_mailok, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pass), "rand"=>$rnd), "siteinfo" => $siteinfo)); + break; + } + + if ($result['ERRNUM']==1){ + + return $result["RESULT"]; + + } else { + return false; + } + } + +} +// end class + + +?> Added: XoopsModules/xortify/releases/1.15/xortify/class/auth/auth_soap_provisionning.php =================================================================== --- XoopsModules/xortify/releases/1.15/xortify/class/auth/auth_soap_provisionning.php (rev 0) +++ XoopsModules/xortify/releases/1.15/xortify/class/auth/auth_soap_provisionning.php 2009-10-06 21:35:49 UTC (rev 3708) @@ -0,0 +1,188 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@xo...> + * @copyright copyright (c) 2000-2003 XOOPS.org + */ + +class XortifyAuthProvisionning { + + var $_auth_instance; + + function &getInstance(&$auth_instance) + { + static $provis_instance; + if (!isset($provis_instance)) { + $provis_instance = new XortifyAuthProvisionning($auth_instance); + } + return $provis_instance; + } + + /** + * Authentication Service constructor + */ + function XortifyAuthProvisionning (&$auth_instance) { + $this->_auth_instance = &$auth_instance; + $config_handler =& xoops_gethandler('config'); + $config =& $config_handler->getConfigsByCat(XOOPS_CONF_AUTH); + foreach ($config as $key => $val) { + $this->$key = $val; + } + $config_gen =& $config_handler->getConfigsByCat(XOOPS_CONF); + $this->default_TZ = $config_gen['default_TZ']; + $this->theme_set = $config_gen['theme_set']; + $this->com_mode = $config_gen['com_mode']; + $this->com_order = $config_gen['com_order']; + } + + /** + * Return a Xortify User Object + * + * @return XortifyUser or false + */ + function getXortifyUser($uname) { + $member_handler =& xoops_gethandler('member'); + $criteria = new Criteria('uname', $uname); + $getuser = $member_handler->getUsers($criteria); + if (count($getuser) == 1) + return $getuser[0]; + else return false; + } + + /** + * Launch the synchronisation process + * + * @return bool + */ + function sync($datas, $uname, $pwd = null) { + $xoopsUser = $this->getXortifyUser($uname); + if (!$xoopsUser) { // Xortify User Database not exists + if ($this->soap_provisionning) { + $xoopsUser = $this->add($datas, $uname, $pwd); + } else $this->_auth_instance->setErrors(0, sprintf(_AUTH_LDAP_XOOPS_USER_NOTFOUND, $uname)); + } else { // Xortify User Database exists + + } + return $xoopsUser; + } + + /** + * Add a new user to the system + * + * @return bool + */ + function add($datas, $uname, $pwd = null) { + $ret = false; + $member_handler =& xoops_gethandler('member'); + // Create XOOPS Database User + $newuser = $member_handler->createUser(); + $newuser->setVar('uname', $uname); + $newuser->setVar('pass', md5(stripslashes($pwd))); + $newuser->setVar('email', $datas['email']); + $newuser->setVar('rank', 0); + $newuser->setVar('level', 1); + $newuser->setVar('timezone_offset', $this->default_TZ); + $newuser->setVar('theme', $this->theme_set); + $newuser->setVar('umode', $this->com_mode); + $newuser->setVar('uorder', $this->com_order); + if ($this->soap_provisionning) + $tab_mapping = explode('|', $this->soap_field_mapping); + else + $tab_mapping = explode('|', $this->ldap_field_mapping); + + foreach ($tab_mapping as $mapping) { + $fields = explode('=', trim($mapping)); + if ($fields[0] && $fields[1]) + $newuser->setVar(trim($fields[0]), utf8_decode($datas[trim($fields[1])])); + } + if ($member_handler->insertUser($newuser)) { + } + if ($member_handler->insertUser($newuser)) { + foreach ($this->soap_provisionning_group as $groupid) + $member_handler->addUserToGroup($groupid, $newuser->getVar('uid')); + $newuser->unsetNew(); + return $newuser; + } else redirect_header(XOOPS_URL.'/user.php', 5, $newuser->getHtmlErrors()); + + $newuser->unsetNew(); + return $newuser; + //else redirect_header(XOOPS_URL.'/user.php', 5, $newuser->getHtmlErrors()); + return $ret; + } + + /** + * Modify user information + * + * @return bool + */ + function change(&$xoopsUser, $datas, $uname, $pwd = null) { + $ret = false; + $member_handler =& xoops_gethandler('member'); + $xoopsUser->setVar('pass', md5(stripslashes($pwd))); + $tab_mapping = explode('|', $this->ldap_field_mapping); + foreach ($tab_mapping as $mapping) { + $fields = explode('=', trim($mapping)); + if ($fields[0] && $fields[1]) + $xoopsUser->setVar(trim($fields[0]), utf8_decode($datas[trim($fields[1])][0])); + } + if ($member_handler->insertUser($xoopsUser)) { + return $xoopsUser; + } else redirect_header(XOOPS_URL.'/user.php', 5, $xoopsUser->getHtmlErrors()); + return $ret; + } + + function change_soap(&$xoopsUser, $datas, $uname, $pwd = null) { + $ret = false; + $member_handler =& xoops_gethandler('member'); + $xoopsUser->setVar('pass', md5(stripslashes($pwd))); + $tab_mapping = explode('|', $this->soap_field_mapping); + foreach ($tab_mapping as $mapping) { + $fields = explode('=', trim($mapping)); + if ($fields[0] && $fields[1]) + $xoopsUser->setVar(trim($fields[0]), utf8_decode($datas[trim($fields[1])][0])); + } + if ($member_handler->insertUser($xoopsUser)) { + return $xoopsUser; + } else redirect_header(XOOPS_URL.'/user.php', 5, $xoopsUser->getHtmlErrors()); + return $ret; + } + + /** + * Modify a user + * + * @return bool + */ + function delete() { + } + + /** + * Suspend a user + * + * @return bool + */ + function suspend() { + } + + /** + * Restore a user + * + * @return bool + */ + function restore() { + } + + /** + * Add a new user to the system + * + * @return bool + */ + function resetpwd() { + } + + +} +// end class + +?> Added: XoopsModules/xortify/releases/1.15/xortify/class/auth/authfactory.php =================================================================== --- XoopsModules/xortify/releases/1.15/xortify/class/auth/authfactory.php (rev 0) +++ XoopsModules/xortify/releases/1.15/xortify/class/auth/authfactory.php 2009-10-06 21:35:49 UTC (rev 3708) @@ -0,0 +1,44 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@xo...> + * @copyright copyright (c) 2000-2003 XOOPS.org + */ + +class XortifyAuthFactory +{ + + /** + * Get a reference to the only instance of authentication class + * + * if the class has not been instantiated yet, this will also take + * care of that + * + * @static + * @return object Reference to the only instance of authentication class + */ + function &getAuthConnection($uname, $xortify_auth_method = 'soap') + { + static $auth_instance; + if (!isset($auth_instance)) { + require_once XOOPS_ROOT_PATH.'/modules/xortify/class/auth/auth.php'; + // Verify if uname allow to bypass LDAP auth + $file = XOOPS_ROOT_PATH . '/modules/xortify/class/auth/auth_' . $xortify_auth_method . '.php'; + require_once $file; + $class = 'XortifyAuth' . ucfirst($xortify_auth_method); + switch ($xortify_auth_method) { + case 'soap'; + $dao = null; + break; + + } + $auth_instance = new $class($dao); + } + return $auth_instance; + } + +} + +?> Added: XoopsModules/xortify/releases/1.15/xortify/class/index.html =================================================================== --- XoopsModules/xortify/releases/1.15/xortify/class/index.html (rev 0) +++ XoopsModules/xortify/releases/1.15/xortify/class/index.html 2009-10-06 21:35:49 UTC (rev 3708) @@ -0,0 +1,10 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title>Untitled Document</title> +</head> + +<body> +</body> +</html> Added: XoopsModules/xortify/releases/1.15/xortify/class/nusoap/changelog =================================================================== --- XoopsModules/xortify/releases/1.15/xortify/class/nusoap/changelog (rev 0) +++ XoopsModules/xortify/releases/1.15/xortify/class/nusoap/changelog 2009-10-06 21:35:49 UTC (rev 3708) @@ -0,0 +1,438 @@ +2003-07-21, version 0.6.5 +- soap_transport_http: SOAPAction header is quoted again, fixes problem w/ Weblogic Server +- applied Jason Levitt patch for proper array serialization, fixes problem w/ Amazon shopping cart services +- fixed null value serialization +- applied patch from "BZC ToOn'S" - fixes wsdl serialization when no parameters +- applied John's patch, implementing compression for the server + +2003-07-22, version 0.6.5 +- soap_server: fixed bug causing charset encoding not to be passed to the parser +- soap_fault: added default encoding to the fault serialization +- soap_parser: changed the parser to pre-load the parent's result array when processing scalar values. This increases parsing speed. + +2003-07-23, version 0.6.5 +- soap_base: fix code that overwrites user-supplied attributes in serialize_val +- soap_base: use arrays-of-arrays rather than attempting multi-dimensional in serialize_val +- xmlschema: emit import statements and qualify all elements with prefix in serializeSchema (better interop with validation tools) +- soapclient: get xml character encoding from HTTP Content-Type header if provided, e.g. text/xml;charset="UTF-8" +- soapclient: use headers in call if provided (previously ignored this parameter) +- soap_server: in parse_request, if neither getallheaders nor $_SERVER are available, use $HTTP_SERVER_VARS to get SOAPAction and xml encoding + +2003-07-24, version 0.6.5 +- soap_transport_http: apply patch from Steven Brown "if the server closes connection prematurely, nusoap would spin trying to read data that isn't there" + +2003-07-25, version 0.6.5 +- wsdl: apply patch from Sven to workaround single schema limitation +- wsdl: apply a variant of the patch from Holger to handle empty values for array by serializing an array with 0 elements +- xmlschema: remove the redundant default namespace attribute on the schema element; everything in xsd is explicitly specified as being from xsd +- soap_transport_http: fix setCredentials and add TODO comments in sendHTTPS about what to change if this setCredentials stays + +2003-07-30, version 0.6.5 +- nusoap_base: change documentation of soap_defencoding to specify it is the encoding for outgoing messages +- nusoap_base: only change &, <, > to entities, not all HTML entities +- soap_transport_http: update the Content-Type header in sendRequest, since soap_defencoding could be changed after ctor is called +- soap_server: use soap_defencoding instead of charset_encoding +- soap_server: read encoding from _SERVER if available +- nusoap_base: do entity translation for string parameters with an xsd type specified (thanks David Derr) + +2003-07-31, version 0.6.5 +- soap_transport_http: add proxy authentication +- soap_transport_http: build payload the same way for http and https +- wsdl: add proxy authentication +- soapclient: add proxy authentication +- soapclient: allow proxy information in ctor, so that it can be used for wsdl + +2003-08-01, version 0.6.5 +- soap_transport_http: close a persistent connection that's at EOF +- soap_transport_http: prevent conflicts between setEncoding and usePersistentConnection +- soap_transport_http: fix use of $headers instead of $this->incoming_headers in getResponse +- soapclient: improve handling of persistent connections +- soapclient: force xml_encoding to upper case +- soap_server: let the Web server decide whether to close the connection (no Connection: close header) +- soap_server: force xml_encoding to upper case + +2003-08-04, version 0.6.5 +- soap_parser: use XML type information to pick a PHP data type; also decode base64 +- soap_server: read all HTTP headers when using _SERVER or HTTP_SERVER_VARS +- soap_server: add gzip encoding support for outgoing messages +- soap_transport_http: deflate is gzcompress/gzuncompress (cf. http://archive.develooper.com/li...@pe.../msg04650.html) +- soap_transport_http: clean use of persistentConnection so it's always a set boolean +- soapclient: add responseData member to access deflated/gunzipped payload + +2003-08-05, version 0.6.5 +- soap_server: look multiple places when setting debug_flag + +2003-08-07, version 0.6.5 +- nusoap_base: serialize specified type (e.g. ArrayOfString) even for simple array +- wsdl: only specify encodingStyle in the input/output soap bindings when it is not empty (thanks Guillaume) + +2003-08-15, version 0.6.5 +- soap_parser: fix parsing of elements with no XSD type specified +- soap_parser: use PHP string type for XSD long and unsignedLong types + +2003-08-16, version 0.6.5 +- soap_parser: fix code generating warning (thanks Torsten) + +2003-08-19, version 0.6.5 +- soap_parser: fix another line of code generating a warning (thanks Torsten) + +2003-08-22, version 0.6.5 +- soap_server: remove all '--' from debug_str; previous code changed '---' to '- --' +- wsdl, soapclient, soap_parser: patch submitted by Mark Spavin as described by + the following... +> Changes for the multiple/nested imports from the wsdl file. This builds an +> array of files not just the last one and also checks for relative paths to +> the parent. This will then get the imported files from the remote site +> instead of your local disk. Local wsdl files should still work (untested). +> +> Changes for multiple encoding sytles as previously posted + +2003-08-24, version 0.6.5 +- wsdl, soapclient: fix some PHP notices from previous update + +2003-08-26, version 0.6.5 +- wsdl: support multiple SOAP ports +- soapclient, soap_server: when no charset is specified, use UTF-8, even though HTTP specifies US-ASCII. +- soap_transport_http: do not prepend $host with 'ssl://' for https (is this required for older cURL versions?) + +2003-08-27, version 0.6.5 +- soap_server: support compressed request messages (thanks John Huong) +- soap_parser: deserialize Apache Vector as an array +- xmlschema: use $this->typemap in getPHPType (which is not used) +- soapclient, wsdl: check for WSDL errors after serializing parameters +- nusoap_base: add serialization of Apache Map (when not using WSDL) +- wsdl: add serialization of Apache Map (when using WSDL) +- wsdl: only change &, <, > to entities, not all HTML entities + +2003-08-28, version 0.6.5 +- soap_transport_http: disable cURL verification of peer and server (formerly the cURL default) +- soap_transport_http: mingle cURL code with straight http, so sendHTTP is no longer needed + +2003-08-29, version 0.6.6 +- soap_transport_http: add setContentType +- soapclient: call setContentType using new getHTTPContentType and getHTTPContentTypeCharset + +2003-09-05, version 0.6.6 +- wsdl: add some more code to handle null/nil values (but there's still a way to go) + +2003-10-21, version 0.6.6 +- soap_transport_http: only include port in Host header if it was specified in the URL +- soap_transport_http: add some code to use OpenSSL for PHP ssl:// scheme, but comment out since it's not ready +- soap_server: use $_SERVER['PHP_SELF'] if $GLOBALS['PHP_SELF'] is not set +- wsdl: add WSDL request and response and transport debug to debug +- wsdl: handle custom type extending xmlschema namespace (GLUE ... Thanks Matt) +- soap_parser: add param to docs +- soapclient: add getHTTPBody, getHTTPContentType, getHTTPContentTypeCharset (anticipating MIME subclass) + +2003-10-28, version 0.6.6 +- nusoap_base: add expandEntities method +- wsdl: use expandEntities +- soap_fault: use expandEntities +- soap_transport_http: Allow credentials to be included in URL, rather than requiring setCredentials +- soap_transport_http: Merge HTTP headers that span multiple lines +- soap_parser: Properly set errors in ctor +- soapclient: Pass headers to parseResponse and parse them in that method + +2003-10-30, version 0.6.6 +- xmlschema: Add some information for the related type to an element + +2003-12-09, version 0.6.6 +- nusoap_base: Add some namespace methods previously in xmlschema +- xmlschema: Improve parsing of complexType, element and simpleType +- xmlschema: Improve serialization +- xmlschema: Track imports +- xmlschema: Track elementFormDefault and form attributes +- wsdl: Support multiple <schema> (note that setting $server->wsdl->schemaTargetNamespace no longer does anything! Use configureWSDL instead.) +- wsdl: Use form attribute of element to control namespace specification +- wsdl: Support chained imports (A imports B which imports C) +- wsdl: Include port in endpoint address when serializing +- soap_server: Fix use of style (rpc|document) and use (encoded|literal) +- soap_server: Support _SERVER[CONTENT_TYPE] in addition to _SERVER[HTTP_CONTENT_TYPE] +- soap_server: Support wsdl with multiple <schema> +- soap_client: Remove a var_dump +- soap_client: Add style and use parameters to call method to support doc/lit without WSDL +- soap_transport_http: Check that $this->fp exists when doing persistent connections + +2003-12-17, version 0.6.6 +- soap_server: pass namespaces to xmlschema constructor +- wsdl: post-process after all imports +- wsdl: remove some debug, add some error handling +- xmlschema: allow enclosing namespaces to be specified in constructor +- xmlschema: improve handling of compositors and simple types + +2004-01-08, version 0.6.6 +- soap_server: when requested WSDL is in a file, return to client using passthru (thanks Ingo Fischer) +- soapclient: have proxy inherit more client state +- soapclient: allow timeout and response timeout to be specified in the constructor +- wsdl: allow timeout and response timeout to be specified in the constructor +- soap_transport_http: allow response timeout to be specified in send and sendHTTPS + +2004-01-28, version 0.6.6 +- wsdl: add namespace for array and scalar when form is qualified +- wsdl: fix a bug in which data type of complexType elements were ignored in serialization +- wsdl: enhance handling of URLs with file scheme +- wsdl: add addSimpleType +- xmlschema: add addSimpleType +- xmlschema: always set phpType elements +- soapclient: allow a wsdl instance to be specified in constructor +- soap_server: allow a wsdl instance to be specified in constructor (not tested!) +- soap_server: fix default SOAPAction created in register method +- soap_transport_http: accept chunking with LF separators in addition to CRLF. +- wsdlcache: added class +- nusoapmime: fix comments + +2004-02-23, version 0.6.6 +- soap_transport_http: don't try to unchunk cURL data, since cURL already does it +- soap_transport_http: append CVS revision to version in User-Agent +- wsdl: serialize boolean as true|false, not 1|0, to agree with XML Schema +- soap_server: always exit() after returning WSDL +- soap_server: use the WSDL URL scheme as the default endpoint URL scheme +- soap_server: append CVS revision to version in X-SOAP-Server +- nusoap_base: add (CVS) revision +- wsdlcache: synchronize using a per-WSDL lock file (Thanks Ingo) +- wsdlcache: add cache lifetime, after which cache contents are invalidated (Thanks Ingo) + +2004-03-15, version 0.6.6 +- nusoap_base: add isArraySimpleOrStruct method +- soap_server: improve WSDL URL scheme determination +- soap_server: only deflate/gzip payloads > 1024 bytes +- soap_server: fix parameter order in fault method (always used as faultcode, faultstring) +- soap_server: refactor parse_request into multiple functions (for sanity) +- soap_server: set the namespace on the Response element to the same as the request +- soap_server: name the return value element 'return' by default +- soap_server: added and documented data fields, so that service programmers can use them if desired +- soap_parser: standardize parsing error message +- soap_parser: fix document and responseHeaders so they are the correct XML text (as documented) +- soap_transport_http: fix read from persistent connection +- soapclient: clean up debugging for persistent connection +- wsdl: enforce correct naming of messages parts when an associative array is used for parameters +- wsdl: better serialization of null values +- wsdl: standardize parsing error message +- xmlschema: standardize parsing error message + +2004-03-24, version 0.6.7 +- soap_transport_http: add digest authentication (based on code by Kevin A. Miller) +- xmlschema: improve parsing of import elements +- wsdl: do schema imports even if there are no wsdl imports + +2004-04-12, version 0.6.7 +- wsdl: serialize multiple elements when maxOccurs="unbounded" and value is an array +- wsdl: serialize soapval values (used to force an XML type, e.g. when WSDL uses an abstract type) +- nusoapmime: do not require nusoap.php (it is now the programmer's responsibility) + +2004-04-21, version 0.6.7 +- soap_parser: parse repeated element name into an array (de-serializes doc/lit array into a PHP array when there is more than 1 array element) +- soap_server: do not wrap response in a response element for a document style service + +2004-04-30, version 0.6.7 +- soap_transport_http: allow digest auth params to be separated by "," as well as ", " +- soap_transport_http: re-initialize incoming headers for each response +- soap_server: add methodreturnisliteralxml property to allow service function to return XML as a string +- soapclient: improve rpc/literal support +- soapclient: allow XML string as call params in addition to array +- soapclient: support document style and literal encoding when not using WSDL + +2004-05-05, version 0.6.7 +- wsdl: serialize PHP objects for WSDL XML Schema complexTypes, in addition to associative arrays +- wsdl: fix WSDL generation when there is no encodingStyle +- soap_transport_http: suppress fsockopen warnings +- soap_transport_http: detect socket timeouts when reading (0 bytes returned) +- soap_transport_http: read chunked content "in-line" so it works on a persistent connection +- nusoap_base: serialize boolean as true|false, not 1|0, to agree with XML Schema +- nusoap_base: serialize array of struct differently than array of array + +2004-06-25, version 0.6.8 +- soap_server: prefer gzip to deflate, since IE does not like our deflate +- soap_server: move webDescription to the wsdl class +- soap_server: allow class and instance method calls for service (thanks Ingo Fischer and Roland Knall) +- wsdl: get webDescription from the soap_server class +- wsdl: allow compression from the server +- wsdl: fix serialization of soapval without a type +- wsdl: propagate debug value from query string to SOAP endpoint in programmatic WSDL generation +- nusoap_base: add anyType, anySimpleType for 2001 XML Schema +- nusoap_base: provide additional debug functions +- soap_transport_http: ignore Content-Length when chunked encoding is used +- soap_transport_http: remove ':' from username for Basic authentication (cf. RFC 2617) +- soap_transport_http: urldecode username and password taken from URL +- soap_transport_http: use raw inflate/deflate for IE/IIS compatibility, rather than having Zlib headers according to HTTP 1.1 spec +- soap_transport_http: attempt to handle the case when both the service application and Web server compress the response +- soapclient: when creating proxy methods, replace '.' in operation name with '__' in function name +- soapclient: initialize requestHeaders in proxy +- general: use new debug methods; never access debug_str directly + +2004-09-30, version 0.6.8 +- soapclient: do not allow getProxy call when WSDL is not used +- soapclient: use ISO-8859-1 as the charset if not specified in the Content-Type header +- soapclient: when an empty string is specified for the call namespace, do not put the method element in a namespace +- soapclient: let soap_transport_http check for SSL support +- soapclient: have proxy inherit soap_defencoding from the client from which it is generated +- soapclient: do not assume that 'ns1' is an unused namespace prefix; always generate namespace prefixes randomly +- soap_parser: compare any encoding in the XML declaration to the charset from the HTTP Content-Type header (thanks Ingo Fischer) +- soap_parser: improve parse repeated element name into an array (de-serializes doc/lit array into a PHP array when there is more than 1 array element) +- soap_server: use ISO-8859-1 as the charset if not specified in the Content-Type header +- soap_server: allow suppression of automatic UTF-8 decoding +- soap_server: fix a bug when call_user_func_array() is used +- soap_transport_http: correct digest authentication through a proxy +- wsdl: serialize SOAP-ENC types similarly to XSD types +- xmlschema: force unprefixed type into default namespace +- xmlschema: fix serialization of definition of simple types + +2004-10-01, version 0.6.8 +- soap_parser: handle default namespace attributes +- soap_server: add default_utf8 field +- soap_server: support literal encoding (with RPC style) +- soap_transport_http: parse HTTP status and generate error for 300, 302-307, 400, 401-417, 501-505 (thanks for the idea Ghislain) +- soap_transport_http: follow HTTP redirection (HTTP status 301 and Location header) (thanks for the idea Ghislain) +- xmlschema: allow any attributes to be specified in an element of a complexType, e.g., abstract, default, form, minOccurs, maxOccurs, nillable (thanks Jirka Pech for the original patch) + +2004-10-02, version 0.6.8 +- soapclient: read/write cookies (thanks Ingo) +- soap_server: change faultcode on non-resendable faults to Client +- soap_transport_http: read/write cookies (thanks Ingo) + +2004-10-05, version 0.6.8 +- wsdl: add addElement method +- wsdl: support the document style in the register method +- xmlschema: parse unnamed simpleTypes, rather than ignoring them +- xmlschema: include untyped elements when parsing a complexType +- xmlschema: add addElement method + +2004-10-14, version 0.6.8 +- soapclient: support client certificates +- soap_parser: deserialize attributes, prefixing names with "!" +- soap_server: notify the client with HTML when WSDL is requested but not supported by service +- soap_transport_http: support client certificates +- wsdl: support defaults for elements of a complexType +- wsdl: serialize elements from complexType extension base +- wsdl: serialize data (associative array elements) as attributes according to XML Schema +- xmlschema: record extension base if present for a complexType + +2004-12-15, version 0.6.8 +- nusoap_base: add 2000 XML Schema (rare, but used by Akamai) +- soap_parser: avoid deserializing more common attributes that are not data +- soap_parser: be lax when HTTP specifies ISO-8859-1 (the default) and XML specifies UTF-8 (the norm) +- soap_server: account for the fact that get_class_methods returns methods in all lower case (thanks Steve Haldane) +- soap_transport_http: parse digest info that includes '=' in the data (thanks Jinsuk Kim) +- wsdl: feably handle some cases for literal serialization of form="unqualified" elements +- wsdl: don't serialize the decimal portion of a PHP double when the XML type is long +- wsdl: fix serialization of attributes for complexType that is an extension +- wsdlcache: enhance diagnostics +- xmlschema: handle untyped elements +- xmlschema: handle WSDL for SOAP Array that uses the base attribute plus a sequence of element + +2005-01-22, version 0.6.8 +- wsdl: allow an element in one schema to have a type from another schema + +2005-01-24, version 0.6.8 +- xmlschema: correctly parse nested complexType definitions + +2005-02-14, version 0.6.8 +- nusoap_base: fix a bug in which attributes were sometimes not serialized with a value +- nusoap_base: improve serialization of null values (thanks Dominique Stender) +- soap_parser: parse null values by handling the nil attribute (thanks Dominique Stender) +- soap_server: set character encoding for a fault to be the same as for the server (thanks Mark Scott) +- soap_server: correctly check for null value returned from method when WSDL is used (without WSDL, cannot distinguish whether NULL or void return is desired) +- soapclient: for document style, call should always return an array rooted at the response part (all bets are off when there are multiple parts) +- xmlschema: save enumeration values parsed from WSDL + +2005-02-10, version 0.6.9 +- soapclient: only set SOAP headers when they are specified in call params (so setHeaders still works) + +2005-04-04, version 0.6.9 +- soap_server: use get_class instead of is_a (thanks Thomas Noel) +- soapclient: use get_class instead of is_a (thanks Thomas Noel) +- soapclient: add setEndpoint method +- soap_transport_http: fix client certificates (thanks Doug Anarino and Eryan Eriobowo) + +2005-04-29, version 0.6.9 +- nusoap_base: add global variable and methods for setting debug level +- nusoap_base: use xsd:anyType instead of xsd:ur-type to serialize arrays with multiple element types (thanks Ingo Fischer) +- nusoap_base: expand entities in attributes (thanks Gaetano Giunta) +- soapclient: call parent constructor +- soapval: call parent constructor +- soap_fault: call parent constructor +- soap_parser: call parent constructor +- soap_server: assume get_class_methods always returns lower case for PHP 4.x only +- soap_server: call parent constructor +- soap_transport_http: do nothing in setEncoding if gzdeflate is not present (thanks Franck Touanen for pointing this out) +- soap_transport_http: fix check for server request for digest authentication (thanks Mark Spavin) +- soap_transport_http: call parent constructor +- wsdl: fix documentation page popup of one method after another (thanks Owen) +- wsdl: call parent constructor +- wsdl: expand entities in attributes (thanks Gaetano Giunta) +- xmlschema: call parent constructor + +2005-06-03, version 0.6.9 +- nusoap_base: serialize empty arrays as having elements xsd:anyType[0] +- nusoap_base: add encodingStyle parameter to serializeEnvelope +- nusoap_base: serialize xsi:type with nil values +- nusoap_base: improve debug and comments +- soap_parser: correctly parse an empty array to an empty array, not an empty string +- soap_parser: improve debug and comments +- soap_server: specify encodingStyle for envelope when WSDL is used +- soapclient: factor out new getProxyClassCode method +- soapclient: specify encodingStyle for envelope +- soapclient: improve debug and comments +- wsdl: add namespace for Apache SOAP types if a variable of such type is serialized +- wsdl: serialize nil value for nillable elements when no value is provided +- wsdl: serialize xsi:type with nil values +- wsdl: copy attributes as well as elements to an element from its complexType +- wsdl: specify encodingStyle for operations +- wsdl: improve debug and comments +- xmlschema: improve debug and comments + +2005-06-03, version 0.7.0 +- nusoap_base: improve debug and comments +- nusoap_base: fix version, which should have been 0.7.0 since 2005-03-04 + +2005-06-06, version 0.7.1 +- nusoap_base: adjust numeric element names for serialization, instead of forcing them to 'soapVal' +- nusoapmime: add type=text/xml to multipart/related (thanks Emmanuel Cordonnier) +- soap_fault: fix serialization of detail +- soap_server: check required parameters for register method +- soap_server: when getallheaders is used, massage header names +- soap_server: use SOAPAction to determine operation when doc/lit service does not wrap parameters in an element with the method name (thanks Peter Hrastnik) +- soap_transport_http: correctly handle multiple HTTP/1.1 100 responses for https (thanks Jan Slabon) +- wsdl: fixed documentation for addComplexType (thanks Csintalan \xC1d\xE1m) +- wsdl: serialize array data when maxOccurs = 'unbounded' OR maxOccurs > 1 (thanks Dominique Schreckling) +- wsdl: when serializing a string == 'false' as a boolean, set the value to false +- wsdl: when serializing a complexType, require the PHP value supplied to be an array + +2005-07-01, version 0.7.1 +- nusoap_base: Allow SOAP headers to be supplied as an array like parameters +- soap_parser: de-serialize simpleContent that accompanies complexContent +- soap_server: append debug information when programmatically-defined WSDL is returned +- soap_transport_http: Add debug when an outgoing header is set +- soapclient: Allow SOAP headers to be supplied as an array like parameters +- xmlschema: serialize attributes more generally, rather than assuming they are for SOAP 1.1 Array +- wsdl: when serializing, look up types by namespace, not prefix (simple programmatic doc/lit WSDL now seems to work) +- wsdl: process namespace declarations first when parsing an element + +2005-07-27, version 0.7.1 +- nusoap_base: do not override supplied element name with class name when serializing an object in serialize_val +- nusoap_base: remove http://soapinterop.org/xsd (si) from namespaces array +- nusoapmime: add nusoapservermime class to implement MIME attachments on the server +- soap_fault: improve documentation +- soap_server: improve documentation +- soap_server: make consistent use of _SERVER and HTTP_SERVER_VARS +- soap_server: make all incoming HTTP header keys lower case +- soap_server: add hook functions to support subclassing for MIME attachments +- soap_transport_http: remove an unnecessary global statement +- soapclient: when creating a proxy, make $params within each function an associative array +- soapval: improve documentation +- wsdl: when serializing complexType elements, used typed serialization if there is either a type or a reference for the element +- wsdl: allow PHP objects to be serialized as SOAP structs in serializeType +- wsdl: for WSDL and XML Schema imports, don't forget to use the TCP port number (thanks Luca GIOPPO) +- wsdl: make consistent use of _SERVER and HTTP_SERVER_VARS +- xmlschema: improve documentation + +2005-07-31, version 0.7.2 +- nusoap_base: correctly serialize attributes in serialize_val (thanks Hidran Arias) +- soap_parser: when resolving references, do not assume that buildVal returns an array (thanks Akshell) +- soap_parser: removed decode_entities, which does not work (thanks Martin Sarsale) +- soap_server: fix a bug parsing headers from _SERVER and HTTP_SERVER_VARS (thanks Bert Catsburg) +- soap_server: parse all "headers" from HTTP_SERVER_VARS (not just HTTP_*) +- soap_server: use PHP_SELF instead of SCRIPT_NAME for WSDL endpoint +- soap_server: when generating a fault while debug_flag is true, put debug into faultdetail +- wsdl: add enumeration parameter to addSimpleType +- xmlschema: add enumeration parameter to addSimpleType Added: XoopsModules/xortify/releases/1.15/xortify/class/nusoap/class.nusoap_base.php =================================================================== --- XoopsModules/xortify/releases/1.15/xortify/class/nusoap/class.nusoap_base.php (rev 0) +++ XoopsModules/xortify/releases/1.15/xortify/class/nusoap/class.nusoap_base.php 2009-10-06 21:35:49 UTC (rev 3708) @@ -0,0 +1,913 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@xo...> + * @copyright copyright (c) 2000-2003 XOOPS.org + */ + + +/* +$Id: class.nusoap_base.php,v 1.43 2005/08/04 01:27:42 snichol Exp $ + +NuSOAP - Web Services Toolkit for PHP + +Copyright (c) 2002 NuSphere Corporation + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +If you have any questions or comments, please email: + +Dietrich Ayala +di...@ga... +http://dietrich.ganx4.com/nusoap + +NuSphere Corporation +http://www.nusphere.com + +*/ + +/* load classes + +// necessary classes +require_once('class.soapclient.php'); +require_once('class.soap_val.php'); +require_once('class.soap_parser.php'); +require_once('class.soap_fault.php'); + +// transport classes +require_once('class.soap_transport_http.php'); + +// optional add-on classes +require_once('class.xmlschema.php'); +require_once('class.wsdl.php'); + +// server class +require_once('class.soap_server.php');*/ + +// class variable emulation +// cf. http://www.webkreator.com/php/techniques/php-static-class-variables.html +$GLOBALS['_transient']['static']['nusoap_base']->globalDebugLevel = 9; + +/** +* +* nusoap_base +* +* @author Dietrich Ayala <die...@ga...> +* @version $Id: class.nusoap_base.php,v 1.43 2005/08/04 01:27:42 snichol Exp $ +* @access public +*/ +class nusoap_base { + /** + * Identification for HTTP headers. + * + * @var string + * @access private + */ + var $title = 'NuSOAP'; + /** + * Version for HTTP headers. + * + * @var string + * @access private + */ + var $version = '0.7.2'; + /** + * CVS revision for HTTP headers. + * + * @var string + * @access private + */ + var $revision = '$Revision: 1.43 $'; + /** + * Current error string (manipulated by getError/setError) + * + * ... [truncated message content] |