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] |
From: <wis...@us...> - 2011-04-19 23:03:24
|
Revision: 6687 http://xoops.svn.sourceforge.net/xoops/?rev=6687&view=rev Author: wishcraft Date: 2011-04-19 23:03:14 +0000 (Tue, 19 Apr 2011) Log Message: ----------- #Xortify #Client - Warning Removed, Notices Removed and Safety Mode Encompassed Added Paths: ----------- XoopsModules/xortify/releases/2.45/ XoopsModules/xortify/releases/2.45/docs/ XoopsModules/xortify/releases/2.45/docs/INSTALL XoopsModules/xortify/releases/2.45/docs/UPGRADE XoopsModules/xortify/releases/2.45/docs/licence.txt XoopsModules/xortify/releases/2.45/htdocs/ XoopsModules/xortify/releases/2.45/htdocs/modules/ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/admin/ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/index.html XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/index.html XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/cron/ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/images/ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/images/accessdenied.png XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/images/accesslist.png XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/images/index.html XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/images/left_both.gif XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/images/right_both.gif XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/images/xortify_slogo.png XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/include/post.loader.footer.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/index.html XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/language/ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/language/english/ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/language/english/index.html XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/language/index.html XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/plugin/ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/plugin/index.html XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/preloads/index.html XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/providers/ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/providers/index.html XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/providers/protector/ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/providers/protector/index.html XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/providers/spiders/ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/providers/xortify/ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/providers/xortify/index.html XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/sql/ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/sql/index.html XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/sql/mysql.sql XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/templates/ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/templates/index.html XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/templates/xorify_cpanel_bans.html XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/templates/xortify_cpanel_log.html XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/xoops_version.php Added: XoopsModules/xortify/releases/2.45/docs/INSTALL =================================================================== --- XoopsModules/xortify/releases/2.45/docs/INSTALL (rev 0) +++ XoopsModules/xortify/releases/2.45/docs/INSTALL 2011-04-19 23:03:14 UTC (rev 6687) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ 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 | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - mainfile.php (pre 2.4 series) ]---------------------------------------+ +| | +| 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 3 - footer.php (pre 2.4 series) ]----------------------------------------+ +| | +| 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/2.45/docs/UPGRADE =================================================================== --- XoopsModules/xortify/releases/2.45/docs/UPGRADE (rev 0) +++ XoopsModules/xortify/releases/2.45/docs/UPGRADE 2011-04-19 23:03:14 UTC (rev 6687) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.22) | +| * Xortify Network Security Drone | +| | +| Make sure you delete the 'providers' folder in the existing module then upload | +| Xortify 2.30. Once you have install the file base this way you will remember | +| to upgrade the module in the system modules application in the xoops system | +| menu you will need to then goto the preferences and make sure you are running | +| the protector provider if you are running protector this will populate the | +| cloud with your bans that come in protector as well:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - 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 3 - 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/2.45/docs/licence.txt =================================================================== --- XoopsModules/xortify/releases/2.45/docs/licence.txt (rev 0) +++ XoopsModules/xortify/releases/2.45/docs/licence.txt 2011-04-19 23:03:14 UTC (rev 6687) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/admin/index.php (rev 0) +++ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/admin/index.php 2011-04-19 23:03:14 UTC (rev 6687) @@ -0,0 +1,198 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + + include('../../../mainfile.php'); + include('../../../include/cp_functions.php'); + include('../include/functions.php'); + include('../include/forms.xortify.php'); + + $moduleHandler =& xoops_gethandler('module'); + $configHandler =& xoops_gethandler('config'); + $xoxortify = $moduleHandler->getByDirname('xortify'); + $GLOBALS['xoopsModuleConfig'] = $configHandler->getConfigList($xoxortify->getVar('mid')); + + xoops_cp_header(); + + switch(isset($_REQUEST['op'])?$_REQUEST['op']:"list") { + case "signup": + + switch ($_REQUEST['fct']) + { + case "save": + + $xortifyAuth =& XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xoopsModuleConfig']['protocol']); + $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(2); + 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; + case "signup": + xortify_adminMenu(3); + echo XortifySignupForm(); + break; + } + break; + case "log": + + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(2); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xorTpl'] = new XoopsTpl(); + + $log_handler =& xoops_getmodulehandler('log', 'xortify'); + + $ttl = $log_handler->getCount(NULL); + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?'`'.$_REQUEST['sort'].'`':'`date`'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$_REQUEST['op']); + $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'action','provider','date','uname','email','ip4','ip6','proxy-ip4', + 'proxy-ip6','network-addy','agent') as $id => $key) { + $GLOBALS['xorTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.(($key==$sort)?($order=='ASC'?'DESC':'ASC'):$order).'&op='.$_REQUEST['op'].'">'.(defined('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))):'_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + } + + $criteria = new Criteria('1','1'); + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort($sort); + $criteria->setOrder($order); + + $logs = $log_handler->getObjects($criteria, true); + foreach($logs as $id => $log) { + $GLOBALS['xorTpl']->append('log', $log->toArray()); + } + + $GLOBALS['xorTpl']->display('db:xortify_cpanel_log.html'); + break; + default: + case "list": + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(1); + + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xorTpl'] = new XoopsTpl(); + + xoops_load("xoopscache"); + xoops_load("pagenav"); + + require_once( XOOPS_ROOT_PATH.'/modules/xortify/class/'.$GLOBALS['xoopsModuleConfig']['protocol'].'.php' ); + $func = strtoupper($GLOBALS['xoopsModuleConfig']['protocol']).'XortifyExchange'; + ob_start(); + $soapExchg = new $func; + $bans = $soapExchg->retrieveBans(); + ob_end_flush(); + + XoopsCache::delete('xortify_bans_cache'); + XoopsCache::delete('xortify_bans_cache_backup'); + XoopsCache::write('xortify_bans_cache', $bans, $GLOBALS['xoopsModuleConfig']['xortify_seconds']); + XoopsCache::write('xortify_bans_cache_backup', $bans, ($GLOBALS['xoopsModuleConfig']['xortify_seconds'] * 1.45)); + + if ($bans['bans']==0) { + echo _XS_AM_NOCACHEMSG; + } else { + + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + + $pagenav = new XoopsPageNav($bans['bans'], $limit, $start, 'start', 'limit='.$limit); + $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); + + for($i=$start;$i<$start+$limit;$i++) { + if (isset($bans['data'][$i])) { + if (strlen($bans['data'][$i]['ip4'])>0) { + $ipaddy = $bans['data'][$i]['ip4']; + $iptype = _XS_IPTYPE_IP4; + } elseif (strlen($bans['data'][$i]['ip6'])>0) { + $ipaddy = $bans['data'][$i]['ip6']; + $iptype = _XS_IPTYPE_IP6; + } else { + $ipaddy = ''; + $iptype = _XS_IPTYPE_EMPTY; + } + + if (strlen($bans['data'][$i]['proxy-ip4'])>0) { + $proxyip = $bans['data'][$i]['proxy-ip4']; + $proxyiptype = _XS_IPTYPE_IP4; + } elseif (strlen($bans['data'][$i]['proxy-ip6'])>0) { + $proxyip = $bans['data'][$i]['proxy-ip6']; + $proxyiptype = _XS_IPTYPE_IP6; + } else { + $proxyip = ''; + $proxyiptype = ''; + } + + $GLOBALS['xorTpl']->append('bans', array('iptype' => $iptype, 'ipaddy' => $ipaddy, + 'proxyiptype' => $proxyiptype, 'ip' => $proxyip, + 'netaddy' => $bans['data'][$i]['network-addy']?$bans['data'][$i]['network-addy']:' ', + 'macaddy' => $bans['data'][$i]['mac-addy']?$bans['data'][$i]['mac-addy']:' ', + 'long' => $bans['data'][$i]['long']?$bans['data'][$i]['long']:' ')); + } + } + + $GLOBALS['xorTpl']->display('db:xorify_cpanel_bans.html'); + } + break; + } + + xortify_footer_adminMenu(); + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/admin/menu.php =================================================================== --- XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/admin/menu.php (rev 0) +++ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/admin/menu.php 2011-04-19 23:03:14 UTC (rev 6687) @@ -0,0 +1,26 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +global $adminmenu; +$adminmenu=array(); +$adminmenu[1]['title'] = _XOR_ADMENU1; +$adminmenu[1]['icon'] = 'images/currentbans.png'; +$adminmenu[1]['image'] = 'images/currentbans.png'; +$adminmenu[1]['link'] = "admin/index.php?op=list&fct=bans"; +$adminmenu[2]['title'] = _XOR_ADMENU3; +$adminmenu[2]['icon'] = 'images/log.png'; +$adminmenu[2]['image'] = 'images/log.png'; +$adminmenu[2]['link'] = "admin/index.php?op=log"; +$adminmenu[3]['title'] = _XOR_ADMENU2; +$adminmenu[3]['icon'] = 'images/accesslist.png'; +$adminmenu[3]['image'] = 'images/accesslist.png'; +$adminmenu[3]['link'] = "admin/index.php?op=signup&fct=signup"; +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth.php =================================================================== --- XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth.php (rev 0) +++ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth.php 2011-04-19 23:03:14 UTC (rev 6687) @@ -0,0 +1,118 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +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'] = XOOPS_LICENSE_KEY; + $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/2.45/htdocs/modules/xortify/class/auth/auth_curl.php =================================================================== --- XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth_curl.php (rev 0) +++ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth_curl.php 2011-04-19 23:03:14 UTC (rev 6687) @@ -0,0 +1,169 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +define('XORTIFY_CURL_API', $GLOBALS['xoopsModuleConfig']['xortify_uricurl']); +define('XORTIFY_USER_AGENT', 'Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) XOOPS/20100101 XoopsAuth/1.xx (php)'); +if (!class_exists('Services_JSON')) + include_once(XOOPS_ROOT_PATH.'/modules/xortify/include/JSON.php'); +include_once XOOPS_ROOT_PATH . '/modules/xortify/class/auth/auth_curl_provisionning.php'; + +class XortifyAuthCurl extends XortifyAuth { + + var $curl_client; + var $curl_xoops_username = ''; + var $curl_xoops_password = ''; + var $_dao; + var $_json = ''; + /** + * Authentication Service constructor + */ + function XortifyAuthCurl (&$dao) { + $this->_json = new Services_JSON(SERVICES_JSON_IN_ARR); + if (!$ch = curl_init(XORTIFY_CURL_API)) { + trigger_error('Could not intialise CURL file: '.$url); + return false; + } + $cookies = XOOPS_VAR_PATH.'/cache/xoops_cache/authcurl_'.md5(XORTIFY_CURL_API).'.cookie'; + + curl_setopt($ch, CURLOPT_HEADER, 0); + curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); + curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_USERAGENT, XORTIFY_USER_AGENT); + $this->curl_client =& $ch; + } + + + /** + * Authenticate user again curl directory (Bind) + * + * @param string $uname Username + * @param string $pwd Password + * + * @return bool + */ + function authenticate($uname, $pwd = null) { + $authenticated = false; + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + + if (!$this->curl_client) { + $this->setErrors(0, _AUTH_CURL_EXTENSION_NOT_LOAD); + return $authenticated; + } + + + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_authentication' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "auth" => array('username' => $uname, "password" => $pwd, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pwd), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + return $result["RESULT"]; + } + + + /** + * validate a user via curl + * + * @param string $uname + * @param string $email + * @param string $pass + * @param string $vpass + * + * @return string + */ + function validate($uname, $email, $pass, $vpass){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_user_validate' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "validate" => array('uname' => $uname, "pass" => $pass, "vpass" => $vpass, "email" => $email, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pass), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + + } + + + /** + * get the xoops site disclaimer via curl + * + * @return string + */ + function network_disclaimer(){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_network_disclaimer' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password)))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + 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); + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, 'xoops_create_user='.$this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_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))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + } + + function obj2array($objects) { + $ret = array(); + foreach($objects as $key => $value) { + if (is_a($value, 'stdClass')) { + $ret[$key] = (array)$value; + } elseif (is_array($value)) { + $ret[$key] = $this->obj2array($value); + } else { + $ret[$key] = $value; + } + } + return $ret; + } + +} +// end class + + +?> Added: XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php =================================================================== --- XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php (rev 0) +++ XoopsModules/xortify/releases/2.45/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php 2011-04-19 23:03:14 UTC (rev 6687) @@ -0,0 +1,190 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +class XortifyAuthCurlProvisionning { + + var $_auth_instance; + + function &getInstance(&$auth_instance) + { + static $provis_instance; +... [truncated message content] |
From: <wis...@us...> - 2011-05-02 20:10:27
|
Revision: 6802 http://xoops.svn.sourceforge.net/xoops/?rev=6802&view=rev Author: wishcraft Date: 2011-05-02 20:10:18 +0000 (Mon, 02 May 2011) Log Message: ----------- Xortify 2.46 - Fixed CURL XML API (Wrong Array Pointer), Minor Trapping. Added Paths: ----------- XoopsModules/xortify/releases/2.46/ XoopsModules/xortify/releases/2.46/docs/ XoopsModules/xortify/releases/2.46/docs/INSTALL XoopsModules/xortify/releases/2.46/docs/UPGRADE XoopsModules/xortify/releases/2.46/docs/licence.txt XoopsModules/xortify/releases/2.46/htdocs/ XoopsModules/xortify/releases/2.46/htdocs/modules/ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/admin/ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/index.html XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/index.html XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/cron/ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/images/ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/images/accessdenied.png XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/images/accesslist.png XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/images/index.html XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/images/left_both.gif XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/images/right_both.gif XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/images/xortify_slogo.png XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/include/post.loader.footer.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/index.html XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/language/ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/language/english/ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/language/english/index.html XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/language/index.html XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/plugin/ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/plugin/index.html XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/preloads/index.html XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/providers/ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/providers/index.html XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/providers/protector/ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/providers/protector/index.html XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/providers/spiders/ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/providers/xortify/ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/providers/xortify/index.html XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/sql/ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/sql/index.html XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/sql/mysql.sql XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/templates/ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/templates/index.html XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/templates/xorify_cpanel_bans.html XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/templates/xortify_cpanel_log.html XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/xoops_version.php Added: XoopsModules/xortify/releases/2.46/docs/INSTALL =================================================================== --- XoopsModules/xortify/releases/2.46/docs/INSTALL (rev 0) +++ XoopsModules/xortify/releases/2.46/docs/INSTALL 2011-05-02 20:10:18 UTC (rev 6802) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ 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 | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - mainfile.php (pre 2.4 series) ]---------------------------------------+ +| | +| 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 3 - footer.php (pre 2.4 series) ]----------------------------------------+ +| | +| 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/2.46/docs/UPGRADE =================================================================== --- XoopsModules/xortify/releases/2.46/docs/UPGRADE (rev 0) +++ XoopsModules/xortify/releases/2.46/docs/UPGRADE 2011-05-02 20:10:18 UTC (rev 6802) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.22) | +| * Xortify Network Security Drone | +| | +| Make sure you delete the 'providers' folder in the existing module then upload | +| Xortify 2.30. Once you have install the file base this way you will remember | +| to upgrade the module in the system modules application in the xoops system | +| menu you will need to then goto the preferences and make sure you are running | +| the protector provider if you are running protector this will populate the | +| cloud with your bans that come in protector as well:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - 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 3 - 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/2.46/docs/licence.txt =================================================================== --- XoopsModules/xortify/releases/2.46/docs/licence.txt (rev 0) +++ XoopsModules/xortify/releases/2.46/docs/licence.txt 2011-05-02 20:10:18 UTC (rev 6802) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/admin/index.php (rev 0) +++ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/admin/index.php 2011-05-02 20:10:18 UTC (rev 6802) @@ -0,0 +1,202 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + + include('../../../mainfile.php'); + include('../../../include/cp_functions.php'); + include('../include/functions.php'); + include('../include/forms.xortify.php'); + + $moduleHandler =& xoops_gethandler('module'); + $configHandler =& xoops_gethandler('config'); + $xoxortify = $moduleHandler->getByDirname('xortify'); + $GLOBALS['xoopsModuleConfig'] = $configHandler->getConfigList($xoxortify->getVar('mid')); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"list"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + + switch($op) { + case "signup": + + switch ($fct) + { + case "save": + + $xortifyAuth =& XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xoopsModuleConfig']['protocol']); + $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(2); + 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: + case "signup": + xortify_adminMenu(3); + echo XortifySignupForm(); + break; + } + break; + case "log": + + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(2); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xorTpl'] = new XoopsTpl(); + + $log_handler =& xoops_getmodulehandler('log', 'xortify'); + + $ttl = $log_handler->getCount(NULL); + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?'`'.$_REQUEST['sort'].'`':'`date`'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$_REQUEST['op']); + $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'action','provider','date','uname','email','ip4','ip6','proxy-ip4', + 'proxy-ip6','network-addy','agent') as $id => $key) { + $GLOBALS['xorTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.(($key==$sort)?($order=='ASC'?'DESC':'ASC'):$order).'&op='.$_REQUEST['op'].'">'.(defined('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))):'_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + } + + $criteria = new Criteria('1','1'); + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort($sort); + $criteria->setOrder($order); + + $logs = $log_handler->getObjects($criteria, true); + foreach($logs as $id => $log) { + $GLOBALS['xorTpl']->append('log', $log->toArray()); + } + + $GLOBALS['xorTpl']->display('db:xortify_cpanel_log.html'); + break; + default: + case "list": + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(1); + + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xorTpl'] = new XoopsTpl(); + + xoops_load("xoopscache"); + xoops_load("pagenav"); + + require_once( XOOPS_ROOT_PATH.'/modules/xortify/class/'.$GLOBALS['xoopsModuleConfig']['protocol'].'.php' ); + $func = strtoupper($GLOBALS['xoopsModuleConfig']['protocol']).'XortifyExchange'; + ob_start(); + $soapExchg = new $func; + $bans = $soapExchg->retrieveBans(); + ob_end_flush(); + + XoopsCache::delete('xortify_bans_cache'); + XoopsCache::delete('xortify_bans_cache_backup'); + XoopsCache::write('xortify_bans_cache', $bans, $GLOBALS['xoopsModuleConfig']['xortify_seconds']); + XoopsCache::write('xortify_bans_cache_backup', $bans, ($GLOBALS['xoopsModuleConfig']['xortify_seconds'] * 1.45)); + + if ($bans['bans']==0) { + echo _XS_AM_NOCACHEMSG; + } else { + + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + + $pagenav = new XoopsPageNav($bans['bans'], $limit, $start, 'start', 'limit='.$limit); + $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); + + for($i=$start;$i<$start+$limit;$i++) { + if (isset($bans['data'][$i])) { + if (strlen($bans['data'][$i]['ip4'])>0) { + $ipaddy = $bans['data'][$i]['ip4']; + $iptype = _XS_IPTYPE_IP4; + } elseif (strlen($bans['data'][$i]['ip6'])>0) { + $ipaddy = $bans['data'][$i]['ip6']; + $iptype = _XS_IPTYPE_IP6; + } else { + $ipaddy = ''; + $iptype = _XS_IPTYPE_EMPTY; + } + + if (strlen($bans['data'][$i]['proxy-ip4'])>0) { + $proxyip = $bans['data'][$i]['proxy-ip4']; + $proxyiptype = _XS_IPTYPE_IP4; + } elseif (strlen($bans['data'][$i]['proxy-ip6'])>0) { + $proxyip = $bans['data'][$i]['proxy-ip6']; + $proxyiptype = _XS_IPTYPE_IP6; + } else { + $proxyip = ''; + $proxyiptype = ''; + } + + $GLOBALS['xorTpl']->append('bans', array('iptype' => $iptype, 'ipaddy' => $ipaddy, + 'proxyiptype' => $proxyiptype, 'ip' => $proxyip, + 'netaddy' => $bans['data'][$i]['network-addy']?$bans['data'][$i]['network-addy']:' ', + 'macaddy' => $bans['data'][$i]['mac-addy']?$bans['data'][$i]['mac-addy']:' ', + 'long' => $bans['data'][$i]['long']?$bans['data'][$i]['long']:' ')); + } + } + + $GLOBALS['xorTpl']->display('db:xorify_cpanel_bans.html'); + } + break; + } + + xortify_footer_adminMenu(); + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/admin/menu.php =================================================================== --- XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/admin/menu.php (rev 0) +++ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/admin/menu.php 2011-05-02 20:10:18 UTC (rev 6802) @@ -0,0 +1,26 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +global $adminmenu; +$adminmenu=array(); +$adminmenu[1]['title'] = _XOR_ADMENU1; +$adminmenu[1]['icon'] = 'images/currentbans.png'; +$adminmenu[1]['image'] = 'images/currentbans.png'; +$adminmenu[1]['link'] = "admin/index.php?op=list&fct=bans"; +$adminmenu[2]['title'] = _XOR_ADMENU3; +$adminmenu[2]['icon'] = 'images/log.png'; +$adminmenu[2]['image'] = 'images/log.png'; +$adminmenu[2]['link'] = "admin/index.php?op=log"; +$adminmenu[3]['title'] = _XOR_ADMENU2; +$adminmenu[3]['icon'] = 'images/accesslist.png'; +$adminmenu[3]['image'] = 'images/accesslist.png'; +$adminmenu[3]['link'] = "admin/index.php?op=signup&fct=signup"; +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth.php =================================================================== --- XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth.php (rev 0) +++ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth.php 2011-05-02 20:10:18 UTC (rev 6802) @@ -0,0 +1,118 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +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'] = XOOPS_LICENSE_KEY; + $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/2.46/htdocs/modules/xortify/class/auth/auth_curl.php =================================================================== --- XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth_curl.php (rev 0) +++ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth_curl.php 2011-05-02 20:10:18 UTC (rev 6802) @@ -0,0 +1,169 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +define('XORTIFY_CURL_API', $GLOBALS['xoopsModuleConfig']['xortify_uricurl']); +define('XORTIFY_USER_AGENT', 'Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) XOOPS/20100101 XoopsAuth/1.xx (php)'); +if (!class_exists('Services_JSON')) + include_once(XOOPS_ROOT_PATH.'/modules/xortify/include/JSON.php'); +include_once XOOPS_ROOT_PATH . '/modules/xortify/class/auth/auth_curl_provisionning.php'; + +class XortifyAuthCurl extends XortifyAuth { + + var $curl_client; + var $curl_xoops_username = ''; + var $curl_xoops_password = ''; + var $_dao; + var $_json = ''; + /** + * Authentication Service constructor + */ + function XortifyAuthCurl (&$dao) { + $this->_json = new Services_JSON(SERVICES_JSON_IN_ARR); + if (!$ch = curl_init(XORTIFY_CURL_API)) { + trigger_error('Could not intialise CURL file: '.$url); + return false; + } + $cookies = XOOPS_VAR_PATH.'/cache/xoops_cache/authcurl_'.md5(XORTIFY_CURL_API).'.cookie'; + + curl_setopt($ch, CURLOPT_HEADER, 0); + curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); + curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_USERAGENT, XORTIFY_USER_AGENT); + $this->curl_client =& $ch; + } + + + /** + * Authenticate user again curl directory (Bind) + * + * @param string $uname Username + * @param string $pwd Password + * + * @return bool + */ + function authenticate($uname, $pwd = null) { + $authenticated = false; + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + + if (!$this->curl_client) { + $this->setErrors(0, _AUTH_CURL_EXTENSION_NOT_LOAD); + return $authenticated; + } + + + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_authentication' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "auth" => array('username' => $uname, "password" => $pwd, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pwd), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + return $result["RESULT"]; + } + + + /** + * validate a user via curl + * + * @param string $uname + * @param string $email + * @param string $pass + * @param string $vpass + * + * @return string + */ + function validate($uname, $email, $pass, $vpass){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_user_validate' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "validate" => array('uname' => $uname, "pass" => $pass, "vpass" => $vpass, "email" => $email, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pass), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + + } + + + /** + * get the xoops site disclaimer via curl + * + * @return string + */ + function network_disclaimer(){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_network_disclaimer' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password)))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + 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); + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, 'xoops_create_user='.$this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_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))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + } + + function obj2array($objects) { + $ret = array(); + foreach($objects as $key => $value) { + if (is_a($value, 'stdClass')) { + $ret[$key] = (array)$value; + } elseif (is_array($value)) { + $ret[$key] = $this->obj2array($value); + } else { + $ret[$key] = $value; + } + } + return $ret; + } + +} +// end class + + +?> Added: XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php =================================================================== --- XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php (rev 0) +++ XoopsModules/xortify/releases/2.46/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php 2011-05-02 20:10:18 UTC (rev 6802) @@ -0,0 +1,190 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +class XortifyAuthCurlProvisionning { + + var $_auth_instance; + + function &get... [truncated message content] |
From: <wis...@us...> - 2011-05-03 01:08:02
|
Revision: 6804 http://xoops.svn.sourceforge.net/xoops/?rev=6804&view=rev Author: wishcraft Date: 2011-05-03 01:07:53 +0000 (Tue, 03 May 2011) Log Message: ----------- XOOPS 2.4 Compliance - XoopsCache Not Loading causing WSOD on XOOPS 2.4 but not XOOPS 2.5 Added Paths: ----------- XoopsModules/xortify/releases/2.47/ XoopsModules/xortify/releases/2.47/docs/ XoopsModules/xortify/releases/2.47/docs/INSTALL XoopsModules/xortify/releases/2.47/docs/UPGRADE XoopsModules/xortify/releases/2.47/docs/licence.txt XoopsModules/xortify/releases/2.47/htdocs/ XoopsModules/xortify/releases/2.47/htdocs/modules/ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/admin/ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/index.html XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/index.html XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/cron/ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/images/ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/images/accessdenied.png XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/images/accesslist.png XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/images/index.html XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/images/left_both.gif XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/images/right_both.gif XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/images/xortify_slogo.png XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/include/post.loader.footer.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/index.html XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/language/ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/language/english/ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/language/english/index.html XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/language/index.html XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/plugin/ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/plugin/index.html XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/preloads/index.html XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/providers/ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/providers/index.html XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/providers/protector/ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/providers/protector/index.html XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/providers/spiders/ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/providers/xortify/ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/providers/xortify/index.html XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/sql/ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/sql/index.html XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/sql/mysql.sql XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/templates/ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/templates/index.html XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/templates/xorify_cpanel_bans.html XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/templates/xortify_cpanel_log.html XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/xoops_version.php Added: XoopsModules/xortify/releases/2.47/docs/INSTALL =================================================================== --- XoopsModules/xortify/releases/2.47/docs/INSTALL (rev 0) +++ XoopsModules/xortify/releases/2.47/docs/INSTALL 2011-05-03 01:07:53 UTC (rev 6804) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ 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 | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - mainfile.php (pre 2.4 series) ]---------------------------------------+ +| | +| 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 3 - footer.php (pre 2.4 series) ]----------------------------------------+ +| | +| 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/2.47/docs/UPGRADE =================================================================== --- XoopsModules/xortify/releases/2.47/docs/UPGRADE (rev 0) +++ XoopsModules/xortify/releases/2.47/docs/UPGRADE 2011-05-03 01:07:53 UTC (rev 6804) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.22) | +| * Xortify Network Security Drone | +| | +| Make sure you delete the 'providers' folder in the existing module then upload | +| Xortify 2.30. Once you have install the file base this way you will remember | +| to upgrade the module in the system modules application in the xoops system | +| menu you will need to then goto the preferences and make sure you are running | +| the protector provider if you are running protector this will populate the | +| cloud with your bans that come in protector as well:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - 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 3 - 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/2.47/docs/licence.txt =================================================================== --- XoopsModules/xortify/releases/2.47/docs/licence.txt (rev 0) +++ XoopsModules/xortify/releases/2.47/docs/licence.txt 2011-05-03 01:07:53 UTC (rev 6804) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/admin/index.php (rev 0) +++ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/admin/index.php 2011-05-03 01:07:53 UTC (rev 6804) @@ -0,0 +1,202 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + + include('../../../mainfile.php'); + include('../../../include/cp_functions.php'); + include('../include/functions.php'); + include('../include/forms.xortify.php'); + + $moduleHandler =& xoops_gethandler('module'); + $configHandler =& xoops_gethandler('config'); + $xoxortify = $moduleHandler->getByDirname('xortify'); + $GLOBALS['xoopsModuleConfig'] = $configHandler->getConfigList($xoxortify->getVar('mid')); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"list"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + + switch($op) { + case "signup": + + switch ($fct) + { + case "save": + + $xortifyAuth =& XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xoopsModuleConfig']['protocol']); + $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(2); + 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: + case "signup": + xortify_adminMenu(3); + echo XortifySignupForm(); + break; + } + break; + case "log": + + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(2); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xorTpl'] = new XoopsTpl(); + + $log_handler =& xoops_getmodulehandler('log', 'xortify'); + + $ttl = $log_handler->getCount(NULL); + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?'`'.$_REQUEST['sort'].'`':'`date`'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$_REQUEST['op']); + $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'action','provider','date','uname','email','ip4','ip6','proxy-ip4', + 'proxy-ip6','network-addy','agent') as $id => $key) { + $GLOBALS['xorTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.(($key==$sort)?($order=='ASC'?'DESC':'ASC'):$order).'&op='.$_REQUEST['op'].'">'.(defined('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))):'_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + } + + $criteria = new Criteria('1','1'); + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort($sort); + $criteria->setOrder($order); + + $logs = $log_handler->getObjects($criteria, true); + foreach($logs as $id => $log) { + $GLOBALS['xorTpl']->append('log', $log->toArray()); + } + + $GLOBALS['xorTpl']->display('db:xortify_cpanel_log.html'); + break; + default: + case "list": + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(1); + + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xorTpl'] = new XoopsTpl(); + + xoops_load("xoopscache"); + xoops_load("pagenav"); + + require_once( XOOPS_ROOT_PATH.'/modules/xortify/class/'.$GLOBALS['xoopsModuleConfig']['protocol'].'.php' ); + $func = strtoupper($GLOBALS['xoopsModuleConfig']['protocol']).'XortifyExchange'; + ob_start(); + $soapExchg = new $func; + $bans = $soapExchg->retrieveBans(); + ob_end_flush(); + + XoopsCache::delete('xortify_bans_cache'); + XoopsCache::delete('xortify_bans_cache_backup'); + XoopsCache::write('xortify_bans_cache', $bans, $GLOBALS['xoopsModuleConfig']['xortify_seconds']); + XoopsCache::write('xortify_bans_cache_backup', $bans, ($GLOBALS['xoopsModuleConfig']['xortify_seconds'] * 1.45)); + + if ($bans['bans']==0) { + echo _XS_AM_NOCACHEMSG; + } else { + + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + + $pagenav = new XoopsPageNav($bans['bans'], $limit, $start, 'start', 'limit='.$limit); + $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); + + for($i=$start;$i<$start+$limit;$i++) { + if (isset($bans['data'][$i])) { + if (strlen($bans['data'][$i]['ip4'])>0) { + $ipaddy = $bans['data'][$i]['ip4']; + $iptype = _XS_IPTYPE_IP4; + } elseif (strlen($bans['data'][$i]['ip6'])>0) { + $ipaddy = $bans['data'][$i]['ip6']; + $iptype = _XS_IPTYPE_IP6; + } else { + $ipaddy = ''; + $iptype = _XS_IPTYPE_EMPTY; + } + + if (strlen($bans['data'][$i]['proxy-ip4'])>0) { + $proxyip = $bans['data'][$i]['proxy-ip4']; + $proxyiptype = _XS_IPTYPE_IP4; + } elseif (strlen($bans['data'][$i]['proxy-ip6'])>0) { + $proxyip = $bans['data'][$i]['proxy-ip6']; + $proxyiptype = _XS_IPTYPE_IP6; + } else { + $proxyip = ''; + $proxyiptype = ''; + } + + $GLOBALS['xorTpl']->append('bans', array('iptype' => $iptype, 'ipaddy' => $ipaddy, + 'proxyiptype' => $proxyiptype, 'ip' => $proxyip, + 'netaddy' => $bans['data'][$i]['network-addy']?$bans['data'][$i]['network-addy']:' ', + 'macaddy' => $bans['data'][$i]['mac-addy']?$bans['data'][$i]['mac-addy']:' ', + 'long' => $bans['data'][$i]['long']?$bans['data'][$i]['long']:' ')); + } + } + + $GLOBALS['xorTpl']->display('db:xorify_cpanel_bans.html'); + } + break; + } + + xortify_footer_adminMenu(); + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/admin/menu.php =================================================================== --- XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/admin/menu.php (rev 0) +++ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/admin/menu.php 2011-05-03 01:07:53 UTC (rev 6804) @@ -0,0 +1,26 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +global $adminmenu; +$adminmenu=array(); +$adminmenu[1]['title'] = _XOR_ADMENU1; +$adminmenu[1]['icon'] = 'images/currentbans.png'; +$adminmenu[1]['image'] = 'images/currentbans.png'; +$adminmenu[1]['link'] = "admin/index.php?op=list&fct=bans"; +$adminmenu[2]['title'] = _XOR_ADMENU3; +$adminmenu[2]['icon'] = 'images/log.png'; +$adminmenu[2]['image'] = 'images/log.png'; +$adminmenu[2]['link'] = "admin/index.php?op=log"; +$adminmenu[3]['title'] = _XOR_ADMENU2; +$adminmenu[3]['icon'] = 'images/accesslist.png'; +$adminmenu[3]['image'] = 'images/accesslist.png'; +$adminmenu[3]['link'] = "admin/index.php?op=signup&fct=signup"; +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth.php =================================================================== --- XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth.php (rev 0) +++ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth.php 2011-05-03 01:07:53 UTC (rev 6804) @@ -0,0 +1,118 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +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'] = XOOPS_LICENSE_KEY; + $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/2.47/htdocs/modules/xortify/class/auth/auth_curl.php =================================================================== --- XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth_curl.php (rev 0) +++ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth_curl.php 2011-05-03 01:07:53 UTC (rev 6804) @@ -0,0 +1,169 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +define('XORTIFY_CURL_API', $GLOBALS['xoopsModuleConfig']['xortify_uricurl']); +define('XORTIFY_USER_AGENT', 'Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) XOOPS/20100101 XoopsAuth/1.xx (php)'); +if (!class_exists('Services_JSON')) + include_once(XOOPS_ROOT_PATH.'/modules/xortify/include/JSON.php'); +include_once XOOPS_ROOT_PATH . '/modules/xortify/class/auth/auth_curl_provisionning.php'; + +class XortifyAuthCurl extends XortifyAuth { + + var $curl_client; + var $curl_xoops_username = ''; + var $curl_xoops_password = ''; + var $_dao; + var $_json = ''; + /** + * Authentication Service constructor + */ + function XortifyAuthCurl (&$dao) { + $this->_json = new Services_JSON(SERVICES_JSON_IN_ARR); + if (!$ch = curl_init(XORTIFY_CURL_API)) { + trigger_error('Could not intialise CURL file: '.$url); + return false; + } + $cookies = XOOPS_VAR_PATH.'/cache/xoops_cache/authcurl_'.md5(XORTIFY_CURL_API).'.cookie'; + + curl_setopt($ch, CURLOPT_HEADER, 0); + curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); + curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_USERAGENT, XORTIFY_USER_AGENT); + $this->curl_client =& $ch; + } + + + /** + * Authenticate user again curl directory (Bind) + * + * @param string $uname Username + * @param string $pwd Password + * + * @return bool + */ + function authenticate($uname, $pwd = null) { + $authenticated = false; + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + + if (!$this->curl_client) { + $this->setErrors(0, _AUTH_CURL_EXTENSION_NOT_LOAD); + return $authenticated; + } + + + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_authentication' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "auth" => array('username' => $uname, "password" => $pwd, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pwd), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + return $result["RESULT"]; + } + + + /** + * validate a user via curl + * + * @param string $uname + * @param string $email + * @param string $pass + * @param string $vpass + * + * @return string + */ + function validate($uname, $email, $pass, $vpass){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_user_validate' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "validate" => array('uname' => $uname, "pass" => $pass, "vpass" => $vpass, "email" => $email, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pass), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + + } + + + /** + * get the xoops site disclaimer via curl + * + * @return string + */ + function network_disclaimer(){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_network_disclaimer' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password)))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + 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); + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, 'xoops_create_user='.$this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_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))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + } + + function obj2array($objects) { + $ret = array(); + foreach($objects as $key => $value) { + if (is_a($value, 'stdClass')) { + $ret[$key] = (array)$value; + } elseif (is_array($value)) { + $ret[$key] = $this->obj2array($value); + } else { + $ret[$key] = $value; + } + } + return $ret; + } + +} +// end class + + +?> Added: XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php =================================================================== --- XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php (rev 0) +++ XoopsModules/xortify/releases/2.47/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php 2011-05-03 01:07:53 UTC (rev 6804) @@ -0,0 +1,190 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +class XortifyAuthCurlProvisionning { + + var $_auth_instance; +... [truncated message content] |
From: <wis...@us...> - 2011-05-15 09:04:41
|
Revision: 6881 http://xoops.svn.sourceforge.net/xoops/?rev=6881&view=rev Author: wishcraft Date: 2011-05-15 09:04:32 +0000 (Sun, 15 May 2011) Log Message: ----------- Xortify 2.48 - Final Cut - Don't Expect anymore releases unless anyone knows of anything else apart from SFS or PHP Added Paths: ----------- XoopsModules/xortify/releases/2.48/ XoopsModules/xortify/releases/2.48/docs/ XoopsModules/xortify/releases/2.48/docs/INSTALL XoopsModules/xortify/releases/2.48/docs/UPGRADE XoopsModules/xortify/releases/2.48/docs/licence.txt XoopsModules/xortify/releases/2.48/htdocs/ XoopsModules/xortify/releases/2.48/htdocs/modules/ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/admin/ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/index.html XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/index.html XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/cron/ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/images/ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/images/accessdenied.png XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/images/accesslist.png XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/images/index.html XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/images/left_both.gif XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/images/right_both.gif XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/images/xortify_slogo.png XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/index.html XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/language/ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/language/english/ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/language/english/index.html XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/language/index.html XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/plugin/ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/plugin/index.html XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/preloads/index.html XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/providers/ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/providers/index.html XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/providers/protector/ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/providers/protector/index.html XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/providers/spiders/ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/providers/xortify/ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/providers/xortify/index.html XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/sql/ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/sql/index.html XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/sql/mysql.sql XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/templates/ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/templates/index.html XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/templates/xorify_cpanel_bans.html XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/templates/xortify_cpanel_log.html XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/xoops_version.php Added: XoopsModules/xortify/releases/2.48/docs/INSTALL =================================================================== --- XoopsModules/xortify/releases/2.48/docs/INSTALL (rev 0) +++ XoopsModules/xortify/releases/2.48/docs/INSTALL 2011-05-15 09:04:32 UTC (rev 6881) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.48 | +| | ++----[ 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 | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - mainfile.php (pre 2.4 series) ]---------------------------------------+ +| | +| 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 3 - header.php (pre 2.4 series) ]----------------------------------------+ +| | +| Below the lin of footer.php which reads $xoopsTpl =& $xoTheme->template; | +| | +| [code] | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.add.meta.php' ); | +| [/code] | +| | ++-----------------------------------------------------------------------------------+ \ No newline at end of file Added: XoopsModules/xortify/releases/2.48/docs/UPGRADE =================================================================== --- XoopsModules/xortify/releases/2.48/docs/UPGRADE (rev 0) +++ XoopsModules/xortify/releases/2.48/docs/UPGRADE 2011-05-15 09:04:32 UTC (rev 6881) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.22) | +| * Xortify Network Security Drone | +| | +| Make sure you delete the 'providers' folder in the existing module then upload | +| Xortify 2.30. Once you have install the file base this way you will remember | +| to upgrade the module in the system modules application in the xoops system | +| menu you will need to then goto the preferences and make sure you are running | +| the protector provider if you are running protector this will populate the | +| cloud with your bans that come in protector as well:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - 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 3 - 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/2.48/docs/licence.txt =================================================================== --- XoopsModules/xortify/releases/2.48/docs/licence.txt (rev 0) +++ XoopsModules/xortify/releases/2.48/docs/licence.txt 2011-05-15 09:04:32 UTC (rev 6881) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/admin/index.php (rev 0) +++ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/admin/index.php 2011-05-15 09:04:32 UTC (rev 6881) @@ -0,0 +1,208 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + + include('../../../mainfile.php'); + include('../../../include/cp_functions.php'); + include('../include/functions.php'); + include('../include/forms.xortify.php'); + + $moduleHandler =& xoops_gethandler('module'); + $configHandler =& xoops_gethandler('config'); + $xoxortify = $moduleHandler->getByDirname('xortify'); + $GLOBALS['xoopsModuleConfig'] = $configHandler->getConfigList($xoxortify->getVar('mid')); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"list"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + + switch($op) { + case "signup": + + switch ($fct) + { + case "save": + + $xortifyAuth =& XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xoopsModuleConfig']['protocol']); + $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(2); + 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: + case "signup": + xortify_adminMenu(3); + echo XortifySignupForm(); + break; + } + break; + case "log": + + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(2); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xorTpl'] = new XoopsTpl(); + + $log_handler =& xoops_getmodulehandler('log', 'xortify'); + + $ttl = $log_handler->getCount(NULL); + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'date'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op); + $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'action','provider','date','uname','email','ip4','ip6','proxy-ip4', + 'proxy-ip6','network-addy','agent') as $id => $key) { + $GLOBALS['xorTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'">'.(defined('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))):'_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + } + + $criteria = new Criteria('1','1'); + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $logs = $log_handler->getObjects($criteria, true); + foreach($logs as $id => $log) { + $GLOBALS['xorTpl']->append('log', $log->toArray()); + } + + $GLOBALS['xorTpl']->display('db:xortify_cpanel_log.html'); + break; + default: + case "list": + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(1); + + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xorTpl'] = new XoopsTpl(); + + xoops_load("xoopscache"); + if (!class_exists('XoopsCache')) + xoops_load("cache"); + xoops_load("pagenav"); + + if (!$bans = XoopsCache::read('xortify_bans_cache')) { + require_once( XOOPS_ROOT_PATH.'/modules/xortify/class/'.$GLOBALS['xoopsModuleConfig']['protocol'].'.php' ); + $func = strtoupper($GLOBALS['xoopsModuleConfig']['protocol']).'XortifyExchange'; + ob_start(); + $soapExchg = new $func; + $bans = $soapExchg->retrieveBans(); + ob_end_flush(); + + XoopsCache::delete('xortify_bans_cache'); + XoopsCache::delete('xortify_bans_cache_backup'); + XoopsCache::write('xortify_bans_cache', $bans, $GLOBALS['xoopsModuleConfig']['xortify_seconds']); + XoopsCache::write('xortify_bans_cache_backup', $bans, ($GLOBALS['xoopsModuleConfig']['xortify_seconds'] * 1.45)); + } + + if ($bans['bans']==0) { + echo _XS_AM_NOCACHEMSG; + } else { + + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + + $pagenav = new XoopsPageNav($bans['bans'], $limit, $start, 'start', 'limit='.$limit.'&op='.$op); + $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach($bans['data'] as $key => $data) { + $i++; + if ($i>=$start&&$num<=$limit) { + $num++; + if (strlen($data['ip4'])>0) { + $ipaddy = $data['ip4']; + $iptype = _XS_IPTYPE_IP4; + } elseif (strlen($data['ip6'])>0) { + $ipaddy = $data['ip6']; + $iptype = _XS_IPTYPE_IP6; + } else { + $ipaddy = ''; + $iptype = _XS_IPTYPE_EMPTY; + } + + if (strlen($data['proxy-ip4'])>0) { + $proxyip = $data['proxy-ip4']; + $proxyiptype = _XS_IPTYPE_IP4; + } elseif (strlen($data['proxy-ip6'])>0) { + $proxyip = $data['proxy-ip6']; + $proxyiptype = _XS_IPTYPE_IP6; + } else { + $proxyip = ''; + $proxyiptype = ''; + } + + $GLOBALS['xorTpl']->append('bans', array('iptype' => $iptype, 'ipaddy' => $ipaddy, + 'proxyiptype' => $proxyiptype, 'ip' => $proxyip, + 'netaddy' => $data['network-addy']?$data['network-addy']:' ', + 'macaddy' => $data['mac-addy']?$data['mac-addy']:' ', + 'long' => $data['long']?$data['long']:' ')); + } + } + + $GLOBALS['xorTpl']->display('db:xorify_cpanel_bans.html'); + } + break; + } + + xortify_footer_adminMenu(); + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/admin/menu.php =================================================================== --- XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/admin/menu.php (rev 0) +++ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/admin/menu.php 2011-05-15 09:04:32 UTC (rev 6881) @@ -0,0 +1,26 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +global $adminmenu; +$adminmenu=array(); +$adminmenu[1]['title'] = _XOR_ADMENU1; +$adminmenu[1]['icon'] = 'images/currentbans.png'; +$adminmenu[1]['image'] = 'images/currentbans.png'; +$adminmenu[1]['link'] = "admin/index.php?op=list&fct=bans"; +$adminmenu[2]['title'] = _XOR_ADMENU3; +$adminmenu[2]['icon'] = 'images/log.png'; +$adminmenu[2]['image'] = 'images/log.png'; +$adminmenu[2]['link'] = "admin/index.php?op=log"; +$adminmenu[3]['title'] = _XOR_ADMENU2; +$adminmenu[3]['icon'] = 'images/accesslist.png'; +$adminmenu[3]['image'] = 'images/accesslist.png'; +$adminmenu[3]['link'] = "admin/index.php?op=signup&fct=signup"; +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth.php =================================================================== --- XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth.php (rev 0) +++ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth.php 2011-05-15 09:04:32 UTC (rev 6881) @@ -0,0 +1,118 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +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'] = XOOPS_LICENSE_KEY; + $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/2.48/htdocs/modules/xortify/class/auth/auth_curl.php =================================================================== --- XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth_curl.php (rev 0) +++ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth_curl.php 2011-05-15 09:04:32 UTC (rev 6881) @@ -0,0 +1,169 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +define('XORTIFY_CURL_API', $GLOBALS['xoopsModuleConfig']['xortify_uricurl']); +define('XORTIFY_USER_AGENT', 'Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) XOOPS/20100101 XoopsAuth/1.xx (php)'); +if (!class_exists('Services_JSON')) + include_once(XOOPS_ROOT_PATH.'/modules/xortify/include/JSON.php'); +include_once XOOPS_ROOT_PATH . '/modules/xortify/class/auth/auth_curl_provisionning.php'; + +class XortifyAuthCurl extends XortifyAuth { + + var $curl_client; + var $curl_xoops_username = ''; + var $curl_xoops_password = ''; + var $_dao; + var $_json = ''; + /** + * Authentication Service constructor + */ + function XortifyAuthCurl (&$dao) { + $this->_json = new Services_JSON(SERVICES_JSON_IN_ARR); + if (!$ch = curl_init(XORTIFY_CURL_API)) { + trigger_error('Could not intialise CURL file: '.$url); + return false; + } + $cookies = XOOPS_VAR_PATH.'/cache/xoops_cache/authcurl_'.md5(XORTIFY_CURL_API).'.cookie'; + + curl_setopt($ch, CURLOPT_HEADER, 0); + curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); + curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_USERAGENT, XORTIFY_USER_AGENT); + $this->curl_client =& $ch; + } + + + /** + * Authenticate user again curl directory (Bind) + * + * @param string $uname Username + * @param string $pwd Password + * + * @return bool + */ + function authenticate($uname, $pwd = null) { + $authenticated = false; + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + + if (!$this->curl_client) { + $this->setErrors(0, _AUTH_CURL_EXTENSION_NOT_LOAD); + return $authenticated; + } + + + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_authentication' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "auth" => array('username' => $uname, "password" => $pwd, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pwd), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + return $result["RESULT"]; + } + + + /** + * validate a user via curl + * + * @param string $uname + * @param string $email + * @param string $pass + * @param string $vpass + * + * @return string + */ + function validate($uname, $email, $pass, $vpass){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_user_validate' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "validate" => array('uname' => $uname, "pass" => $pass, "vpass" => $vpass, "email" => $email, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pass), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + + } + + + /** + * get the xoops site disclaimer via curl + * + * @return string + */ + function network_disclaimer(){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_network_disclaimer' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password)))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + 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); + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, 'xoops_create_user='.$this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_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))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + } + + function obj2array($objects) { + $ret = array(); + foreach($objects as $key => $value) { + if (is_a($value, 'stdClass')) { + $ret[$key] = (array)$value; + } elseif (is_array($value)) { + $ret[$key] = $this->obj2array($value); + } else { + $ret[$key] = $value; + } + } + return $ret; + } + +} +// end class + + +?> Added: XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php =================================================================== --- XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php (rev 0) +++ XoopsModules/xortify/releases/2.48/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php 2011-05-15 09:04:32 UTC (rev 6881) @@ -0,0 +1,190 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +class XortifyAuthCurlProvisionni... [truncated message content] |
From: <wis...@us...> - 2011-05-31 04:58:03
|
Revision: 6981 http://xoops.svn.sourceforge.net/xoops/?rev=6981&view=rev Author: wishcraft Date: 2011-05-31 04:57:52 +0000 (Tue, 31 May 2011) Log Message: ----------- Xortify 2.49 - Try Exception added to API Calls Classes for congruency Added Paths: ----------- XoopsModules/xortify/releases/2.49/ XoopsModules/xortify/releases/2.49/docs/ XoopsModules/xortify/releases/2.49/docs/INSTALL XoopsModules/xortify/releases/2.49/docs/UPGRADE XoopsModules/xortify/releases/2.49/docs/licence.txt XoopsModules/xortify/releases/2.49/htdocs/ XoopsModules/xortify/releases/2.49/htdocs/modules/ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/admin/ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/index.html XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/index.html XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/cron/ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/cron/index.html XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/images/ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/images/accessdenied.png XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/images/accesslist.png XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/images/index.html XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/images/left_both.gif XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/images/right_both.gif XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/images/xortify_slogo.png XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/index.html XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/language/ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/language/english/ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/language/english/index.html XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/language/index.html XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/plugin/ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/plugin/index.html XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/preloads/index.html XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/providers/ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/providers/index.html XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/providers/protector/ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/providers/protector/index.html XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/providers/spiders/ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/providers/xortify/ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/providers/xortify/index.html XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/sql/ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/sql/index.html XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/sql/mysql.sql XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/templates/ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/templates/index.html XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/templates/xorify_cpanel_bans.html XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/templates/xortify_cpanel_log.html XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/xoops_version.php Added: XoopsModules/xortify/releases/2.49/docs/INSTALL =================================================================== --- XoopsModules/xortify/releases/2.49/docs/INSTALL (rev 0) +++ XoopsModules/xortify/releases/2.49/docs/INSTALL 2011-05-31 04:57:52 UTC (rev 6981) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.48 | +| | ++----[ 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 | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - mainfile.php (pre 2.4 series) ]---------------------------------------+ +| | +| 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 3 - header.php (pre 2.4 series) ]----------------------------------------+ +| | +| Below the lin of footer.php which reads $xoopsTpl =& $xoTheme->template; | +| | +| [code] | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.add.meta.php' ); | +| [/code] | +| | ++-----------------------------------------------------------------------------------+ \ No newline at end of file Added: XoopsModules/xortify/releases/2.49/docs/UPGRADE =================================================================== --- XoopsModules/xortify/releases/2.49/docs/UPGRADE (rev 0) +++ XoopsModules/xortify/releases/2.49/docs/UPGRADE 2011-05-31 04:57:52 UTC (rev 6981) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.22) | +| * Xortify Network Security Drone | +| | +| Make sure you delete the 'providers' folder in the existing module then upload | +| Xortify 2.30. Once you have install the file base this way you will remember | +| to upgrade the module in the system modules application in the xoops system | +| menu you will need to then goto the preferences and make sure you are running | +| the protector provider if you are running protector this will populate the | +| cloud with your bans that come in protector as well:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - 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 3 - 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/2.49/docs/licence.txt =================================================================== --- XoopsModules/xortify/releases/2.49/docs/licence.txt (rev 0) +++ XoopsModules/xortify/releases/2.49/docs/licence.txt 2011-05-31 04:57:52 UTC (rev 6981) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/admin/index.php (rev 0) +++ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/admin/index.php 2011-05-31 04:57:52 UTC (rev 6981) @@ -0,0 +1,208 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + + include('../../../mainfile.php'); + include('../../../include/cp_functions.php'); + include('../include/functions.php'); + include('../include/forms.xortify.php'); + + $moduleHandler =& xoops_gethandler('module'); + $configHandler =& xoops_gethandler('config'); + $xoxortify = $moduleHandler->getByDirname('xortify'); + $GLOBALS['xoopsModuleConfig'] = $configHandler->getConfigList($xoxortify->getVar('mid')); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"list"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + + switch($op) { + case "signup": + + switch ($fct) + { + case "save": + + $xortifyAuth =& XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xoopsModuleConfig']['protocol']); + $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(2); + 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: + case "signup": + xortify_adminMenu(3); + echo XortifySignupForm(); + break; + } + break; + case "log": + + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(2); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xorTpl'] = new XoopsTpl(); + + $log_handler =& xoops_getmodulehandler('log', 'xortify'); + + $ttl = $log_handler->getCount(NULL); + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'date'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op); + $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'action','provider','date','uname','email','ip4','ip6','proxy-ip4', + 'proxy-ip6','network-addy','agent') as $id => $key) { + $GLOBALS['xorTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'">'.(defined('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))):'_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + } + + $criteria = new Criteria('1','1'); + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $logs = $log_handler->getObjects($criteria, true); + foreach($logs as $id => $log) { + $GLOBALS['xorTpl']->append('log', $log->toArray()); + } + + $GLOBALS['xorTpl']->display('db:xortify_cpanel_log.html'); + break; + default: + case "list": + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(1); + + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xorTpl'] = new XoopsTpl(); + + xoops_load("xoopscache"); + if (!class_exists('XoopsCache')) + xoops_load("cache"); + xoops_load("pagenav"); + + if (!$bans = XoopsCache::read('xortify_bans_cache')) { + require_once( XOOPS_ROOT_PATH.'/modules/xortify/class/'.$GLOBALS['xoopsModuleConfig']['protocol'].'.php' ); + $func = strtoupper($GLOBALS['xoopsModuleConfig']['protocol']).'XortifyExchange'; + ob_start(); + $soapExchg = new $func; + $bans = $soapExchg->retrieveBans(); + ob_end_flush(); + + XoopsCache::delete('xortify_bans_cache'); + XoopsCache::delete('xortify_bans_cache_backup'); + XoopsCache::write('xortify_bans_cache', $bans, $GLOBALS['xoopsModuleConfig']['xortify_seconds']); + XoopsCache::write('xortify_bans_cache_backup', $bans, ($GLOBALS['xoopsModuleConfig']['xortify_seconds'] * 1.45)); + } + + if ($bans['bans']==0) { + echo _XS_AM_NOCACHEMSG; + } else { + + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + + $pagenav = new XoopsPageNav($bans['bans'], $limit, $start, 'start', 'limit='.$limit.'&op='.$op); + $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach($bans['data'] as $key => $data) { + $i++; + if ($i>=$start&&$num<=$limit) { + $num++; + if (strlen($data['ip4'])>0) { + $ipaddy = $data['ip4']; + $iptype = _XS_IPTYPE_IP4; + } elseif (strlen($data['ip6'])>0) { + $ipaddy = $data['ip6']; + $iptype = _XS_IPTYPE_IP6; + } else { + $ipaddy = ''; + $iptype = _XS_IPTYPE_EMPTY; + } + + if (strlen($data['proxy-ip4'])>0) { + $proxyip = $data['proxy-ip4']; + $proxyiptype = _XS_IPTYPE_IP4; + } elseif (strlen($data['proxy-ip6'])>0) { + $proxyip = $data['proxy-ip6']; + $proxyiptype = _XS_IPTYPE_IP6; + } else { + $proxyip = ''; + $proxyiptype = ''; + } + + $GLOBALS['xorTpl']->append('bans', array('iptype' => $iptype, 'ipaddy' => $ipaddy, + 'proxyiptype' => $proxyiptype, 'ip' => $proxyip, + 'netaddy' => $data['network-addy']?$data['network-addy']:' ', + 'macaddy' => $data['mac-addy']?$data['mac-addy']:' ', + 'long' => $data['long']?$data['long']:' ')); + } + } + + $GLOBALS['xorTpl']->display('db:xorify_cpanel_bans.html'); + } + break; + } + + xortify_footer_adminMenu(); + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/admin/menu.php =================================================================== --- XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/admin/menu.php (rev 0) +++ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/admin/menu.php 2011-05-31 04:57:52 UTC (rev 6981) @@ -0,0 +1,26 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +global $adminmenu; +$adminmenu=array(); +$adminmenu[1]['title'] = _XOR_ADMENU1; +$adminmenu[1]['icon'] = 'images/currentbans.png'; +$adminmenu[1]['image'] = 'images/currentbans.png'; +$adminmenu[1]['link'] = "admin/index.php?op=list&fct=bans"; +$adminmenu[2]['title'] = _XOR_ADMENU3; +$adminmenu[2]['icon'] = 'images/log.png'; +$adminmenu[2]['image'] = 'images/log.png'; +$adminmenu[2]['link'] = "admin/index.php?op=log"; +$adminmenu[3]['title'] = _XOR_ADMENU2; +$adminmenu[3]['icon'] = 'images/accesslist.png'; +$adminmenu[3]['image'] = 'images/accesslist.png'; +$adminmenu[3]['link'] = "admin/index.php?op=signup&fct=signup"; +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth.php =================================================================== --- XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth.php (rev 0) +++ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth.php 2011-05-31 04:57:52 UTC (rev 6981) @@ -0,0 +1,118 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +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'] = XOOPS_LICENSE_KEY; + $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/2.49/htdocs/modules/xortify/class/auth/auth_curl.php =================================================================== --- XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth_curl.php (rev 0) +++ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth_curl.php 2011-05-31 04:57:52 UTC (rev 6981) @@ -0,0 +1,169 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +define('XORTIFY_CURL_API', $GLOBALS['xoopsModuleConfig']['xortify_uricurl']); +define('XORTIFY_USER_AGENT', 'Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) XOOPS/20100101 XoopsAuth/1.xx (php)'); +if (!class_exists('Services_JSON')) + include_once(XOOPS_ROOT_PATH.'/modules/xortify/include/JSON.php'); +include_once XOOPS_ROOT_PATH . '/modules/xortify/class/auth/auth_curl_provisionning.php'; + +class XortifyAuthCurl extends XortifyAuth { + + var $curl_client; + var $curl_xoops_username = ''; + var $curl_xoops_password = ''; + var $_dao; + var $_json = ''; + /** + * Authentication Service constructor + */ + function XortifyAuthCurl (&$dao) { + $this->_json = new Services_JSON(SERVICES_JSON_IN_ARR); + if (!$ch = curl_init(XORTIFY_CURL_API)) { + trigger_error('Could not intialise CURL file: '.$url); + return false; + } + $cookies = XOOPS_VAR_PATH.'/cache/xoops_cache/authcurl_'.md5(XORTIFY_CURL_API).'.cookie'; + + curl_setopt($ch, CURLOPT_HEADER, 0); + curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); + curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_USERAGENT, XORTIFY_USER_AGENT); + $this->curl_client =& $ch; + } + + + /** + * Authenticate user again curl directory (Bind) + * + * @param string $uname Username + * @param string $pwd Password + * + * @return bool + */ + function authenticate($uname, $pwd = null) { + $authenticated = false; + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + + if (!$this->curl_client) { + $this->setErrors(0, _AUTH_CURL_EXTENSION_NOT_LOAD); + return $authenticated; + } + + + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_authentication' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "auth" => array('username' => $uname, "password" => $pwd, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pwd), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + return $result["RESULT"]; + } + + + /** + * validate a user via curl + * + * @param string $uname + * @param string $email + * @param string $pass + * @param string $vpass + * + * @return string + */ + function validate($uname, $email, $pass, $vpass){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_user_validate' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "validate" => array('uname' => $uname, "pass" => $pass, "vpass" => $vpass, "email" => $email, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pass), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + + } + + + /** + * get the xoops site disclaimer via curl + * + * @return string + */ + function network_disclaimer(){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_network_disclaimer' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password)))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + 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); + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, 'xoops_create_user='.$this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_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))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + } + + function obj2array($objects) { + $ret = array(); + foreach($objects as $key => $value) { + if (is_a($value, 'stdClass')) { + $ret[$key] = (array)$value; + } elseif (is_array($value)) { + $ret[$key] = $this->obj2array($value); + } else { + $ret[$key] = $value; + } + } + return $ret; + } + +} +// end class + + +?> Added: XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php =================================================================== --- XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php (rev 0) +++ XoopsModules/xortify/releases/2.49/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php 2011-05-31 04:57:52 UTC (rev 6981) @@ -0,0 +1,190 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + ... [truncated message content] |
From: <wis...@us...> - 2011-06-19 15:06:12
|
Revision: 7044 http://xoops.svn.sourceforge.net/xoops/?rev=7044&view=rev Author: wishcraft Date: 2011-06-19 15:06:02 +0000 (Sun, 19 Jun 2011) Log Message: ----------- Xortify 2.50 - #Cloud #Security #Solutions for #XOOPS and XOOPS #Clones Added Paths: ----------- XoopsModules/xortify/releases/2.50/ XoopsModules/xortify/releases/2.50/docs/ XoopsModules/xortify/releases/2.50/docs/INSTALL XoopsModules/xortify/releases/2.50/docs/UPGRADE XoopsModules/xortify/releases/2.50/docs/licence.txt XoopsModules/xortify/releases/2.50/htdocs/ XoopsModules/xortify/releases/2.50/htdocs/modules/ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/admin/ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/index.html XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/index.html XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/cron/ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/cron/index.html XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/images/ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/images/accessdenied.png XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/images/accesslist.png XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/images/index.html XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/images/left_both.gif XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/images/right_both.gif XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/images/xortify_slogo.png XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/index.html XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/language/ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/language/english/ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/language/english/index.html XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/language/index.html XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/plugin/ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/plugin/index.html XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/preloads/index.html XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/providers/ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/providers/index.html XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/providers/protector/ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/providers/protector/index.html XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/providers/spiders/ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/providers/xortify/ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/providers/xortify/index.html XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/sql/ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/sql/index.html XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/sql/mysql.sql XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/templates/ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/templates/index.html XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/templates/xorify_cpanel_bans.html XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/templates/xortify_cpanel_log.html XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/xoops_version.php Added: XoopsModules/xortify/releases/2.50/docs/INSTALL =================================================================== --- XoopsModules/xortify/releases/2.50/docs/INSTALL (rev 0) +++ XoopsModules/xortify/releases/2.50/docs/INSTALL 2011-06-19 15:06:02 UTC (rev 7044) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.48 | +| | ++----[ 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 | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - mainfile.php (pre 2.4 series) ]---------------------------------------+ +| | +| 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 3 - header.php (pre 2.4 series) ]----------------------------------------+ +| | +| Below the lin of footer.php which reads $xoopsTpl =& $xoTheme->template; | +| | +| [code] | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.add.meta.php' ); | +| [/code] | +| | ++-----------------------------------------------------------------------------------+ \ No newline at end of file Added: XoopsModules/xortify/releases/2.50/docs/UPGRADE =================================================================== --- XoopsModules/xortify/releases/2.50/docs/UPGRADE (rev 0) +++ XoopsModules/xortify/releases/2.50/docs/UPGRADE 2011-06-19 15:06:02 UTC (rev 7044) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.22) | +| * Xortify Network Security Drone | +| | +| Make sure you delete the 'providers' folder in the existing module then upload | +| Xortify 2.30. Once you have install the file base this way you will remember | +| to upgrade the module in the system modules application in the xoops system | +| menu you will need to then goto the preferences and make sure you are running | +| the protector provider if you are running protector this will populate the | +| cloud with your bans that come in protector as well:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - 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 3 - 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/2.50/docs/licence.txt =================================================================== --- XoopsModules/xortify/releases/2.50/docs/licence.txt (rev 0) +++ XoopsModules/xortify/releases/2.50/docs/licence.txt 2011-06-19 15:06:02 UTC (rev 7044) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/admin/index.php (rev 0) +++ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/admin/index.php 2011-06-19 15:06:02 UTC (rev 7044) @@ -0,0 +1,209 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + + include('../../../mainfile.php'); + include('../../../include/cp_functions.php'); + include('../include/functions.php'); + include('../include/forms.xortify.php'); + + $moduleHandler =& xoops_gethandler('module'); + $configHandler =& xoops_gethandler('config'); + $xoxortify = $moduleHandler->getByDirname('xortify'); + if (is_object($xoxortify)) + $GLOBALS['xoopsModuleConfig'] = $configHandler->getConfigList($xoxortify->getVar('mid')); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"list"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + + switch($op) { + case "signup": + + switch ($fct) + { + case "save": + + $xortifyAuth =& XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xoopsModuleConfig']['protocol']); + $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(2); + 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: + case "signup": + xortify_adminMenu(3); + echo XortifySignupForm(); + break; + } + break; + case "log": + + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(2); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xorTpl'] = new XoopsTpl(); + + $log_handler =& xoops_getmodulehandler('log', 'xortify'); + + $ttl = $log_handler->getCount(NULL); + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'date'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op); + $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'action','provider','date','uname','email','ip4','ip6','proxy-ip4', + 'proxy-ip6','network-addy','agent') as $id => $key) { + $GLOBALS['xorTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'">'.(defined('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))):'_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + } + + $criteria = new Criteria('1','1'); + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $logs = $log_handler->getObjects($criteria, true); + foreach($logs as $id => $log) { + $GLOBALS['xorTpl']->append('log', $log->toArray()); + } + + $GLOBALS['xorTpl']->display('db:xortify_cpanel_log.html'); + break; + default: + case "list": + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(1); + + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xorTpl'] = new XoopsTpl(); + + xoops_load("xoopscache"); + if (!class_exists('XoopsCache')) + xoops_load("cache"); + xoops_load("pagenav"); + + if (!$bans = XoopsCache::read('xortify_bans_cache')) { + require_once( XOOPS_ROOT_PATH.'/modules/xortify/class/'.$GLOBALS['xoopsModuleConfig']['protocol'].'.php' ); + $func = strtoupper($GLOBALS['xoopsModuleConfig']['protocol']).'XortifyExchange'; + ob_start(); + $soapExchg = new $func; + $bans = $soapExchg->retrieveBans(); + ob_end_flush(); + + XoopsCache::delete('xortify_bans_cache'); + XoopsCache::delete('xortify_bans_cache_backup'); + XoopsCache::write('xortify_bans_cache', $bans, $GLOBALS['xoopsModuleConfig']['xortify_seconds']); + XoopsCache::write('xortify_bans_cache_backup', $bans, ($GLOBALS['xoopsModuleConfig']['xortify_seconds'] * 1.45)); + } + + if ($bans['bans']==0) { + echo _XS_AM_NOCACHEMSG; + } else { + + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + + $pagenav = new XoopsPageNav($bans['bans'], $limit, $start, 'start', 'limit='.$limit.'&op='.$op); + $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach($bans['data'] as $key => $data) { + $i++; + if ($i>=$start&&$num<=$limit) { + $num++; + if (strlen($data['ip4'])>0) { + $ipaddy = $data['ip4']; + $iptype = _XS_IPTYPE_IP4; + } elseif (strlen($data['ip6'])>0) { + $ipaddy = $data['ip6']; + $iptype = _XS_IPTYPE_IP6; + } else { + $ipaddy = ''; + $iptype = _XS_IPTYPE_EMPTY; + } + + if (strlen($data['proxy-ip4'])>0) { + $proxyip = $data['proxy-ip4']; + $proxyiptype = _XS_IPTYPE_IP4; + } elseif (strlen($data['proxy-ip6'])>0) { + $proxyip = $data['proxy-ip6']; + $proxyiptype = _XS_IPTYPE_IP6; + } else { + $proxyip = ''; + $proxyiptype = ''; + } + + $GLOBALS['xorTpl']->append('bans', array('iptype' => $iptype, 'ipaddy' => $ipaddy, + 'proxyiptype' => $proxyiptype, 'ip' => $proxyip, + 'netaddy' => $data['network-addy']?$data['network-addy']:' ', + 'macaddy' => $data['mac-addy']?$data['mac-addy']:' ', + 'long' => $data['long']?$data['long']:' ')); + } + } + + $GLOBALS['xorTpl']->display('db:xorify_cpanel_bans.html'); + } + break; + } + + xortify_footer_adminMenu(); + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/admin/menu.php =================================================================== --- XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/admin/menu.php (rev 0) +++ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/admin/menu.php 2011-06-19 15:06:02 UTC (rev 7044) @@ -0,0 +1,26 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +global $adminmenu; +$adminmenu=array(); +$adminmenu[1]['title'] = _XOR_ADMENU1; +$adminmenu[1]['icon'] = 'images/currentbans.png'; +$adminmenu[1]['image'] = 'images/currentbans.png'; +$adminmenu[1]['link'] = "admin/index.php?op=list&fct=bans"; +$adminmenu[2]['title'] = _XOR_ADMENU3; +$adminmenu[2]['icon'] = 'images/log.png'; +$adminmenu[2]['image'] = 'images/log.png'; +$adminmenu[2]['link'] = "admin/index.php?op=log"; +$adminmenu[3]['title'] = _XOR_ADMENU2; +$adminmenu[3]['icon'] = 'images/accesslist.png'; +$adminmenu[3]['image'] = 'images/accesslist.png'; +$adminmenu[3]['link'] = "admin/index.php?op=signup&fct=signup"; +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth.php =================================================================== --- XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth.php (rev 0) +++ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth.php 2011-06-19 15:06:02 UTC (rev 7044) @@ -0,0 +1,118 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +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'] = XOOPS_LICENSE_KEY; + $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/2.50/htdocs/modules/xortify/class/auth/auth_curl.php =================================================================== --- XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth_curl.php (rev 0) +++ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth_curl.php 2011-06-19 15:06:02 UTC (rev 7044) @@ -0,0 +1,169 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +define('XORTIFY_CURL_API', $GLOBALS['xoopsModuleConfig']['xortify_uricurl']); +define('XORTIFY_USER_AGENT', 'Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) XOOPS/20100101 XoopsAuth/1.xx (php)'); +if (!class_exists('Services_JSON')) + include_once(XOOPS_ROOT_PATH.'/modules/xortify/include/JSON.php'); +include_once XOOPS_ROOT_PATH . '/modules/xortify/class/auth/auth_curl_provisionning.php'; + +class XortifyAuthCurl extends XortifyAuth { + + var $curl_client; + var $curl_xoops_username = ''; + var $curl_xoops_password = ''; + var $_dao; + var $_json = ''; + /** + * Authentication Service constructor + */ + function XortifyAuthCurl (&$dao) { + $this->_json = new Services_JSON(SERVICES_JSON_IN_ARR); + if (!$ch = curl_init(XORTIFY_CURL_API)) { + trigger_error('Could not intialise CURL file: '.$url); + return false; + } + $cookies = XOOPS_VAR_PATH.'/cache/xoops_cache/authcurl_'.md5(XORTIFY_CURL_API).'.cookie'; + + curl_setopt($ch, CURLOPT_HEADER, 0); + curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); + curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_USERAGENT, XORTIFY_USER_AGENT); + $this->curl_client =& $ch; + } + + + /** + * Authenticate user again curl directory (Bind) + * + * @param string $uname Username + * @param string $pwd Password + * + * @return bool + */ + function authenticate($uname, $pwd = null) { + $authenticated = false; + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + + if (!$this->curl_client) { + $this->setErrors(0, _AUTH_CURL_EXTENSION_NOT_LOAD); + return $authenticated; + } + + + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_authentication' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "auth" => array('username' => $uname, "password" => $pwd, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pwd), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + return $result["RESULT"]; + } + + + /** + * validate a user via curl + * + * @param string $uname + * @param string $email + * @param string $pass + * @param string $vpass + * + * @return string + */ + function validate($uname, $email, $pass, $vpass){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_user_validate' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "validate" => array('uname' => $uname, "pass" => $pass, "vpass" => $vpass, "email" => $email, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pass), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + + } + + + /** + * get the xoops site disclaimer via curl + * + * @return string + */ + function network_disclaimer(){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_network_disclaimer' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password)))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + 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); + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, 'xoops_create_user='.$this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_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))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array($this->_json->decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + } + + function obj2array($objects) { + $ret = array(); + foreach($objects as $key => $value) { + if (is_a($value, 'stdClass')) { + $ret[$key] = (array)$value; + } elseif (is_array($value)) { + $ret[$key] = $this->obj2array($value); + } else { + $ret[$key] = $value; + } + } + return $ret; + } + +} +// end class + + +?> Added: XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php =================================================================== --- XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php (rev 0) +++ XoopsModules/xortify/releases/2.50/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php 2011-06-19 15:06:02 UTC (rev 7044) @@ -0,0 +1,190 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 -... [truncated message content] |
From: <wis...@us...> - 2011-07-14 03:36:56
|
Revision: 7129 http://xoops.svn.sourceforge.net/xoops/?rev=7129&view=rev Author: wishcraft Date: 2011-07-14 03:36:47 +0000 (Thu, 14 Jul 2011) Log Message: ----------- Xortify 2.51 - The Final Fortification In Protection for XOOPS (FINAL) Added Paths: ----------- XoopsModules/xortify/releases/2.51/ XoopsModules/xortify/releases/2.51/docs/ XoopsModules/xortify/releases/2.51/docs/INSTALL XoopsModules/xortify/releases/2.51/docs/UPGRADE XoopsModules/xortify/releases/2.51/docs/licence.txt XoopsModules/xortify/releases/2.51/htdocs/ XoopsModules/xortify/releases/2.51/htdocs/modules/ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/admin/ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/index.html XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/index.html XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/cron/ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/cron/index.html XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/images/ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/images/accessdenied.png XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/images/accesslist.png XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/images/index.html XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/images/left_both.gif XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/images/right_both.gif XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/images/xortify_slogo.png XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/index.html XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/language/ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/language/english/ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/language/english/index.html XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/language/index.html XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/plugin/ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/plugin/index.html XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/preloads/index.html XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/providers/ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/providers/index.html XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/providers/protector/ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/providers/protector/index.html XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/providers/spiders/ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/providers/xortify/ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/providers/xortify/index.html XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/sql/ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/sql/index.html XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/sql/mysql.sql XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/templates/ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/templates/index.html XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/templates/xorify_cpanel_bans.html XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/templates/xortify_cpanel_log.html XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/xoops_version.php Added: XoopsModules/xortify/releases/2.51/docs/INSTALL =================================================================== --- XoopsModules/xortify/releases/2.51/docs/INSTALL (rev 0) +++ XoopsModules/xortify/releases/2.51/docs/INSTALL 2011-07-14 03:36:47 UTC (rev 7129) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.48 | +| | ++----[ 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 | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - mainfile.php (pre 2.4 series) ]---------------------------------------+ +| | +| 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 3 - header.php (pre 2.4 series) ]----------------------------------------+ +| | +| Below the lin of footer.php which reads $xoopsTpl =& $xoTheme->template; | +| | +| [code] | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.add.meta.php' ); | +| [/code] | +| | ++-----------------------------------------------------------------------------------+ \ No newline at end of file Added: XoopsModules/xortify/releases/2.51/docs/UPGRADE =================================================================== --- XoopsModules/xortify/releases/2.51/docs/UPGRADE (rev 0) +++ XoopsModules/xortify/releases/2.51/docs/UPGRADE 2011-07-14 03:36:47 UTC (rev 7129) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.22) | +| * Xortify Network Security Drone | +| | +| Make sure you delete the 'providers' folder in the existing module then upload | +| Xortify 2.30. Once you have install the file base this way you will remember | +| to upgrade the module in the system modules application in the xoops system | +| menu you will need to then goto the preferences and make sure you are running | +| the protector provider if you are running protector this will populate the | +| cloud with your bans that come in protector as well:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - 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 3 - 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/2.51/docs/licence.txt =================================================================== --- XoopsModules/xortify/releases/2.51/docs/licence.txt (rev 0) +++ XoopsModules/xortify/releases/2.51/docs/licence.txt 2011-07-14 03:36:47 UTC (rev 7129) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/admin/index.php (rev 0) +++ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/admin/index.php 2011-07-14 03:36:47 UTC (rev 7129) @@ -0,0 +1,209 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + + include('../../../mainfile.php'); + include('../../../include/cp_functions.php'); + include('../include/functions.php'); + include('../include/forms.xortify.php'); + + $moduleHandler =& xoops_gethandler('module'); + $configHandler =& xoops_gethandler('config'); + $xoxortify = $moduleHandler->getByDirname('xortify'); + if (is_object($xoxortify)) + $GLOBALS['xoopsModuleConfig'] = $configHandler->getConfigList($xoxortify->getVar('mid')); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"list"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + + switch($op) { + case "signup": + + switch ($fct) + { + case "save": + + $xortifyAuth =& XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xoopsModuleConfig']['protocol']); + $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(2); + 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: + case "signup": + xortify_adminMenu(3); + echo XortifySignupForm(); + break; + } + break; + case "log": + + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(2); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xorTpl'] = new XoopsTpl(); + + $log_handler =& xoops_getmodulehandler('log', 'xortify'); + + $ttl = $log_handler->getCount(NULL); + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'date'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op); + $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'action','provider','date','uname','email','ip4','ip6','proxy-ip4', + 'proxy-ip6','network-addy','agent') as $id => $key) { + $GLOBALS['xorTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'">'.(defined('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))):'_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + } + + $criteria = new Criteria('1','1'); + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $logs = $log_handler->getObjects($criteria, true); + foreach($logs as $id => $log) { + $GLOBALS['xorTpl']->append('log', $log->toArray()); + } + + $GLOBALS['xorTpl']->display('db:xortify_cpanel_log.html'); + break; + default: + case "list": + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(1); + + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xorTpl'] = new XoopsTpl(); + + xoops_load("xoopscache"); + if (!class_exists('XoopsCache')) + xoops_load("cache"); + xoops_load("pagenav"); + + if (!$bans = XoopsCache::read('xortify_bans_cache')) { + require_once( XOOPS_ROOT_PATH.'/modules/xortify/class/'.$GLOBALS['xoopsModuleConfig']['protocol'].'.php' ); + $func = strtoupper($GLOBALS['xoopsModuleConfig']['protocol']).'XortifyExchange'; + ob_start(); + $soapExchg = new $func; + $bans = $soapExchg->retrieveBans(); + ob_end_flush(); + + XoopsCache::delete('xortify_bans_cache'); + XoopsCache::delete('xortify_bans_cache_backup'); + XoopsCache::write('xortify_bans_cache', $bans, $GLOBALS['xoopsModuleConfig']['xortify_seconds']); + XoopsCache::write('xortify_bans_cache_backup', $bans, ($GLOBALS['xoopsModuleConfig']['xortify_seconds'] * 1.45)); + } + + if ($bans['bans']==0) { + echo _XS_AM_NOCACHEMSG; + } else { + + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + + $pagenav = new XoopsPageNav($bans['bans'], $limit, $start, 'start', 'limit='.$limit.'&op='.$op); + $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach($bans['data'] as $key => $data) { + $i++; + if ($i>=$start&&$num<=$limit) { + $num++; + if (strlen($data['ip4'])>0) { + $ipaddy = $data['ip4']; + $iptype = _XS_IPTYPE_IP4; + } elseif (strlen($data['ip6'])>0) { + $ipaddy = $data['ip6']; + $iptype = _XS_IPTYPE_IP6; + } else { + $ipaddy = ''; + $iptype = _XS_IPTYPE_EMPTY; + } + + if (strlen($data['proxy-ip4'])>0) { + $proxyip = $data['proxy-ip4']; + $proxyiptype = _XS_IPTYPE_IP4; + } elseif (strlen($data['proxy-ip6'])>0) { + $proxyip = $data['proxy-ip6']; + $proxyiptype = _XS_IPTYPE_IP6; + } else { + $proxyip = ''; + $proxyiptype = ''; + } + + $GLOBALS['xorTpl']->append('bans', array('iptype' => $iptype, 'ipaddy' => $ipaddy, + 'proxyiptype' => $proxyiptype, 'ip' => $proxyip, + 'netaddy' => $data['network-addy']?$data['network-addy']:' ', + 'macaddy' => $data['mac-addy']?$data['mac-addy']:' ', + 'long' => $data['long']?$data['long']:' ')); + } + } + + $GLOBALS['xorTpl']->display('db:xorify_cpanel_bans.html'); + } + break; + } + + xortify_footer_adminMenu(); + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/admin/menu.php =================================================================== --- XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/admin/menu.php (rev 0) +++ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/admin/menu.php 2011-07-14 03:36:47 UTC (rev 7129) @@ -0,0 +1,26 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +global $adminmenu; +$adminmenu=array(); +$adminmenu[1]['title'] = _XOR_ADMENU1; +$adminmenu[1]['icon'] = 'images/currentbans.png'; +$adminmenu[1]['image'] = 'images/currentbans.png'; +$adminmenu[1]['link'] = "admin/index.php?op=list&fct=bans"; +$adminmenu[2]['title'] = _XOR_ADMENU3; +$adminmenu[2]['icon'] = 'images/log.png'; +$adminmenu[2]['image'] = 'images/log.png'; +$adminmenu[2]['link'] = "admin/index.php?op=log"; +$adminmenu[3]['title'] = _XOR_ADMENU2; +$adminmenu[3]['icon'] = 'images/accesslist.png'; +$adminmenu[3]['image'] = 'images/accesslist.png'; +$adminmenu[3]['link'] = "admin/index.php?op=signup&fct=signup"; +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth.php =================================================================== --- XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth.php (rev 0) +++ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth.php 2011-07-14 03:36:47 UTC (rev 7129) @@ -0,0 +1,118 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +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'] = XOOPS_LICENSE_KEY; + $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/2.51/htdocs/modules/xortify/class/auth/auth_curl.php =================================================================== --- XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth_curl.php (rev 0) +++ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth_curl.php 2011-07-14 03:36:47 UTC (rev 7129) @@ -0,0 +1,166 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +define('XORTIFY_CURL_API', $GLOBALS['xoopsModuleConfig']['xortify_uricurl']); +define('XORTIFY_USER_AGENT', 'Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) XOOPS/20100101 XoopsAuth/1.xx (php)'); +include_once XOOPS_ROOT_PATH . '/modules/xortify/class/auth/auth_curl_provisionning.php'; + +class XortifyAuthCurl extends XortifyAuth { + + var $curl_client; + var $curl_xoops_username = ''; + var $curl_xoops_password = ''; + var $_dao; + var $_json = ''; + /** + * Authentication Service constructor + */ + function XortifyAuthCurl (&$dao) { + if (!$ch = curl_init(XORTIFY_CURL_API)) { + trigger_error('Could not intialise CURL file: '.XORTIFY_CURL_API); + return false; + } + $cookies = XOOPS_VAR_PATH.'/cache/xoops_cache/authcurl_'.md5(XORTIFY_CURL_API).'.cookie'; + + curl_setopt($ch, CURLOPT_HEADER, 0); + curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); + curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_USERAGENT, XORTIFY_USER_AGENT); + $this->curl_client =& $ch; + } + + + /** + * Authenticate user again curl directory (Bind) + * + * @param string $uname Username + * @param string $pwd Password + * + * @return bool + */ + function authenticate($uname, $pwd = null) { + $authenticated = false; + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + + if (!$this->curl_client) { + $this->setErrors(0, _AUTH_CURL_EXTENSION_NOT_LOAD); + return $authenticated; + } + + + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_authentication' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "auth" => array('username' => $uname, "password" => $pwd, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pwd), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array(json_decode($data)); + return $result["RESULT"]; + } + + + /** + * validate a user via curl + * + * @param string $uname + * @param string $email + * @param string $pass + * @param string $vpass + * + * @return string + */ + function validate($uname, $email, $pass, $vpass){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_user_validate' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "validate" => array('uname' => $uname, "pass" => $pass, "vpass" => $vpass, "email" => $email, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pass), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array(json_decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + + } + + + /** + * get the xoops site disclaimer via curl + * + * @return string + */ + function network_disclaimer(){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_network_disclaimer' => $this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password)))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array(json_decode($data)); + 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); + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, 'xoops_create_user='.$this->_json->encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_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))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array(json_decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + } + + function obj2array($objects) { + $ret = array(); + foreach($objects as $key => $value) { + if (is_a($value, 'stdClass')) { + $ret[$key] = (array)$value; + } elseif (is_array($value)) { + $ret[$key] = $this->obj2array($value); + } else { + $ret[$key] = $value; + } + } + return $ret; + } + +} +// end class + + +?> Added: XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php =================================================================== --- XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php (rev 0) +++ XoopsModules/xortify/releases/2.51/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php 2011-07-14 03:36:47 UTC (rev 7129) @@ -0,0 +1,190 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +class XortifyAuthCurlProvisionning { + + var $_auth_instance; + + function &getInstance(&$auth_instance) + { + static $provis_instance; + if (!isset($pr... [truncated message content] |
From: <wis...@us...> - 2011-08-29 10:59:28
|
Revision: 7387 http://xoops.svn.sourceforge.net/xoops/?rev=7387&view=rev Author: wishcraft Date: 2011-08-29 10:59:19 +0000 (Mon, 29 Aug 2011) Log Message: ----------- Xortify 2.5.3 (Client) - Pre PHP 5.3 compatibility added Added Paths: ----------- XoopsModules/xortify/releases/2.53/ XoopsModules/xortify/releases/2.53/docs/ XoopsModules/xortify/releases/2.53/docs/INSTALL XoopsModules/xortify/releases/2.53/docs/UPGRADE XoopsModules/xortify/releases/2.53/docs/licence.txt XoopsModules/xortify/releases/2.53/htdocs/ XoopsModules/xortify/releases/2.53/htdocs/modules/ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/admin/ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/index.html XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/index.html XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/cron/ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/cron/index.html XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/images/ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/images/accessdenied.png XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/images/accesslist.png XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/images/index.html XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/images/left_both.gif XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/images/right_both.gif XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/images/xortify_slogo.png XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/index.html XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/language/ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/language/english/ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/language/english/index.html XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/language/index.html XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/plugin/ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/plugin/index.html XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/preloads/index.html XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/providers/ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/providers/index.html XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/providers/protector/ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/providers/protector/index.html XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/providers/spiders/ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/providers/xortify/ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/providers/xortify/index.html XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/sql/ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/sql/index.html XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/sql/mysql.sql XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/templates/ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/templates/index.html XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/templates/xorify_cpanel_bans.html XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/templates/xortify_cpanel_log.html XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/xoops_version.php Added: XoopsModules/xortify/releases/2.53/docs/INSTALL =================================================================== --- XoopsModules/xortify/releases/2.53/docs/INSTALL (rev 0) +++ XoopsModules/xortify/releases/2.53/docs/INSTALL 2011-08-29 10:59:19 UTC (rev 7387) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.48 | +| | ++----[ 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 | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - mainfile.php (pre 2.4 series) ]---------------------------------------+ +| | +| 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 3 - header.php (pre 2.4 series) ]----------------------------------------+ +| | +| Below the lin of footer.php which reads $xoopsTpl =& $xoTheme->template; | +| | +| [code] | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.add.meta.php' ); | +| [/code] | +| | ++-----------------------------------------------------------------------------------+ \ No newline at end of file Added: XoopsModules/xortify/releases/2.53/docs/UPGRADE =================================================================== --- XoopsModules/xortify/releases/2.53/docs/UPGRADE (rev 0) +++ XoopsModules/xortify/releases/2.53/docs/UPGRADE 2011-08-29 10:59:19 UTC (rev 7387) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.22) | +| * Xortify Network Security Drone | +| | +| Make sure you delete the 'providers' folder in the existing module then upload | +| Xortify 2.30. Once you have install the file base this way you will remember | +| to upgrade the module in the system modules application in the xoops system | +| menu you will need to then goto the preferences and make sure you are running | +| the protector provider if you are running protector this will populate the | +| cloud with your bans that come in protector as well:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - 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 3 - 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/2.53/docs/licence.txt =================================================================== --- XoopsModules/xortify/releases/2.53/docs/licence.txt (rev 0) +++ XoopsModules/xortify/releases/2.53/docs/licence.txt 2011-08-29 10:59:19 UTC (rev 7387) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/admin/index.php (rev 0) +++ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/admin/index.php 2011-08-29 10:59:19 UTC (rev 7387) @@ -0,0 +1,209 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + + include('../../../mainfile.php'); + include('../../../include/cp_functions.php'); + include('../include/functions.php'); + include('../include/forms.xortify.php'); + + $moduleHandler =& xoops_gethandler('module'); + $configHandler =& xoops_gethandler('config'); + $xoxortify = $moduleHandler->getByDirname('xortify'); + if (is_object($xoxortify)) + $GLOBALS['xoopsModuleConfig'] = $configHandler->getConfigList($xoxortify->getVar('mid')); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"list"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + + switch($op) { + case "signup": + + switch ($fct) + { + case "save": + + $xortifyAuth =& XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xoopsModuleConfig']['protocol']); + $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(2); + 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: + case "signup": + xortify_adminMenu(3); + echo XortifySignupForm(); + break; + } + break; + case "log": + + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(2); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xorTpl'] = new XoopsTpl(); + + $log_handler =& xoops_getmodulehandler('log', 'xortify'); + + $ttl = $log_handler->getCount(NULL); + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'date'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op); + $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'action','provider','date','uname','email','ip4','ip6','proxy-ip4', + 'proxy-ip6','network-addy','agent') as $id => $key) { + $GLOBALS['xorTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'">'.(defined('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))):'_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + } + + $criteria = new Criteria('1','1'); + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $logs = $log_handler->getObjects($criteria, true); + foreach($logs as $id => $log) { + $GLOBALS['xorTpl']->append('log', $log->toArray()); + } + + $GLOBALS['xorTpl']->display('db:xortify_cpanel_log.html'); + break; + default: + case "list": + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(1); + + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xorTpl'] = new XoopsTpl(); + + xoops_load("xoopscache"); + if (!class_exists('XoopsCache')) + xoops_load("cache"); + xoops_load("pagenav"); + + if (!$bans = XoopsCache::read('xortify_bans_cache')) { + require_once( XOOPS_ROOT_PATH.'/modules/xortify/class/'.$GLOBALS['xoopsModuleConfig']['protocol'].'.php' ); + $func = strtoupper($GLOBALS['xoopsModuleConfig']['protocol']).'XortifyExchange'; + ob_start(); + $soapExchg = new $func; + $bans = $soapExchg->retrieveBans(); + ob_end_flush(); + + XoopsCache::delete('xortify_bans_cache'); + XoopsCache::delete('xortify_bans_cache_backup'); + XoopsCache::write('xortify_bans_cache', $bans, $GLOBALS['xoopsModuleConfig']['xortify_seconds']); + XoopsCache::write('xortify_bans_cache_backup', $bans, ($GLOBALS['xoopsModuleConfig']['xortify_seconds'] * 1.45)); + } + + if ($bans['bans']==0) { + echo _XS_AM_NOCACHEMSG; + } else { + + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + + $pagenav = new XoopsPageNav($bans['bans'], $limit, $start, 'start', 'limit='.$limit.'&op='.$op); + $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach($bans['data'] as $key => $data) { + $i++; + if ($i>=$start&&$num<=$limit) { + $num++; + if (strlen($data['ip4'])>0) { + $ipaddy = $data['ip4']; + $iptype = _XS_IPTYPE_IP4; + } elseif (strlen($data['ip6'])>0) { + $ipaddy = $data['ip6']; + $iptype = _XS_IPTYPE_IP6; + } else { + $ipaddy = ''; + $iptype = _XS_IPTYPE_EMPTY; + } + + if (strlen($data['proxy-ip4'])>0) { + $proxyip = $data['proxy-ip4']; + $proxyiptype = _XS_IPTYPE_IP4; + } elseif (strlen($data['proxy-ip6'])>0) { + $proxyip = $data['proxy-ip6']; + $proxyiptype = _XS_IPTYPE_IP6; + } else { + $proxyip = ''; + $proxyiptype = ''; + } + + $GLOBALS['xorTpl']->append('bans', array('iptype' => $iptype, 'ipaddy' => $ipaddy, + 'proxyiptype' => $proxyiptype, 'ip' => $proxyip, + 'netaddy' => $data['network-addy']?$data['network-addy']:' ', + 'macaddy' => $data['mac-addy']?$data['mac-addy']:' ', + 'long' => $data['long']?$data['long']:' ')); + } + } + + $GLOBALS['xorTpl']->display('db:xorify_cpanel_bans.html'); + } + break; + } + + xortify_footer_adminMenu(); + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/admin/menu.php =================================================================== --- XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/admin/menu.php (rev 0) +++ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/admin/menu.php 2011-08-29 10:59:19 UTC (rev 7387) @@ -0,0 +1,26 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +global $adminmenu; +$adminmenu=array(); +$adminmenu[1]['title'] = _XOR_ADMENU1; +$adminmenu[1]['icon'] = 'images/currentbans.png'; +$adminmenu[1]['image'] = 'images/currentbans.png'; +$adminmenu[1]['link'] = "admin/index.php?op=list&fct=bans"; +$adminmenu[2]['title'] = _XOR_ADMENU3; +$adminmenu[2]['icon'] = 'images/log.png'; +$adminmenu[2]['image'] = 'images/log.png'; +$adminmenu[2]['link'] = "admin/index.php?op=log"; +$adminmenu[3]['title'] = _XOR_ADMENU2; +$adminmenu[3]['icon'] = 'images/accesslist.png'; +$adminmenu[3]['image'] = 'images/accesslist.png'; +$adminmenu[3]['link'] = "admin/index.php?op=signup&fct=signup"; +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth.php =================================================================== --- XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth.php (rev 0) +++ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth.php 2011-08-29 10:59:19 UTC (rev 7387) @@ -0,0 +1,118 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +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'] = XOOPS_LICENSE_KEY; + $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/2.53/htdocs/modules/xortify/class/auth/auth_curl.php =================================================================== --- XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_curl.php (rev 0) +++ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_curl.php 2011-08-29 10:59:19 UTC (rev 7387) @@ -0,0 +1,185 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + +if (!function_exists('json_encode')){ + function json_encode($data) { + static $json = NULL; + if (!class_exists('Services_JSON') ) { include_once $GLOBALS['xoops']->path('/modules/xortify/include/JSON.php'); } + $json = new Services_JSON(); + return $json->encode($data); + } +} + +if (!function_exists('json_decode')){ + function json_decode($data) { + static $json = NULL; + if (!class_exists('Services_JSON') ) { include_once $GLOBALS['xoops']->path('/modules/xortify/include/JSON.php'); } + $json = new Services_JSON(); + return $json->decode($data); + } +} + + +define('XORTIFY_CURL_API', $GLOBALS['xoopsModuleConfig']['xortify_uricurl']); +define('XORTIFY_USER_AGENT', 'Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) XOOPS/20100101 XoopsAuth/1.xx (php)'); +include_once XOOPS_ROOT_PATH . '/modules/xortify/class/auth/auth_curl_provisionning.php'; + +class XortifyAuthCurl extends XortifyAuth { + + var $curl_client; + var $curl_xoops_username = ''; + var $curl_xoops_password = ''; + var $_dao; + var $_json = ''; + /** + * Authentication Service constructor + */ + function XortifyAuthCurl (&$dao) { + if (!$ch = curl_init(XORTIFY_CURL_API)) { + trigger_error('Could not intialise CURL file: '.XORTIFY_CURL_API); + return false; + } + $cookies = XOOPS_VAR_PATH.'/cache/xoops_cache/authcurl_'.md5(XORTIFY_CURL_API).'.cookie'; + + curl_setopt($ch, CURLOPT_HEADER, 0); + curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); + curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_USERAGENT, XORTIFY_USER_AGENT); + $this->curl_client =& $ch; + } + + + /** + * Authenticate user again curl directory (Bind) + * + * @param string $uname Username + * @param string $pwd Password + * + * @return bool + */ + function authenticate($uname, $pwd = null) { + $authenticated = false; + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + + if (!$this->curl_client) { + $this->setErrors(0, _AUTH_CURL_EXTENSION_NOT_LOAD); + return $authenticated; + } + + + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_authentication' => json_encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "auth" => array('username' => $uname, "password" => $pwd, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pwd), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array(json_decode($data)); + return $result["RESULT"]; + } + + + /** + * validate a user via curl + * + * @param string $uname + * @param string $email + * @param string $pass + * @param string $vpass + * + * @return string + */ + function validate($uname, $email, $pass, $vpass){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_user_validate' => json_encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "validate" => array('uname' => $uname, "pass" => $pass, "vpass" => $vpass, "email" => $email, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pass), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array(json_decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + + } + + + /** + * get the xoops site disclaimer via curl + * + * @return string + */ + function network_disclaimer(){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_network_disclaimer' => json_encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password)))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + + $result = $this->obj2array(json_decode($data)); + 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); + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, 'xoops_create_user='.json_encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_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))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array(json_decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + } + + function obj2array($objects) { + $ret = array(); + foreach($objects as $key => $value) { + if (is_a($value, 'stdClass')) { + $ret[$key] = (array)$value; + } elseif (is_array($value)) { + $ret[$key] = $this->obj2array($value); + } else { + $ret[$key] = $value; + } + } + return $ret; + } + +} +// end class + + +?> Added: XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php =================================================================== --- XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php (rev 0) +++ XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/c... [truncated message content] |
From: <wis...@us...> - 2011-09-14 07:43:12
|
Revision: 7598 http://xoops.svn.sourceforge.net/xoops/?rev=7598&view=rev Author: wishcraft Date: 2011-09-14 07:43:01 +0000 (Wed, 14 Sep 2011) Log Message: ----------- Xortify 2.53 (europe cloud settings) Added Paths: ----------- XoopsModules/xortify/releases/2.53 (asia pacific)/ XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/2.53 (europe)/ XoopsModules/xortify/releases/2.53 (europe)/docs/ XoopsModules/xortify/releases/2.53 (europe)/docs/INSTALL XoopsModules/xortify/releases/2.53 (europe)/docs/UPGRADE XoopsModules/xortify/releases/2.53 (europe)/docs/licence.txt XoopsModules/xortify/releases/2.53 (europe)/htdocs/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/admin/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/auth/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/auth/index.html XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/index.html XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/cron/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/cron/index.html XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/images/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/images/accessdenied.png XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/images/accesslist.png XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/images/index.html XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/images/left_both.gif XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/images/right_both.gif XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/images/xortify_slogo.png XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/index.html XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/language/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/language/english/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/language/english/index.html XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/language/index.html XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/plugin/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/plugin/index.html XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/preloads/index.html XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/providers/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/providers/index.html XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/providers/protector/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/providers/protector/index.html XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/providers/spiders/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/providers/xortify/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/providers/xortify/index.html XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/sql/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/sql/index.html XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/sql/mysql.sql XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/templates/ XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/templates/index.html XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/templates/xorify_cpanel_bans.html XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/templates/xortify_cpanel_log.html XoopsModules/xortify/releases/2.53 (europe)/htdocs/modules/xortify/xoops_version.php Removed Paths: ------------- XoopsModules/xortify/releases/2.53/ XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/providers/xortify/post.loader.php Deleted: XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/admin/index.php 2011-08-29 10:59:19 UTC (rev 7387) +++ XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/admin/index.php 2011-09-14 07:43:01 UTC (rev 7598) @@ -1,209 +0,0 @@ -<?php -/** - * @package xortify - * @subpackage module - * @description Sector Network Security Drone - * @author Simon Roberts WISHCRAFT <si...@ch...> - * @copyright copyright (c) 2010-2013 XOOPS.org - * @licence GPL 2.0 - see docs/LICENCE.txt - */ - - - include('../../../mainfile.php'); - include('../../../include/cp_functions.php'); - include('../include/functions.php'); - include('../include/forms.xortify.php'); - - $moduleHandler =& xoops_gethandler('module'); - $configHandler =& xoops_gethandler('config'); - $xoxortify = $moduleHandler->getByDirname('xortify'); - if (is_object($xoxortify)) - $GLOBALS['xoopsModuleConfig'] = $configHandler->getConfigList($xoxortify->getVar('mid')); - - xoops_cp_header(); - - $op = isset($_REQUEST['op'])?$_REQUEST['op']:"list"; - $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; - - switch($op) { - case "signup": - - switch ($fct) - { - case "save": - - $xortifyAuth =& XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xoopsModuleConfig']['protocol']); - $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(2); - 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: - case "signup": - xortify_adminMenu(3); - echo XortifySignupForm(); - break; - } - break; - case "log": - - xoops_loadLanguage('admin', 'xortify'); - xortify_adminMenu(2); - - include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); - include_once $GLOBALS['xoops']->path( "/class/template.php" ); - $GLOBALS['xorTpl'] = new XoopsTpl(); - - $log_handler =& xoops_getmodulehandler('log', 'xortify'); - - $ttl = $log_handler->getCount(NULL); - $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; - $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; - $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; - $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'date'; - - $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op); - $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); - - foreach (array( 'action','provider','date','uname','email','ip4','ip6','proxy-ip4', - 'proxy-ip6','network-addy','agent') as $id => $key) { - $GLOBALS['xorTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'">'.(defined('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))):'_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); - } - - $criteria = new Criteria('1','1'); - $criteria->setStart($start); - $criteria->setLimit($limit); - $criteria->setSort('`'.$sort.'`'); - $criteria->setOrder($order); - - $logs = $log_handler->getObjects($criteria, true); - foreach($logs as $id => $log) { - $GLOBALS['xorTpl']->append('log', $log->toArray()); - } - - $GLOBALS['xorTpl']->display('db:xortify_cpanel_log.html'); - break; - default: - case "list": - xoops_loadLanguage('admin', 'xortify'); - xortify_adminMenu(1); - - include_once $GLOBALS['xoops']->path( "/class/template.php" ); - $GLOBALS['xorTpl'] = new XoopsTpl(); - - xoops_load("xoopscache"); - if (!class_exists('XoopsCache')) - xoops_load("cache"); - xoops_load("pagenav"); - - if (!$bans = XoopsCache::read('xortify_bans_cache')) { - require_once( XOOPS_ROOT_PATH.'/modules/xortify/class/'.$GLOBALS['xoopsModuleConfig']['protocol'].'.php' ); - $func = strtoupper($GLOBALS['xoopsModuleConfig']['protocol']).'XortifyExchange'; - ob_start(); - $soapExchg = new $func; - $bans = $soapExchg->retrieveBans(); - ob_end_flush(); - - XoopsCache::delete('xortify_bans_cache'); - XoopsCache::delete('xortify_bans_cache_backup'); - XoopsCache::write('xortify_bans_cache', $bans, $GLOBALS['xoopsModuleConfig']['xortify_seconds']); - XoopsCache::write('xortify_bans_cache_backup', $bans, ($GLOBALS['xoopsModuleConfig']['xortify_seconds'] * 1.45)); - } - - if ($bans['bans']==0) { - echo _XS_AM_NOCACHEMSG; - } else { - - $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; - $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; - - $pagenav = new XoopsPageNav($bans['bans'], $limit, $start, 'start', 'limit='.$limit.'&op='.$op); - $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); - - foreach($bans['data'] as $key => $data) { - $i++; - if ($i>=$start&&$num<=$limit) { - $num++; - if (strlen($data['ip4'])>0) { - $ipaddy = $data['ip4']; - $iptype = _XS_IPTYPE_IP4; - } elseif (strlen($data['ip6'])>0) { - $ipaddy = $data['ip6']; - $iptype = _XS_IPTYPE_IP6; - } else { - $ipaddy = ''; - $iptype = _XS_IPTYPE_EMPTY; - } - - if (strlen($data['proxy-ip4'])>0) { - $proxyip = $data['proxy-ip4']; - $proxyiptype = _XS_IPTYPE_IP4; - } elseif (strlen($data['proxy-ip6'])>0) { - $proxyip = $data['proxy-ip6']; - $proxyiptype = _XS_IPTYPE_IP6; - } else { - $proxyip = ''; - $proxyiptype = ''; - } - - $GLOBALS['xorTpl']->append('bans', array('iptype' => $iptype, 'ipaddy' => $ipaddy, - 'proxyiptype' => $proxyiptype, 'ip' => $proxyip, - 'netaddy' => $data['network-addy']?$data['network-addy']:' ', - 'macaddy' => $data['mac-addy']?$data['mac-addy']:' ', - 'long' => $data['long']?$data['long']:' ')); - } - } - - $GLOBALS['xorTpl']->display('db:xorify_cpanel_bans.html'); - } - break; - } - - xortify_footer_adminMenu(); - xoops_cp_footer(); -?> \ No newline at end of file Copied: XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/admin/index.php (from rev 7391, XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/admin/index.php) =================================================================== --- XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/admin/index.php (rev 0) +++ XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/admin/index.php 2011-09-14 07:43:01 UTC (rev 7598) @@ -0,0 +1,210 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + + include('../../../mainfile.php'); + include('../../../include/cp_functions.php'); + include('../include/functions.php'); + include('../include/forms.xortify.php'); + + $moduleHandler =& xoops_gethandler('module'); + $configHandler =& xoops_gethandler('config'); + $xoxortify = $moduleHandler->getByDirname('xortify'); + if (is_object($xoxortify)) + $GLOBALS['xoopsModuleConfig'] = $configHandler->getConfigList($xoxortify->getVar('mid')); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"list"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + + switch($op) { + case "signup": + + switch ($fct) + { + case "save": + + $xortifyAuth =& XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xoopsModuleConfig']['protocol']); + $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(2); + 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: + case "signup": + xortify_adminMenu(3); + echo XortifySignupForm(); + break; + } + break; + case "log": + + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(2); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xorTpl'] = new XoopsTpl(); + + $log_handler =& xoops_getmodulehandler('log', 'xortify'); + + $ttl = $log_handler->getCount(NULL); + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'date'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op); + $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'action','provider','date','uname','email','ip4','ip6','proxy-ip4', + 'proxy-ip6','network-addy','agent') as $id => $key) { + $GLOBALS['xorTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'">'.(defined('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))):'_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + } + + $criteria = new Criteria('1','1'); + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $logs = $log_handler->getObjects($criteria, true); + foreach($logs as $id => $log) { + $GLOBALS['xorTpl']->append('log', $log->toArray()); + } + + $GLOBALS['xorTpl']->display('db:xortify_cpanel_log.html'); + break; + default: + case "list": + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(1); + + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xorTpl'] = new XoopsTpl(); + + xoops_load("xoopscache"); + if (!class_exists('XoopsCache')) + xoops_load("cache"); + xoops_load("pagenav"); + + if (!$bans = XoopsCache::read('xortify_bans_cache')) { + require_once( XOOPS_ROOT_PATH.'/modules/xortify/class/'.$GLOBALS['xoopsModuleConfig']['protocol'].'.php' ); + $func = strtoupper($GLOBALS['xoopsModuleConfig']['protocol']).'XortifyExchange'; + ob_start(); + $soapExchg = new $func; + $bans = $soapExchg->retrieveBans(); + ob_end_flush(); + + XoopsCache::delete('xortify_bans_cache'); + XoopsCache::delete('xortify_bans_cache_backup'); + XoopsCache::write('xortify_bans_cache', $bans, $GLOBALS['xoopsModuleConfig']['xortify_seconds']); + XoopsCache::write('xortify_bans_cache_backup', $bans, ($GLOBALS['xoopsModuleConfig']['xortify_seconds'] * 1.45)); + } + + if ($bans['bans']==0) { + echo _XS_AM_NOCACHEMSG; + } else { + + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + + $pagenav = new XoopsPageNav($bans['bans'], $limit, $start, 'start', 'limit='.$limit.'&op='.$op); + $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); + $i=0; + $num=0; + foreach($bans['data'] as $key => $data) { + $i++; + if ($i>=$start&&$num<=$limit) { + $num++; + if (strlen($data['ip4'])>0) { + $ipaddy = $data['ip4']; + $iptype = _XS_IPTYPE_IP4; + } elseif (strlen($data['ip6'])>0) { + $ipaddy = $data['ip6']; + $iptype = _XS_IPTYPE_IP6; + } else { + $ipaddy = ''; + $iptype = _XS_IPTYPE_EMPTY; + } + + if (strlen($data['proxy-ip4'])>0) { + $proxyip = $data['proxy-ip4']; + $proxyiptype = _XS_IPTYPE_IP4; + } elseif (strlen($data['proxy-ip6'])>0) { + $proxyip = $data['proxy-ip6']; + $proxyiptype = _XS_IPTYPE_IP6; + } else { + $proxyip = ''; + $proxyiptype = ''; + } + + $GLOBALS['xorTpl']->append('bans', array('iptype' => $iptype, 'ipaddy' => $ipaddy, + 'proxyiptype' => $proxyiptype, 'ip' => $proxyip, + 'netaddy' => $data['network-addy']?$data['network-addy']:' ', + 'macaddy' => $data['mac-addy']?$data['mac-addy']:' ', + 'long' => $data['long']?$data['long']:' ')); + } + } + + $GLOBALS['xorTpl']->display('db:xorify_cpanel_bans.html'); + } + break; + } + + xortify_footer_adminMenu(); + xoops_cp_footer(); +?> \ No newline at end of file Deleted: XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curl.php =================================================================== --- XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_curl.php 2011-08-29 10:59:19 UTC (rev 7387) +++ XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curl.php 2011-09-14 07:43:01 UTC (rev 7598) @@ -1,185 +0,0 @@ -<?php -/** - * @package xortify - * @subpackage module - * @description Sector Network Security Drone - * @author Simon Roberts WISHCRAFT <si...@ch...> - * @copyright copyright (c) 2010-2013 XOOPS.org - * @licence GPL 2.0 - see docs/LICENCE.txt - */ - -if (!function_exists('json_encode')){ - function json_encode($data) { - static $json = NULL; - if (!class_exists('Services_JSON') ) { include_once $GLOBALS['xoops']->path('/modules/xortify/include/JSON.php'); } - $json = new Services_JSON(); - return $json->encode($data); - } -} - -if (!function_exists('json_decode')){ - function json_decode($data) { - static $json = NULL; - if (!class_exists('Services_JSON') ) { include_once $GLOBALS['xoops']->path('/modules/xortify/include/JSON.php'); } - $json = new Services_JSON(); - return $json->decode($data); - } -} - - -define('XORTIFY_CURL_API', $GLOBALS['xoopsModuleConfig']['xortify_uricurl']); -define('XORTIFY_USER_AGENT', 'Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) XOOPS/20100101 XoopsAuth/1.xx (php)'); -include_once XOOPS_ROOT_PATH . '/modules/xortify/class/auth/auth_curl_provisionning.php'; - -class XortifyAuthCurl extends XortifyAuth { - - var $curl_client; - var $curl_xoops_username = ''; - var $curl_xoops_password = ''; - var $_dao; - var $_json = ''; - /** - * Authentication Service constructor - */ - function XortifyAuthCurl (&$dao) { - if (!$ch = curl_init(XORTIFY_CURL_API)) { - trigger_error('Could not intialise CURL file: '.XORTIFY_CURL_API); - return false; - } - $cookies = XOOPS_VAR_PATH.'/cache/xoops_cache/authcurl_'.md5(XORTIFY_CURL_API).'.cookie'; - - curl_setopt($ch, CURLOPT_HEADER, 0); - curl_setopt($ch, CURLOPT_POST, 1); - curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); - curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); - curl_setopt($ch, CURLOPT_USERAGENT, XORTIFY_USER_AGENT); - $this->curl_client =& $ch; - } - - - /** - * Authenticate user again curl directory (Bind) - * - * @param string $uname Username - * @param string $pwd Password - * - * @return bool - */ - function authenticate($uname, $pwd = null) { - $authenticated = false; - $this->XortifyAuthCurl($GLOBALS['xoopsDB']); - - if (!$this->curl_client) { - $this->setErrors(0, _AUTH_CURL_EXTENSION_NOT_LOAD); - return $authenticated; - } - - - $rnd = rand(-100000, 100000000); - curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_authentication' => json_encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "auth" => array('username' => $uname, "password" => $pwd, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pwd), "rand"=>$rnd))))); - $data = curl_exec($this->curl_client); - curl_close($this->curl_client); - $result = $this->obj2array(json_decode($data)); - return $result["RESULT"]; - } - - - /** - * validate a user via curl - * - * @param string $uname - * @param string $email - * @param string $pass - * @param string $vpass - * - * @return string - */ - function validate($uname, $email, $pass, $vpass){ - $this->XortifyAuthCurl($GLOBALS['xoopsDB']); - $rnd = rand(-100000, 100000000); - curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_user_validate' => json_encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "validate" => array('uname' => $uname, "pass" => $pass, "vpass" => $vpass, "email" => $email, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pass), "rand"=>$rnd))))); - $data = curl_exec($this->curl_client); - curl_close($this->curl_client); - $result = $this->obj2array(json_decode($data)); - if ($result['ERRNUM']==1){ - return $result["RESULT"]; - } else { - return false; - } - - } - - - /** - * get the xoops site disclaimer via curl - * - * @return string - */ - function network_disclaimer(){ - $this->XortifyAuthCurl($GLOBALS['xoopsDB']); - curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_network_disclaimer' => json_encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password)))); - $data = curl_exec($this->curl_client); - curl_close($this->curl_client); - - $result = $this->obj2array(json_decode($data)); - 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); - $this->XortifyAuthCurl($GLOBALS['xoopsDB']); - curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, 'xoops_create_user='.json_encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_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))); - $data = curl_exec($this->curl_client); - curl_close($this->curl_client); - $result = $this->obj2array(json_decode($data)); - if ($result['ERRNUM']==1){ - return $result["RESULT"]; - } else { - return false; - } - } - - function obj2array($objects) { - $ret = array(); - foreach($objects as $key => $value) { - if (is_a($value, 'stdClass')) { - $ret[$key] = (array)$value; - } elseif (is_array($value)) { - $ret[$key] = $this->obj2array($value); - } else { - $ret[$key] = $value; - } - } - return $ret; - } - -} -// end class - - -?> Copied: XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curl.php (from rev 7391, XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_curl.php) =================================================================== --- XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curl.php (rev 0) +++ XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curl.php 2011-09-14 07:43:01 UTC (rev 7598) @@ -0,0 +1,184 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + +if (!function_exists('json_encode')){ + function json_encode($data) { + static $json = NULL; + if (!class_exists('Services_JSON') ) { include_once $GLOBALS['xoops']->path('/modules/xortify/include/JSON.php'); } + $json = new Services_JSON(); + return $json->encode($data); + } +} + +if (!function_exists('json_decode')){ + function json_decode($data) { + static $json = NULL; + if (!class_exists('Services_JSON') ) { include_once $GLOBALS['xoops']->path('/modules/xortify/include/JSON.php'); } + $json = new Services_JSON(); + return $json->decode($data); + } +} + + +define('XORTIFY_CURL_API', $GLOBALS['xoopsModuleConfig']['xortify_uricurl']); +define('XORTIFY_USER_AGENT', 'Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) XOOPS/20100101 XoopsAuth/1.xx (php)'); +include_once XOOPS_ROOT_PATH . '/modules/xortify/class/auth/auth_curl_provisionning.php'; + +class XortifyAuthCurl extends XortifyAuth { + + var $curl_client; + var $curl_xoops_username = ''; + var $curl_xoops_password = ''; + var $_dao; + var $_json = ''; + /** + * Authentication Service constructor + */ + function XortifyAuthCurl (&$dao) { + if (!$ch = curl_init(XORTIFY_CURL_API)) { + trigger_error('Could not intialise CURL file: '.XORTIFY_CURL_API); + return false; + } + $cookies = XOOPS_VAR_PATH.'/cache/xoops_cache/authcurl_'.md5(XORTIFY_CURL_API).'.cookie'; + + curl_setopt($ch, CURLOPT_HEADER, 0); + curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_USERAGENT, XORTIFY_USER_AGENT); + $this->curl_client =& $ch; + } + + + /** + * Authenticate user again curl directory (Bind) + * + * @param string $uname Username + * @param string $pwd Password + * + * @return bool + */ + function authenticate($uname, $pwd = null) { + $authenticated = false; + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + + if (!$this->curl_client) { + $this->setErrors(0, _AUTH_CURL_EXTENSION_NOT_LOAD); + return $authenticated; + } + + + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_authentication' => json_encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "auth" => array('username' => $uname, "password" => $pwd, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pwd), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array(json_decode($data)); + return $result["RESULT"]; + } + + + /** + * validate a user via curl + * + * @param string $uname + * @param string $email + * @param string $pass + * @param string $vpass + * + * @return string + */ + function validate($uname, $email, $pass, $vpass){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_user_validate' => json_encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "validate" => array('uname' => $uname, "pass" => $pass, "vpass" => $vpass, "email" => $email, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pass), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array(json_decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + + } + + + /** + * get the xoops site disclaimer via curl + * + * @return string + */ + function network_disclaimer(){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_network_disclaimer' => json_encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password)))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + + $result = $this->obj2array(json_decode($data)); + 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); + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, 'xoops_create_user='.json_encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_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))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array(json_decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + } + + function obj2array($objects) { + $ret = array(); + foreach($objects as $key => $value) { + if (is_a($value, 'stdClass')) { + $ret[$key] = (array)$value; + } elseif (is_array($value)) { + $ret[$key] = $this->obj2array($value); + } else { + $ret[$key] = $value; + } + } + return $ret; + } + +} +// end class + + +?> Deleted: XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curlserialised.php =================================================================== --- XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_curlserialised.php 2011-08-29 10:59:19 UTC (rev 7387) +++ XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curlserialised.php 2011-09-14 07:43:01 UTC (rev 7598) @@ -1,166 +0,0 @@ -<?php -/** - * @package xortify - * @subpackage module - * @description Sector Network Security Drone - * @author Simon Roberts WISHCRAFT <si...@ch...> - * @copyright copyright (c) 2010-2013 XOOPS.org - * @licence GPL 2.0 - see docs/LICENCE.txt - */ - - -define('XORTIFY_CURLSERIAL_API', $GLOBALS['xoopsModuleConfig']['xortify_uriserial']); -define('XORTIFY_USER_AGENT', 'Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) XOOPS/20100101 XoopsAuth/1.xx (php)'); -include_once XOOPS_ROOT_PATH . '/modules/xortify/class/auth/auth_curlserilaised_provisionning.php'; - -class XortifyAuthCurlserialised extends XortifyAuth { - - var $curl_client; - var $curl_xoops_username = ''; - var $curl_xoops_password = ''; - var $_dao; - /** - * Authentication Service constructor - */ - function XortifyAuthCurlserialised (&$dao) { - - if (!$ch = curl_init(XORTIFY_CURLSERIAL_API)) { - trigger_error('Could not intialise CURL file: '.$url); - return false; - } - $cookies = XOOPS_VAR_PATH.'/cache/xoops_cache/authcurl_'.md5(XORTIFY_CURLSERIAL_API).'.cookie'; - - curl_setopt($ch, CURLOPT_HEADER, 0); - curl_setopt($ch, CURLOPT_POST, 1); - curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); - curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); - curl_setopt($ch, CURLOPT_USERAGENT, XORTIFY_USER_AGENT); - $this->curl_client =& $ch; - } - - - /** - * Authenticate user again curl directory (Bind) - * - * @param string $uname Username - * @param string $pwd Password - * - * @return bool - */ - function authenticate($uname, $pwd = null) { - $authenticated = false; - $this->XortifyAuthCurlserialised($GLOBALS['xoopsDB']); - - if (!$this->curl_client) { - $this->setErrors(0, _AUTH_CURL_EXTENSION_NOT_LOAD); - return $authenticated; - } - - - $rnd = rand(-100000, 100000000); - curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_authentication' => serialize(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "auth" => array('username' => $uname, "password" => $pwd, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pwd), "rand"=>$rnd))))); - $data = curl_exec($this->curl_client); - curl_close($this->curl_client); - $result = unserialize($data); - return $result["RESULT"]; - } - - - /** - * validate a user via curl - * - * @param string $uname - * @param string $email - * @param string $pass - * @param string $vpass - * - * @return string - */ - function validate($uname, $email, $pass, $vpass){ - $this->XortifyAuthCurlserialised($GLOBALS['xoopsDB']); - $rnd = rand(-100000, 100000000); - curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_user_validate' => serialize(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "validate" => array('uname' => $uname, "pass" => $pass, "vpass" => $vpass, "email" => $email, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pass), "rand"=>$rnd))))); - $data = curl_exec($this->curl_client); - curl_close($this->curl_client); - $result = unserialize($data); - if ($result['ERRNUM']==1){ - return $result["RESULT"]; - } else { - return false; - } - - } - - - /** - * get the xoops site disclaimer via curl - * - * @return string - */ - function network_disclaimer(){ - $this->XortifyAuthCurlserialised($GLOBALS['xoopsDB']); - curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_network_disclaimer' => serialize(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password)))); - $data = curl_exec($this->curl_client); - curl_close($this->curl_client); - $result = unserialize($data); - 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); - $this->XortifyAuthCurlserialised($GLOBALS['xoopsDB']); - curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, 'xoops_create_user='.serialize(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_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))); - $data = curl_exec($this->curl_client); - curl_close($this->curl_client); - $result = unserialize($data); - if ($result['ERRNUM']==1){ - return $result["RESULT"]; - } else { - return false; - } - } - - function obj2array($objects) { - $ret = array(); - foreach($objects as $key => $value) { - if (is_a($value, 'stdClass')) { - $ret[$key] = (array)$value; - } elseif (is_array($value)) { - $ret[$key] = $this->obj2array($value); - } else { - $ret[$key] = $value; - } - } - return $ret; - } - -} -// end class - - -?> Copied: XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curlserialised.php (from rev 7391, XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_curlserialised.php) =================================================================== --- XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curlserialised.php (rev 0) +++ XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curlserialised.php 2011-09-14 07:43:01 UTC (rev 7598) @@ -0,0 +1,165 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +define('XORTIFY_CURLSERIAL_API', $GLOBALS['xoopsModuleConfig']['xortify_uriserial']); +define('XORTIFY_USER_AGENT', 'Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) XOOPS/20100101 XoopsAuth/1.xx (php)'); +include_once XOOPS_ROOT_PATH . '/modules/xortify/class/auth/auth_curlserilaised_provisionning.php'; + +class XortifyAuthCurlserialised extends XortifyAuth { + + var $curl_client; + var $curl_xoops_username = ''; + var $curl_xoops_password = ''; + var $_dao; + /** + * Authentication Service constructor + */ + function XortifyAuthCurlserialised (&$dao) { + + if (!$ch = curl_init(XORTIFY_CURLSERIAL_API)) { + trigger_error('Could not intialise CURL file: '.$url); + return false; + } + $cookies = XOOPS_VAR_PATH.'/cache/xoops_cache/authcurl_'.md5(XORTIFY_CURLSERIAL_API).'.cookie'; + + curl_setopt($ch, CURLOPT_HEADER, 0); + curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_USERAGENT, XORTIFY_USER_AGENT); + $this->curl_client =& $ch; + } + + + /** + * Authenticate user again curl directory (Bind) + * + * @param string $uname Username + * @param string $pwd Password + * + * @return bool + */ + function authenticate($uname, $pwd = null) { + $authenticated = false; + $this->XortifyAuthCurlserialised($GLOBALS['xoopsDB']); + + if (!$this->curl_client) { + $this->setErrors(0, _AUTH_CURL_EXTENSION_NOT_LOAD); + return $authenticated; + } + + + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_authentication' => serialize(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "auth" => array('username' => $uname, "password" => $pwd, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pwd), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = unserialize($data); + return $result["RESULT"]; + } + + + /** + * validate a user via curl + * + * @param string $uname + * @param string $email + * @param string $pass + * @param string $vpass + * + * @return string + */ + function validate($uname, $email, $pass, $vpass){ + $this->XortifyAuthCurlserialised($GLOBALS['xoopsDB']); + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_user_validate' => serialize(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "validate" => array('uname' => $uname, "pass" => $pass, "vpass" => $vpass, "email" => $email, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pass), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = unserialize($data); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + + } + + + /** + * get the xoops site disclaimer via curl + * + * @return string + */ + function network_disclaimer(){ + $this->XortifyAuthCurlserialised($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_network_disclaimer' => serialize(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password)))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = unserialize($data); + 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); + $this->XortifyAuthCurlserialised($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, 'xoops_create_user='.serialize(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_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))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = unserialize($data); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + } + + function obj2array($objects) { + $ret = array(); + foreach($objects as $key => $value) { + if (is_a($value, 'stdClass')) { + $ret[$key] = (array)$value; + } elseif (is_array($value)) { + $ret[$key] = $this->obj2array($value); + } else { + $ret[$key] = $value; + } + } + return $ret; + } + +} +// end class + + +?> Deleted: XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curlxml.php =================================================================== --- XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_curlxml.php 2011-08-29 10:59:19 UTC (rev 7387) +++ XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curlxml.php 2011-09-14 07:43:01 UTC (rev 7598) @@ -1,154 +0,0 @@ -<?php -/** - * @package xortify - * @subpackage module - * @description Sector Network Security Drone - * @author Simon Roberts WISHCRAFT <si...@ch...> - * @copyright copyright (c) 2010-2013 XOOPS.org - * @licence GPL 2.0 - see docs/LICENCE.txt - */ - - -define('XORTIFY_CURLXML_API', $GLOBALS['xoopsModuleConfig']['xortify_urixml']); -define('XORTIFY_USER_AGENT', 'Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) XOOPS/20100101 XoopsAuth/1.xx (php)'); - -include_once XOOPS_ROOT_PATH . '/modules/xortify/class/auth/auth_curlxml_provisionning.php'; - -class XortifyAuthCurlxml extends XortifyAuth { - - var $curl_client; - var $curl_xoops_username = ''; - var $curl_xoops_password = ''; - var $_dao; - var $_json = ''; - /** - * Authentication Service constructor - */ - function XortifyAuthCurlxml (&$dao) { - if (!$ch = curl_init(XORTIFY_CURLXML_API)) { - trigger_error('Could not intialise CURL file: '.$url); - return false; - } - $cookies = XOOPS_VAR_PATH.'/cache/xoops_cache/authcurl_'.md5(XORTIFY_CURLXML_API).'.cookie'; - - curl_setopt($ch, CURLOPT_HEADER, 0); - curl_setopt($ch, CURLOPT_POST, 1); - curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); - curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); - curl_setopt($ch, CURLOPT_USERAGENT, XORTIFY_USER_AGENT); - $this->curl_client =& $ch; - } - - - /** - * Authenticate user again curl directory (Bind) - * - * @param string $uname Username - * @param string $pwd Password - * - * @return bool - */ - function authenticate($uname, $pwd = null) { - $authenticated = false; - $this->XortifyAuthCurlxml($GLOBALS['xoopsDB']); - - if (!$this->curl_client) { - $this->setErrors(0, _AUTH_CURL_EXTENSION_NOT_LOAD); - return $authenticated; - } - - - $rnd = rand(-100000, 100000000); - curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, 'xoops_authentication='. xortify_toXml(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "auth" => array('username' => $uname, "password" => $pwd, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pwd), "rand"=>$rnd)), 'xoops_authentication')); - $data = curl_exec($this->curl_client); - curl_close($this->curl_client); - $result = xortify_elekey2numeric(xortify_xml2array($data), 'xoops_authentication'); - return $result['xoops_authentication']["RESULT"]; - } - - - /** - * validate a user via curl - * - * @param string $uname - * @param string $email - * @param string $pass - * @param string $vpass - * - * @return string - */ - function validate($uname, $email, $pass, $vpass){ - $this->XortifyAuthCurlxml($GLOBALS['xoopsDB']); - $rnd = rand(-100000, 100000000); - curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, 'xoops_user_validate=' . xortify_toXml(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "validate" => array('uname' => $uname, "pass" => $pass, "vpass" => $vpass, "email" => $email, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pass), "rand"=>$rnd)), 'xoops_user_validate')); - $data = curl_exec($this->curl_client); - curl_close($this->curl_client); - $result = xortify_elekey2numeric(xortify_xml2array($data), 'xoops_user_validate'); - if ($result['xoops_user_validate']['ERRNUM']==1){ - return $result['xoops_user_validate']["RESULT"]; - } else { - return false; - } - - } - - - /** - * get the xoops site disclaimer via curl - * - * @return string - */ - function network_disclaimer(){ - $this->XortifyAuthCurlxml($GLOBALS['xoopsDB']); - curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, 'xoops_network_disclaimer=' . xortify_toXml(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password), 'xoops_network_disclaimer')); - $data = curl_exec($this->curl_client); - curl_close($this->curl_client); - $result = xortify_elekey2numeric(xortify_xml2array($data), 'xoops_network_disclaimer'); - if ($result['xoops_network_disclaimer']['ERRNUM']==1){ - return $result['xoops_network_disclaimer']["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); - $this->XortifyAuthCurlxml($GLOBALS['xoopsDB']); - curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, 'xoops_create_user='.xortify_toXml(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_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), 'xoops_create_user')); - $data = curl_exec($this->curl_client); - curl_close($this->curl_client); - $result = xortify_elekey2numeric(xortify_xml2array($data), 'xoops_create_user'); - if ($result['xoops_create_user']['ERRNUM']==1){ - return $result['xoops_create_user']["RESULT"]; - } else { - return false; - } - } - - -} -// end class - - -?> Copied: XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curlxml.php (from rev 7391, XoopsModules/xortify/releases/2.53/htdocs/modules/xortify/class/auth/auth_curlxml.php) =================================================================== --- XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curlxml.php (rev 0) +++ XoopsModules/xortify/releases/2.53 (asia pacific)/htdocs/modules/xortify/class/auth/auth_curlxml.php 2011-09-14 07:43:01 UTC (rev 7598) @@ -0,0 +1,153 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +define('XORTIFY_CURLXML_API', $GLOBALS['xoopsModuleConfig']['xortify_urixml']); +define('XORTIFY_USER_AGEN... [truncated message content] |
From: <wis...@us...> - 2011-09-14 09:11:38
|
Revision: 7601 http://xoops.svn.sourceforge.net/xoops/?rev=7601&view=rev Author: wishcraft Date: 2011-09-14 09:11:23 +0000 (Wed, 14 Sep 2011) Log Message: ----------- Xortify 2.55 - Adjusted Preloader to Encompass Cron, 2 New preferences Added Paths: ----------- XoopsModules/xortify/releases/2.55/ XoopsModules/xortify/releases/2.55/docs/ XoopsModules/xortify/releases/2.55/docs/INSTALL XoopsModules/xortify/releases/2.55/docs/UPGRADE XoopsModules/xortify/releases/2.55/docs/licence.txt XoopsModules/xortify/releases/2.55/htdocs/ XoopsModules/xortify/releases/2.55/htdocs/modules/ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/admin/ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/index.html XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/index.html XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/cron/ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/cron/index.html XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/images/ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/images/accessdenied.png XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/images/accesslist.png XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/images/index.html XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/images/left_both.gif XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/images/right_both.gif XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/images/xortify_slogo.png XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/index.html XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/language/ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/language/english/ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/language/english/index.html XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/language/index.html XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/plugin/ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/plugin/index.html XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/preloads/index.html XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/providers/ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/providers/index.html XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/providers/protector/ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/providers/protector/index.html XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/providers/spiders/ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/providers/xortify/ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/providers/xortify/index.html XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/sql/ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/sql/index.html XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/sql/mysql.sql XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/templates/ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/templates/index.html XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/templates/xorify_cpanel_bans.html XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/templates/xortify_cpanel_log.html XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/xoops_version.php Added: XoopsModules/xortify/releases/2.55/docs/INSTALL =================================================================== --- XoopsModules/xortify/releases/2.55/docs/INSTALL (rev 0) +++ XoopsModules/xortify/releases/2.55/docs/INSTALL 2011-09-14 09:11:23 UTC (rev 7601) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.48 | +| | ++----[ 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 | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - mainfile.php (pre 2.4 series) ]---------------------------------------+ +| | +| 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 3 - header.php (pre 2.4 series) ]----------------------------------------+ +| | +| Below the lin of footer.php which reads $xoopsTpl =& $xoTheme->template; | +| | +| [code] | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.add.meta.php' ); | +| [/code] | +| | ++-----------------------------------------------------------------------------------+ \ No newline at end of file Added: XoopsModules/xortify/releases/2.55/docs/UPGRADE =================================================================== --- XoopsModules/xortify/releases/2.55/docs/UPGRADE (rev 0) +++ XoopsModules/xortify/releases/2.55/docs/UPGRADE 2011-09-14 09:11:23 UTC (rev 7601) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.22) | +| * Xortify Network Security Drone | +| | +| Make sure you delete the 'providers' folder in the existing module then upload | +| Xortify 2.30. Once you have install the file base this way you will remember | +| to upgrade the module in the system modules application in the xoops system | +| menu you will need to then goto the preferences and make sure you are running | +| the protector provider if you are running protector this will populate the | +| cloud with your bans that come in protector as well:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - 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 3 - 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/2.55/docs/licence.txt =================================================================== --- XoopsModules/xortify/releases/2.55/docs/licence.txt (rev 0) +++ XoopsModules/xortify/releases/2.55/docs/licence.txt 2011-09-14 09:11:23 UTC (rev 7601) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/admin/index.php (rev 0) +++ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/admin/index.php 2011-09-14 09:11:23 UTC (rev 7601) @@ -0,0 +1,210 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + + include('../../../mainfile.php'); + include('../../../include/cp_header.php'); + include('../include/functions.php'); + include('../include/forms.xortify.php'); + + $moduleHandler =& xoops_gethandler('module'); + $configHandler =& xoops_gethandler('config'); + $xoxortify = $moduleHandler->getByDirname('xortify'); + if (is_object($xoxortify)) + $GLOBALS['xoopsModuleConfig'] = $configHandler->getConfigList($xoxortify->getVar('mid')); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"list"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + + switch($op) { + case "signup": + + switch ($fct) + { + case "save": + + $xortifyAuth =& XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xoopsModuleConfig']['protocol']); + $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(2); + 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: + case "signup": + xortify_adminMenu(3); + echo XortifySignupForm(); + break; + } + break; + case "log": + + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(2); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xorTpl'] = new XoopsTpl(); + + $log_handler =& xoops_getmodulehandler('log', 'xortify'); + + $ttl = $log_handler->getCount(NULL); + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'date'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op); + $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'action','provider','date','uname','email','ip4','ip6','proxy-ip4', + 'proxy-ip6','network-addy','agent') as $id => $key) { + $GLOBALS['xorTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'">'.(defined('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))):'_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + } + + $criteria = new Criteria('1','1'); + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $logs = $log_handler->getObjects($criteria, true); + foreach($logs as $id => $log) { + $GLOBALS['xorTpl']->append('log', $log->toArray()); + } + + $GLOBALS['xorTpl']->display('db:xortify_cpanel_log.html'); + break; + default: + case "list": + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(1); + + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xorTpl'] = new XoopsTpl(); + + xoops_load("xoopscache"); + if (!class_exists('XoopsCache')) + xoops_load("cache"); + xoops_load("pagenav"); + + if (!$bans = XoopsCache::read('xortify_bans_cache')) { + require_once( XOOPS_ROOT_PATH.'/modules/xortify/class/'.$GLOBALS['xoopsModuleConfig']['protocol'].'.php' ); + $func = strtoupper($GLOBALS['xoopsModuleConfig']['protocol']).'XortifyExchange'; + ob_start(); + $soapExchg = new $func; + $bans = $soapExchg->retrieveBans(); + ob_end_flush(); + + XoopsCache::delete('xortify_bans_cache'); + XoopsCache::delete('xortify_bans_cache_backup'); + XoopsCache::write('xortify_bans_cache', $bans, $GLOBALS['xoopsModuleConfig']['xortify_seconds']); + XoopsCache::write('xortify_bans_cache_backup', $bans, ($GLOBALS['xoopsModuleConfig']['xortify_seconds'] * 1.45)); + } + + if ($bans['bans']==0) { + echo _XS_AM_NOCACHEMSG; + } else { + + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + + $pagenav = new XoopsPageNav($bans['bans'], $limit, $start, 'start', 'limit='.$limit.'&op='.$op); + $GLOBALS['xorTpl']->assign('pagenav', $pagenav->renderNav()); + $i=0; + $num=0; + foreach($bans['data'] as $key => $data) { + $i++; + if ($i>=$start&&$num<=$limit) { + $num++; + if (strlen($data['ip4'])>0) { + $ipaddy = $data['ip4']; + $iptype = _XS_IPTYPE_IP4; + } elseif (strlen($data['ip6'])>0) { + $ipaddy = $data['ip6']; + $iptype = _XS_IPTYPE_IP6; + } else { + $ipaddy = ''; + $iptype = _XS_IPTYPE_EMPTY; + } + + if (strlen($data['proxy-ip4'])>0) { + $proxyip = $data['proxy-ip4']; + $proxyiptype = _XS_IPTYPE_IP4; + } elseif (strlen($data['proxy-ip6'])>0) { + $proxyip = $data['proxy-ip6']; + $proxyiptype = _XS_IPTYPE_IP6; + } else { + $proxyip = ''; + $proxyiptype = ''; + } + + $GLOBALS['xorTpl']->append('bans', array('iptype' => $iptype, 'ipaddy' => $ipaddy, + 'proxyiptype' => $proxyiptype, 'ip' => $proxyip, + 'netaddy' => $data['network-addy']?$data['network-addy']:' ', + 'macaddy' => $data['mac-addy']?$data['mac-addy']:' ', + 'long' => $data['long']?$data['long']:' ')); + } + } + + $GLOBALS['xorTpl']->display('db:xorify_cpanel_bans.html'); + } + break; + } + + xortify_footer_adminMenu(); + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/admin/menu.php =================================================================== --- XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/admin/menu.php (rev 0) +++ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/admin/menu.php 2011-09-14 09:11:23 UTC (rev 7601) @@ -0,0 +1,26 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +global $adminmenu; +$adminmenu=array(); +$adminmenu[1]['title'] = _XOR_ADMENU1; +$adminmenu[1]['icon'] = 'images/currentbans.png'; +$adminmenu[1]['image'] = 'images/currentbans.png'; +$adminmenu[1]['link'] = "admin/index.php?op=list&fct=bans"; +$adminmenu[2]['title'] = _XOR_ADMENU3; +$adminmenu[2]['icon'] = 'images/log.png'; +$adminmenu[2]['image'] = 'images/log.png'; +$adminmenu[2]['link'] = "admin/index.php?op=log"; +$adminmenu[3]['title'] = _XOR_ADMENU2; +$adminmenu[3]['icon'] = 'images/accesslist.png'; +$adminmenu[3]['image'] = 'images/accesslist.png'; +$adminmenu[3]['link'] = "admin/index.php?op=signup&fct=signup"; +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth.php =================================================================== --- XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth.php (rev 0) +++ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth.php 2011-09-14 09:11:23 UTC (rev 7601) @@ -0,0 +1,118 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + +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'] = XOOPS_LICENSE_KEY; + $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/2.55/htdocs/modules/xortify/class/auth/auth_curl.php =================================================================== --- XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth_curl.php (rev 0) +++ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth_curl.php 2011-09-14 09:11:23 UTC (rev 7601) @@ -0,0 +1,184 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + +if (!function_exists('json_encode')){ + function json_encode($data) { + static $json = NULL; + if (!class_exists('Services_JSON') ) { include_once $GLOBALS['xoops']->path('/modules/xortify/include/JSON.php'); } + $json = new Services_JSON(); + return $json->encode($data); + } +} + +if (!function_exists('json_decode')){ + function json_decode($data) { + static $json = NULL; + if (!class_exists('Services_JSON') ) { include_once $GLOBALS['xoops']->path('/modules/xortify/include/JSON.php'); } + $json = new Services_JSON(); + return $json->decode($data); + } +} + + +define('XORTIFY_CURL_API', $GLOBALS['xoopsModuleConfig']['xortify_uricurl']); +define('XORTIFY_USER_AGENT', 'Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) XOOPS/20100101 XoopsAuth/1.xx (php)'); +include_once XOOPS_ROOT_PATH . '/modules/xortify/class/auth/auth_curl_provisionning.php'; + +class XortifyAuthCurl extends XortifyAuth { + + var $curl_client; + var $curl_xoops_username = ''; + var $curl_xoops_password = ''; + var $_dao; + var $_json = ''; + /** + * Authentication Service constructor + */ + function XortifyAuthCurl (&$dao) { + if (!$ch = curl_init(XORTIFY_CURL_API)) { + trigger_error('Could not intialise CURL file: '.XORTIFY_CURL_API); + return false; + } + $cookies = XOOPS_VAR_PATH.'/cache/xoops_cache/authcurl_'.md5(XORTIFY_CURL_API).'.cookie'; + + curl_setopt($ch, CURLOPT_HEADER, 0); + curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_USERAGENT, XORTIFY_USER_AGENT); + $this->curl_client =& $ch; + } + + + /** + * Authenticate user again curl directory (Bind) + * + * @param string $uname Username + * @param string $pwd Password + * + * @return bool + */ + function authenticate($uname, $pwd = null) { + $authenticated = false; + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + + if (!$this->curl_client) { + $this->setErrors(0, _AUTH_CURL_EXTENSION_NOT_LOAD); + return $authenticated; + } + + + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_authentication' => json_encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "auth" => array('username' => $uname, "password" => $pwd, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pwd), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array(json_decode($data)); + return $result["RESULT"]; + } + + + /** + * validate a user via curl + * + * @param string $uname + * @param string $email + * @param string $pass + * @param string $vpass + * + * @return string + */ + function validate($uname, $email, $pass, $vpass){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + $rnd = rand(-100000, 100000000); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_user_validate' => json_encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password, "validate" => array('uname' => $uname, "pass" => $pass, "vpass" => $vpass, "email" => $email, "time" => time(), "passhash" => sha1((time()-$rnd).$uname.$pass), "rand"=>$rnd))))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array(json_decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + + } + + + /** + * get the xoops site disclaimer via curl + * + * @return string + */ + function network_disclaimer(){ + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, array('xoops_network_disclaimer' => json_encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_xoops_password)))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + + $result = $this->obj2array(json_decode($data)); + 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); + $this->XortifyAuthCurl($GLOBALS['xoopsDB']); + curl_setopt($this->curl_client, CURLOPT_POSTFIELDS, 'xoops_create_user='.json_encode(array("username"=> $this->curl_xoops_username, "password"=> $this->curl_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))); + $data = curl_exec($this->curl_client); + curl_close($this->curl_client); + $result = $this->obj2array(json_decode($data)); + if ($result['ERRNUM']==1){ + return $result["RESULT"]; + } else { + return false; + } + } + + function obj2array($objects) { + $ret = array(); + foreach($objects as $key => $value) { + if (is_a($value, 'stdClass')) { + $ret[$key] = (array)$value; + } elseif (is_array($value)) { + $ret[$key] = $this->obj2array($value); + } else { + $ret[$key] = $value; + } + } + return $ret; + } + +} +// end class + + +?> Added: XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php =================================================================== --- XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php (rev 0) +++ XoopsModules/xortify/releases/2.55/htdocs/modules/xortify/class/auth/auth_curl_... [truncated message content] |
From: <wis...@us...> - 2011-11-03 03:08:14
|
Revision: 8035 http://xoops.svn.sourceforge.net/xoops/?rev=8035&view=rev Author: wishcraft Date: 2011-11-03 03:08:04 +0000 (Thu, 03 Nov 2011) Log Message: ----------- Xortify 2.56 - Only for XOOPS 2.5+ - GUI Implemented - See changelog.txt Added Paths: ----------- XoopsModules/xortify/releases/2.56/ XoopsModules/xortify/releases/2.56/docs/ XoopsModules/xortify/releases/2.56/docs/INSTALL XoopsModules/xortify/releases/2.56/docs/UPGRADE XoopsModules/xortify/releases/2.56/docs/licence.txt XoopsModules/xortify/releases/2.56/extras/ XoopsModules/xortify/releases/2.56/extras/docs/ XoopsModules/xortify/releases/2.56/extras/docs/install.txt XoopsModules/xortify/releases/2.56/extras/htdocs/ XoopsModules/xortify/releases/2.56/extras/htdocs/header.php XoopsModules/xortify/releases/2.56/extras/htdocs/modules/ XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/ XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/include/post.header.footer.php XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.56/htdocs/ XoopsModules/xortify/releases/2.56/htdocs/Frameworks/ XoopsModules/xortify/releases/2.56/htdocs/Frameworks/moduleclasses/ XoopsModules/xortify/releases/2.56/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/xortify/releases/2.56/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/xortify/releases/2.56/htdocs/Frameworks/moduleclasses/icons/32/access.list.png XoopsModules/xortify/releases/2.56/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png XoopsModules/xortify/releases/2.56/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png XoopsModules/xortify/releases/2.56/htdocs/modules/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/admin/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/admin/index.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/index.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/index.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/cron/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/cron/index.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/docs/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/docs/changelog.txt XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/docs/credits.txt XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/docs/index.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/docs/install.txt XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/docs/lang_diff.txt XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/docs/licence.txt XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/docs/readme.txt XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/images/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/images/accessdenied.png XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/images/accesslist.png XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/images/index.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/images/left_both.gif XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/images/right_both.gif XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/images/xortify_slogo.png XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/index.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/language/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/language/english/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/language/english/help/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/language/english/help/help.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/language/english/help/index.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/language/english/index.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/language/index.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/plugin/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/plugin/index.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/preloads/index.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/index.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/protector/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/protector/index.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/spiders/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/xortify/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/xortify/index.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/sql/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/sql/index.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/sql/mysql.sql XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/templates/ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/templates/index.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/templates/xorify_cpanel_bans.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/templates/xortify_cpanel_log.html XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/xoops_version.php Added: XoopsModules/xortify/releases/2.56/docs/INSTALL =================================================================== --- XoopsModules/xortify/releases/2.56/docs/INSTALL (rev 0) +++ XoopsModules/xortify/releases/2.56/docs/INSTALL 2011-11-03 03:08:04 UTC (rev 8035) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.48 | +| | ++----[ 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 | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - mainfile.php (pre 2.4 series) ]---------------------------------------+ +| | +| 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 3 - header.php (pre 2.4 series) ]----------------------------------------+ +| | +| Below the lin of footer.php which reads $xoopsTpl =& $xoTheme->template; | +| | +| [code] | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.add.meta.php' ); | +| [/code] | +| | ++-----------------------------------------------------------------------------------+ \ No newline at end of file Added: XoopsModules/xortify/releases/2.56/docs/UPGRADE =================================================================== --- XoopsModules/xortify/releases/2.56/docs/UPGRADE (rev 0) +++ XoopsModules/xortify/releases/2.56/docs/UPGRADE 2011-11-03 03:08:04 UTC (rev 8035) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.22) | +| * Xortify Network Security Drone | +| | +| Make sure you delete the 'providers' folder in the existing module then upload | +| Xortify 2.30. Once you have install the file base this way you will remember | +| to upgrade the module in the system modules application in the xoops system | +| menu you will need to then goto the preferences and make sure you are running | +| the protector provider if you are running protector this will populate the | +| cloud with your bans that come in protector as well:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - 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 3 - 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/2.56/docs/licence.txt =================================================================== --- XoopsModules/xortify/releases/2.56/docs/licence.txt (rev 0) +++ XoopsModules/xortify/releases/2.56/docs/licence.txt 2011-11-03 03:08:04 UTC (rev 8035) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/xortify/releases/2.56/extras/docs/install.txt =================================================================== --- XoopsModules/xortify/releases/2.56/extras/docs/install.txt (rev 0) +++ XoopsModules/xortify/releases/2.56/extras/docs/install.txt 2011-11-03 03:08:04 UTC (rev 8035) @@ -0,0 +1,8 @@ +EXTRA INSTALLATION: + +You may want Xortify to perform better, this is so the missing preloader in the header when a cache file is loaded and then the +execution of the PHP is terminated, will now call the footer preloader/add meta class for preloaders. + +You need to replace the files within /htdocs of the extra folder to have a better performing system. + +This htdocs/header.php is from XOOPS 2.5.x and has been altered at line 92. \ No newline at end of file Added: XoopsModules/xortify/releases/2.56/extras/htdocs/header.php =================================================================== --- XoopsModules/xortify/releases/2.56/extras/htdocs/header.php (rev 0) +++ XoopsModules/xortify/releases/2.56/extras/htdocs/header.php 2011-11-03 03:08:04 UTC (rev 8035) @@ -0,0 +1,109 @@ +<?php +/** + * XOOPS global header file + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package core + * @since 2.0.0 + * @author Kazumi Ono <web...@my...> + * @author Skalpa Keo <sk...@xo...> + * @author Taiwen Jiang <ph...@us...> + * @version $Id: header.php 4941 2010-07-22 17:13:36Z beckmi $ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +$xoopsPreload =& XoopsPreload::getInstance(); +$xoopsPreload->triggerEvent('core.header.start'); + +include_once $GLOBALS['xoops']->path('class/xoopsblock.php'); + +$xoopsLogger =& XoopsLogger::getInstance(); +$xoopsLogger->stopTime('Module init'); +$xoopsLogger->startTime('XOOPS output init'); + +if ($xoopsConfig['theme_set'] != 'default' && file_exists(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/theme.php')) { + require_once $GLOBALS['xoops']->path('include/xoops13_header.php'); +} else { + global $xoopsOption, $xoopsConfig, $xoopsModule; + + $xoopsOption['theme_use_smarty'] = 1; + + // include Smarty template engine and initialize it + require_once $GLOBALS['xoops']->path('class/template.php'); + require_once $GLOBALS['xoops']->path('class/theme.php'); + require_once $GLOBALS['xoops']->path('class/theme_blocks.php'); + + if (@$xoopsOption['template_main']) { + if (false === strpos($xoopsOption['template_main'], ':')) { + $xoopsOption['template_main'] = 'db:' . $xoopsOption['template_main']; + } + } + + $xoopsThemeFactory = null; + $xoopsThemeFactory = new xos_opal_ThemeFactory(); + $xoopsThemeFactory->allowedThemes = $xoopsConfig['theme_set_allowed']; + $xoopsThemeFactory->defaultTheme = $xoopsConfig['theme_set']; + + /** + * @var xos_opal_Theme + */ + $xoTheme =& $xoopsThemeFactory->createInstance(array('contentTemplate' => @$xoopsOption['template_main'])); + $xoopsTpl =& $xoTheme->template; + + $xoopsPreload->triggerEvent('core.header.addmeta'); + + // Temporary solution for start page redirection + if (defined("XOOPS_STARTPAGE_REDIRECTED")) { + $params = $content = $tpl = $repeat = null; + $xoTheme->headContent($params, "<base href='" . XOOPS_URL . '/modules/' . $xoopsConfig['startpage'] . "/' />", $tpl, $repeat); + } + + if (@is_object($xoTheme->plugins['xos_logos_PageBuilder'])) { + $aggreg =& $xoTheme->plugins['xos_logos_PageBuilder']; + // Backward compatibility code for pre 2.0.14 themes + $xoopsTpl->assign_by_ref('xoops_lblocks', $aggreg->blocks['canvas_left']); + $xoopsTpl->assign_by_ref('xoops_rblocks', $aggreg->blocks['canvas_right']); + $xoopsTpl->assign_by_ref('xoops_ccblocks', $aggreg->blocks['page_topcenter']); + $xoopsTpl->assign_by_ref('xoops_clblocks', $aggreg->blocks['page_topleft']); + $xoopsTpl->assign_by_ref('xoops_crblocks', $aggreg->blocks['page_topright']); + $xoopsTpl->assign('xoops_showlblock', !empty($aggreg->blocks['canvas_left'])); + $xoopsTpl->assign('xoops_showrblock', !empty($aggreg->blocks['canvas_right'])); + $xoopsTpl->assign('xoops_showcblock', !empty($aggreg->blocks['page_topcenter']) || !empty($aggreg->blocks['page_topleft']) || !empty($aggreg->blocks['page_topright'])); + } + + // Sets cache time + if (!empty($xoopsModule)) { + $xoTheme->contentCacheLifetime = @$xoopsConfig['module_cache'][$xoopsModule->getVar('mid', 'n')]; + // Tricky solution for setting cache time for homepage + } else if (!empty($xoopsOption['template_main']) && $xoopsOption['template_main'] == 'db:system_homepage.html') { + $xoTheme->contentCacheLifetime = 604800; + } + + if ($xoTheme->checkCache()) { + $xoopsPreload->triggerEvent('core.header.cache.end'); + exit(); + } + + if (!isset($xoopsOption['template_main']) && $xoopsModule) { + // new themes using Smarty does not have old functions that are required in old modules, so include them now + include $GLOBALS['xoops']->path('include/old_theme_functions.php'); + // need this also + $xoopsTheme['thename'] = $xoopsConfig['theme_set']; + ob_start(); + } + + $xoopsLogger->stopTime('XOOPS output init'); + $xoopsLogger->startTime('Module display'); +} + +$xoopsPreload->triggerEvent('core.header.end'); +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/include/post.header.footer.php =================================================================== --- XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/include/post.header.footer.php (rev 0) +++ XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/include/post.header.footer.php 2011-11-03 03:08:04 UTC (rev 8035) @@ -0,0 +1,15 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + set_time_limit(1800); + include_once (XOOPS_ROOT_PATH.'/modules/xortify/providers/providers.php'); + $check = new Providers('footerpostcheck'); + +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/preloads/core.php =================================================================== --- XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/preloads/core.php (rev 0) +++ XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/preloads/core.php 2011-11-03 03:08:04 UTC (rev 8035) @@ -0,0 +1,99 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Nexoork Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @author Richardo Costa TRABIS + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + + +class XortifyCorePreload extends XoopsPreloadItem +{ + + function eventCoreIncludeCommonStart($args) + { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/pre.loader.mainfile.php' ); + + } + + function eventCoreIncludeCommonEnd($args) + { + + xoops_load('xoopscache'); + if (!class_exists('XoopsCache')) { + // XOOPS 2.4 Compliance + xoops_load('cache'); + if (!class_exists('XoopsCache')) { + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + } + } + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $xoMod = $module_handler->getByDirname('xortify'); + if (is_object($xoMod)) { + $xoConfig = $config_handler->getConfigList($xoMod->getVar('mid')); + switch ($xoConfig['crontype']) { + case 'preloader': + if (!$read = XoopsCache::read('xortify_pause_preload')) { + XoopsCache::write('xortify_pause_preload', true, $xoConfig['croninterval']); + $GLOBALS['xortify_preloader']=true; + ob_start(); + include(XOOPS_ROOT_PATH.'/modules/xortify/cron/serverup.php'); + ob_end_clean(); + } + break; + } + } + + if (XortifyCorePreload::hasAPIUserPass()) + if (XortifyCorePreload::isActive()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.loader.mainfile.php' ); + } + + } + + function eventCoreHeaderCacheEnd($args) + { + if (XortifyCorePreload::hasAPIUserPass()) + if (XortifyCorePreload::isActive()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.footer.php' ); + } + } + + function eventCoreFooterEnd($args) + { + if (XortifyCorePreload::hasAPIUserPass()) + if (XortifyCorePreload::isActive()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.footer.php' ); + } + } + + function isActive() + { + $module_handler =& xoops_getHandler('module'); + $module = $module_handler->getByDirname('xortify'); + return ($module && $module->getVar('isactive')) ? ($module->getVar('version')<240) ? false : true : false; + } + + function hasAPIUserPass() + { + $module_handler =& xoops_getHandler('module'); + $config_handler =& xoops_getHandler('config'); + $xoModule = $module_handler->getByDirname('xortify'); + if (is_object($xoModule)) { + $xoconfigs = $config_handler->getConfigList($xoModule->getVar('mid')); + if ($xoconfigs['xortify_username']!=''&&$xoconfigs['xortify_password']!='') + return true; + else + return false; + } else + return false; + } +} + +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.56/htdocs/Frameworks/moduleclasses/icons/32/access.list.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/2.56/htdocs/Frameworks/moduleclasses/icons/32/access.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/2.56/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/2.56/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/2.56/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/2.56/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/admin/index.html =================================================================== --- XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/admin/index.html (rev 0) +++ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/admin/index.html 2011-11-03 03:08:04 UTC (rev 8035) @@ -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/2.56/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/admin/index.php (rev 0) +++ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/admin/index.php 2011-11-03 03:08:04 UTC (rev 8035) @@ -0,0 +1,287 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + + include('../../../mainfile.php'); + include('../../../include/cp_header.php'); + + if (!defined('_CHARSET')) + define ("_CHARSET","UTF-8"); + if (!defined('_CHARSET_ISO')) + define ("_CHARSET_ISO","ISO-8859-1"); + + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); + + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['xoopsModule'] = $module_handler->getByDirname('xortify'); + $GLOBALS['xoopsModuleConfig'] = $config_handler->getConfigList($GLOBALS['xoopsModule']->getVar('mid')); + + xoops_load('pagenav'); + xoops_load('xoopslists'); + xoops_load('xoopsformloader'); + + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopstree.php'); + include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'include'.DS.'functions.php'); + include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'include'.DS.'forms.xortify.php'); + + if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + //return true; + }else{ + echo xoops_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); + //return false; + } + $pathImageIcon = XOOPS_URL .'/'. $GLOBALS['xoopsModule']->getInfo('icons16'); + $pathImageAdmin = XOOPS_URL .'/'. $GLOBALS['xoopsModule']->getInfo('icons32'); + + $myts =& MyTextSanitizer::getInstance(); + + if ($GLOBALS['xoopsUser']) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['xoopsModule']->getVar( 'mid' ), $GLOBALS['xoopsUser']->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } + } else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); + } + + if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $GLOBALS['xoopsTpl'] = new XoopsTpl(); + } + + $GLOBALS['xoopsTpl']->assign('pathImageIcon', $pathImageIcon); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"dashboard"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + + switch($op) { + case "signup": + + switch ($fct) + { + case "save": + + $xortifyAuth =& XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xoopsModuleConfig']['protocol']); + $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(2); + 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... [truncated message content] |
From: <wis...@us...> - 2011-11-04 20:50:19
|
Revision: 8045 http://xoops.svn.sourceforge.net/xoops/?rev=8045&view=rev Author: wishcraft Date: 2011-11-04 20:50:09 +0000 (Fri, 04 Nov 2011) Log Message: ----------- Xortify 2.57 - Only for XOOPS 2.5+ - GUI Implemented - See changelog.txt [FINAL RELEASE] Added Paths: ----------- XoopsModules/xortify/releases/2.57/ XoopsModules/xortify/releases/2.57/docs/ XoopsModules/xortify/releases/2.57/docs/INSTALL XoopsModules/xortify/releases/2.57/docs/UPGRADE XoopsModules/xortify/releases/2.57/docs/licence.txt XoopsModules/xortify/releases/2.57/extras/ XoopsModules/xortify/releases/2.57/extras/docs/ XoopsModules/xortify/releases/2.57/extras/docs/install.txt XoopsModules/xortify/releases/2.57/extras/htdocs/ XoopsModules/xortify/releases/2.57/extras/htdocs/header.php XoopsModules/xortify/releases/2.57/extras/htdocs/modules/ XoopsModules/xortify/releases/2.57/extras/htdocs/modules/xortify/ XoopsModules/xortify/releases/2.57/extras/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/2.57/extras/htdocs/modules/xortify/include/post.header.footer.php XoopsModules/xortify/releases/2.57/extras/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/2.57/extras/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.57/htdocs/ XoopsModules/xortify/releases/2.57/htdocs/Frameworks/ XoopsModules/xortify/releases/2.57/htdocs/Frameworks/moduleclasses/ XoopsModules/xortify/releases/2.57/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/xortify/releases/2.57/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/xortify/releases/2.57/htdocs/Frameworks/moduleclasses/icons/32/access.list.png XoopsModules/xortify/releases/2.57/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png XoopsModules/xortify/releases/2.57/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png XoopsModules/xortify/releases/2.57/htdocs/modules/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/admin/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/admin/index.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/index.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/index.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/cron/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/cron/index.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/docs/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/docs/changelog.txt XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/docs/credits.txt XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/docs/index.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/docs/install.txt XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/docs/lang_diff.txt XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/docs/licence.txt XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/docs/readme.txt XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/images/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/images/accessdenied.png XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/images/index.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/images/left_both.gif XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/images/right_both.gif XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/images/xortify_slogo.png XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/index.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/language/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/language/english/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/language/english/help/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/language/english/help/help.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/language/english/help/index.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/language/english/index.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/language/index.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/plugin/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/plugin/index.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/preloads/index.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/index.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/protector/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/protector/index.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/spiders/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/xortify/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/xortify/index.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/sql/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/sql/index.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/sql/mysql.sql XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/templates/ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/templates/index.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/templates/xorify_cpanel_bans.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/templates/xortify_cpanel_log.html XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/xoops_version.php Added: XoopsModules/xortify/releases/2.57/docs/INSTALL =================================================================== --- XoopsModules/xortify/releases/2.57/docs/INSTALL (rev 0) +++ XoopsModules/xortify/releases/2.57/docs/INSTALL 2011-11-04 20:50:09 UTC (rev 8045) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.48 | +| | ++----[ 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 | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - mainfile.php (pre 2.4 series) ]---------------------------------------+ +| | +| 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 3 - header.php (pre 2.4 series) ]----------------------------------------+ +| | +| Below the lin of footer.php which reads $xoopsTpl =& $xoTheme->template; | +| | +| [code] | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.add.meta.php' ); | +| [/code] | +| | ++-----------------------------------------------------------------------------------+ \ No newline at end of file Added: XoopsModules/xortify/releases/2.57/docs/UPGRADE =================================================================== --- XoopsModules/xortify/releases/2.57/docs/UPGRADE (rev 0) +++ XoopsModules/xortify/releases/2.57/docs/UPGRADE 2011-11-04 20:50:09 UTC (rev 8045) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.22) | +| * Xortify Network Security Drone | +| | +| Make sure you delete the 'providers' folder in the existing module then upload | +| Xortify 2.30. Once you have install the file base this way you will remember | +| to upgrade the module in the system modules application in the xoops system | +| menu you will need to then goto the preferences and make sure you are running | +| the protector provider if you are running protector this will populate the | +| cloud with your bans that come in protector as well:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - 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 3 - 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/2.57/docs/licence.txt =================================================================== --- XoopsModules/xortify/releases/2.57/docs/licence.txt (rev 0) +++ XoopsModules/xortify/releases/2.57/docs/licence.txt 2011-11-04 20:50:09 UTC (rev 8045) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/xortify/releases/2.57/extras/docs/install.txt =================================================================== --- XoopsModules/xortify/releases/2.57/extras/docs/install.txt (rev 0) +++ XoopsModules/xortify/releases/2.57/extras/docs/install.txt 2011-11-04 20:50:09 UTC (rev 8045) @@ -0,0 +1,8 @@ +EXTRA INSTALLATION: + +You may want Xortify to perform better, this is so the missing preloader in the header when a cache file is loaded and then the +execution of the PHP is terminated, will now call the footer preloader/add meta class for preloaders. + +You need to replace the files within /htdocs of the extra folder to have a better performing system. + +This htdocs/header.php is from XOOPS 2.5.x and has been altered at line 92. \ No newline at end of file Added: XoopsModules/xortify/releases/2.57/extras/htdocs/header.php =================================================================== --- XoopsModules/xortify/releases/2.57/extras/htdocs/header.php (rev 0) +++ XoopsModules/xortify/releases/2.57/extras/htdocs/header.php 2011-11-04 20:50:09 UTC (rev 8045) @@ -0,0 +1,109 @@ +<?php +/** + * XOOPS global header file + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package core + * @since 2.0.0 + * @author Kazumi Ono <web...@my...> + * @author Skalpa Keo <sk...@xo...> + * @author Taiwen Jiang <ph...@us...> + * @version $Id: header.php 4941 2010-07-22 17:13:36Z beckmi $ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +$xoopsPreload =& XoopsPreload::getInstance(); +$xoopsPreload->triggerEvent('core.header.start'); + +include_once $GLOBALS['xoops']->path('class/xoopsblock.php'); + +$xoopsLogger =& XoopsLogger::getInstance(); +$xoopsLogger->stopTime('Module init'); +$xoopsLogger->startTime('XOOPS output init'); + +if ($xoopsConfig['theme_set'] != 'default' && file_exists(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/theme.php')) { + require_once $GLOBALS['xoops']->path('include/xoops13_header.php'); +} else { + global $xoopsOption, $xoopsConfig, $xoopsModule; + + $xoopsOption['theme_use_smarty'] = 1; + + // include Smarty template engine and initialize it + require_once $GLOBALS['xoops']->path('class/template.php'); + require_once $GLOBALS['xoops']->path('class/theme.php'); + require_once $GLOBALS['xoops']->path('class/theme_blocks.php'); + + if (@$xoopsOption['template_main']) { + if (false === strpos($xoopsOption['template_main'], ':')) { + $xoopsOption['template_main'] = 'db:' . $xoopsOption['template_main']; + } + } + + $xoopsThemeFactory = null; + $xoopsThemeFactory = new xos_opal_ThemeFactory(); + $xoopsThemeFactory->allowedThemes = $xoopsConfig['theme_set_allowed']; + $xoopsThemeFactory->defaultTheme = $xoopsConfig['theme_set']; + + /** + * @var xos_opal_Theme + */ + $xoTheme =& $xoopsThemeFactory->createInstance(array('contentTemplate' => @$xoopsOption['template_main'])); + $xoopsTpl =& $xoTheme->template; + + $xoopsPreload->triggerEvent('core.header.addmeta'); + + // Temporary solution for start page redirection + if (defined("XOOPS_STARTPAGE_REDIRECTED")) { + $params = $content = $tpl = $repeat = null; + $xoTheme->headContent($params, "<base href='" . XOOPS_URL . '/modules/' . $xoopsConfig['startpage'] . "/' />", $tpl, $repeat); + } + + if (@is_object($xoTheme->plugins['xos_logos_PageBuilder'])) { + $aggreg =& $xoTheme->plugins['xos_logos_PageBuilder']; + // Backward compatibility code for pre 2.0.14 themes + $xoopsTpl->assign_by_ref('xoops_lblocks', $aggreg->blocks['canvas_left']); + $xoopsTpl->assign_by_ref('xoops_rblocks', $aggreg->blocks['canvas_right']); + $xoopsTpl->assign_by_ref('xoops_ccblocks', $aggreg->blocks['page_topcenter']); + $xoopsTpl->assign_by_ref('xoops_clblocks', $aggreg->blocks['page_topleft']); + $xoopsTpl->assign_by_ref('xoops_crblocks', $aggreg->blocks['page_topright']); + $xoopsTpl->assign('xoops_showlblock', !empty($aggreg->blocks['canvas_left'])); + $xoopsTpl->assign('xoops_showrblock', !empty($aggreg->blocks['canvas_right'])); + $xoopsTpl->assign('xoops_showcblock', !empty($aggreg->blocks['page_topcenter']) || !empty($aggreg->blocks['page_topleft']) || !empty($aggreg->blocks['page_topright'])); + } + + // Sets cache time + if (!empty($xoopsModule)) { + $xoTheme->contentCacheLifetime = @$xoopsConfig['module_cache'][$xoopsModule->getVar('mid', 'n')]; + // Tricky solution for setting cache time for homepage + } else if (!empty($xoopsOption['template_main']) && $xoopsOption['template_main'] == 'db:system_homepage.html') { + $xoTheme->contentCacheLifetime = 604800; + } + + if ($xoTheme->checkCache()) { + $xoopsPreload->triggerEvent('core.header.cache.end'); + exit(); + } + + if (!isset($xoopsOption['template_main']) && $xoopsModule) { + // new themes using Smarty does not have old functions that are required in old modules, so include them now + include $GLOBALS['xoops']->path('include/old_theme_functions.php'); + // need this also + $xoopsTheme['thename'] = $xoopsConfig['theme_set']; + ob_start(); + } + + $xoopsLogger->stopTime('XOOPS output init'); + $xoopsLogger->startTime('Module display'); +} + +$xoopsPreload->triggerEvent('core.header.end'); +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.57/extras/htdocs/modules/xortify/include/post.header.footer.php =================================================================== --- XoopsModules/xortify/releases/2.57/extras/htdocs/modules/xortify/include/post.header.footer.php (rev 0) +++ XoopsModules/xortify/releases/2.57/extras/htdocs/modules/xortify/include/post.header.footer.php 2011-11-04 20:50:09 UTC (rev 8045) @@ -0,0 +1,15 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + set_time_limit(1800); + include_once (XOOPS_ROOT_PATH.'/modules/xortify/providers/providers.php'); + $check = new Providers('footerpostcheck'); + +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.57/extras/htdocs/modules/xortify/preloads/core.php =================================================================== --- XoopsModules/xortify/releases/2.57/extras/htdocs/modules/xortify/preloads/core.php (rev 0) +++ XoopsModules/xortify/releases/2.57/extras/htdocs/modules/xortify/preloads/core.php 2011-11-04 20:50:09 UTC (rev 8045) @@ -0,0 +1,99 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Nexoork Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @author Richardo Costa TRABIS + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + + +class XortifyCorePreload extends XoopsPreloadItem +{ + + function eventCoreIncludeCommonStart($args) + { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/pre.loader.mainfile.php' ); + + } + + function eventCoreIncludeCommonEnd($args) + { + + xoops_load('xoopscache'); + if (!class_exists('XoopsCache')) { + // XOOPS 2.4 Compliance + xoops_load('cache'); + if (!class_exists('XoopsCache')) { + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + } + } + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $xoMod = $module_handler->getByDirname('xortify'); + if (is_object($xoMod)) { + $xoConfig = $config_handler->getConfigList($xoMod->getVar('mid')); + switch ($xoConfig['crontype']) { + case 'preloader': + if (!$read = XoopsCache::read('xortify_pause_preload')) { + XoopsCache::write('xortify_pause_preload', true, $xoConfig['croninterval']); + $GLOBALS['xortify_preloader']=true; + ob_start(); + include(XOOPS_ROOT_PATH.'/modules/xortify/cron/serverup.php'); + ob_end_clean(); + } + break; + } + } + + if (XortifyCorePreload::hasAPIUserPass()) + if (XortifyCorePreload::isActive()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.loader.mainfile.php' ); + } + + } + + function eventCoreHeaderCacheEnd($args) + { + if (XortifyCorePreload::hasAPIUserPass()) + if (XortifyCorePreload::isActive()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.footer.php' ); + } + } + + function eventCoreFooterEnd($args) + { + if (XortifyCorePreload::hasAPIUserPass()) + if (XortifyCorePreload::isActive()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.footer.php' ); + } + } + + function isActive() + { + $module_handler =& xoops_getHandler('module'); + $module = $module_handler->getByDirname('xortify'); + return ($module && $module->getVar('isactive')) ? ($module->getVar('version')<240) ? false : true : false; + } + + function hasAPIUserPass() + { + $module_handler =& xoops_getHandler('module'); + $config_handler =& xoops_getHandler('config'); + $xoModule = $module_handler->getByDirname('xortify'); + if (is_object($xoModule)) { + $xoconfigs = $config_handler->getConfigList($xoModule->getVar('mid')); + if ($xoconfigs['xortify_username']!=''&&$xoconfigs['xortify_password']!='') + return true; + else + return false; + } else + return false; + } +} + +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.57/htdocs/Frameworks/moduleclasses/icons/32/access.list.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/2.57/htdocs/Frameworks/moduleclasses/icons/32/access.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/2.57/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/2.57/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/2.57/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/2.57/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/admin/index.html =================================================================== --- XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/admin/index.html (rev 0) +++ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/admin/index.html 2011-11-04 20:50:09 UTC (rev 8045) @@ -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/2.57/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/admin/index.php (rev 0) +++ XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/admin/index.php 2011-11-04 20:50:09 UTC (rev 8045) @@ -0,0 +1,287 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + + include('../../../mainfile.php'); + include('../../../include/cp_header.php'); + + if (!defined('_CHARSET')) + define ("_CHARSET","UTF-8"); + if (!defined('_CHARSET_ISO')) + define ("_CHARSET_ISO","ISO-8859-1"); + + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); + + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['xoopsModule'] = $module_handler->getByDirname('xortify'); + $GLOBALS['xoopsModuleConfig'] = $config_handler->getConfigList($GLOBALS['xoopsModule']->getVar('mid')); + + xoops_load('pagenav'); + xoops_load('xoopslists'); + xoops_load('xoopsformloader'); + + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopstree.php'); + include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'include'.DS.'functions.php'); + include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'include'.DS.'forms.xortify.php'); + + if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + //return true; + }else{ + echo xoops_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); + //return false; + } + $pathImageIcon = XOOPS_URL .'/'. $GLOBALS['xoopsModule']->getInfo('icons16'); + $pathImageAdmin = XOOPS_URL .'/'. $GLOBALS['xoopsModule']->getInfo('icons32'); + + $myts =& MyTextSanitizer::getInstance(); + + if ($GLOBALS['xoopsUser']) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['xoopsModule']->getVar( 'mid' ), $GLOBALS['xoopsUser']->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } + } else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); + } + + if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $GLOBALS['xoopsTpl'] = new XoopsTpl(); + } + + $GLOBALS['xoopsTpl']->assign('pathImageIcon', $pathImageIcon); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"dashboard"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + + switch($op) { + case "signup": + + switch ($fct) + { + case "save": + + $xortifyAuth =& XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xoopsModuleConfig']['protocol']); + $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(2); + 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 => $confi... [truncated message content] |
From: <be...@us...> - 2011-11-07 04:57:53
|
Revision: 8214 http://xoops.svn.sourceforge.net/xoops/?rev=8214&view=rev Author: beckmi Date: 2011-11-07 04:57:43 +0000 (Mon, 07 Nov 2011) Log Message: ----------- Updating svn-props Modified Paths: -------------- XoopsModules/xortify/releases/2.56/extras/htdocs/header.php XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/include/post.header.footer.php XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/xoops_version.php XoopsModules/xortify/releases/2.57/extras/htdocs/header.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/xoops_version.php Property Changed: ---------------- XoopsModules/xortify/releases/2.56/extras/htdocs/header.php XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/include/post.header.footer.php XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/xoops_version.php XoopsModules/xortify/releases/2.57/extras/htdocs/header.php XoopsModules/xortify/releases/2.57/extras/htdocs/modules/xortify/include/post.header.footer.php XoopsModules/xortify/releases/2.57/extras/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/2.57/htdocs/modules/xortify/xoops_version.php Modified: XoopsModules/xortify/releases/2.56/extras/htdocs/header.php =================================================================== --- XoopsModules/xortify/releases/2.56/extras/htdocs/header.php 2011-11-07 04:43:08 UTC (rev 8213) +++ XoopsModules/xortify/releases/2.56/extras/htdocs/header.php 2011-11-07 04:57:43 UTC (rev 8214) @@ -1,109 +1,109 @@ -<?php -/** - * XOOPS global header file - * - * You may not change or alter any portion of this comment or credits - * of supporting developers from this source code or any supporting source code - * which is considered copyrighted (c) material of the original comment or credit authors. - * This program 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. - * - * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) - * @package core - * @since 2.0.0 - * @author Kazumi Ono <web...@my...> - * @author Skalpa Keo <sk...@xo...> - * @author Taiwen Jiang <ph...@us...> - * @version $Id: header.php 4941 2010-07-22 17:13:36Z beckmi $ - */ - -defined('XOOPS_ROOT_PATH') or die('Restricted access'); - -$xoopsPreload =& XoopsPreload::getInstance(); -$xoopsPreload->triggerEvent('core.header.start'); - -include_once $GLOBALS['xoops']->path('class/xoopsblock.php'); - -$xoopsLogger =& XoopsLogger::getInstance(); -$xoopsLogger->stopTime('Module init'); -$xoopsLogger->startTime('XOOPS output init'); - -if ($xoopsConfig['theme_set'] != 'default' && file_exists(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/theme.php')) { - require_once $GLOBALS['xoops']->path('include/xoops13_header.php'); -} else { - global $xoopsOption, $xoopsConfig, $xoopsModule; - - $xoopsOption['theme_use_smarty'] = 1; - - // include Smarty template engine and initialize it - require_once $GLOBALS['xoops']->path('class/template.php'); - require_once $GLOBALS['xoops']->path('class/theme.php'); - require_once $GLOBALS['xoops']->path('class/theme_blocks.php'); - - if (@$xoopsOption['template_main']) { - if (false === strpos($xoopsOption['template_main'], ':')) { - $xoopsOption['template_main'] = 'db:' . $xoopsOption['template_main']; - } - } - - $xoopsThemeFactory = null; - $xoopsThemeFactory = new xos_opal_ThemeFactory(); - $xoopsThemeFactory->allowedThemes = $xoopsConfig['theme_set_allowed']; - $xoopsThemeFactory->defaultTheme = $xoopsConfig['theme_set']; - - /** - * @var xos_opal_Theme - */ - $xoTheme =& $xoopsThemeFactory->createInstance(array('contentTemplate' => @$xoopsOption['template_main'])); - $xoopsTpl =& $xoTheme->template; - - $xoopsPreload->triggerEvent('core.header.addmeta'); - - // Temporary solution for start page redirection - if (defined("XOOPS_STARTPAGE_REDIRECTED")) { - $params = $content = $tpl = $repeat = null; - $xoTheme->headContent($params, "<base href='" . XOOPS_URL . '/modules/' . $xoopsConfig['startpage'] . "/' />", $tpl, $repeat); - } - - if (@is_object($xoTheme->plugins['xos_logos_PageBuilder'])) { - $aggreg =& $xoTheme->plugins['xos_logos_PageBuilder']; - // Backward compatibility code for pre 2.0.14 themes - $xoopsTpl->assign_by_ref('xoops_lblocks', $aggreg->blocks['canvas_left']); - $xoopsTpl->assign_by_ref('xoops_rblocks', $aggreg->blocks['canvas_right']); - $xoopsTpl->assign_by_ref('xoops_ccblocks', $aggreg->blocks['page_topcenter']); - $xoopsTpl->assign_by_ref('xoops_clblocks', $aggreg->blocks['page_topleft']); - $xoopsTpl->assign_by_ref('xoops_crblocks', $aggreg->blocks['page_topright']); - $xoopsTpl->assign('xoops_showlblock', !empty($aggreg->blocks['canvas_left'])); - $xoopsTpl->assign('xoops_showrblock', !empty($aggreg->blocks['canvas_right'])); - $xoopsTpl->assign('xoops_showcblock', !empty($aggreg->blocks['page_topcenter']) || !empty($aggreg->blocks['page_topleft']) || !empty($aggreg->blocks['page_topright'])); - } - - // Sets cache time - if (!empty($xoopsModule)) { - $xoTheme->contentCacheLifetime = @$xoopsConfig['module_cache'][$xoopsModule->getVar('mid', 'n')]; - // Tricky solution for setting cache time for homepage - } else if (!empty($xoopsOption['template_main']) && $xoopsOption['template_main'] == 'db:system_homepage.html') { - $xoTheme->contentCacheLifetime = 604800; - } - - if ($xoTheme->checkCache()) { - $xoopsPreload->triggerEvent('core.header.cache.end'); - exit(); - } - - if (!isset($xoopsOption['template_main']) && $xoopsModule) { - // new themes using Smarty does not have old functions that are required in old modules, so include them now - include $GLOBALS['xoops']->path('include/old_theme_functions.php'); - // need this also - $xoopsTheme['thename'] = $xoopsConfig['theme_set']; - ob_start(); - } - - $xoopsLogger->stopTime('XOOPS output init'); - $xoopsLogger->startTime('Module display'); -} - -$xoopsPreload->triggerEvent('core.header.end'); +<?php +/** + * XOOPS global header file + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package core + * @since 2.0.0 + * @author Kazumi Ono <web...@my...> + * @author Skalpa Keo <sk...@xo...> + * @author Taiwen Jiang <ph...@us...> + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +$xoopsPreload =& XoopsPreload::getInstance(); +$xoopsPreload->triggerEvent('core.header.start'); + +include_once $GLOBALS['xoops']->path('class/xoopsblock.php'); + +$xoopsLogger =& XoopsLogger::getInstance(); +$xoopsLogger->stopTime('Module init'); +$xoopsLogger->startTime('XOOPS output init'); + +if ($xoopsConfig['theme_set'] != 'default' && file_exists(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/theme.php')) { + require_once $GLOBALS['xoops']->path('include/xoops13_header.php'); +} else { + global $xoopsOption, $xoopsConfig, $xoopsModule; + + $xoopsOption['theme_use_smarty'] = 1; + + // include Smarty template engine and initialize it + require_once $GLOBALS['xoops']->path('class/template.php'); + require_once $GLOBALS['xoops']->path('class/theme.php'); + require_once $GLOBALS['xoops']->path('class/theme_blocks.php'); + + if (@$xoopsOption['template_main']) { + if (false === strpos($xoopsOption['template_main'], ':')) { + $xoopsOption['template_main'] = 'db:' . $xoopsOption['template_main']; + } + } + + $xoopsThemeFactory = null; + $xoopsThemeFactory = new xos_opal_ThemeFactory(); + $xoopsThemeFactory->allowedThemes = $xoopsConfig['theme_set_allowed']; + $xoopsThemeFactory->defaultTheme = $xoopsConfig['theme_set']; + + /** + * @var xos_opal_Theme + */ + $xoTheme =& $xoopsThemeFactory->createInstance(array('contentTemplate' => @$xoopsOption['template_main'])); + $xoopsTpl =& $xoTheme->template; + + $xoopsPreload->triggerEvent('core.header.addmeta'); + + // Temporary solution for start page redirection + if (defined("XOOPS_STARTPAGE_REDIRECTED")) { + $params = $content = $tpl = $repeat = null; + $xoTheme->headContent($params, "<base href='" . XOOPS_URL . '/modules/' . $xoopsConfig['startpage'] . "/' />", $tpl, $repeat); + } + + if (@is_object($xoTheme->plugins['xos_logos_PageBuilder'])) { + $aggreg =& $xoTheme->plugins['xos_logos_PageBuilder']; + // Backward compatibility code for pre 2.0.14 themes + $xoopsTpl->assign_by_ref('xoops_lblocks', $aggreg->blocks['canvas_left']); + $xoopsTpl->assign_by_ref('xoops_rblocks', $aggreg->blocks['canvas_right']); + $xoopsTpl->assign_by_ref('xoops_ccblocks', $aggreg->blocks['page_topcenter']); + $xoopsTpl->assign_by_ref('xoops_clblocks', $aggreg->blocks['page_topleft']); + $xoopsTpl->assign_by_ref('xoops_crblocks', $aggreg->blocks['page_topright']); + $xoopsTpl->assign('xoops_showlblock', !empty($aggreg->blocks['canvas_left'])); + $xoopsTpl->assign('xoops_showrblock', !empty($aggreg->blocks['canvas_right'])); + $xoopsTpl->assign('xoops_showcblock', !empty($aggreg->blocks['page_topcenter']) || !empty($aggreg->blocks['page_topleft']) || !empty($aggreg->blocks['page_topright'])); + } + + // Sets cache time + if (!empty($xoopsModule)) { + $xoTheme->contentCacheLifetime = @$xoopsConfig['module_cache'][$xoopsModule->getVar('mid', 'n')]; + // Tricky solution for setting cache time for homepage + } else if (!empty($xoopsOption['template_main']) && $xoopsOption['template_main'] == 'db:system_homepage.html') { + $xoTheme->contentCacheLifetime = 604800; + } + + if ($xoTheme->checkCache()) { + $xoopsPreload->triggerEvent('core.header.cache.end'); + exit(); + } + + if (!isset($xoopsOption['template_main']) && $xoopsModule) { + // new themes using Smarty does not have old functions that are required in old modules, so include them now + include $GLOBALS['xoops']->path('include/old_theme_functions.php'); + // need this also + $xoopsTheme['thename'] = $xoopsConfig['theme_set']; + ob_start(); + } + + $xoopsLogger->stopTime('XOOPS output init'); + $xoopsLogger->startTime('Module display'); +} + +$xoopsPreload->triggerEvent('core.header.end'); ?> \ No newline at end of file Property changes on: XoopsModules/xortify/releases/2.56/extras/htdocs/header.php ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision URL Added: svn:eol-style + native Modified: XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/include/post.header.footer.php =================================================================== --- XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/include/post.header.footer.php 2011-11-07 04:43:08 UTC (rev 8213) +++ XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/include/post.header.footer.php 2011-11-07 04:57:43 UTC (rev 8214) @@ -1,15 +1,15 @@ -<?php -/** - * @package xortify - * @subpackage module - * @description Sector Network Security Drone - * @author Simon Roberts WISHCRAFT <si...@ch...> - * @copyright copyright (c) 2010-2013 XOOPS.org - * @licence GPL 2.0 - see docs/LICENCE.txt - */ - - set_time_limit(1800); - include_once (XOOPS_ROOT_PATH.'/modules/xortify/providers/providers.php'); - $check = new Providers('footerpostcheck'); - +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + set_time_limit(1800); + include_once (XOOPS_ROOT_PATH.'/modules/xortify/providers/providers.php'); + $check = new Providers('footerpostcheck'); + ?> \ No newline at end of file Property changes on: XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/include/post.header.footer.php ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision URL Added: svn:eol-style + native Modified: XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/preloads/core.php =================================================================== --- XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/preloads/core.php 2011-11-07 04:43:08 UTC (rev 8213) +++ XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/preloads/core.php 2011-11-07 04:57:43 UTC (rev 8214) @@ -1,99 +1,99 @@ -<?php -/** - * @package xortify - * @subpackage module - * @description Sector Nexoork Security Drone - * @author Simon Roberts WISHCRAFT <si...@ch...> - * @author Richardo Costa TRABIS - * @copyright copyright (c) 2010-2013 XOOPS.org - * @licence GPL 2.0 - see docs/LICENCE.txt - */ - -defined('XOOPS_ROOT_PATH') or die('Restricted access'); - - -class XortifyCorePreload extends XoopsPreloadItem -{ - - function eventCoreIncludeCommonStart($args) - { - include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/pre.loader.mainfile.php' ); - - } - - function eventCoreIncludeCommonEnd($args) - { - - xoops_load('xoopscache'); - if (!class_exists('XoopsCache')) { - // XOOPS 2.4 Compliance - xoops_load('cache'); - if (!class_exists('XoopsCache')) { - include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; - } - } - $module_handler = xoops_gethandler('module'); - $config_handler = xoops_gethandler('config'); - $xoMod = $module_handler->getByDirname('xortify'); - if (is_object($xoMod)) { - $xoConfig = $config_handler->getConfigList($xoMod->getVar('mid')); - switch ($xoConfig['crontype']) { - case 'preloader': - if (!$read = XoopsCache::read('xortify_pause_preload')) { - XoopsCache::write('xortify_pause_preload', true, $xoConfig['croninterval']); - $GLOBALS['xortify_preloader']=true; - ob_start(); - include(XOOPS_ROOT_PATH.'/modules/xortify/cron/serverup.php'); - ob_end_clean(); - } - break; - } - } - - if (XortifyCorePreload::hasAPIUserPass()) - if (XortifyCorePreload::isActive()) { - include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.loader.mainfile.php' ); - } - - } - - function eventCoreHeaderCacheEnd($args) - { - if (XortifyCorePreload::hasAPIUserPass()) - if (XortifyCorePreload::isActive()) { - include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.footer.php' ); - } - } - - function eventCoreFooterEnd($args) - { - if (XortifyCorePreload::hasAPIUserPass()) - if (XortifyCorePreload::isActive()) { - include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.footer.php' ); - } - } - - function isActive() - { - $module_handler =& xoops_getHandler('module'); - $module = $module_handler->getByDirname('xortify'); - return ($module && $module->getVar('isactive')) ? ($module->getVar('version')<240) ? false : true : false; - } - - function hasAPIUserPass() - { - $module_handler =& xoops_getHandler('module'); - $config_handler =& xoops_getHandler('config'); - $xoModule = $module_handler->getByDirname('xortify'); - if (is_object($xoModule)) { - $xoconfigs = $config_handler->getConfigList($xoModule->getVar('mid')); - if ($xoconfigs['xortify_username']!=''&&$xoconfigs['xortify_password']!='') - return true; - else - return false; - } else - return false; - } -} - +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Nexoork Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @author Richardo Costa TRABIS + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + + +class XortifyCorePreload extends XoopsPreloadItem +{ + + function eventCoreIncludeCommonStart($args) + { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/pre.loader.mainfile.php' ); + + } + + function eventCoreIncludeCommonEnd($args) + { + + xoops_load('xoopscache'); + if (!class_exists('XoopsCache')) { + // XOOPS 2.4 Compliance + xoops_load('cache'); + if (!class_exists('XoopsCache')) { + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + } + } + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $xoMod = $module_handler->getByDirname('xortify'); + if (is_object($xoMod)) { + $xoConfig = $config_handler->getConfigList($xoMod->getVar('mid')); + switch ($xoConfig['crontype']) { + case 'preloader': + if (!$read = XoopsCache::read('xortify_pause_preload')) { + XoopsCache::write('xortify_pause_preload', true, $xoConfig['croninterval']); + $GLOBALS['xortify_preloader']=true; + ob_start(); + include(XOOPS_ROOT_PATH.'/modules/xortify/cron/serverup.php'); + ob_end_clean(); + } + break; + } + } + + if (XortifyCorePreload::hasAPIUserPass()) + if (XortifyCorePreload::isActive()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.loader.mainfile.php' ); + } + + } + + function eventCoreHeaderCacheEnd($args) + { + if (XortifyCorePreload::hasAPIUserPass()) + if (XortifyCorePreload::isActive()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.footer.php' ); + } + } + + function eventCoreFooterEnd($args) + { + if (XortifyCorePreload::hasAPIUserPass()) + if (XortifyCorePreload::isActive()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.footer.php' ); + } + } + + function isActive() + { + $module_handler =& xoops_getHandler('module'); + $module = $module_handler->getByDirname('xortify'); + return ($module && $module->getVar('isactive')) ? ($module->getVar('version')<240) ? false : true : false; + } + + function hasAPIUserPass() + { + $module_handler =& xoops_getHandler('module'); + $config_handler =& xoops_getHandler('config'); + $xoModule = $module_handler->getByDirname('xortify'); + if (is_object($xoModule)) { + $xoconfigs = $config_handler->getConfigList($xoModule->getVar('mid')); + if ($xoconfigs['xortify_username']!=''&&$xoconfigs['xortify_password']!='') + return true; + else + return false; + } else + return false; + } +} + ?> \ No newline at end of file Property changes on: XoopsModules/xortify/releases/2.56/extras/htdocs/modules/xortify/preloads/core.php ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision URL Added: svn:eol-style + native Modified: XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/admin/index.php 2011-11-07 04:43:08 UTC (rev 8213) +++ XoopsModules/xortify/releases/2.56/htdocs/modules/xortify/admin/index.php 2011-11-07 04:57:43 UTC (rev 8214) @@ -1,287 +1,287 @@ -<?php -/** - * @package xortify - * @subpackage module - * @description Sector Network Security Drone - * @author Simon Roberts WISHCRAFT <si...@ch...> - * @copyright copyright (c) 2010-2013 XOOPS.org - * @licence GPL 2.0 - see docs/LICENCE.txt - */ - - - include('../../../mainfile.php'); - include('../../../include/cp_header.php'); - - if (!defined('_CHARSET')) - define ("_CHARSET","UTF-8"); - if (!defined('_CHARSET_ISO')) - define ("_CHARSET_ISO","ISO-8859-1"); - - $GLOBALS['myts'] = MyTextSanitizer::getInstance(); - - $module_handler = xoops_gethandler('module'); - $config_handler = xoops_gethandler('config'); - $GLOBALS['xoopsModule'] = $module_handler->getByDirname('xortify'); - $GLOBALS['xoopsModuleConfig'] = $config_handler->getConfigList($GLOBALS['xoopsModule']->getVar('mid')); - - xoops_load('pagenav'); - xoops_load('xoopslists'); - xoops_load('xoopsformloader'); - - include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php'); - include_once $GLOBALS['xoops']->path('class'.DS.'xoopstree.php'); - include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'include'.DS.'functions.php'); - include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'include'.DS.'forms.xortify.php'); - - if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ - include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); - //return true; - }else{ - echo xoops_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); - //return false; - } - $pathImageIcon = XOOPS_URL .'/'. $GLOBALS['xoopsModule']->getInfo('icons16'); - $pathImageAdmin = XOOPS_URL .'/'. $GLOBALS['xoopsModule']->getInfo('icons32'); - - $myts =& MyTextSanitizer::getInstance(); - - if ($GLOBALS['xoopsUser']) { - $moduleperm_handler =& xoops_gethandler('groupperm'); - if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['xoopsModule']->getVar( 'mid' ), $GLOBALS['xoopsUser']->getGroups())) { - redirect_header(XOOPS_URL, 1, _NOPERM); - exit(); - } - } else { - redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); - exit(); - } - - if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { - include_once(XOOPS_ROOT_PATH."/class/template.php"); - $GLOBALS['xoopsTpl'] = new XoopsTpl(); - } - - $GLOBALS['xoopsTpl']->assign('pathImageIcon', $pathImageIcon); - - xoops_cp_header(); - - $op = isset($_REQUEST['op'])?$_REQUEST['op']:"dashboard"; - $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; - - switch($op) { - case "signup": - - switch ($fct) - { - case "save": - - $xortifyAuth =& XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xoopsModuleConfig']['protocol']); - $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(2); - 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: - case "signup": - xortify_adminMenu(4); - echo XortifySignupForm(); - break; - } - break; - case "log": - - xoops_loadLanguage('admin', 'xortify'); - xortify_adminMenu(3); - - include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); - - $log_handler =& xoops_getmodulehandler('log', 'xortify'); - - $ttl = $log_handler->getCount(NULL); - $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; - $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; - $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; - $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'date'; - - $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op); - $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); - - foreach (array( 'action','provider','date','uname','email','ip4','ip6','proxy-ip4', - 'proxy-ip6','network-addy','agent') as $id => $key) { - $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'">'.(defined('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))):'_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); - } - - $criteria = new Criteria('1','1'); - $criteria->setStart($start); - $criteria->setLimit($limit); - $criteria->setSort('`'.$sort.'`'); - $criteria->setOrder($order); - - $logs = $log_handler->getObjects($criteria, true); - foreach($logs as $id => $log) { - $GLOBALS['xoopsTpl']->append('log', $log->toArray()); - } - - $GLOBALS['xoopsTpl']->display('db:xortify_cpanel_log.html'); - break; - case "list": - xoops_loadLanguage('admin', 'xortify'); - xortify_adminMenu(2); - - xoops_load("xoopscache"); - if (!class_exists('XoopsCache')) - xoops_load("cache"); - xoops_load("pagenav"); - - if (!$bans = XoopsCache::read('xortify_bans_cache')) { - require_once( XOOPS_ROOT_PATH.'/modules/xortify/class/'.$GLOBALS['xoopsModuleConfig']['protocol'].'.php' ); - $func = strtoupper($GLOBALS['xoopsModuleConfig']['protocol']).'XortifyExchange'; - ob_start(); - $soapExchg = new $func; - $bans = $soapExchg->retrieveBans(); - ob_end_flush(); - - XoopsCache::delete('xortify_bans_cache'); - XoopsCache::delete('xortify_bans_cache_backup'); - XoopsCache::write('xortify_bans_cache', $bans, $GLOBALS['xoopsModuleConfig']['xortify_seconds']); - XoopsCache::write('xortify_bans_cache_backup', $bans, ($GLOBALS['xoopsModuleConfig']['xortify_seconds'] * 1.45)); - } - - if ($bans['bans']==0) { - echo _XS_AM_NOCACHEMSG; - } else { - - $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; - $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; - - $pagenav = new XoopsPageNav($bans['bans'], $limit, $start, 'start', 'limit='.$limit.'&op='.$op); - $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); - $i=0; - $num=0; - foreach($bans['data'] as $key => $data) { - $i++; - if ($i>=$start&&$num<=$limit) { - $num++; - if (strlen($data['ip4'])>0) { - $ipaddy = $data['ip4']; - $iptype = _XS_IPTYPE_IP4; - } elseif (strlen($data['ip6'])>0) { - $ipaddy = $data['ip6']; - $iptype = _XS_IPTYPE_IP6; - } else { - $ipaddy = ''; - $iptype = _XS_IPTYPE_EMPTY; - } - - if (strlen($data['proxy-ip4'])>0) { - $proxyip = $data['proxy-ip4']; - $proxyiptype = _XS_IPTYPE_IP4; - } elseif (strlen($data['proxy-ip6'])>0) { - $proxyip = $data['proxy-ip6']; - $proxyiptype = _XS_IPTYPE_IP6; - } else { - $proxyip = ''; - $proxyiptype = ''; - } - - $GLOBALS['xoopsTpl']->append('bans', array('iptype' => $iptype, 'ipaddy' => $ipaddy, - 'proxyiptype' => $proxyiptype, 'ip' => $proxyip, - 'netaddy' => $data['network-addy']?$data['network-addy']:' ', - 'macaddy' => $data['mac-addy']?$data['mac-addy']:' ', - 'long' => $data['long']?$data['long']:' ')); - } - } - - $GLOBALS['xoopsTpl']->display('db:xorify_cpanel_bans.html'); - } - break; - case "dashboard": - default: - - echo xortify_adminMenu(1); - - $log_handler = xoops_getmodulehandler('log', 'xortify'); - - $indexAdmin = new ModuleAdmin(); - - $indexAdmin->addInfoBox(_XOR_ADMIN_COUNTS); - $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_BANNED."</label>", $log_handler->getCountByField('action','banned'), 'Green'); - $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_BLOCKED."</label>", $log_handler->getCountByField('action','blocked'), 'Green'); - $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_MONITORED."</label>", $log_handler->getCountByField('action','monitored'), 'Green'); - $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_PROJECTHONEYPOTORG."</label>", $log_handler->getCountByField('provider','projecthoneypot.org'), 'Green'); - $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_PROTECTOR."</label>", $log_handler->getCountByField('provider','protector'), 'Green'); - $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_SPIDERS."</label>", $log_handler->getCountByField('provider','spiders'), 'Green'); - $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_STOPFORUMSPAMCOM."</label>", $log_handler->getCountByField('provider','stopforumspam.com'), 'Green'); - $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_XORTIFY."</label>", $log_handler->getCountByField('provider','xortify'), 'Green'); - - xoops_load('xoopscache'); - if (!class_exists('XoopsCache')) { - // XOOPS 2.4 Compliance - xoops_load('cache'); - if (!class_exists('XoopsCache')) { - include_once XOOPS_ROOT_PATH.DS.'class'.DS.'cache'.DS.'xoopscache.php'; - } - } - - if ($bans = XoopsCache::read('xortify_bans_cache')) { - $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_CLOUDEDBANS."</label>", count($bans), 'Green'); - } - - echo $indexAdmin->renderIndex(); - - break; - case "about": - echo xortify_adminMenu(5); - $aboutAdmin = new ModuleAdmin(); - echo $aboutAdmin->renderabout('7VG8IU2RT5ERX', false); - break; - } - - xortify_footer_adminMenu(); - xoops_cp_footer(); +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + + include('../../../mainfile.php'); + include('../../../include/cp_header.php'); + + if (!defined('_CHARSET')) + define ("_CHARSET","UTF-8"); + if (!defined('_CHARSET_ISO')) + define ("_CHARSET_ISO","ISO-8859-1"); + + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); + + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['xoopsModule'] = $module_handler->getByDirname('xortify'); + $GLOBALS['xoopsModuleConfig'] = $config_handler->getConfigList($GLOBALS['xoopsModule']->getVar('mid')); + + xoops_load('pagenav'); + xoops_load('xoopslists'); + xoops_load('xoopsformloader'); + + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopstree.php'); + include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'include'.DS.'functions.php'); + include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'include'.DS.'forms.xortify.php'); + + if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + //return true; + }else{ + echo xoops_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); + //return false; + } + $pathImageIcon = XOOPS_URL .'/'. $GLOBALS['xoopsModule']->getInfo('icons16'); + $pathImageAdmin = XOOPS_URL .'/'. $GLOBALS['xoopsModule']->getInfo('icons32'); + + $myts =& MyTextSanitizer::getInstance(); + + if ($GLOBALS['xoopsUser']) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['xoopsModule']->getVar( 'mid' ), $GLOBALS['xoopsUser']->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } + } else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); + } + + if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $GLOBALS['xoopsTpl'] = new XoopsTpl(); + } + + $GLOBALS['xoopsTpl']->assign('pathImageIcon', $pathImageIcon); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"dashboard"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + + switch($op) { + case "signup": + + switch ($fct) + { + case "save": + + $xortifyAuth =& XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xoopsModuleConfig']['protocol']); + $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(2); + 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: + case "signup": + xortify_adminMenu(4); + echo XortifySignupForm(); + break; + } + break; + case "log": + + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(3); + + include_once $GLOBALS['xoops']->path( "/class/pagenav.php" ); + + $log_handler =& xoops_getmodulehandler('log', 'xortify'); + + $ttl = $log_handler->getCount(NULL); + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'date'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'action','provider','date','uname','email','ip4','ip6','proxy-ip4', + 'proxy-ip6','network-addy','agent') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'">'.(defined('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))):'_XOR_AM_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); + } + + $criteria = new Criteria('1','1'); + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $logs = $log_handler->getObjects($criteria, true); + foreach($logs as $id => $log) { + $GLOBALS['xoopsTpl']->append('log', $log->toArray()); + } + + $GLOBALS['xoopsTpl']->display('db:xortify_cpanel_log.html'); + break; + case "list": + xoops_loadLanguage('admin', 'xortify'); + xortify_adminMenu(2); + + xoops_load("xoopscache"); + if (!class_exists('XoopsCache')) + xoops_load("cache"); + xoops_load("pagenav"); + + if (!$bans = XoopsCache::read('xortify_bans_cache')) { + require_once( XOOPS_ROOT_PATH.'/modules/xortify/class/'.$GLOBALS['xoopsModuleConfig']['protocol'].'.php' ); + $func = strtoupper($GLOBALS['xoopsModuleConfig']['protocol']).'XortifyExchange'; + ob_start(); + $soapExchg = new $func; + $bans = $soapExchg->retrieveBans(); + ob_end_flush(); + + XoopsCache::delete('xortify_bans_cache'); + XoopsCache::delete('xortify_bans_cache_backup'); + XoopsCache::write('xortify_bans_cache', $bans, $GLOBALS['xoopsModuleConfig']['xortify_seconds']); + XoopsCache::write('xortify_bans_cache_backup', $bans, ($GLOBALS['xoopsModuleConfig']['xortify_seconds'] * 1.45)); + } + + if ($bans['bans']==0) { + echo _XS_AM_NOCACHEMSG; + } else { + + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + + $pagenav = new XoopsPageNav($bans['bans'], $limit, $start, 'start', 'limit='.$limit.'&op='.$op); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + $i=0; + $num=0; + foreach($bans['data'] as $key => $data) { + $i++; + if ($i>=$start&&$num<=$limit) { + $num++; + if (strlen($data['ip4'])>0) { + $ipaddy = $data['ip4']; + $iptype = _XS_IPTYPE_IP4; + } elseif (strlen($data['ip6'])>0) { + $ipaddy = $data['ip6']; + $iptype = _XS_IPTYPE_IP6; + } else { + $ipaddy = ''; + $iptype = _XS_IPTYPE_EMPTY; + } + + if (strlen($data['proxy-ip4'])>0) { + $proxyip = $data['proxy-ip4']; + $proxyiptype = _XS_IPTYPE_IP4; + } elseif (strlen($data['proxy-ip6'])>0) { + $proxyip = $data['proxy-ip6']; + $proxyiptype = _XS_IPTYPE_IP6; + } else { + $proxyip = ''; + $proxyiptype = ''; + } + + $GLOBALS['xoopsTpl']->append('bans', array('iptype' => $iptype, 'ipaddy' => $ipaddy, + 'proxyiptype' => $proxyiptype, 'ip' => $proxyip, + 'netaddy' => $data['network-addy']?$data['network-addy']:' ', + 'macaddy' => $data['mac-addy']?$data['mac-addy']:' ', + 'long' => $data['long']?$data['long']:' ')); + } + } + + $GLOBALS['xoopsTpl']->display('db:xorify_cpanel_bans.html'); + } + break; + case "dashboard": + default: + + echo xortify_adminMenu(1); + + $log_handler = xoops_getmodulehandler('log', 'xortify'); + + $indexAdmin = new ModuleAdmin(); + + $indexAdmin->addInfoBox(_XOR_ADMIN_COUNTS); + $ind... [truncated message content] |
From: <wis...@us...> - 2011-11-07 20:09:39
|
Revision: 8226 http://xoops.svn.sourceforge.net/xoops/?rev=8226&view=rev Author: wishcraft Date: 2011-11-07 20:09:30 +0000 (Mon, 07 Nov 2011) Log Message: ----------- Xortify 2.58 - Only for XOOPS 2.5+ - GUI Implemented - See changelog.txt [FINAL RELEASE] - Anti hijacking of system tray. Added Paths: ----------- XoopsModules/xortify/releases/2.58/ XoopsModules/xortify/releases/2.58/docs/ XoopsModules/xortify/releases/2.58/docs/INSTALL XoopsModules/xortify/releases/2.58/docs/UPGRADE XoopsModules/xortify/releases/2.58/docs/licence.txt XoopsModules/xortify/releases/2.58/extras/ XoopsModules/xortify/releases/2.58/extras/docs/ XoopsModules/xortify/releases/2.58/extras/docs/install.txt XoopsModules/xortify/releases/2.58/extras/htdocs/ XoopsModules/xortify/releases/2.58/extras/htdocs/header.php XoopsModules/xortify/releases/2.58/extras/htdocs/modules/ XoopsModules/xortify/releases/2.58/extras/htdocs/modules/xortify/ XoopsModules/xortify/releases/2.58/extras/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/2.58/extras/htdocs/modules/xortify/include/post.header.footer.php XoopsModules/xortify/releases/2.58/extras/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/2.58/extras/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.58/htdocs/ XoopsModules/xortify/releases/2.58/htdocs/Frameworks/ XoopsModules/xortify/releases/2.58/htdocs/Frameworks/moduleclasses/ XoopsModules/xortify/releases/2.58/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/xortify/releases/2.58/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/xortify/releases/2.58/htdocs/Frameworks/moduleclasses/icons/32/access.list.png XoopsModules/xortify/releases/2.58/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png XoopsModules/xortify/releases/2.58/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png XoopsModules/xortify/releases/2.58/htdocs/modules/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/admin/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/admin/index.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/auth/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/auth/index.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/index.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/cron/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/cron/index.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/docs/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/docs/changelog.txt XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/docs/credits.txt XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/docs/index.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/docs/install.txt XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/docs/lang_diff.txt XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/docs/licence.txt XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/docs/readme.txt XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/images/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/images/accessdenied.png XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/images/index.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/images/left_both.gif XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/images/right_both.gif XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/images/xortify_slogo.png XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/index.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/language/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/language/english/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/language/english/help/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/language/english/help/help.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/language/english/help/index.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/language/english/index.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/language/index.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/plugin/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/plugin/index.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/preloads/index.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/providers/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/providers/index.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/providers/protector/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/providers/protector/index.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/providers/spiders/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/providers/xortify/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/providers/xortify/index.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/sql/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/sql/index.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/sql/mysql.sql XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/templates/ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/templates/index.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/templates/xorify_cpanel_bans.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/templates/xortify_cpanel_log.html XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/xoops_version.php Added: XoopsModules/xortify/releases/2.58/docs/INSTALL =================================================================== --- XoopsModules/xortify/releases/2.58/docs/INSTALL (rev 0) +++ XoopsModules/xortify/releases/2.58/docs/INSTALL 2011-11-07 20:09:30 UTC (rev 8226) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.48 | +| | ++----[ 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 | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - mainfile.php (pre 2.4 series) ]---------------------------------------+ +| | +| 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 3 - header.php (pre 2.4 series) ]----------------------------------------+ +| | +| Below the lin of footer.php which reads $xoopsTpl =& $xoTheme->template; | +| | +| [code] | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.add.meta.php' ); | +| [/code] | +| | ++-----------------------------------------------------------------------------------+ \ No newline at end of file Added: XoopsModules/xortify/releases/2.58/docs/UPGRADE =================================================================== --- XoopsModules/xortify/releases/2.58/docs/UPGRADE (rev 0) +++ XoopsModules/xortify/releases/2.58/docs/UPGRADE 2011-11-07 20:09:30 UTC (rev 8226) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.22) | +| * Xortify Network Security Drone | +| | +| Make sure you delete the 'providers' folder in the existing module then upload | +| Xortify 2.30. Once you have install the file base this way you will remember | +| to upgrade the module in the system modules application in the xoops system | +| menu you will need to then goto the preferences and make sure you are running | +| the protector provider if you are running protector this will populate the | +| cloud with your bans that come in protector as well:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - 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 3 - 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/2.58/docs/licence.txt =================================================================== --- XoopsModules/xortify/releases/2.58/docs/licence.txt (rev 0) +++ XoopsModules/xortify/releases/2.58/docs/licence.txt 2011-11-07 20:09:30 UTC (rev 8226) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/xortify/releases/2.58/extras/docs/install.txt =================================================================== --- XoopsModules/xortify/releases/2.58/extras/docs/install.txt (rev 0) +++ XoopsModules/xortify/releases/2.58/extras/docs/install.txt 2011-11-07 20:09:30 UTC (rev 8226) @@ -0,0 +1,8 @@ +EXTRA INSTALLATION: + +You may want Xortify to perform better, this is so the missing preloader in the header when a cache file is loaded and then the +execution of the PHP is terminated, will now call the footer preloader/add meta class for preloaders. + +You need to replace the files within /htdocs of the extra folder to have a better performing system. + +This htdocs/header.php is from XOOPS 2.5.x and has been altered at line 92. \ No newline at end of file Added: XoopsModules/xortify/releases/2.58/extras/htdocs/header.php =================================================================== --- XoopsModules/xortify/releases/2.58/extras/htdocs/header.php (rev 0) +++ XoopsModules/xortify/releases/2.58/extras/htdocs/header.php 2011-11-07 20:09:30 UTC (rev 8226) @@ -0,0 +1,109 @@ +<?php +/** + * XOOPS global header file + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package core + * @since 2.0.0 + * @author Kazumi Ono <web...@my...> + * @author Skalpa Keo <sk...@xo...> + * @author Taiwen Jiang <ph...@us...> + * @version $Id: header.php 4941 2010-07-22 17:13:36Z beckmi $ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +$xoopsPreload =& XoopsPreload::getInstance(); +$xoopsPreload->triggerEvent('core.header.start'); + +include_once $GLOBALS['xoops']->path('class/xoopsblock.php'); + +$xoopsLogger =& XoopsLogger::getInstance(); +$xoopsLogger->stopTime('Module init'); +$xoopsLogger->startTime('XOOPS output init'); + +if ($xoopsConfig['theme_set'] != 'default' && file_exists(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/theme.php')) { + require_once $GLOBALS['xoops']->path('include/xoops13_header.php'); +} else { + global $xoopsOption, $xoopsConfig, $xoopsModule; + + $xoopsOption['theme_use_smarty'] = 1; + + // include Smarty template engine and initialize it + require_once $GLOBALS['xoops']->path('class/template.php'); + require_once $GLOBALS['xoops']->path('class/theme.php'); + require_once $GLOBALS['xoops']->path('class/theme_blocks.php'); + + if (@$xoopsOption['template_main']) { + if (false === strpos($xoopsOption['template_main'], ':')) { + $xoopsOption['template_main'] = 'db:' . $xoopsOption['template_main']; + } + } + + $xoopsThemeFactory = null; + $xoopsThemeFactory = new xos_opal_ThemeFactory(); + $xoopsThemeFactory->allowedThemes = $xoopsConfig['theme_set_allowed']; + $xoopsThemeFactory->defaultTheme = $xoopsConfig['theme_set']; + + /** + * @var xos_opal_Theme + */ + $xoTheme =& $xoopsThemeFactory->createInstance(array('contentTemplate' => @$xoopsOption['template_main'])); + $xoopsTpl =& $xoTheme->template; + + $xoopsPreload->triggerEvent('core.header.addmeta'); + + // Temporary solution for start page redirection + if (defined("XOOPS_STARTPAGE_REDIRECTED")) { + $params = $content = $tpl = $repeat = null; + $xoTheme->headContent($params, "<base href='" . XOOPS_URL . '/modules/' . $xoopsConfig['startpage'] . "/' />", $tpl, $repeat); + } + + if (@is_object($xoTheme->plugins['xos_logos_PageBuilder'])) { + $aggreg =& $xoTheme->plugins['xos_logos_PageBuilder']; + // Backward compatibility code for pre 2.0.14 themes + $xoopsTpl->assign_by_ref('xoops_lblocks', $aggreg->blocks['canvas_left']); + $xoopsTpl->assign_by_ref('xoops_rblocks', $aggreg->blocks['canvas_right']); + $xoopsTpl->assign_by_ref('xoops_ccblocks', $aggreg->blocks['page_topcenter']); + $xoopsTpl->assign_by_ref('xoops_clblocks', $aggreg->blocks['page_topleft']); + $xoopsTpl->assign_by_ref('xoops_crblocks', $aggreg->blocks['page_topright']); + $xoopsTpl->assign('xoops_showlblock', !empty($aggreg->blocks['canvas_left'])); + $xoopsTpl->assign('xoops_showrblock', !empty($aggreg->blocks['canvas_right'])); + $xoopsTpl->assign('xoops_showcblock', !empty($aggreg->blocks['page_topcenter']) || !empty($aggreg->blocks['page_topleft']) || !empty($aggreg->blocks['page_topright'])); + } + + // Sets cache time + if (!empty($xoopsModule)) { + $xoTheme->contentCacheLifetime = @$xoopsConfig['module_cache'][$xoopsModule->getVar('mid', 'n')]; + // Tricky solution for setting cache time for homepage + } else if (!empty($xoopsOption['template_main']) && $xoopsOption['template_main'] == 'db:system_homepage.html') { + $xoTheme->contentCacheLifetime = 604800; + } + + if ($xoTheme->checkCache()) { + $xoopsPreload->triggerEvent('core.header.cache.end'); + exit(); + } + + if (!isset($xoopsOption['template_main']) && $xoopsModule) { + // new themes using Smarty does not have old functions that are required in old modules, so include them now + include $GLOBALS['xoops']->path('include/old_theme_functions.php'); + // need this also + $xoopsTheme['thename'] = $xoopsConfig['theme_set']; + ob_start(); + } + + $xoopsLogger->stopTime('XOOPS output init'); + $xoopsLogger->startTime('Module display'); +} + +$xoopsPreload->triggerEvent('core.header.end'); +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.58/extras/htdocs/modules/xortify/include/post.header.footer.php =================================================================== --- XoopsModules/xortify/releases/2.58/extras/htdocs/modules/xortify/include/post.header.footer.php (rev 0) +++ XoopsModules/xortify/releases/2.58/extras/htdocs/modules/xortify/include/post.header.footer.php 2011-11-07 20:09:30 UTC (rev 8226) @@ -0,0 +1,15 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + set_time_limit(1800); + include_once (XOOPS_ROOT_PATH.'/modules/xortify/providers/providers.php'); + $check = new Providers('footerpostcheck'); + +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.58/extras/htdocs/modules/xortify/preloads/core.php =================================================================== --- XoopsModules/xortify/releases/2.58/extras/htdocs/modules/xortify/preloads/core.php (rev 0) +++ XoopsModules/xortify/releases/2.58/extras/htdocs/modules/xortify/preloads/core.php 2011-11-07 20:09:30 UTC (rev 8226) @@ -0,0 +1,99 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Nexoork Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @author Richardo Costa TRABIS + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + + +class XortifyCorePreload extends XoopsPreloadItem +{ + + function eventCoreIncludeCommonStart($args) + { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/pre.loader.mainfile.php' ); + + } + + function eventCoreIncludeCommonEnd($args) + { + + xoops_load('xoopscache'); + if (!class_exists('XoopsCache')) { + // XOOPS 2.4 Compliance + xoops_load('cache'); + if (!class_exists('XoopsCache')) { + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + } + } + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $xoMod = $module_handler->getByDirname('xortify'); + if (is_object($xoMod)) { + $xoConfig = $config_handler->getConfigList($xoMod->getVar('mid')); + switch ($xoConfig['crontype']) { + case 'preloader': + if (!$read = XoopsCache::read('xortify_pause_preload')) { + XoopsCache::write('xortify_pause_preload', true, $xoConfig['croninterval']); + $GLOBALS['xortify_preloader']=true; + ob_start(); + include(XOOPS_ROOT_PATH.'/modules/xortify/cron/serverup.php'); + ob_end_clean(); + } + break; + } + } + + if (XortifyCorePreload::hasAPIUserPass()) + if (XortifyCorePreload::isActive()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.loader.mainfile.php' ); + } + + } + + function eventCoreHeaderCacheEnd($args) + { + if (XortifyCorePreload::hasAPIUserPass()) + if (XortifyCorePreload::isActive()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.footer.php' ); + } + } + + function eventCoreFooterEnd($args) + { + if (XortifyCorePreload::hasAPIUserPass()) + if (XortifyCorePreload::isActive()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.footer.php' ); + } + } + + function isActive() + { + $module_handler =& xoops_getHandler('module'); + $module = $module_handler->getByDirname('xortify'); + return ($module && $module->getVar('isactive')) ? ($module->getVar('version')<240) ? false : true : false; + } + + function hasAPIUserPass() + { + $module_handler =& xoops_getHandler('module'); + $config_handler =& xoops_getHandler('config'); + $xoModule = $module_handler->getByDirname('xortify'); + if (is_object($xoModule)) { + $xoconfigs = $config_handler->getConfigList($xoModule->getVar('mid')); + if ($xoconfigs['xortify_username']!=''&&$xoconfigs['xortify_password']!='') + return true; + else + return false; + } else + return false; + } +} + +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.58/htdocs/Frameworks/moduleclasses/icons/32/access.list.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/2.58/htdocs/Frameworks/moduleclasses/icons/32/access.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/2.58/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/2.58/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/2.58/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/2.58/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/admin/index.html =================================================================== --- XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/admin/index.html (rev 0) +++ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/admin/index.html 2011-11-07 20:09:30 UTC (rev 8226) @@ -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/2.58/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/admin/index.php (rev 0) +++ XoopsModules/xortify/releases/2.58/htdocs/modules/xortify/admin/index.php 2011-11-07 20:09:30 UTC (rev 8226) @@ -0,0 +1,288 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + + include('../../../mainfile.php'); + include('../../../include/cp_header.php'); + + if (!defined('_CHARSET')) + define ("_CHARSET","UTF-8"); + if (!defined('_CHARSET_ISO')) + define ("_CHARSET_ISO","ISO-8859-1"); + + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); + + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['xortifyModule'] = $module_handler->getByDirname('xortify'); + $GLOBALS['xortifyModuleConfig'] = $config_handler->getConfigList($GLOBALS['xortifyModule']->getVar('mid')); + + xoops_load('pagenav'); + xoops_load('xoopslists'); + xoops_load('xoopsformloader'); + + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopstree.php'); + include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'include'.DS.'functions.php'); + include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'include'.DS.'forms.xortify.php'); + + if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + //return true; + }else{ + echo xoops_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); + //return false; + } + $GLOBALS['xortifyImageIcon'] = XOOPS_URL .'/'. $GLOBALS['xortifyModule']->getInfo('icons16'); + $GLOBALS['xortifyImageAdmin'] = XOOPS_URL .'/'. $GLOBALS['xortifyModule']->getInfo('icons32'); + + $myts =& MyTextSanitizer::getInstance(); + + if ($GLOBALS['xoopsUser']) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['xortifyModule']->getVar( 'mid' ), $GLOBALS['xoopsUser']->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } + } else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); + } + + if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $GLOBALS['xoopsTpl'] = new XoopsTpl(); + } + + $GLOBALS['xoopsTpl']->assign('pathImageIcon', $GLOBALS['xortifyImageIcon']); + $GLOBALS['xoopsTpl']->assign('pathImageAdmin', $GLOBALS['xortifyImageAdin']); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"dashboard"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + + switch($op) { + case "signup": + + switch ($fct) + { + case "save": + + $xortifyAuth =& XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xortifyModuleConfig']['protocol']); + $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(2); + 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 = $... [truncated message content] |
From: <wis...@us...> - 2011-11-09 21:36:54
|
Revision: 8259 http://xoops.svn.sourceforge.net/xoops/?rev=8259&view=rev Author: wishcraft Date: 2011-11-09 21:36:44 +0000 (Wed, 09 Nov 2011) Log Message: ----------- Xortify 2.59 - Only for XOOPS 2.5+ - GUI Implemented - See changelog.txt Added Paths: ----------- XoopsModules/xortify/releases/2.59/ XoopsModules/xortify/releases/2.59/docs/ XoopsModules/xortify/releases/2.59/docs/INSTALL XoopsModules/xortify/releases/2.59/docs/UPGRADE XoopsModules/xortify/releases/2.59/docs/licence.txt XoopsModules/xortify/releases/2.59/extras/ XoopsModules/xortify/releases/2.59/extras/docs/ XoopsModules/xortify/releases/2.59/extras/docs/install.txt XoopsModules/xortify/releases/2.59/extras/htdocs/ XoopsModules/xortify/releases/2.59/extras/htdocs/header.php XoopsModules/xortify/releases/2.59/extras/htdocs/modules/ XoopsModules/xortify/releases/2.59/extras/htdocs/modules/xortify/ XoopsModules/xortify/releases/2.59/extras/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/2.59/extras/htdocs/modules/xortify/include/post.header.footer.php XoopsModules/xortify/releases/2.59/extras/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/2.59/extras/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.59/htdocs/ XoopsModules/xortify/releases/2.59/htdocs/Frameworks/ XoopsModules/xortify/releases/2.59/htdocs/Frameworks/moduleclasses/ XoopsModules/xortify/releases/2.59/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/xortify/releases/2.59/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/xortify/releases/2.59/htdocs/Frameworks/moduleclasses/icons/32/access.list.png XoopsModules/xortify/releases/2.59/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png XoopsModules/xortify/releases/2.59/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png XoopsModules/xortify/releases/2.59/htdocs/modules/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/admin/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/admin/index.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/auth/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/auth/index.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/index.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/cron/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/cron/index.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/docs/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/docs/changelog.txt XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/docs/credits.txt XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/docs/index.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/docs/install.txt XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/docs/lang_diff.txt XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/docs/licence.txt XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/docs/readme.txt XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/images/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/images/accessdenied.png XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/images/index.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/images/left_both.gif XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/images/right_both.gif XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/images/xortify_slogo.png XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/index.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/language/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/language/english/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/language/english/help/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/language/english/help/help.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/language/english/help/index.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/language/english/index.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/language/index.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/plugin/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/plugin/index.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/preloads/index.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/providers/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/providers/index.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/providers/protector/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/providers/protector/index.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/providers/spiders/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/providers/xortify/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/providers/xortify/index.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/sql/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/sql/index.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/sql/mysql.sql XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/templates/ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/templates/index.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/templates/xorify_cpanel_bans.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/templates/xortify_cpanel_log.html XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/xoops_version.php Added: XoopsModules/xortify/releases/2.59/docs/INSTALL =================================================================== --- XoopsModules/xortify/releases/2.59/docs/INSTALL (rev 0) +++ XoopsModules/xortify/releases/2.59/docs/INSTALL 2011-11-09 21:36:44 UTC (rev 8259) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.48 | +| | ++----[ 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 | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - mainfile.php (pre 2.4 series) ]---------------------------------------+ +| | +| 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 3 - header.php (pre 2.4 series) ]----------------------------------------+ +| | +| Below the lin of footer.php which reads $xoopsTpl =& $xoTheme->template; | +| | +| [code] | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.add.meta.php' ); | +| [/code] | +| | ++-----------------------------------------------------------------------------------+ \ No newline at end of file Added: XoopsModules/xortify/releases/2.59/docs/UPGRADE =================================================================== --- XoopsModules/xortify/releases/2.59/docs/UPGRADE (rev 0) +++ XoopsModules/xortify/releases/2.59/docs/UPGRADE 2011-11-09 21:36:44 UTC (rev 8259) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.22) | +| * Xortify Network Security Drone | +| | +| Make sure you delete the 'providers' folder in the existing module then upload | +| Xortify 2.30. Once you have install the file base this way you will remember | +| to upgrade the module in the system modules application in the xoops system | +| menu you will need to then goto the preferences and make sure you are running | +| the protector provider if you are running protector this will populate the | +| cloud with your bans that come in protector as well:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - 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 3 - 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/2.59/docs/licence.txt =================================================================== --- XoopsModules/xortify/releases/2.59/docs/licence.txt (rev 0) +++ XoopsModules/xortify/releases/2.59/docs/licence.txt 2011-11-09 21:36:44 UTC (rev 8259) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/xortify/releases/2.59/extras/docs/install.txt =================================================================== --- XoopsModules/xortify/releases/2.59/extras/docs/install.txt (rev 0) +++ XoopsModules/xortify/releases/2.59/extras/docs/install.txt 2011-11-09 21:36:44 UTC (rev 8259) @@ -0,0 +1,8 @@ +EXTRA INSTALLATION: + +You may want Xortify to perform better, this is so the missing preloader in the header when a cache file is loaded and then the +execution of the PHP is terminated, will now call the footer preloader/add meta class for preloaders. + +You need to replace the files within /htdocs of the extra folder to have a better performing system. + +This htdocs/header.php is from XOOPS 2.5.x and has been altered at line 92. \ No newline at end of file Added: XoopsModules/xortify/releases/2.59/extras/htdocs/header.php =================================================================== --- XoopsModules/xortify/releases/2.59/extras/htdocs/header.php (rev 0) +++ XoopsModules/xortify/releases/2.59/extras/htdocs/header.php 2011-11-09 21:36:44 UTC (rev 8259) @@ -0,0 +1,109 @@ +<?php +/** + * XOOPS global header file + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package core + * @since 2.0.0 + * @author Kazumi Ono <web...@my...> + * @author Skalpa Keo <sk...@xo...> + * @author Taiwen Jiang <ph...@us...> + * @version $Id: header.php 4941 2010-07-22 17:13:36Z beckmi $ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +$xoopsPreload =& XoopsPreload::getInstance(); +$xoopsPreload->triggerEvent('core.header.start'); + +include_once $GLOBALS['xoops']->path('class/xoopsblock.php'); + +$xoopsLogger =& XoopsLogger::getInstance(); +$xoopsLogger->stopTime('Module init'); +$xoopsLogger->startTime('XOOPS output init'); + +if ($xoopsConfig['theme_set'] != 'default' && file_exists(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/theme.php')) { + require_once $GLOBALS['xoops']->path('include/xoops13_header.php'); +} else { + global $xoopsOption, $xoopsConfig, $xoopsModule; + + $xoopsOption['theme_use_smarty'] = 1; + + // include Smarty template engine and initialize it + require_once $GLOBALS['xoops']->path('class/template.php'); + require_once $GLOBALS['xoops']->path('class/theme.php'); + require_once $GLOBALS['xoops']->path('class/theme_blocks.php'); + + if (@$xoopsOption['template_main']) { + if (false === strpos($xoopsOption['template_main'], ':')) { + $xoopsOption['template_main'] = 'db:' . $xoopsOption['template_main']; + } + } + + $xoopsThemeFactory = null; + $xoopsThemeFactory = new xos_opal_ThemeFactory(); + $xoopsThemeFactory->allowedThemes = $xoopsConfig['theme_set_allowed']; + $xoopsThemeFactory->defaultTheme = $xoopsConfig['theme_set']; + + /** + * @var xos_opal_Theme + */ + $xoTheme =& $xoopsThemeFactory->createInstance(array('contentTemplate' => @$xoopsOption['template_main'])); + $xoopsTpl =& $xoTheme->template; + + $xoopsPreload->triggerEvent('core.header.addmeta'); + + // Temporary solution for start page redirection + if (defined("XOOPS_STARTPAGE_REDIRECTED")) { + $params = $content = $tpl = $repeat = null; + $xoTheme->headContent($params, "<base href='" . XOOPS_URL . '/modules/' . $xoopsConfig['startpage'] . "/' />", $tpl, $repeat); + } + + if (@is_object($xoTheme->plugins['xos_logos_PageBuilder'])) { + $aggreg =& $xoTheme->plugins['xos_logos_PageBuilder']; + // Backward compatibility code for pre 2.0.14 themes + $xoopsTpl->assign_by_ref('xoops_lblocks', $aggreg->blocks['canvas_left']); + $xoopsTpl->assign_by_ref('xoops_rblocks', $aggreg->blocks['canvas_right']); + $xoopsTpl->assign_by_ref('xoops_ccblocks', $aggreg->blocks['page_topcenter']); + $xoopsTpl->assign_by_ref('xoops_clblocks', $aggreg->blocks['page_topleft']); + $xoopsTpl->assign_by_ref('xoops_crblocks', $aggreg->blocks['page_topright']); + $xoopsTpl->assign('xoops_showlblock', !empty($aggreg->blocks['canvas_left'])); + $xoopsTpl->assign('xoops_showrblock', !empty($aggreg->blocks['canvas_right'])); + $xoopsTpl->assign('xoops_showcblock', !empty($aggreg->blocks['page_topcenter']) || !empty($aggreg->blocks['page_topleft']) || !empty($aggreg->blocks['page_topright'])); + } + + // Sets cache time + if (!empty($xoopsModule)) { + $xoTheme->contentCacheLifetime = @$xoopsConfig['module_cache'][$xoopsModule->getVar('mid', 'n')]; + // Tricky solution for setting cache time for homepage + } else if (!empty($xoopsOption['template_main']) && $xoopsOption['template_main'] == 'db:system_homepage.html') { + $xoTheme->contentCacheLifetime = 604800; + } + + if ($xoTheme->checkCache()) { + $xoopsPreload->triggerEvent('core.header.cache.end'); + exit(); + } + + if (!isset($xoopsOption['template_main']) && $xoopsModule) { + // new themes using Smarty does not have old functions that are required in old modules, so include them now + include $GLOBALS['xoops']->path('include/old_theme_functions.php'); + // need this also + $xoopsTheme['thename'] = $xoopsConfig['theme_set']; + ob_start(); + } + + $xoopsLogger->stopTime('XOOPS output init'); + $xoopsLogger->startTime('Module display'); +} + +$xoopsPreload->triggerEvent('core.header.end'); +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.59/extras/htdocs/modules/xortify/include/post.header.footer.php =================================================================== --- XoopsModules/xortify/releases/2.59/extras/htdocs/modules/xortify/include/post.header.footer.php (rev 0) +++ XoopsModules/xortify/releases/2.59/extras/htdocs/modules/xortify/include/post.header.footer.php 2011-11-09 21:36:44 UTC (rev 8259) @@ -0,0 +1,15 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + set_time_limit(1800); + include_once (XOOPS_ROOT_PATH.'/modules/xortify/providers/providers.php'); + $check = new Providers('footerpostcheck'); + +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.59/extras/htdocs/modules/xortify/preloads/core.php =================================================================== --- XoopsModules/xortify/releases/2.59/extras/htdocs/modules/xortify/preloads/core.php (rev 0) +++ XoopsModules/xortify/releases/2.59/extras/htdocs/modules/xortify/preloads/core.php 2011-11-09 21:36:44 UTC (rev 8259) @@ -0,0 +1,99 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Nexoork Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @author Richardo Costa TRABIS + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + + +class XortifyCorePreload extends XoopsPreloadItem +{ + + function eventCoreIncludeCommonStart($args) + { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/pre.loader.mainfile.php' ); + + } + + function eventCoreIncludeCommonEnd($args) + { + + xoops_load('xoopscache'); + if (!class_exists('XoopsCache')) { + // XOOPS 2.4 Compliance + xoops_load('cache'); + if (!class_exists('XoopsCache')) { + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + } + } + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $xoMod = $module_handler->getByDirname('xortify'); + if (is_object($xoMod)) { + $xoConfig = $config_handler->getConfigList($xoMod->getVar('mid')); + switch ($xoConfig['crontype']) { + case 'preloader': + if (!$read = XoopsCache::read('xortify_pause_preload')) { + XoopsCache::write('xortify_pause_preload', true, $xoConfig['croninterval']); + $GLOBALS['xortify_preloader']=true; + ob_start(); + include(XOOPS_ROOT_PATH.'/modules/xortify/cron/serverup.php'); + ob_end_clean(); + } + break; + } + } + + if (XortifyCorePreload::hasAPIUserPass()) + if (XortifyCorePreload::isActive()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.loader.mainfile.php' ); + } + + } + + function eventCoreHeaderCacheEnd($args) + { + if (XortifyCorePreload::hasAPIUserPass()) + if (XortifyCorePreload::isActive()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.footer.php' ); + } + } + + function eventCoreFooterEnd($args) + { + if (XortifyCorePreload::hasAPIUserPass()) + if (XortifyCorePreload::isActive()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.footer.php' ); + } + } + + function isActive() + { + $module_handler =& xoops_getHandler('module'); + $module = $module_handler->getByDirname('xortify'); + return ($module && $module->getVar('isactive')) ? ($module->getVar('version')<240) ? false : true : false; + } + + function hasAPIUserPass() + { + $module_handler =& xoops_getHandler('module'); + $config_handler =& xoops_getHandler('config'); + $xoModule = $module_handler->getByDirname('xortify'); + if (is_object($xoModule)) { + $xoconfigs = $config_handler->getConfigList($xoModule->getVar('mid')); + if ($xoconfigs['xortify_username']!=''&&$xoconfigs['xortify_password']!='') + return true; + else + return false; + } else + return false; + } +} + +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.59/htdocs/Frameworks/moduleclasses/icons/32/access.list.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/2.59/htdocs/Frameworks/moduleclasses/icons/32/access.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/2.59/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/2.59/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/2.59/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/2.59/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/admin/index.html =================================================================== --- XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/admin/index.html (rev 0) +++ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/admin/index.html 2011-11-09 21:36:44 UTC (rev 8259) @@ -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/2.59/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/admin/index.php (rev 0) +++ XoopsModules/xortify/releases/2.59/htdocs/modules/xortify/admin/index.php 2011-11-09 21:36:44 UTC (rev 8259) @@ -0,0 +1,321 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + + include('../../../mainfile.php'); + include('../../../include/cp_header.php'); + + if (!defined('_CHARSET')) + define ("_CHARSET","UTF-8"); + if (!defined('_CHARSET_ISO')) + define ("_CHARSET_ISO","ISO-8859-1"); + + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); + + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['xortifyModule'] = $module_handler->getByDirname('xortify'); + $GLOBALS['xortifyModuleConfig'] = $config_handler->getConfigList($GLOBALS['xortifyModule']->getVar('mid')); + + xoops_load('pagenav'); + xoops_load('xoopslists'); + xoops_load('xoopsformloader'); + + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopstree.php'); + include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'include'.DS.'functions.php'); + include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'include'.DS.'forms.xortify.php'); + + if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + //return true; + }else{ + echo xoops_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); + //return false; + } + $GLOBALS['xortifyImageIcon'] = XOOPS_URL .'/'. $GLOBALS['xortifyModule']->getInfo('icons16'); + $GLOBALS['xortifyImageAdmin'] = XOOPS_URL .'/'. $GLOBALS['xortifyModule']->getInfo('icons32'); + + $myts =& MyTextSanitizer::getInstance(); + + if ($GLOBALS['xoopsUser']) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['xortifyModule']->getVar( 'mid' ), $GLOBALS['xoopsUser']->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } + } else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); + } + + if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $GLOBALS['xoopsTpl'] = new XoopsTpl(); + } + + $GLOBALS['xoopsTpl']->assign('pathImageIcon', $GLOBALS['xortifyImageIcon']); + $GLOBALS['xoopsTpl']->assign('pathImageAdmin', $GLOBALS['xortifyImageAdin']); + + xoops_cp_header(); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"dashboard"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + + switch($op) { + case "signup": + + switch ($fct) + { + case "save": + + $xortifyAuth =& XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xortifyModuleConfig']['protocol']); + $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(2); + 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'); + $co... [truncated message content] |
From: <wis...@us...> - 2011-12-15 06:23:14
|
Revision: 8495 http://xoops.svn.sourceforge.net/xoops/?rev=8495&view=rev Author: wishcraft Date: 2011-12-15 06:23:04 +0000 (Thu, 15 Dec 2011) Log Message: ----------- Xortify 2.99 - All the features of Xortify 3.x but for XOOPS 2.5 Added Paths: ----------- XoopsModules/xortify/releases/2.99/ XoopsModules/xortify/releases/2.99/docs/ XoopsModules/xortify/releases/2.99/docs/INSTALL XoopsModules/xortify/releases/2.99/docs/UPGRADE XoopsModules/xortify/releases/2.99/docs/licence.txt XoopsModules/xortify/releases/2.99/extras/ XoopsModules/xortify/releases/2.99/extras/docs/ XoopsModules/xortify/releases/2.99/extras/docs/install.txt XoopsModules/xortify/releases/2.99/extras/htdocs/ XoopsModules/xortify/releases/2.99/extras/htdocs/header.php XoopsModules/xortify/releases/2.99/extras/htdocs/modules/ XoopsModules/xortify/releases/2.99/extras/htdocs/modules/xortify/ XoopsModules/xortify/releases/2.99/extras/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/2.99/extras/htdocs/modules/xortify/include/post.header.footer.php XoopsModules/xortify/releases/2.99/extras/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/2.99/extras/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.99/htdocs/ XoopsModules/xortify/releases/2.99/htdocs/Frameworks/ XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/ XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/32/access.list.png XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png XoopsModules/xortify/releases/2.99/htdocs/modules/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/admin/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/admin/index.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/auth/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/auth/index.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/index.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/cron/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/cron/index.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/docs/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/docs/changelog.txt XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/docs/credits.txt XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/docs/index.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/docs/install.txt XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/docs/lang_diff.txt XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/docs/licence.txt XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/docs/readme.txt XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/images/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/images/accessdenied.png XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/images/index.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/images/left_both.gif XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/images/right_both.gif XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/images/xortify_slogo.png XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/include/post.header.endcache.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/index.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/language/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/language/english/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/language/english/help/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/language/english/help/help.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/language/english/help/index.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/language/english/index.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/language/index.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/plugin/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/plugin/index.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/preloads/index.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/index.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/protector/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/protector/header.post.loader.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/protector/index.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/spiders/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/xortify/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/xortify/header.post.loader.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/xortify/index.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/sql/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/sql/index.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/sql/mysql.sql XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/templates/ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/templates/index.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/templates/xortify_cpanel_bans.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/templates/xortify_cpanel_log.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/templates/xortify_cpanel_signup_form.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/templates/xortify_cpanel_signup_nocommunication.html XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/xoops_version.php Added: XoopsModules/xortify/releases/2.99/docs/INSTALL =================================================================== --- XoopsModules/xortify/releases/2.99/docs/INSTALL (rev 0) +++ XoopsModules/xortify/releases/2.99/docs/INSTALL 2011-12-15 06:23:04 UTC (rev 8495) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.48 | +| | ++----[ 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 | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - mainfile.php (pre 2.4 series) ]---------------------------------------+ +| | +| 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 3 - header.php (pre 2.4 series) ]----------------------------------------+ +| | +| Below the lin of footer.php which reads $xoopsTpl =& $xoTheme->template; | +| | +| [code] | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.add.meta.php' ); | +| [/code] | +| | ++-----------------------------------------------------------------------------------+ \ No newline at end of file Added: XoopsModules/xortify/releases/2.99/docs/UPGRADE =================================================================== --- XoopsModules/xortify/releases/2.99/docs/UPGRADE (rev 0) +++ XoopsModules/xortify/releases/2.99/docs/UPGRADE 2011-12-15 06:23:04 UTC (rev 8495) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.22) | +| * Xortify Network Security Drone | +| | +| Make sure you delete the 'providers' folder in the existing module then upload | +| Xortify 2.30. Once you have install the file base this way you will remember | +| to upgrade the module in the system modules application in the xoops system | +| menu you will need to then goto the preferences and make sure you are running | +| the protector provider if you are running protector this will populate the | +| cloud with your bans that come in protector as well:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - 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 3 - 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/2.99/docs/licence.txt =================================================================== --- XoopsModules/xortify/releases/2.99/docs/licence.txt (rev 0) +++ XoopsModules/xortify/releases/2.99/docs/licence.txt 2011-12-15 06:23:04 UTC (rev 8495) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/xortify/releases/2.99/extras/docs/install.txt =================================================================== --- XoopsModules/xortify/releases/2.99/extras/docs/install.txt (rev 0) +++ XoopsModules/xortify/releases/2.99/extras/docs/install.txt 2011-12-15 06:23:04 UTC (rev 8495) @@ -0,0 +1,8 @@ +EXTRA INSTALLATION: + +You may want Xortify to perform better, this is so the missing preloader in the header when a cache file is loaded and then the +execution of the PHP is terminated, will now call the footer preloader/add meta class for preloaders. + +You need to replace the files within /htdocs of the extra folder to have a better performing system. + +This htdocs/header.php is from XOOPS 2.5.x and has been altered at line 92. \ No newline at end of file Added: XoopsModules/xortify/releases/2.99/extras/htdocs/header.php =================================================================== --- XoopsModules/xortify/releases/2.99/extras/htdocs/header.php (rev 0) +++ XoopsModules/xortify/releases/2.99/extras/htdocs/header.php 2011-12-15 06:23:04 UTC (rev 8495) @@ -0,0 +1,109 @@ +<?php +/** + * XOOPS global header file + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package core + * @since 2.0.0 + * @author Kazumi Ono <web...@my...> + * @author Skalpa Keo <sk...@xo...> + * @author Taiwen Jiang <ph...@us...> + * @version $Id: header.php 4941 2010-07-22 17:13:36Z beckmi $ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +$xoopsPreload =& XoopsPreload::getInstance(); +$xoopsPreload->triggerEvent('core.header.start'); + +include_once $GLOBALS['xoops']->path('class/xoopsblock.php'); + +$xoopsLogger =& XoopsLogger::getInstance(); +$xoopsLogger->stopTime('Module init'); +$xoopsLogger->startTime('XOOPS output init'); + +if ($xoopsConfig['theme_set'] != 'default' && file_exists(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/theme.php')) { + require_once $GLOBALS['xoops']->path('include/xoops13_header.php'); +} else { + global $xoopsOption, $xoopsConfig, $xoopsModule; + + $xoopsOption['theme_use_smarty'] = 1; + + // include Smarty template engine and initialize it + require_once $GLOBALS['xoops']->path('class/template.php'); + require_once $GLOBALS['xoops']->path('class/theme.php'); + require_once $GLOBALS['xoops']->path('class/theme_blocks.php'); + + if (@$xoopsOption['template_main']) { + if (false === strpos($xoopsOption['template_main'], ':')) { + $xoopsOption['template_main'] = 'db:' . $xoopsOption['template_main']; + } + } + + $xoopsThemeFactory = null; + $xoopsThemeFactory = new xos_opal_ThemeFactory(); + $xoopsThemeFactory->allowedThemes = $xoopsConfig['theme_set_allowed']; + $xoopsThemeFactory->defaultTheme = $xoopsConfig['theme_set']; + + /** + * @var xos_opal_Theme + */ + $xoTheme =& $xoopsThemeFactory->createInstance(array('contentTemplate' => @$xoopsOption['template_main'])); + $xoopsTpl =& $xoTheme->template; + + $xoopsPreload->triggerEvent('core.header.addmeta'); + + // Temporary solution for start page redirection + if (defined("XOOPS_STARTPAGE_REDIRECTED")) { + $params = $content = $tpl = $repeat = null; + $xoTheme->headContent($params, "<base href='" . XOOPS_URL . '/modules/' . $xoopsConfig['startpage'] . "/' />", $tpl, $repeat); + } + + if (@is_object($xoTheme->plugins['xos_logos_PageBuilder'])) { + $aggreg =& $xoTheme->plugins['xos_logos_PageBuilder']; + // Backward compatibility code for pre 2.0.14 themes + $xoopsTpl->assign_by_ref('xoops_lblocks', $aggreg->blocks['canvas_left']); + $xoopsTpl->assign_by_ref('xoops_rblocks', $aggreg->blocks['canvas_right']); + $xoopsTpl->assign_by_ref('xoops_ccblocks', $aggreg->blocks['page_topcenter']); + $xoopsTpl->assign_by_ref('xoops_clblocks', $aggreg->blocks['page_topleft']); + $xoopsTpl->assign_by_ref('xoops_crblocks', $aggreg->blocks['page_topright']); + $xoopsTpl->assign('xoops_showlblock', !empty($aggreg->blocks['canvas_left'])); + $xoopsTpl->assign('xoops_showrblock', !empty($aggreg->blocks['canvas_right'])); + $xoopsTpl->assign('xoops_showcblock', !empty($aggreg->blocks['page_topcenter']) || !empty($aggreg->blocks['page_topleft']) || !empty($aggreg->blocks['page_topright'])); + } + + // Sets cache time + if (!empty($xoopsModule)) { + $xoTheme->contentCacheLifetime = @$xoopsConfig['module_cache'][$xoopsModule->getVar('mid', 'n')]; + // Tricky solution for setting cache time for homepage + } else if (!empty($xoopsOption['template_main']) && $xoopsOption['template_main'] == 'db:system_homepage.html') { + $xoTheme->contentCacheLifetime = 604800; + } + + if ($xoTheme->checkCache()) { + $xoopsPreload->triggerEvent('core.header.cache.end'); + exit(); + } + + if (!isset($xoopsOption['template_main']) && $xoopsModule) { + // new themes using Smarty does not have old functions that are required in old modules, so include them now + include $GLOBALS['xoops']->path('include/old_theme_functions.php'); + // need this also + $xoopsTheme['thename'] = $xoopsConfig['theme_set']; + ob_start(); + } + + $xoopsLogger->stopTime('XOOPS output init'); + $xoopsLogger->startTime('Module display'); +} + +$xoopsPreload->triggerEvent('core.header.end'); +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.99/extras/htdocs/modules/xortify/include/post.header.footer.php =================================================================== --- XoopsModules/xortify/releases/2.99/extras/htdocs/modules/xortify/include/post.header.footer.php (rev 0) +++ XoopsModules/xortify/releases/2.99/extras/htdocs/modules/xortify/include/post.header.footer.php 2011-12-15 06:23:04 UTC (rev 8495) @@ -0,0 +1,15 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + set_time_limit(1800); + include_once (XOOPS_ROOT_PATH.'/modules/xortify/providers/providers.php'); + $check = new Providers('footerpostcheck'); + +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.99/extras/htdocs/modules/xortify/preloads/core.php =================================================================== --- XoopsModules/xortify/releases/2.99/extras/htdocs/modules/xortify/preloads/core.php (rev 0) +++ XoopsModules/xortify/releases/2.99/extras/htdocs/modules/xortify/preloads/core.php 2011-12-15 06:23:04 UTC (rev 8495) @@ -0,0 +1,99 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Nexoork Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @author Richardo Costa TRABIS + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + + +class XortifyCorePreload extends XoopsPreloadItem +{ + + function eventCoreIncludeCommonStart($args) + { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/pre.loader.mainfile.php' ); + + } + + function eventCoreIncludeCommonEnd($args) + { + + xoops_load('xoopscache'); + if (!class_exists('XoopsCache')) { + // XOOPS 2.4 Compliance + xoops_load('cache'); + if (!class_exists('XoopsCache')) { + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + } + } + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $xoMod = $module_handler->getByDirname('xortify'); + if (is_object($xoMod)) { + $xoConfig = $config_handler->getConfigList($xoMod->getVar('mid')); + switch ($xoConfig['crontype']) { + case 'preloader': + if (!$read = XoopsCache::read('xortify_pause_preload')) { + XoopsCache::write('xortify_pause_preload', true, $xoConfig['croninterval']); + $GLOBALS['xortify_preloader']=true; + ob_start(); + include(XOOPS_ROOT_PATH.'/modules/xortify/cron/serverup.php'); + ob_end_clean(); + } + break; + } + } + + if (XortifyCorePreload::hasAPIUserPass()) + if (XortifyCorePreload::isActive()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.loader.mainfile.php' ); + } + + } + + function eventCoreHeaderCacheEnd($args) + { + if (XortifyCorePreload::hasAPIUserPass()) + if (XortifyCorePreload::isActive()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.footer.php' ); + } + } + + function eventCoreFooterEnd($args) + { + if (XortifyCorePreload::hasAPIUserPass()) + if (XortifyCorePreload::isActive()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.footer.php' ); + } + } + + function isActive() + { + $module_handler =& xoops_getHandler('module'); + $module = $module_handler->getByDirname('xortify'); + return ($module && $module->getVar('isactive')) ? ($module->getVar('version')<240) ? false : true : false; + } + + function hasAPIUserPass() + { + $module_handler =& xoops_getHandler('module'); + $config_handler =& xoops_getHandler('config'); + $xoModule = $module_handler->getByDirname('xortify'); + if (is_object($xoModule)) { + $xoconfigs = $config_handler->getConfigList($xoModule->getVar('mid')); + if ($xoconfigs['xortify_username']!=''&&$xoconfigs['xortify_password']!='') + return true; + else + return false; + } else + return false; + } +} + +?> \ No newline at end of file Added: XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/32/access.list.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/32/access.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/2.99/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/admin/index.html =================================================================== --- XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/admin/index.html (rev 0) +++ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/admin/index.html 2011-12-15 06:23:04 UTC (rev 8495) @@ -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/2.99/htdocs/modules/xortify/admin/index.php =================================================================== --- XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/admin/index.php (rev 0) +++ XoopsModules/xortify/releases/2.99/htdocs/modules/xortify/admin/index.php 2011-12-15 06:23:04 UTC (rev 8495) @@ -0,0 +1,439 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Network Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + + + include('../../../include/cp_header.php'); + + if (!defined('_CHARSET')) + define ("_CHARSET","UTF-8"); + if (!defined('_CHARSET_ISO')) + define ("_CHARSET_ISO","ISO-8859-1"); + + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); + + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['xortifyModule'] = $module_handler->getByDirname('xortify'); + $GLOBALS['xortifyModuleConfig'] = $config_handler->getConfigList($GLOBALS['xortifyModule']->getVar('mid')); + + xoops_load('pagenav'); + xoops_load('xoopslists'); + xoops_load('xoopsformloader'); + + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopstree.php'); + include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'include'.DS.'functions.php'); + include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'include'.DS.'forms.xortify.php'); + + if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + //return true; + }else{ + echo xoops_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); + //return false; + } + $GLOBALS['xortifyImageIcon'] = XOOPS_URL .'/'. $GLOBALS['xortifyModule']->getInfo('icons16'); + $GLOBALS['xortifyImageAdmin'] = XOOPS_URL .'/'. $GLOBALS['xortifyModule']->getInfo('icons32'); + + $myts =& MyTextSanitizer::getInstance(); + + if ($GLOBALS['xoopsUser']) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['xortifyModule']->getVar( 'mid' ), $GLOBALS['xoopsUser']->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } + } else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); + } + + xoops_cp_header(); + + if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $GLOBALS['xoopsTpl'] = new XoopsTpl(); + } + + $GLOBALS['xoopsTpl']->assign('pathImageIcon', $GLOBALS['xortifyImageIcon']); + $GLOBALS['xoopsTpl']->assign('pathImageAdmin', $GLOBALS['xortifyImageAdin']); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"dashboard"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:""; + + switch($op) { + case "signup": + + switch ($fct) + { + case "save": + + $xortifyAuth =& XortifyAuthFactory::getAuthConnection(false, $GLOBALS['xortifyModuleConfig']['protocol']); + $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(2); + echo "<p ... [truncated message content] |
From: <wis...@us...> - 2011-12-28 09:59:14
|
Revision: 8607 http://xoops.svn.sourceforge.net/xoops/?rev=8607&view=rev Author: wishcraft Date: 2011-12-28 09:59:02 +0000 (Wed, 28 Dec 2011) Log Message: ----------- Xortify 3.00 [STABLE] - For XOOPS 2.5.x - Extras Tested - Defaulted to Xortify.com Added Paths: ----------- XoopsModules/xortify/releases/3.00/ XoopsModules/xortify/releases/3.00/docs/ XoopsModules/xortify/releases/3.00/docs/INSTALL XoopsModules/xortify/releases/3.00/docs/UPGRADE XoopsModules/xortify/releases/3.00/docs/licence.txt XoopsModules/xortify/releases/3.00/extras/ XoopsModules/xortify/releases/3.00/extras/2.5.x/ XoopsModules/xortify/releases/3.00/extras/2.5.x/htdocs/ XoopsModules/xortify/releases/3.00/extras/2.5.x/htdocs/header.php XoopsModules/xortify/releases/3.00/extras/2.5.x/htdocs/modules/ XoopsModules/xortify/releases/3.00/extras/2.5.x/htdocs/modules/xortify/ XoopsModules/xortify/releases/3.00/extras/2.5.x/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/3.00/extras/2.5.x/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/3.00/htdocs/ XoopsModules/xortify/releases/3.00/htdocs/Frameworks/ XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/ XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/16/access.list.png XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/32/access.list.png XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png XoopsModules/xortify/releases/3.00/htdocs/modules/ XoopsModules/xortify/releases/3.00/htdocs/modules/system/ XoopsModules/xortify/releases/3.00/htdocs/modules/system/preloads/ XoopsModules/xortify/releases/3.00/htdocs/modules/system/preloads/xortify.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/admin/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/admin/index.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/auth/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/auth/index.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/index.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/cron/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/cron/index.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/docs/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/docs/changelog.txt XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/docs/credits.txt XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/docs/index.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/docs/install.txt XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/docs/lang_diff.txt XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/docs/licence.txt XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/docs/readme.txt XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/images/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/images/accessdenied.png XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/images/index.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/images/left_both.gif XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/images/right_both.gif XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/images/xortify_slogo.png XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/include/post.header.endcache.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/index.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/language/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/language/english/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/language/english/help/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/language/english/help/help.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/language/english/help/index.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/language/english/index.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/language/index.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/plugin/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/plugin/index.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/preloads/index.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/providers/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/providers/index.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/providers/protector/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/providers/protector/header.post.loader.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/providers/protector/index.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/providers/spiders/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/providers/xortify/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/providers/xortify/header.post.loader.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/providers/xortify/index.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/sql/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/sql/index.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/sql/mysql.sql XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/templates/ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/templates/index.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/templates/xortify_cpanel_bans.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/templates/xortify_cpanel_log.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/templates/xortify_cpanel_signup_form.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/templates/xortify_cpanel_signup_nocommunication.html XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/xoops_version.php Added: XoopsModules/xortify/releases/3.00/docs/INSTALL =================================================================== --- XoopsModules/xortify/releases/3.00/docs/INSTALL (rev 0) +++ XoopsModules/xortify/releases/3.00/docs/INSTALL 2011-12-28 09:59:02 UTC (rev 8607) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.48 | +| | ++----[ 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 | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - mainfile.php (pre 2.4 series) ]---------------------------------------+ +| | +| 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 3 - header.php (pre 2.4 series) ]----------------------------------------+ +| | +| Below the lin of footer.php which reads $xoopsTpl =& $xoTheme->template; | +| | +| [code] | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.add.meta.php' ); | +| [/code] | +| | ++-----------------------------------------------------------------------------------+ \ No newline at end of file Added: XoopsModules/xortify/releases/3.00/docs/UPGRADE =================================================================== --- XoopsModules/xortify/releases/3.00/docs/UPGRADE (rev 0) +++ XoopsModules/xortify/releases/3.00/docs/UPGRADE 2011-12-28 09:59:02 UTC (rev 8607) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.22) | +| * Xortify Network Security Drone | +| | +| Make sure you delete the 'providers' folder in the existing module then upload | +| Xortify 2.30. Once you have install the file base this way you will remember | +| to upgrade the module in the system modules application in the xoops system | +| menu you will need to then goto the preferences and make sure you are running | +| the protector provider if you are running protector this will populate the | +| cloud with your bans that come in protector as well:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - 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 3 - 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/3.00/docs/licence.txt =================================================================== --- XoopsModules/xortify/releases/3.00/docs/licence.txt (rev 0) +++ XoopsModules/xortify/releases/3.00/docs/licence.txt 2011-12-28 09:59:02 UTC (rev 8607) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/xortify/releases/3.00/extras/2.5.x/htdocs/header.php =================================================================== --- XoopsModules/xortify/releases/3.00/extras/2.5.x/htdocs/header.php (rev 0) +++ XoopsModules/xortify/releases/3.00/extras/2.5.x/htdocs/header.php 2011-12-28 09:59:02 UTC (rev 8607) @@ -0,0 +1,110 @@ +<?php +/** + * XOOPS global header file + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package core + * @since 2.0.0 + * @author Kazumi Ono <web...@my...> + * @author Skalpa Keo <sk...@xo...> + * @author Taiwen Jiang <ph...@us...> + * @version $Id: header.php 8066 2011-11-06 05:09:33Z beckmi $ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +$xoopsPreload =& XoopsPreload::getInstance(); +$xoopsPreload->triggerEvent('core.header.start'); + +include_once $GLOBALS['xoops']->path('class/xoopsblock.php'); + +$xoopsLogger =& XoopsLogger::getInstance(); +$xoopsLogger->stopTime('Module init'); +$xoopsLogger->startTime('XOOPS output init'); + +if ($xoopsConfig['theme_set'] != 'default' && file_exists(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/theme.php')) { + require_once $GLOBALS['xoops']->path('include/xoops13_header.php'); +} else { + global $xoopsOption, $xoopsConfig, $xoopsModule; + + $xoopsOption['theme_use_smarty'] = 1; + + // include Smarty template engine and initialize it + require_once $GLOBALS['xoops']->path('class/template.php'); + require_once $GLOBALS['xoops']->path('class/theme.php'); + require_once $GLOBALS['xoops']->path('class/theme_blocks.php'); + + if (@$xoopsOption['template_main']) { + if (false === strpos($xoopsOption['template_main'], ':')) { + $xoopsOption['template_main'] = 'db:' . $xoopsOption['template_main']; + } + } + + $xoopsThemeFactory = null; + $xoopsThemeFactory = new xos_opal_ThemeFactory(); + $xoopsThemeFactory->allowedThemes = $xoopsConfig['theme_set_allowed']; + $xoopsThemeFactory->defaultTheme = $xoopsConfig['theme_set']; + + /** + * @var xos_opal_Theme + */ + $xoTheme =& $xoopsThemeFactory->createInstance(array('contentTemplate' => @$xoopsOption['template_main'])); + $xoopsTpl =& $xoTheme->template; + + $xoopsPreload->triggerEvent('core.header.addmeta'); + + // Temporary solution for start page redirection + if (defined("XOOPS_STARTPAGE_REDIRECTED")) { + $params = $content = $tpl = $repeat = null; + $xoTheme->headContent($params, "<base href='" . XOOPS_URL . '/modules/' . $xoopsConfig['startpage'] . "/' />", $tpl, $repeat); + } + + if (@is_object($xoTheme->plugins['xos_logos_PageBuilder'])) { + $aggreg =& $xoTheme->plugins['xos_logos_PageBuilder']; + // Backward compatibility code for pre 2.0.14 themes + $xoopsTpl->assign_by_ref('xoops_lblocks', $aggreg->blocks['canvas_left']); + $xoopsTpl->assign_by_ref('xoops_rblocks', $aggreg->blocks['canvas_right']); + $xoopsTpl->assign_by_ref('xoops_ccblocks', $aggreg->blocks['page_topcenter']); + $xoopsTpl->assign_by_ref('xoops_clblocks', $aggreg->blocks['page_topleft']); + $xoopsTpl->assign_by_ref('xoops_crblocks', $aggreg->blocks['page_topright']); + $xoopsTpl->assign('xoops_showlblock', !empty($aggreg->blocks['canvas_left'])); + $xoopsTpl->assign('xoops_showrblock', !empty($aggreg->blocks['canvas_right'])); + $xoopsTpl->assign('xoops_showcblock', !empty($aggreg->blocks['page_topcenter']) || !empty($aggreg->blocks['page_topleft']) || !empty($aggreg->blocks['page_topright'])); + } + + // Sets cache time + if (!empty($xoopsModule)) { + $xoTheme->contentCacheLifetime = @$xoopsConfig['module_cache'][$xoopsModule->getVar('mid', 'n')]; + // Tricky solution for setting cache time for homepage + } else if (!empty($xoopsOption['template_main']) && $xoopsOption['template_main'] == 'db:system_homepage.html') { + $xoTheme->contentCacheLifetime = 604800; + } + + $xoopsPreload->triggerEvent('core.header.checkcache'); + if ($xoTheme->checkCache()) { + $xoopsPreload->triggerEvent('core.header.cacheend'); + exit(); + } + + if (!isset($xoopsOption['template_main']) && $xoopsModule) { + // new themes using Smarty does not have old functions that are required in old modules, so include them now + include $GLOBALS['xoops']->path('include/old_theme_functions.php'); + // need this also + $xoopsTheme['thename'] = $xoopsConfig['theme_set']; + ob_start(); + } + + $xoopsLogger->stopTime('XOOPS output init'); + $xoopsLogger->startTime('Module display'); +} + +$xoopsPreload->triggerEvent('core.header.end'); +?> \ No newline at end of file Added: XoopsModules/xortify/releases/3.00/extras/2.5.x/htdocs/modules/xortify/preloads/core.php =================================================================== --- XoopsModules/xortify/releases/3.00/extras/2.5.x/htdocs/modules/xortify/preloads/core.php (rev 0) +++ XoopsModules/xortify/releases/3.00/extras/2.5.x/htdocs/modules/xortify/preloads/core.php 2011-12-28 09:59:02 UTC (rev 8607) @@ -0,0 +1,117 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Nexoork Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @author Richardo Costa TRABIS + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +class XortifyCorePreload extends XoopsPreloadItem +{ + + function eventCoreIncludeCommonStart($args) + { + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + $result = XoopsCache::read('xortify_core_include_common_start'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_include_common_start', array('time'=>microtime(true)+600), 600); + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/pre.loader.mainfile.php' ); + XoopsCache::write('xortify_core_include_common_start', array('time'=>microtime(true)), -1); + } + } + + function eventCoreIncludeCommonEnd($args) + { + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['xortifyModule'] = $module_handler->getByDirname('xortify'); + if (is_object($GLOBALS['xortifyModule'])) { + $GLOBALS['xortifyModuleConfig'] = $config_handler->getConfigList($GLOBALS['xortifyModule']->getVar('mid')); + } + + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + $result = XoopsCache::read('xortify_core_include_common_end_cron'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_include_common_end_cron', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']); + switch ($GLOBALS['xortifyModuleConfig']['crontype']) { + case 'preloader': + $read = XoopsCache::read('xortify_pause_preload'); + if ((isset($read['time'])?(float)$read['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_pause_preload', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['croninterval'])); + $GLOBALS['xortify_preloader']=true; + ob_start(); + include(XOOPS_ROOT_PATH.'/modules/xortify/cron/serverup.php'); + ob_end_clean(); + } + break; + } + XoopsCache::write('xortify_core_include_common_end_cron', array('time'=>microtime(true)), -1); + } + + $result = XoopsCache::read('xortify_core_include_common_end'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_include_common_end', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']); + if (XortifyCorePreload::hasAPIUserPass()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.loader.mainfile.php' ); + } + XoopsCache::write('xortify_core_include_common_end', array('time'=>microtime(true)), -1); + } + + } + + function eventCoreHeaderCacheend($args) + { + + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + $result = XoopsCache::read('xortify_core_header_cache_end'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_header_cache_end', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']); + if (XortifyCorePreload::hasAPIUserPass()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.endcache.php' ); + } + XoopsCache::write('xortify_core_header_cache_end', array('time'=>microtime(true)), -1); + } + } + + function eventCoreFooterEnd($args) + { + + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + $result = XoopsCache::read('xortify_core_header_cache_end'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_header_cache_end', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']); + if (XortifyCorePreload::hasAPIUserPass()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.endcache.php' ); + } + XoopsCache::write('xortify_core_header_cache_end', array('time'=>microtime(true)), -1); + } + } + + function eventCoreHeaderAddmeta($args) + { + if (isset($GLOBALS['xortify_pass'])) { + if ($GLOBALS['xortify_pass'] == true) { + include_once XOOPS_ROOT_PATH.'/modules/xortify/include/functions.php'; + addmeta_googleanalytics(_XOR_MI_XOOPS_GOOGLE_ANALYTICS_ACCOUNTID_USERPASSED, $_SERVER['HTTP_HOST']); + if (defined('_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_USERPASSED')&&strlen(constant('_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_USERPASSED'))>=13) { + addmeta_googleanalytics(_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_USERPASSED, $_SERVER['HTTP_HOST']); + } + } + } + } + + function hasAPIUserPass() + { + if ($GLOBALS['xortifyModuleConfig']['xortify_username']!=''&&$GLOBALS['xortifyModuleConfig']['xortify_password']!='') + return true; + else + return false; + } +} + +?> \ No newline at end of file Added: XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/16/access.list.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/16/access.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/32/access.list.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/32/access.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.00/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.00/htdocs/modules/system/preloads/xortify.php =================================================================== --- XoopsModules/xortify/releases/3.00/htdocs/modules/system/preloads/xortify.php (rev 0) +++ XoopsModules/xortify/releases/3.00/htdocs/modules/system/preloads/xortify.php 2011-12-28 09:59:02 UTC (rev 8607) @@ -0,0 +1,46 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Nexoork Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @author Richardo Costa TRABIS + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +class SystemXortifyPreload extends XoopsPreloadItem +{ + function eventCoreIncludeCommonEnd($args) + { + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['xortifyModule'] = $module_handler->getByDirname('xortify'); + if (is_object($GLOBALS['xortifyModule'])) { + $GLOBALS['xortifyModuleConfig'] = $config_handler->getConfigList($GLOBALS['xortifyModule']->getVar('mid')); + } + + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + $result = XoopsCache::read('xortify_core_include_common_end_cron'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_include_common_end_cron', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']); + switch ($GLOBALS['xortifyModuleConfig']['crontype']) { + case 'preloader': + $read = XoopsCache::read('xortify_pause_preload'); + if ((isset($read['time'])?(float)$read['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_pause_preload', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['croninterval'])); + $GLOBALS['xortify_preloader']=true; + ob_start(); + include(XOOPS_ROOT_PATH.'/modules/xortify/cron/serverup.php'); + ob_end_clean(); + } + break; + } + XoopsCache::write('xortify_core_include_common_end_cron', array('time'=>microtime(true)), -1); + } + } +} + +?> \ No newline at end of file Added: XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/admin/index.html =================================================================== --- XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/admin/index.html (rev 0) +++ XoopsModules/xortify/releases/3.00/htdocs/modules/xortify/admin/index.html 2011-12-28 09:59:02 UTC (rev 8607) @@ -0,0 +1,10 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/x... [truncated message content] |
From: <wis...@us...> - 2012-01-12 09:32:33
|
Revision: 8703 http://xoops.svn.sourceforge.net/xoops/?rev=8703&view=rev Author: wishcraft Date: 2012-01-12 09:32:18 +0000 (Thu, 12 Jan 2012) Log Message: ----------- Xortify 3.02 - for XOOPS 2.5 - Banning Notice Fixed - Xortify provider minor fixes - see changelog.txt Added Paths: ----------- XoopsModules/xortify/releases/3.02/ XoopsModules/xortify/releases/3.02/docs/ XoopsModules/xortify/releases/3.02/docs/INSTALL XoopsModules/xortify/releases/3.02/docs/UPGRADE XoopsModules/xortify/releases/3.02/docs/licence.txt XoopsModules/xortify/releases/3.02/extras/ XoopsModules/xortify/releases/3.02/extras/2.5.x/ XoopsModules/xortify/releases/3.02/extras/2.5.x/htdocs/ XoopsModules/xortify/releases/3.02/extras/2.5.x/htdocs/header.php XoopsModules/xortify/releases/3.02/extras/2.5.x/htdocs/modules/ XoopsModules/xortify/releases/3.02/extras/2.5.x/htdocs/modules/xortify/ XoopsModules/xortify/releases/3.02/extras/2.5.x/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/3.02/extras/2.5.x/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/3.02/htdocs/ XoopsModules/xortify/releases/3.02/htdocs/Frameworks/ XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/ XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/16/access.list.png XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/32/access.list.png XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png XoopsModules/xortify/releases/3.02/htdocs/banned.php XoopsModules/xortify/releases/3.02/htdocs/modules/ XoopsModules/xortify/releases/3.02/htdocs/modules/system/ XoopsModules/xortify/releases/3.02/htdocs/modules/system/preloads/ XoopsModules/xortify/releases/3.02/htdocs/modules/system/preloads/xortify.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/admin/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/admin/index.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/auth/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/auth/index.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/index.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/cron/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/cron/index.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/docs/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/docs/changelog.txt XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/docs/credits.txt XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/docs/index.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/docs/install.txt XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/docs/lang_diff.txt XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/docs/licence.txt XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/docs/readme.txt XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/images/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/images/accessdenied.png XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/images/index.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/images/left_both.gif XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/images/right_both.gif XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/images/xortify_slogo.png XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/include/post.header.endcache.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/index.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/language/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/language/english/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/language/english/help/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/language/english/help/help.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/language/english/help/index.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/language/english/index.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/language/index.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/plugin/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/plugin/index.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/preloads/index.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/providers/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/providers/index.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/providers/protector/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/providers/protector/header.post.loader.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/providers/protector/index.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/providers/spiders/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/providers/xortify/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/providers/xortify/header.post.loader.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/providers/xortify/index.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/sql/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/sql/index.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/sql/mysql.sql XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/templates/ XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/templates/index.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/templates/xortify_cpanel_bans.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/templates/xortify_cpanel_log.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/templates/xortify_cpanel_signup_form.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/templates/xortify_cpanel_signup_nocommunication.html XoopsModules/xortify/releases/3.02/htdocs/modules/xortify/xoops_version.php Added: XoopsModules/xortify/releases/3.02/docs/INSTALL =================================================================== --- XoopsModules/xortify/releases/3.02/docs/INSTALL (rev 0) +++ XoopsModules/xortify/releases/3.02/docs/INSTALL 2012-01-12 09:32:18 UTC (rev 8703) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.48 | +| | ++----[ 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 | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - mainfile.php (pre 2.4 series) ]---------------------------------------+ +| | +| 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 3 - header.php (pre 2.4 series) ]----------------------------------------+ +| | +| Below the lin of footer.php which reads $xoopsTpl =& $xoTheme->template; | +| | +| [code] | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.add.meta.php' ); | +| [/code] | +| | ++-----------------------------------------------------------------------------------+ \ No newline at end of file Added: XoopsModules/xortify/releases/3.02/docs/UPGRADE =================================================================== --- XoopsModules/xortify/releases/3.02/docs/UPGRADE (rev 0) +++ XoopsModules/xortify/releases/3.02/docs/UPGRADE 2012-01-12 09:32:18 UTC (rev 8703) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.22) | +| * Xortify Network Security Drone | +| | +| Make sure you delete the 'providers' folder in the existing module then upload | +| Xortify 2.30. Once you have install the file base this way you will remember | +| to upgrade the module in the system modules application in the xoops system | +| menu you will need to then goto the preferences and make sure you are running | +| the protector provider if you are running protector this will populate the | +| cloud with your bans that come in protector as well:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - 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 3 - 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/3.02/docs/licence.txt =================================================================== --- XoopsModules/xortify/releases/3.02/docs/licence.txt (rev 0) +++ XoopsModules/xortify/releases/3.02/docs/licence.txt 2012-01-12 09:32:18 UTC (rev 8703) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/xortify/releases/3.02/extras/2.5.x/htdocs/header.php =================================================================== --- XoopsModules/xortify/releases/3.02/extras/2.5.x/htdocs/header.php (rev 0) +++ XoopsModules/xortify/releases/3.02/extras/2.5.x/htdocs/header.php 2012-01-12 09:32:18 UTC (rev 8703) @@ -0,0 +1,110 @@ +<?php +/** + * XOOPS global header file + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package core + * @since 2.0.0 + * @author Kazumi Ono <web...@my...> + * @author Skalpa Keo <sk...@xo...> + * @author Taiwen Jiang <ph...@us...> + * @version $Id: header.php 8066 2011-11-06 05:09:33Z beckmi $ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +$xoopsPreload =& XoopsPreload::getInstance(); +$xoopsPreload->triggerEvent('core.header.start'); + +include_once $GLOBALS['xoops']->path('class/xoopsblock.php'); + +$xoopsLogger =& XoopsLogger::getInstance(); +$xoopsLogger->stopTime('Module init'); +$xoopsLogger->startTime('XOOPS output init'); + +if ($xoopsConfig['theme_set'] != 'default' && file_exists(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/theme.php')) { + require_once $GLOBALS['xoops']->path('include/xoops13_header.php'); +} else { + global $xoopsOption, $xoopsConfig, $xoopsModule; + + $xoopsOption['theme_use_smarty'] = 1; + + // include Smarty template engine and initialize it + require_once $GLOBALS['xoops']->path('class/template.php'); + require_once $GLOBALS['xoops']->path('class/theme.php'); + require_once $GLOBALS['xoops']->path('class/theme_blocks.php'); + + if (@$xoopsOption['template_main']) { + if (false === strpos($xoopsOption['template_main'], ':')) { + $xoopsOption['template_main'] = 'db:' . $xoopsOption['template_main']; + } + } + + $xoopsThemeFactory = null; + $xoopsThemeFactory = new xos_opal_ThemeFactory(); + $xoopsThemeFactory->allowedThemes = $xoopsConfig['theme_set_allowed']; + $xoopsThemeFactory->defaultTheme = $xoopsConfig['theme_set']; + + /** + * @var xos_opal_Theme + */ + $xoTheme =& $xoopsThemeFactory->createInstance(array('contentTemplate' => @$xoopsOption['template_main'])); + $xoopsTpl =& $xoTheme->template; + + $xoopsPreload->triggerEvent('core.header.addmeta'); + + // Temporary solution for start page redirection + if (defined("XOOPS_STARTPAGE_REDIRECTED")) { + $params = $content = $tpl = $repeat = null; + $xoTheme->headContent($params, "<base href='" . XOOPS_URL . '/modules/' . $xoopsConfig['startpage'] . "/' />", $tpl, $repeat); + } + + if (@is_object($xoTheme->plugins['xos_logos_PageBuilder'])) { + $aggreg =& $xoTheme->plugins['xos_logos_PageBuilder']; + // Backward compatibility code for pre 2.0.14 themes + $xoopsTpl->assign_by_ref('xoops_lblocks', $aggreg->blocks['canvas_left']); + $xoopsTpl->assign_by_ref('xoops_rblocks', $aggreg->blocks['canvas_right']); + $xoopsTpl->assign_by_ref('xoops_ccblocks', $aggreg->blocks['page_topcenter']); + $xoopsTpl->assign_by_ref('xoops_clblocks', $aggreg->blocks['page_topleft']); + $xoopsTpl->assign_by_ref('xoops_crblocks', $aggreg->blocks['page_topright']); + $xoopsTpl->assign('xoops_showlblock', !empty($aggreg->blocks['canvas_left'])); + $xoopsTpl->assign('xoops_showrblock', !empty($aggreg->blocks['canvas_right'])); + $xoopsTpl->assign('xoops_showcblock', !empty($aggreg->blocks['page_topcenter']) || !empty($aggreg->blocks['page_topleft']) || !empty($aggreg->blocks['page_topright'])); + } + + // Sets cache time + if (!empty($xoopsModule)) { + $xoTheme->contentCacheLifetime = @$xoopsConfig['module_cache'][$xoopsModule->getVar('mid', 'n')]; + // Tricky solution for setting cache time for homepage + } else if (!empty($xoopsOption['template_main']) && $xoopsOption['template_main'] == 'db:system_homepage.html') { + $xoTheme->contentCacheLifetime = 604800; + } + + $xoopsPreload->triggerEvent('core.header.checkcache'); + if ($xoTheme->checkCache()) { + $xoopsPreload->triggerEvent('core.header.cacheend'); + exit(); + } + + if (!isset($xoopsOption['template_main']) && $xoopsModule) { + // new themes using Smarty does not have old functions that are required in old modules, so include them now + include $GLOBALS['xoops']->path('include/old_theme_functions.php'); + // need this also + $xoopsTheme['thename'] = $xoopsConfig['theme_set']; + ob_start(); + } + + $xoopsLogger->stopTime('XOOPS output init'); + $xoopsLogger->startTime('Module display'); +} + +$xoopsPreload->triggerEvent('core.header.end'); +?> \ No newline at end of file Added: XoopsModules/xortify/releases/3.02/extras/2.5.x/htdocs/modules/xortify/preloads/core.php =================================================================== --- XoopsModules/xortify/releases/3.02/extras/2.5.x/htdocs/modules/xortify/preloads/core.php (rev 0) +++ XoopsModules/xortify/releases/3.02/extras/2.5.x/htdocs/modules/xortify/preloads/core.php 2012-01-12 09:32:18 UTC (rev 8703) @@ -0,0 +1,118 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Nexoork Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @author Richardo Costa TRABIS + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +class XortifyCorePreload extends XoopsPreloadItem +{ + + function eventCoreIncludeCommonStart($args) + { + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + $result = XoopsCache::read('xortify_core_include_common_start'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_include_common_start', array('time'=>microtime(true)+600), 600); + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/pre.loader.mainfile.php' ); + XoopsCache::write('xortify_core_include_common_start', array('time'=>microtime(true)), -1); + } + } + + function eventCoreIncludeCommonEnd($args) + { + xoops_loadLanguage('modinfo', 'xortify'); + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['xortifyModule'] = $module_handler->getByDirname('xortify'); + if (is_object($GLOBALS['xortifyModule'])) { + $GLOBALS['xortifyModuleConfig'] = $config_handler->getConfigList($GLOBALS['xortifyModule']->getVar('mid')); + } + + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + $result = XoopsCache::read('xortify_core_include_common_end_cron'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_include_common_end_cron', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']); + switch ($GLOBALS['xortifyModuleConfig']['crontype']) { + case 'preloader': + $read = XoopsCache::read('xortify_pause_preload'); + if ((isset($read['time'])?(float)$read['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_pause_preload', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['croninterval'])); + $GLOBALS['xortify_preloader']=true; + ob_start(); + include(XOOPS_ROOT_PATH.'/modules/xortify/cron/serverup.php'); + ob_end_clean(); + } + break; + } + XoopsCache::write('xortify_core_include_common_end_cron', array('time'=>microtime(true)), -1); + } + + $result = XoopsCache::read('xortify_core_include_common_end'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_include_common_end', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']); + if (XortifyCorePreload::hasAPIUserPass()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.loader.mainfile.php' ); + } + XoopsCache::write('xortify_core_include_common_end', array('time'=>microtime(true)), -1); + } + + } + + function eventCoreHeaderCacheend($args) + { + + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + $result = XoopsCache::read('xortify_core_header_cache_end'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_header_cache_end', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']); + if (XortifyCorePreload::hasAPIUserPass()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.endcache.php' ); + } + XoopsCache::write('xortify_core_header_cache_end', array('time'=>microtime(true)), -1); + } + } + + function eventCoreFooterEnd($args) + { + + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + $result = XoopsCache::read('xortify_core_header_cache_end'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_header_cache_end', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']); + if (XortifyCorePreload::hasAPIUserPass()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.endcache.php' ); + } + XoopsCache::write('xortify_core_header_cache_end', array('time'=>microtime(true)), -1); + } + } + + function eventCoreHeaderAddmeta($args) + { + if (isset($GLOBALS['xortify_pass'])) { + if ($GLOBALS['xortify_pass'] == true) { + include_once XOOPS_ROOT_PATH.'/modules/xortify/include/functions.php'; + addmeta_googleanalytics(_XOR_MI_XOOPS_GOOGLE_ANALYTICS_ACCOUNTID_USERPASSED, $_SERVER['HTTP_HOST']); + if (defined('_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_USERPASSED')&&strlen(constant('_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_USERPASSED'))>=13) { + addmeta_googleanalytics(_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_USERPASSED, $_SERVER['HTTP_HOST']); + } + } + } + } + + function hasAPIUserPass() + { + if ($GLOBALS['xortifyModuleConfig']['xortify_username']!=''&&$GLOBALS['xortifyModuleConfig']['xortify_password']!='') + return true; + else + return false; + } +} + +?> \ No newline at end of file Added: XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/16/access.list.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/16/access.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/32/access.list.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/32/access.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.02/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.02/htdocs/banned.php =================================================================== --- XoopsModules/xortify/releases/3.02/htdocs/banned.php (rev 0) +++ XoopsModules/xortify/releases/3.02/htdocs/banned.php 2012-01-12 09:32:18 UTC (rev 8703) @@ -0,0 +1,49 @@ +<?php + + + include dirname(__FILE__).'/mainfile.php'; + if (isset($_SESSION['xortify']['lid'])) { + $lid = $_SESSION['xortify']['lid']; + setcookie('xortify', array('lid' => $lid), time()+3600*24*7*4*3); + } elseif (isset($_COOKIE['xortify']['lid'])) { + $lid = $_COOKIE['xortify']['lid']; + $_SESSION['xortify']['lid'] = $lid; + } + + xoops_loadLanguage('ban', 'xortify'); + + $module_handler = xoops_gethandler('module'); + $GLOBALS['xortifyModule'] = $module_handler->getByDirname('xortify'); + + $xoopsOption['template_main'] = 'xortify_banning_notice.html'; + include_once XOOPS_ROOT_PATH.'/header.php'; + include_once XOOPS_ROOT_PATH.'/modules/xortify/include/functions.php'; + addmeta_googleanalytics(_XOR_MI_XOOPS_GOOGLE_ANALYTICS_ACCOUNTID_FAILEDTOPASS, $_SERVER['HTTP_HOST']); + if (defined('_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_FAILEDTOPASS')&&strlen(constant('_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_FAILEDTOPASS'))>=13) { + addmeta_googleanalytics(_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_FAILEDTOPASS, $_SERVER['HTTP_HOST']); + } + $GLOBALS['xoopsTpl']->assign('xoops_pagetitle', _XOR_PAGETITLE); + $GLOBALS['xoopsTpl']->assign('description', _XOR_DESCRIPTION); + $GLOBALS['xoopsTpl']->assign('version', $GLOBALS['xortifyModule']->getVar('version')/100); + $GLOBALS['xoopsTpl']->assign('platform', XOOPS_VERSION); + + $log_handler = xoops_getmodulehandler('log', 'xortify'); + $log = $log_handler->get($lid); + if (is_object($log)) { + setcookie('xortify', array('lid' => $lid), time()+3600*24*7*4*3); + $GLOBALS['xoopsTpl']->assign('status', $log->getVar('extra')); + $GLOBALS['xoopsTpl']->assign('provider', $log->getVar('provider')); + $GLOBALS['xoopsTpl']->assign('agent', $log->getVar('agent')); + } + $GLOBALS['xoopsTpl']->assign('xoops_lblocks', false); + $GLOBALS['xoopsTpl']->assign('xoops_rblocks', false); + $GLOBALS['xoopsTpl']->assign('xoops_ccblocks', false); + $GLOBALS['xoopsTpl']->assign('xoops_clblocks', false); + $GLOBALS['xoopsTpl']->assign('xoops_crblocks', false); + $GLOBALS['xoopsTpl']->assign('xoops_showlblock', false); + $GLOBALS['xoopsTpl']->assign('xoops_showrblock', false); + $GLOBALS['xoopsTpl']->assign('xoops_showcblock', false); + + include_once XOOPS_ROOT_PATH.'/footer.php'; + +?> Added: XoopsModules/xortify/releases/3... [truncated message content] |
From: <wis...@us...> - 2012-01-14 13:30:58
|
Revision: 8721 http://xoops.svn.sourceforge.net/xoops/?rev=8721&view=rev Author: wishcraft Date: 2012-01-14 13:30:47 +0000 (Sat, 14 Jan 2012) Log Message: ----------- Xortify 3.03 - for XOOPS 2.5 - Banning Notice Fixed - Minor changes to cron and redirection to notice. Added Paths: ----------- XoopsModules/xortify/releases/3.03/ XoopsModules/xortify/releases/3.03/docs/ XoopsModules/xortify/releases/3.03/docs/INSTALL XoopsModules/xortify/releases/3.03/docs/UPGRADE XoopsModules/xortify/releases/3.03/docs/licence.txt XoopsModules/xortify/releases/3.03/extras/ XoopsModules/xortify/releases/3.03/extras/2.5.x/ XoopsModules/xortify/releases/3.03/extras/2.5.x/htdocs/ XoopsModules/xortify/releases/3.03/extras/2.5.x/htdocs/header.php XoopsModules/xortify/releases/3.03/extras/2.5.x/htdocs/modules/ XoopsModules/xortify/releases/3.03/extras/2.5.x/htdocs/modules/xortify/ XoopsModules/xortify/releases/3.03/extras/2.5.x/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/3.03/extras/2.5.x/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/3.03/htdocs/ XoopsModules/xortify/releases/3.03/htdocs/Frameworks/ XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/ XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/16/access.list.png XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/32/access.list.png XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png XoopsModules/xortify/releases/3.03/htdocs/banned.php XoopsModules/xortify/releases/3.03/htdocs/modules/ XoopsModules/xortify/releases/3.03/htdocs/modules/system/ XoopsModules/xortify/releases/3.03/htdocs/modules/system/preloads/ XoopsModules/xortify/releases/3.03/htdocs/modules/system/preloads/xortify.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/admin/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/admin/index.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/auth/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/auth/index.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/index.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/cron/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/cron/index.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/docs/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/docs/changelog.txt XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/docs/credits.txt XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/docs/index.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/docs/install.txt XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/docs/lang_diff.txt XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/docs/licence.txt XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/docs/readme.txt XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/images/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/images/accessdenied.png XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/images/index.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/images/left_both.gif XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/images/right_both.gif XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/images/xortify_slogo.png XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/include/post.header.endcache.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/index.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/language/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/language/english/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/language/english/help/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/language/english/help/help.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/language/english/help/index.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/language/english/index.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/language/index.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/plugin/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/plugin/index.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/preloads/index.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/providers/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/providers/index.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/providers/protector/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/providers/protector/header.post.loader.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/providers/protector/index.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/providers/spiders/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/providers/xortify/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/providers/xortify/header.post.loader.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/providers/xortify/index.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/sql/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/sql/index.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/sql/mysql.sql XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/templates/ XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/templates/index.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/templates/xortify_cpanel_bans.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/templates/xortify_cpanel_log.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/templates/xortify_cpanel_signup_form.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/templates/xortify_cpanel_signup_nocommunication.html XoopsModules/xortify/releases/3.03/htdocs/modules/xortify/xoops_version.php Added: XoopsModules/xortify/releases/3.03/docs/INSTALL =================================================================== --- XoopsModules/xortify/releases/3.03/docs/INSTALL (rev 0) +++ XoopsModules/xortify/releases/3.03/docs/INSTALL 2012-01-14 13:30:47 UTC (rev 8721) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.48 | +| | ++----[ 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 | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - mainfile.php (pre 2.4 series) ]---------------------------------------+ +| | +| 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 3 - header.php (pre 2.4 series) ]----------------------------------------+ +| | +| Below the lin of footer.php which reads $xoopsTpl =& $xoTheme->template; | +| | +| [code] | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.add.meta.php' ); | +| [/code] | +| | ++-----------------------------------------------------------------------------------+ \ No newline at end of file Added: XoopsModules/xortify/releases/3.03/docs/UPGRADE =================================================================== --- XoopsModules/xortify/releases/3.03/docs/UPGRADE (rev 0) +++ XoopsModules/xortify/releases/3.03/docs/UPGRADE 2012-01-14 13:30:47 UTC (rev 8721) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.22) | +| * Xortify Network Security Drone | +| | +| Make sure you delete the 'providers' folder in the existing module then upload | +| Xortify 2.30. Once you have install the file base this way you will remember | +| to upgrade the module in the system modules application in the xoops system | +| menu you will need to then goto the preferences and make sure you are running | +| the protector provider if you are running protector this will populate the | +| cloud with your bans that come in protector as well:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - 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 3 - 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/3.03/docs/licence.txt =================================================================== --- XoopsModules/xortify/releases/3.03/docs/licence.txt (rev 0) +++ XoopsModules/xortify/releases/3.03/docs/licence.txt 2012-01-14 13:30:47 UTC (rev 8721) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/xortify/releases/3.03/extras/2.5.x/htdocs/header.php =================================================================== --- XoopsModules/xortify/releases/3.03/extras/2.5.x/htdocs/header.php (rev 0) +++ XoopsModules/xortify/releases/3.03/extras/2.5.x/htdocs/header.php 2012-01-14 13:30:47 UTC (rev 8721) @@ -0,0 +1,110 @@ +<?php +/** + * XOOPS global header file + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package core + * @since 2.0.0 + * @author Kazumi Ono <web...@my...> + * @author Skalpa Keo <sk...@xo...> + * @author Taiwen Jiang <ph...@us...> + * @version $Id: header.php 8066 2011-11-06 05:09:33Z beckmi $ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +$xoopsPreload =& XoopsPreload::getInstance(); +$xoopsPreload->triggerEvent('core.header.start'); + +include_once $GLOBALS['xoops']->path('class/xoopsblock.php'); + +$xoopsLogger =& XoopsLogger::getInstance(); +$xoopsLogger->stopTime('Module init'); +$xoopsLogger->startTime('XOOPS output init'); + +if ($xoopsConfig['theme_set'] != 'default' && file_exists(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/theme.php')) { + require_once $GLOBALS['xoops']->path('include/xoops13_header.php'); +} else { + global $xoopsOption, $xoopsConfig, $xoopsModule; + + $xoopsOption['theme_use_smarty'] = 1; + + // include Smarty template engine and initialize it + require_once $GLOBALS['xoops']->path('class/template.php'); + require_once $GLOBALS['xoops']->path('class/theme.php'); + require_once $GLOBALS['xoops']->path('class/theme_blocks.php'); + + if (@$xoopsOption['template_main']) { + if (false === strpos($xoopsOption['template_main'], ':')) { + $xoopsOption['template_main'] = 'db:' . $xoopsOption['template_main']; + } + } + + $xoopsThemeFactory = null; + $xoopsThemeFactory = new xos_opal_ThemeFactory(); + $xoopsThemeFactory->allowedThemes = $xoopsConfig['theme_set_allowed']; + $xoopsThemeFactory->defaultTheme = $xoopsConfig['theme_set']; + + /** + * @var xos_opal_Theme + */ + $xoTheme =& $xoopsThemeFactory->createInstance(array('contentTemplate' => @$xoopsOption['template_main'])); + $xoopsTpl =& $xoTheme->template; + + $xoopsPreload->triggerEvent('core.header.addmeta'); + + // Temporary solution for start page redirection + if (defined("XOOPS_STARTPAGE_REDIRECTED")) { + $params = $content = $tpl = $repeat = null; + $xoTheme->headContent($params, "<base href='" . XOOPS_URL . '/modules/' . $xoopsConfig['startpage'] . "/' />", $tpl, $repeat); + } + + if (@is_object($xoTheme->plugins['xos_logos_PageBuilder'])) { + $aggreg =& $xoTheme->plugins['xos_logos_PageBuilder']; + // Backward compatibility code for pre 2.0.14 themes + $xoopsTpl->assign_by_ref('xoops_lblocks', $aggreg->blocks['canvas_left']); + $xoopsTpl->assign_by_ref('xoops_rblocks', $aggreg->blocks['canvas_right']); + $xoopsTpl->assign_by_ref('xoops_ccblocks', $aggreg->blocks['page_topcenter']); + $xoopsTpl->assign_by_ref('xoops_clblocks', $aggreg->blocks['page_topleft']); + $xoopsTpl->assign_by_ref('xoops_crblocks', $aggreg->blocks['page_topright']); + $xoopsTpl->assign('xoops_showlblock', !empty($aggreg->blocks['canvas_left'])); + $xoopsTpl->assign('xoops_showrblock', !empty($aggreg->blocks['canvas_right'])); + $xoopsTpl->assign('xoops_showcblock', !empty($aggreg->blocks['page_topcenter']) || !empty($aggreg->blocks['page_topleft']) || !empty($aggreg->blocks['page_topright'])); + } + + // Sets cache time + if (!empty($xoopsModule)) { + $xoTheme->contentCacheLifetime = @$xoopsConfig['module_cache'][$xoopsModule->getVar('mid', 'n')]; + // Tricky solution for setting cache time for homepage + } else if (!empty($xoopsOption['template_main']) && $xoopsOption['template_main'] == 'db:system_homepage.html') { + $xoTheme->contentCacheLifetime = 604800; + } + + $xoopsPreload->triggerEvent('core.header.checkcache'); + if ($xoTheme->checkCache()) { + $xoopsPreload->triggerEvent('core.header.cacheend'); + exit(); + } + + if (!isset($xoopsOption['template_main']) && $xoopsModule) { + // new themes using Smarty does not have old functions that are required in old modules, so include them now + include $GLOBALS['xoops']->path('include/old_theme_functions.php'); + // need this also + $xoopsTheme['thename'] = $xoopsConfig['theme_set']; + ob_start(); + } + + $xoopsLogger->stopTime('XOOPS output init'); + $xoopsLogger->startTime('Module display'); +} + +$xoopsPreload->triggerEvent('core.header.end'); +?> \ No newline at end of file Added: XoopsModules/xortify/releases/3.03/extras/2.5.x/htdocs/modules/xortify/preloads/core.php =================================================================== --- XoopsModules/xortify/releases/3.03/extras/2.5.x/htdocs/modules/xortify/preloads/core.php (rev 0) +++ XoopsModules/xortify/releases/3.03/extras/2.5.x/htdocs/modules/xortify/preloads/core.php 2012-01-14 13:30:47 UTC (rev 8721) @@ -0,0 +1,118 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Nexoork Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @author Richardo Costa TRABIS + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +class XortifyCorePreload extends XoopsPreloadItem +{ + + function eventCoreIncludeCommonStart($args) + { + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + $result = XoopsCache::read('xortify_core_include_common_start'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_include_common_start', array('time'=>microtime(true)+600), 600); + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/pre.loader.mainfile.php' ); + XoopsCache::write('xortify_core_include_common_start', array('time'=>microtime(true)), -1); + } + } + + function eventCoreIncludeCommonEnd($args) + { + xoops_loadLanguage('modinfo', 'xortify'); + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['xortifyModule'] = $module_handler->getByDirname('xortify'); + if (is_object($GLOBALS['xortifyModule'])) { + $GLOBALS['xortifyModuleConfig'] = $config_handler->getConfigList($GLOBALS['xortifyModule']->getVar('mid')); + } + + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + $result = XoopsCache::read('xortify_core_include_common_end_cron'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_include_common_end_cron', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']); + switch ($GLOBALS['xortifyModuleConfig']['crontype']) { + case 'preloader': + $read = XoopsCache::read('xortify_pause_preload'); + if ((isset($read['time'])?(float)$read['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_pause_preload', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['croninterval'])); + $GLOBALS['xortify_preloader']=true; + ob_start(); + include(XOOPS_ROOT_PATH.'/modules/xortify/cron/serverup.php'); + ob_end_clean(); + } + break; + } + XoopsCache::write('xortify_core_include_common_end_cron', array('time'=>microtime(true)), -1); + } + + $result = XoopsCache::read('xortify_core_include_common_end'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_include_common_end', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']); + if (XortifyCorePreload::hasAPIUserPass()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.loader.mainfile.php' ); + } + XoopsCache::write('xortify_core_include_common_end', array('time'=>microtime(true)), -1); + } + + } + + function eventCoreHeaderCacheend($args) + { + + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + $result = XoopsCache::read('xortify_core_header_cache_end'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_header_cache_end', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']); + if (XortifyCorePreload::hasAPIUserPass()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.endcache.php' ); + } + XoopsCache::write('xortify_core_header_cache_end', array('time'=>microtime(true)), -1); + } + } + + function eventCoreFooterEnd($args) + { + + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + $result = XoopsCache::read('xortify_core_header_cache_end'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_header_cache_end', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']); + if (XortifyCorePreload::hasAPIUserPass()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.endcache.php' ); + } + XoopsCache::write('xortify_core_header_cache_end', array('time'=>microtime(true)), -1); + } + } + + function eventCoreHeaderAddmeta($args) + { + if (isset($GLOBALS['xortify_pass'])) { + if ($GLOBALS['xortify_pass'] == true) { + include_once XOOPS_ROOT_PATH.'/modules/xortify/include/functions.php'; + addmeta_googleanalytics(_XOR_MI_XOOPS_GOOGLE_ANALYTICS_ACCOUNTID_USERPASSED, $_SERVER['HTTP_HOST']); + if (defined('_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_USERPASSED')&&strlen(constant('_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_USERPASSED'))>=13) { + addmeta_googleanalytics(_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_USERPASSED, $_SERVER['HTTP_HOST']); + } + } + } + } + + function hasAPIUserPass() + { + if ($GLOBALS['xortifyModuleConfig']['xortify_username']!=''&&$GLOBALS['xortifyModuleConfig']['xortify_password']!='') + return true; + else + return false; + } +} + +?> \ No newline at end of file Added: XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/16/access.list.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/16/access.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/32/access.list.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/32/access.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.03/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.03/htdocs/banned.php =================================================================== --- XoopsModules/xortify/releases/3.03/htdocs/banned.php (rev 0) +++ XoopsModules/xortify/releases/3.03/htdocs/banned.php 2012-01-14 13:30:47 UTC (rev 8721) @@ -0,0 +1,49 @@ +<?php + + + include dirname(__FILE__).'/mainfile.php'; + if (isset($_SESSION['xortify']['lid'])) { + $lid = $_SESSION['xortify']['lid']; + setcookie('xortify', array('lid' => $lid), time()+3600*24*7*4*3); + } elseif (isset($_COOKIE['xortify']['lid'])) { + $lid = $_COOKIE['xortify']['lid']; + $_SESSION['xortify']['lid'] = $lid; + } + + xoops_loadLanguage('ban', 'xortify'); + + $module_handler = xoops_gethandler('module'); + $GLOBALS['xortifyModule'] = $module_handler->getByDirname('xortify'); + + $xoopsOption['template_main'] = 'xortify_banning_notice.html'; + include_once XOOPS_ROOT_PATH.'/header.php'; + include_once XOOPS_ROOT_PATH.'/modules/xortify/include/functions.php'; + addmeta_googleanalytics(_XOR_MI_XOOPS_GOOGLE_ANALYTICS_ACCOUNTID_FAILEDTOPASS, $_SERVER['HTTP_HOST']); + if (defined('_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_FAILEDTOPASS')&&strlen(constant('_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_FAILEDTOPASS'))>=13) { + addmeta_googleanalytics(_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_FAILEDTOPASS, $_SERVER['HTTP_HOST']); + } + $GLOBALS['xoopsTpl']->assign('xoops_pagetitle', _XOR_PAGETITLE); + $GLOBALS['xoopsTpl']->assign('description', _XOR_DESCRIPTION); + $GLOBALS['xoopsTpl']->assign('version', $GLOBALS['xortifyModule']->getVar('version')/100); + $GLOBALS['xoopsTpl']->assign('platform', XOOPS_VERSION); + + $log_handler = xoops_getmodulehandler('log', 'xortify'); + $log = $log_handler->get($lid); + if (is_object($log)) { + setcookie('xortify', array('lid' => $lid), time()+3600*24*7*4*3); + $GLOBALS['xoopsTpl']->assign('status', $log->getVar('extra')); + $GLOBALS['xoopsTpl']->assign('provider', $log->getVar('provider')); + $GLOBALS['xoopsTpl']->assign('agent', $log->getVar('agent')); + } + $GLOBALS['xoopsTpl']->assign('xoops_lblocks', false); + $GLOBALS['xoopsTpl']->assign('xoops_rblocks', false); + $GLOBALS['xoopsTpl']->assign('xoops_ccblocks', false); + $GLOBALS['xoopsTpl']->assign('xoops_clblocks', false); + $GLOBALS['xoopsTpl']->assign('xoops_crblocks', false); + $GLOBALS['xoopsTpl']->assign('xoops_showlblock', false); + $GLOBALS['xoopsTpl']->assign('xoops_showrblock', false); + $GLOBALS['xoopsTpl']->assign('xoops_showcblock', false); + + include_once XOOPS_ROOT_PATH.'/footer.php'; + +?> Added: XoopsModules/xortify/releases/3... [truncated message content] |
From: <wis...@us...> - 2012-01-29 16:59:19
|
Revision: 8827 http://xoops.svn.sourceforge.net/xoops/?rev=8827&view=rev Author: wishcraft Date: 2012-01-29 16:59:08 +0000 (Sun, 29 Jan 2012) Log Message: ----------- Xortify 3.04 - for XOOPS 2.5 - WSOD on Firefox Fix - Final Release for 2.5 Series -- see changelog.txt Added Paths: ----------- XoopsModules/xortify/releases/3.04/ XoopsModules/xortify/releases/3.04/docs/ XoopsModules/xortify/releases/3.04/docs/INSTALL XoopsModules/xortify/releases/3.04/docs/UPGRADE XoopsModules/xortify/releases/3.04/docs/licence.txt XoopsModules/xortify/releases/3.04/extras/ XoopsModules/xortify/releases/3.04/extras/2.5.x/ XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/ XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/header.php XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/modules/ XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/modules/xortify/ XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/3.04/htdocs/ XoopsModules/xortify/releases/3.04/htdocs/Frameworks/ XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/ XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/16/access.list.png XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/32/access.list.png XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png XoopsModules/xortify/releases/3.04/htdocs/banned.php XoopsModules/xortify/releases/3.04/htdocs/modules/ XoopsModules/xortify/releases/3.04/htdocs/modules/system/ XoopsModules/xortify/releases/3.04/htdocs/modules/system/preloads/ XoopsModules/xortify/releases/3.04/htdocs/modules/system/preloads/xortify.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/admin/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/admin/index.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/admin/index.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/admin/menu.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_curl.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_curlserialised.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_curlxml.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_json.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_json_provisionning.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_soap.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_wgetserialised.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_wgetxml.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/authfactory.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/index.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/curl.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/curlserialised.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/curlxml.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/index.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/json.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/log.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/soap.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/wgetserialised.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/wgetxml.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/cron/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/cron/index.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/cron/serverup.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/docs/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/docs/changelog.txt XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/docs/credits.txt XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/docs/index.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/docs/install.txt XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/docs/lang_diff.txt XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/docs/licence.txt XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/docs/readme.txt XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/images/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/images/accessdenied.png XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/images/index.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/images/left_both.gif XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/images/right_both.gif XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/images/xortify_slogo.png XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/JSON.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/forms.objects.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/forms.xortify.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/functions.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/install.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/post.header.addmeta.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/post.header.endcache.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/post.loader.mainfile.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/pre.loader.mainfile.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/update.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/index.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/english/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/english/admin.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/english/ban.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/english/help/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/english/help/help.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/english/help/index.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/english/index.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/english/main.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/english/modinfo.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/index.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/plugin/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/plugin/index.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/plugin/projecthoneypot.org.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/plugin/protector.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/plugin/spiders.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/plugin/stopforumspam.com.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/plugin/xortify.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/preloads/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/preloads/index.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/index.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/projecthoneypot.org/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/protector/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/protector/footer.post.loader.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/protector/header.post.loader.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/protector/index.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/providers.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/spiders/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/spiders/post.loader.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/stopforumspam.com/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/xortify/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/xortify/footer.post.loader.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/xortify/header.post.loader.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/xortify/index.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/xortify/post.loader.php XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/sql/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/sql/index.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/sql/mysql.sql XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/templates/ XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/templates/index.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/templates/xortify_banning_notice.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/templates/xortify_cpanel_bans.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/templates/xortify_cpanel_log.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/templates/xortify_cpanel_signup_form.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/templates/xortify_cpanel_signup_nocommunication.html XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/xoops_version.php Added: XoopsModules/xortify/releases/3.04/docs/INSTALL =================================================================== --- XoopsModules/xortify/releases/3.04/docs/INSTALL (rev 0) +++ XoopsModules/xortify/releases/3.04/docs/INSTALL 2012-01-29 16:59:08 UTC (rev 8827) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.48 | +| | ++----[ 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 | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - mainfile.php (pre 2.4 series) ]---------------------------------------+ +| | +| 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 3 - header.php (pre 2.4 series) ]----------------------------------------+ +| | +| Below the lin of footer.php which reads $xoopsTpl =& $xoTheme->template; | +| | +| [code] | +| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.add.meta.php' ); | +| [/code] | +| | ++-----------------------------------------------------------------------------------+ \ No newline at end of file Added: XoopsModules/xortify/releases/3.04/docs/UPGRADE =================================================================== --- XoopsModules/xortify/releases/3.04/docs/UPGRADE (rev 0) +++ XoopsModules/xortify/releases/3.04/docs/UPGRADE 2012-01-29 16:59:08 UTC (rev 8827) @@ -0,0 +1,75 @@ ++-----------------------------------------------------------------------------------+ +| | +| 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 2.30 | +| | ++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+ +| | +| Install the Providers Xortify support currently these are: | +| | +| * XOOPS Protector (Based in 3.22) | +| * Xortify Network Security Drone | +| | +| Make sure you delete the 'providers' folder in the existing module then upload | +| Xortify 2.30. Once you have install the file base this way you will remember | +| to upgrade the module in the system modules application in the xoops system | +| menu you will need to then goto the preferences and make sure you are running | +| the protector provider if you are running protector this will populate the | +| cloud with your bans that come in protector as well:: | +| | +| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you | +| | +| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to | +| do steps 2 and 3 with XOOPS 2.4 and later series. | +| | ++--[ Step 1 - Installing Cron ]-----------------------------------------------------+ +| | +| You will need to install the following cron within your cronjobs section of your | +| Wesite, if you are using a windows server in WAMP then you will need to schedule | +| this as a task, remember to change the path to suit your configuration. | +| | +| command to run every minute to once an hour, make sure it is within your cache | +| refresh time. This is the or unix based systems the following is for windows | +| | +| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php | +| | +| Assuming you have your PHP added to your executable path this is the scheduled | +| task to run on a windows environment. | +| | +| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php | +| | +| Some of the paths in these examples for executables or the cron file may be | +| different and you will have to alter them to your needs. | +| | ++--[ Step 2 - 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 3 - 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/3.04/docs/licence.txt =================================================================== --- XoopsModules/xortify/releases/3.04/docs/licence.txt (rev 0) +++ XoopsModules/xortify/releases/3.04/docs/licence.txt 2012-01-29 16:59:08 UTC (rev 8827) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/header.php =================================================================== --- XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/header.php (rev 0) +++ XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/header.php 2012-01-29 16:59:08 UTC (rev 8827) @@ -0,0 +1,110 @@ +<?php +/** + * XOOPS global header file + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program 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. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package core + * @since 2.0.0 + * @author Kazumi Ono <web...@my...> + * @author Skalpa Keo <sk...@xo...> + * @author Taiwen Jiang <ph...@us...> + * @version $Id: header.php 8066 2011-11-06 05:09:33Z beckmi $ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +$xoopsPreload =& XoopsPreload::getInstance(); +$xoopsPreload->triggerEvent('core.header.start'); + +include_once $GLOBALS['xoops']->path('class/xoopsblock.php'); + +$xoopsLogger =& XoopsLogger::getInstance(); +$xoopsLogger->stopTime('Module init'); +$xoopsLogger->startTime('XOOPS output init'); + +if ($xoopsConfig['theme_set'] != 'default' && file_exists(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/theme.php')) { + require_once $GLOBALS['xoops']->path('include/xoops13_header.php'); +} else { + global $xoopsOption, $xoopsConfig, $xoopsModule; + + $xoopsOption['theme_use_smarty'] = 1; + + // include Smarty template engine and initialize it + require_once $GLOBALS['xoops']->path('class/template.php'); + require_once $GLOBALS['xoops']->path('class/theme.php'); + require_once $GLOBALS['xoops']->path('class/theme_blocks.php'); + + if (@$xoopsOption['template_main']) { + if (false === strpos($xoopsOption['template_main'], ':')) { + $xoopsOption['template_main'] = 'db:' . $xoopsOption['template_main']; + } + } + + $xoopsThemeFactory = null; + $xoopsThemeFactory = new xos_opal_ThemeFactory(); + $xoopsThemeFactory->allowedThemes = $xoopsConfig['theme_set_allowed']; + $xoopsThemeFactory->defaultTheme = $xoopsConfig['theme_set']; + + /** + * @var xos_opal_Theme + */ + $xoTheme =& $xoopsThemeFactory->createInstance(array('contentTemplate' => @$xoopsOption['template_main'])); + $xoopsTpl =& $xoTheme->template; + + $xoopsPreload->triggerEvent('core.header.addmeta'); + + // Temporary solution for start page redirection + if (defined("XOOPS_STARTPAGE_REDIRECTED")) { + $params = $content = $tpl = $repeat = null; + $xoTheme->headContent($params, "<base href='" . XOOPS_URL . '/modules/' . $xoopsConfig['startpage'] . "/' />", $tpl, $repeat); + } + + if (@is_object($xoTheme->plugins['xos_logos_PageBuilder'])) { + $aggreg =& $xoTheme->plugins['xos_logos_PageBuilder']; + // Backward compatibility code for pre 2.0.14 themes + $xoopsTpl->assign_by_ref('xoops_lblocks', $aggreg->blocks['canvas_left']); + $xoopsTpl->assign_by_ref('xoops_rblocks', $aggreg->blocks['canvas_right']); + $xoopsTpl->assign_by_ref('xoops_ccblocks', $aggreg->blocks['page_topcenter']); + $xoopsTpl->assign_by_ref('xoops_clblocks', $aggreg->blocks['page_topleft']); + $xoopsTpl->assign_by_ref('xoops_crblocks', $aggreg->blocks['page_topright']); + $xoopsTpl->assign('xoops_showlblock', !empty($aggreg->blocks['canvas_left'])); + $xoopsTpl->assign('xoops_showrblock', !empty($aggreg->blocks['canvas_right'])); + $xoopsTpl->assign('xoops_showcblock', !empty($aggreg->blocks['page_topcenter']) || !empty($aggreg->blocks['page_topleft']) || !empty($aggreg->blocks['page_topright'])); + } + + // Sets cache time + if (!empty($xoopsModule)) { + $xoTheme->contentCacheLifetime = @$xoopsConfig['module_cache'][$xoopsModule->getVar('mid', 'n')]; + // Tricky solution for setting cache time for homepage + } else if (!empty($xoopsOption['template_main']) && $xoopsOption['template_main'] == 'db:system_homepage.html') { + $xoTheme->contentCacheLifetime = 604800; + } + + $xoopsPreload->triggerEvent('core.header.checkcache'); + if ($xoTheme->checkCache()) { + $xoopsPreload->triggerEvent('core.header.cacheend'); + exit(); + } + + if (!isset($xoopsOption['template_main']) && $xoopsModule) { + // new themes using Smarty does not have old functions that are required in old modules, so include them now + include $GLOBALS['xoops']->path('include/old_theme_functions.php'); + // need this also + $xoopsTheme['thename'] = $xoopsConfig['theme_set']; + ob_start(); + } + + $xoopsLogger->stopTime('XOOPS output init'); + $xoopsLogger->startTime('Module display'); +} + +$xoopsPreload->triggerEvent('core.header.end'); +?> \ No newline at end of file Added: XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/modules/xortify/preloads/core.php =================================================================== --- XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/modules/xortify/preloads/core.php (rev 0) +++ XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/modules/xortify/preloads/core.php 2012-01-29 16:59:08 UTC (rev 8827) @@ -0,0 +1,118 @@ +<?php +/** + * @package xortify + * @subpackage module + * @description Sector Nexoork Security Drone + * @author Simon Roberts WISHCRAFT <si...@ch...> + * @author Richardo Costa TRABIS + * @copyright copyright (c) 2010-2013 XOOPS.org + * @licence GPL 2.0 - see docs/LICENCE.txt + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +class XortifyCorePreload extends XoopsPreloadItem +{ + + function eventCoreIncludeCommonStart($args) + { + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + $result = XoopsCache::read('xortify_core_include_common_start'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_include_common_start', array('time'=>microtime(true)+600), 600); + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/pre.loader.mainfile.php' ); + XoopsCache::write('xortify_core_include_common_start', array('time'=>microtime(true)), -1); + } + } + + function eventCoreIncludeCommonEnd($args) + { + xoops_loadLanguage('modinfo', 'xortify'); + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['xortifyModule'] = $module_handler->getByDirname('xortify'); + if (is_object($GLOBALS['xortifyModule'])) { + $GLOBALS['xortifyModuleConfig'] = $config_handler->getConfigList($GLOBALS['xortifyModule']->getVar('mid')); + } + + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + $result = XoopsCache::read('xortify_core_include_common_end_cron'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_include_common_end_cron', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']); + switch ($GLOBALS['xortifyModuleConfig']['crontype']) { + case 'preloader': + $read = XoopsCache::read('xortify_pause_preload'); + if ((isset($read['time'])?(float)$read['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_pause_preload', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['croninterval'])); + $GLOBALS['xortify_preloader']=true; + ob_start(); + include(XOOPS_ROOT_PATH.'/modules/xortify/cron/serverup.php'); + ob_end_clean(); + } + break; + } + XoopsCache::write('xortify_core_include_common_end_cron', array('time'=>microtime(true)), -1); + } + + $result = XoopsCache::read('xortify_core_include_common_end'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_include_common_end', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']); + if (XortifyCorePreload::hasAPIUserPass()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.loader.mainfile.php' ); + } + XoopsCache::write('xortify_core_include_common_end', array('time'=>microtime(true)), -1); + } + + } + + function eventCoreHeaderCacheend($args) + { + + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + $result = XoopsCache::read('xortify_core_header_cache_end'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_header_cache_end', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']); + if (XortifyCorePreload::hasAPIUserPass()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.endcache.php' ); + } + XoopsCache::write('xortify_core_header_cache_end', array('time'=>microtime(true)), -1); + } + } + + function eventCoreFooterEnd($args) + { + + include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; + $result = XoopsCache::read('xortify_core_header_cache_end'); + if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) { + XoopsCache::write('xortify_core_header_cache_end', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']); + if (XortifyCorePreload::hasAPIUserPass()) { + include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.endcache.php' ); + } + XoopsCache::write('xortify_core_header_cache_end', array('time'=>microtime(true)), -1); + } + } + + function eventCoreHeaderAddmeta($args) + { + if (isset($GLOBALS['xortify_pass'])) { + if ($GLOBALS['xortify_pass'] == true) { + include_once XOOPS_ROOT_PATH.'/modules/xortify/include/functions.php'; + addmeta_googleanalytics(_XOR_MI_XOOPS_GOOGLE_ANALYTICS_ACCOUNTID_USERPASSED, $_SERVER['HTTP_HOST']); + if (defined('_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_USERPASSED')&&strlen(constant('_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_USERPASSED'))>=13) { + addmeta_googleanalytics(_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_USERPASSED, $_SERVER['HTTP_HOST']); + } + } + } + } + + function hasAPIUserPass() + { + if ($GLOBALS['xortifyModuleConfig']['xortify_username']!=''&&$GLOBALS['xortifyModuleConfig']['xortify_password']!='') + return true; + else + return false; + } +} + +?> \ No newline at end of file Added: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/16/access.list.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/16/access.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/32/access.list.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/32/access.list.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png =================================================================== (Binary files differ) Property changes on: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/xortify/releases/3.04/htdocs/banned.php =================================================================== --- XoopsModules/xortify/releases/3.04/htdocs/banned.php (rev 0) +++ XoopsModules/xortify/releases/3.04/htdocs/banned.php 2012-01-29 16:59:08 UTC (rev 8827) @@ -0,0 +1,49 @@ +<?php + + + include dirname(__FILE__).'/mainfile.php'; + if (isset($_SESSION['xortify']['lid'])) { + $lid = $_SESSION['xortify']['lid']; + setcookie('xortify', array('lid' => $lid), time()+3600*24*7*4*3); + } elseif (isset($_COOKIE['xortify']['lid'])) { + $lid = $_COOKIE['xortify']['lid']; + $_SESSION['xortify']['lid'] = $lid; + } + + xoops_loadLanguage('ban', 'xortify'); + + $module_handler = xoops_gethandler('module'); + $GLOBALS['xortifyModule'] = $module_handler->getByDirname('xortify'); + + $xoopsOption['template_main'] = 'xortify_banning_notice.html'; + include_once XOOPS_ROOT_PATH.'/header.php'; + include_once XOOPS_ROOT_PATH.'/modules/xortify/include/functions.php'; + addmeta_googleanalytics(_XOR_MI_XOOPS_GOOGLE_ANALYTICS_ACCOUNTID_FAILEDTOPASS, $_SERVER['HTTP_HOST']); + if (defined('_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_FAILEDTOPASS')&&strlen(constant('_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_FAILEDTOPASS'))>=13) { + addmeta_googleanalytics(_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_FAILEDTOPASS, $_SERVER['HTTP_HOST']); + } + $GLOBALS['xoopsTpl']->assign('xoops_pagetitle', _XOR_PAGETITLE); + $GLOBALS['xoopsTpl']->assign('description', _XOR_DESCRIPTION); + $GLOBALS['xoopsTpl']->assign('version', $GLOBALS['xortifyModule']->getVar('version')/100); + $GLOBALS['xoopsTpl']->assign('platform', XOOPS_VERSION); + + $log_handler = xoops_getmodulehandler('log', 'xortify'); + $log = $log_handler->get($lid); + if (is_object($log)) { + setcookie('xortify', array('lid' => $lid), time()+3600*24*7*4*3); + $GLOBALS['xoopsTpl']->assign('status', $log->getVar('extra')); + $GLOBALS['xoopsTpl']->assign('provider', $log->getVar('provider')); + $GLOBALS['xoopsTpl']->assign('agent', $log->getVar('agent')); + } + $GLOBALS['xoopsTpl']->assign('xoops_lblocks', false); + $GLOBALS['xoopsTpl']->assign('xoops_rblocks', false); + $GLOBALS['xoopsTpl']->assign('xoops_ccblocks', false); + $GLOBALS['xoopsTpl']->assign('xoops_clblocks', false); + $GLOBALS['xoopsTpl']->assign('xoops_crblocks', false); + $GLOBALS['xoopsTpl']->assign('xoops_showlblock', false); + $GLOBALS['xoopsTpl']->assign('xoops_showrblock', false); + $GLOBALS['xoopsTpl']->assign('xoops_showcblock', false); + + include_once XOOPS_ROOT_PATH.'/footer.php'; + +?> Added: XoopsModules/xortify/releases/... [truncated message content] |