|
From: <wis...@us...> - 2013-03-01 17:35:08
|
Revision: 11131
http://sourceforge.net/p/xoops/svn/11131
Author: wishcraft
Date: 2013-03-01 17:35:01 +0000 (Fri, 01 Mar 2013)
Log Message:
-----------
Xortify Cloud Client 4.01 Alpha - New Bred in the Prevention of SPAM and Mal-users like an extra condom for XOOPS ontop of protector! This is the cloud client model. Don't forget to signup for extra features!
Added Paths:
-----------
XoopsModules/xortify/releases/4.01a/
XoopsModules/xortify/releases/4.01a/htdocs/
XoopsModules/xortify/releases/4.01a/htdocs/banned.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/admin/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/admin/index.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/admin/index.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/admin/menu.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_curl.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_curlserialised.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_curlxml.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_json.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_json_provisionning.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_rest_curl.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_rest_curl_provisionning.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_rest_curlserialised.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_rest_curlserialised_provisionning.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_rest_curlxml.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_rest_curlxml_provisionning.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_rest_json.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_rest_json_provisionning.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_rest_wgetserialised.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_rest_wgetserialised_provisionning.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_rest_wgetxml.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_rest_wgetxml_provisionning.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_soap.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_wgetserialised.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_wgetxml.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/authfactory.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/index.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/curl.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/curlserialised.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/curlxml.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/index.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/json.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/log.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/rest_curl.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/rest_curlserialised.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/rest_curlxml.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/rest_json.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/rest_wgetserialised.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/rest_wgetxml.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/soap.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/wgetserialised.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/wgetxml.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/cron/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/cron/index.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/cron/serverup.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/docs/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/docs/changelog.txt
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/docs/credits.txt
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/docs/index.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/docs/install.txt
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/docs/lang_diff.txt
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/docs/licence.txt
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/docs/readme.txt
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/images/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/images/accessdenied.png
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/images/icons/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/images/icons/16/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/images/icons/16/access.list.png
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/images/icons/16/current.bans.png
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/images/icons/16/index.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/images/icons/16/xortify.log.png
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/images/icons/32/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/images/icons/32/access.list.png
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/images/icons/32/current.bans.png
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/images/icons/32/index.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/images/icons/32/xortify.log.png
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/images/icons/index.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/images/index.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/images/left_both.gif
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/images/right_both.gif
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/images/xortify_slogo.png
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/include/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/include/JSON.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/include/forms.objects.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/include/forms.xortify.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/include/functions.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/include/install.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/include/instance.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/include/post.footer.end.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/include/post.header.addmeta.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/include/post.header.endcache.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/include/post.loader.mainfile.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/include/pre.loader.mainfile.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/include/update.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/index.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/language/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/language/english/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/language/english/admin.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/language/english/ban.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/language/english/help/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/language/english/help/help.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/language/english/help/index.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/language/english/index.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/language/english/main.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/language/english/modinfo.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/language/index.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/plugin/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/plugin/index.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/plugin/projecthoneypot.org.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/plugin/protector.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/plugin/spiders.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/plugin/stopforumspam.com.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/plugin/xortify.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/poll/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/poll/index.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/preloads/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/preloads/core.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/preloads/index.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/providers/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/providers/index.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/providers/projecthoneypot.org/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/providers/protector/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/providers/protector/footer.post.loader.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/providers/protector/header.post.loader.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/providers/protector/index.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/providers/providers.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/providers/spiders/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/providers/spiders/post.loader.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/providers/stopforumspam.com/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/providers/xortify/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/providers/xortify/footer.post.loader.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/providers/xortify/header.post.loader.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/providers/xortify/index.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/providers/xortify/post.loader.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/providers/xortify/pre.loader.php
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/sql/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/sql/index.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/sql/mysql.sql
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/templates/
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/templates/index.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/templates/xortify_banning_notice.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/templates/xortify_cpanel_bans.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/templates/xortify_cpanel_log.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/templates/xortify_cpanel_signup_form.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/templates/xortify_cpanel_signup_nocommunication.html
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/templates/xortify_instance_key.php.txt
XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/xoops_version.php
Added: XoopsModules/xortify/releases/4.01a/htdocs/banned.php
===================================================================
--- XoopsModules/xortify/releases/4.01a/htdocs/banned.php (rev 0)
+++ XoopsModules/xortify/releases/4.01a/htdocs/banned.php 2013-03-01 17:35:01 UTC (rev 11131)
@@ -0,0 +1,55 @@
+<?php
+
+
+ include dirname(__FILE__).'/mainfile.php';
+ if (isset($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['lid'])) {
+ $lid = $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['lid'];
+ setcookie('xortify', array('lid' => $lid), time()+3600*24*7*4*3);
+ } elseif (isset($_COOKIE['xortify']['lid'])) {
+ $lid = $_COOKIE['xortify']['lid'];
+ $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['lid'] = $lid;
+ }
+
+ xoops_loadLanguage('ban', 'xortify');
+
+ $module_handler = xoops_gethandler('module');
+ $config_handler = xoops_gethandler('config');
+ if (!is_object($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module']))
+ $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module'] = $module_handler->getByDirname('xortify');
+ if (!isset($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']))
+ $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig'] = $config_handler->getModuleConfig($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module']->getVar('mid'));
+
+ $xoopsOption['template_main'] = 'xortify_banning_notice.html';
+ include_once XOOPS_ROOT_PATH.'/header.php';
+ include_once XOOPS_ROOT_PATH.'/modules/xortify/include/functions.php';
+ if ($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['google']==true) {
+ 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', $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module']->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/4.01a/htdocs/modules/xortify/admin/index.html
===================================================================
--- XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/admin/index.html (rev 0)
+++ XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/admin/index.html 2013-03-01 17:35:01 UTC (rev 11131)
@@ -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/4.01a/htdocs/modules/xortify/admin/index.php
===================================================================
--- XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/admin/index.php (rev 0)
+++ XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/admin/index.php 2013-03-01 17:35:01 UTC (rev 11131)
@@ -0,0 +1,481 @@
+<?php
+/*
+ * Prevents Spam, Harvesting, Human Rights Abuse, Captcha Abuse etc.
+ * basic statistic of them in XOOPS Copyright (C) 2012 Simon Roberts
+ * Contact: wishcraft - si...@ch...
+ *
+ * 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 3 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, see <http://www.gnu.org/licenses/>.
+ * See /docs/license.pdf for full license.
+ *
+ * Shouts:- Mamba (www.xoops.org), flipse (www.nlxoops.nl)
+ * Many thanks for your additional work with version 1.01
+ *
+ * Version: 3.10 Final (Stable)
+ * Published: Chronolabs
+ * Download: http://code.google.com/p/chronolabs
+ * This File: index.php
+ * Description: Admin Dashboard and Other panels file
+ * Date: 09/09/2012 19:34 AEST
+ * License: GNU3
+ *
+ */
+
+
+ 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');
+ if (!is_object($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module'])) $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module'] = $module_handler->getByDirname('xortify');
+ if (!isset($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig'])) $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig'] = $config_handler->getConfigList($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module']->getVar('mid'));
+
+ include_once $GLOBALS['xoops']->path('class'.DS.'cache'.DS.'xoopscache.php');
+ include_once $GLOBALS['xoops']->path('class'.DS.'pagenav.php');
+ include_once $GLOBALS['xoops']->path('class'.DS.'xoopslists.php');
+ include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php');
+ include_once $GLOBALS['xoops']->path('class'.DS.'xoopstree.php');
+ include_once $GLOBALS['xoops']->path('class'.DS.'xoopsformloader.php');
+ include_once $GLOBALS['xoops']->path('modules'.DS.'xortify'.DS.'class'.DS.'auth'.DS.'authfactory.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');
+
+ xoops_loadLanguage('admin', 'xortify');
+
+ 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;
+ }
+ $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['ImageIcon'] = XOOPS_URL .'/'. $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module']->getInfo('icons16');
+ $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['ImageAdmin'] = XOOPS_URL .'/'. $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module']->getInfo('icons32');
+
+ if ($GLOBALS['xoopsUser']) {
+ $moduleperm_handler =& xoops_gethandler('groupperm');
+ if (!$moduleperm_handler->checkRight('module_admin', $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module']->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', $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['ImageIcon']);
+ $GLOBALS['xoopsTpl']->assign('pathImageAdmin', $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['ImageAdmin']);
+
+ $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, $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['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";
+
+ XoopsLoad::load("captcha");
+ $xoopsCaptcha = XoopsCaptcha::getInstance();
+ if (! $xoopsCaptcha->verify() ) {
+ $stop .= $xoopsCaptcha->getMessage();
+ }
+
+ if ($stop!='') {
+ xortify_adminMenu(4, 'index.php?op=signup&fct=signup');
+ echo "<p align='center' style='font-size: 15px; color: #FF0000;'>$stop</p>";
+ $xortifyAuth =& XortifyAuthFactory::getAuthConnection(false, $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['protocol']);
+ $disclaimer = $xortifyAuth->network_disclaimer();
+ if (strlen(trim($disclaimer))==0)
+ {
+ $disclaimer = _XOR_ADMIN_NONETWORKCOMM_DISCLAIMER;
+ }
+ if ($disclaimer != _XOR_ADMIN_NONETWORKCOMM_DISCLAIMER) {
+ $uname = new XoopsFormText('', "uname", 35, 128, (isset($_POST['uname'])?$_POST['uname']:''));
+ $pass = new XoopsFormPassword('', "pass", 35, 128, (isset($_POST['pass'])?$_POST['pass']:''));
+ $vpass = new XoopsFormPassword('', "vpass", 35, 128, (isset($_POST['vpass'])?$_POST['vpass']:''));
+ $email = new XoopsFormText('', "email", 35, 128, (isset($_POST['email'])?$_POST['email']:''));
+ $url = new XoopsFormText('', "url", 35, 128, (isset($_POST['url'])?$_POST['url']:''));
+ $viewemail = new XoopsFormRadioYN('', "viewemail", (isset($_POST['viewemail'])?$_POST['viewemail']:false));
+ $timezone = new XoopsFormSelectTimezone('', "timezone", (isset($_POST['timezone'])?$_POST['timezone']:''));
+ $myts =& MyTextSanitizer::getInstance();
+ $disclaim = new XoopsFormLabel('', $myts->nl2br($disclaimer));
+ $agree = new XoopsFormRadioYN('', "agree", false);
+ $captcha = new XoopsFormCaptcha('', 'xoopscaptcha', false);
+ $op = new XoopsFormHidden('op', 'signup');
+ $fct = new XoopsFormHidden('fct', 'save');
+ $submit = new XoopsFormButton('', 'submit', _XOR_FRM_REGISTER, 'submit');
+ $GLOBALS['xoopsTpl']->assign('uname',$uname->render());
+ $GLOBALS['xoopsTpl']->assign('pass',$pass->render());
+ $GLOBALS['xoopsTpl']->assign('vpass',$vpass->render());
+ $GLOBALS['xoopsTpl']->assign('email',$email->render());
+ $GLOBALS['xoopsTpl']->assign('yoururl',$url->render());
+ $GLOBALS['xoopsTpl']->assign('viewemail',$viewemail->render());
+ $GLOBALS['xoopsTpl']->assign('timezone',$timezone->render());
+ $GLOBALS['xoopsTpl']->assign('disclaimer',$disclaim->render());
+ $GLOBALS['xoopsTpl']->assign('agree',$agree->render());
+ $GLOBALS['xoopsTpl']->assign('captcha',$captcha->render());
+ $GLOBALS['xoopsTpl']->assign('op',$op->render());
+ $GLOBALS['xoopsTpl']->assign('fct',$fct->render());
+ $GLOBALS['xoopsTpl']->assign('submit',$submit->render());
+ $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']);
+ $GLOBALS['xoopsTpl']->display('db:xortify_cpanel_signup_form.html');
+ xortify_footer_adminMenu();
+ xoops_cp_footer();
+ exit;
+
+ } else {
+ $GLOBALS['xoopsTpl']->assign('protocol', $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['protocol']);
+ switch($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['protocol']) {
+ case 'curlserialised':
+ case 'wgetserialised':
+ $GLOBALS['xoopsTpl']->assign('port', $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['xortify_uriserial']);
+ break;
+ case 'curl':
+ case 'json':
+ $GLOBALS['xoopsTpl']->assign('port', $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['xortify_urijson']);
+ break;
+ case 'curlxml':
+ case 'wgetxml':
+ $GLOBALS['xoopsTpl']->assign('port', $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['xortify_urixml']);
+ break;
+ case 'soap':
+ $GLOBALS['xoopsTpl']->assign('port', $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['xortify_urisoap']);
+ break;
+ }
+ $GLOBALS['xoopsTpl']->assign('error', $disclaimer);
+ $GLOBALS['xoopsTpl']->display('db:xortify_cpanel_signup_nocommunication.html');
+ }
+
+ } 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');
+ if (!is_object($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module']))
+ $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module'] = $moduleHandler->getByDirname('xortify');
+ $configs = $configHandler->getConfigs(new Criteria('conf_modid', $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module']->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, 'index.php?op=signup&fct=signup');
+ $xortifyAuth =& XortifyAuthFactory::getAuthConnection(false, $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['protocol']);
+ $disclaimer = $xortifyAuth->network_disclaimer();
+ if (strlen(trim($disclaimer))==0)
+ {
+ $disclaimer = _XOR_ADMIN_NONETWORKCOMM_DISCLAIMER;
+ }
+ if ($disclaimer != _XOR_ADMIN_NONETWORKCOMM_DISCLAIMER) {
+ $uname = new XoopsFormText('', "uname", 35, 128, (isset($_POST['uname'])?$_POST['uname']:''));
+ $pass = new XoopsFormPassword('', "pass", 35, 128, (isset($_POST['pass'])?$_POST['pass']:''));
+ $vpass = new XoopsFormPassword('', "vpass", 35, 128, (isset($_POST['vpass'])?$_POST['vpass']:''));
+ $email = new XoopsFormText('', "email", 35, 128, (isset($_POST['email'])?$_POST['email']:''));
+ $url = new XoopsFormText('', "url", 35, 128, (isset($_POST['url'])?$_POST['url']:''));
+ $viewemail = new XoopsFormRadioYN('', "viewemail", (isset($_POST['viewemail'])?$_POST['viewemail']:false));
+ $timezone = new XoopsFormSelectTimezone('', "timezone", (isset($_POST['timezone'])?$_POST['timezone']:''));
+ $myts =& MyTextSanitizer::getInstance();
+ $disclaim = new XoopsFormLabel('', $myts->nl2br($disclaimer));
+ $agree = new XoopsFormRadioYN('', "agree", false);
+ $captcha = new XoopsFormCaptcha('', 'xoopscaptcha', false);
+ $op = new XoopsFormHidden('op', 'signup');
+ $fct = new XoopsFormHidden('fct', 'save');
+ $submit = new XoopsFormButton('', 'submit', _XOR_FRM_REGISTER, 'submit');
+ $GLOBALS['xoopsTpl']->assign('uname',$uname->render());
+ $GLOBALS['xoopsTpl']->assign('pass',$pass->render());
+ $GLOBALS['xoopsTpl']->assign('vpass',$vpass->render());
+ $GLOBALS['xoopsTpl']->assign('email',$email->render());
+ $GLOBALS['xoopsTpl']->assign('yoururl',$url->render());
+ $GLOBALS['xoopsTpl']->assign('viewemail',$viewemail->render());
+ $GLOBALS['xoopsTpl']->assign('timezone',$timezone->render());
+ $GLOBALS['xoopsTpl']->assign('disclaimer',$disclaim->render());
+ $GLOBALS['xoopsTpl']->assign('agree',$agree->render());
+ $GLOBALS['xoopsTpl']->assign('captcha',$captcha->render());
+ $GLOBALS['xoopsTpl']->assign('op',$op->render());
+ $GLOBALS['xoopsTpl']->assign('fct',$fct->render());
+ $GLOBALS['xoopsTpl']->assign('submit',$submit->render());
+ $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']);
+ $GLOBALS['xoopsTpl']->display('db:xortify_cpanel_signup_form.html');
+ xortify_footer_adminMenu();
+ xoops_cp_footer();
+ exit;
+ } else {
+ $GLOBALS['xoopsTpl']->assign('protocol', $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['protocol']);
+ switch($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['protocol']) {
+ case 'curlserialised':
+ case 'wgetserialised':
+ $GLOBALS['xoopsTpl']->assign('port', $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['xortify_uriserial']);
+ break;
+ case 'curl':
+ case 'json':
+ $GLOBALS['xoopsTpl']->assign('port', $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['xortify_urijson']);
+ break;
+ case 'curlxml':
+ case 'wgetxml':
+ $GLOBALS['xoopsTpl']->assign('port', $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['xortify_urixml']);
+ break;
+ case 'soap':
+ $GLOBALS['xoopsTpl']->assign('port', $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['xortify_urisoap']);
+ break;
+ }
+ $GLOBALS['xoopsTpl']->assign('error', $disclaimer);
+ $GLOBALS['xoopsTpl']->display('db:xortify_cpanel_signup_nocommunication.html');
+ }
+ break;
+ }
+ break;
+ case "log":
+
+ xortify_adminMenu(3, 'index.php?op=log');
+
+ 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":
+
+ xortify_adminMenu(2, 'index.php?op=list&fct=bans');
+
+ if (!$bans = XoopsCache::read('xortify_bans_cache')) {
+ require_once( XOOPS_ROOT_PATH.'/modules/xortify/class/'.$_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['protocol'].'.php' );
+ $func = strtoupper($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['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, $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['xortify_seconds']);
+ XoopsCache::write('xortify_bans_cache_backup', $bans, ($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['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('netaddy'=>$data['network-addy']?$data['network-addy']:' ',
+ 'macaddy'=>$data['mac-addy']?$data['mac-addy']:' ',
+ 'iptype'=>$iptype, 'ipaddy'=>$ipaddy,
+ 'proxyiptype'=>$proxyiptype,'ip'=>$proxyip,
+ 'long' => $data['long']?$data['long']:' ',
+ 'category' =>$data['category'],'comments'=>$data['comments']));
+ }
+ }
+ $hostname = 'xortify.com';
+ switch($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['protocol']) {
+ case 'curlserialised':
+ case 'wgetserialised':
+ $hostname = parse_url($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['xortify_uriserial'], PHP_URL_HOST);
+ break;
+ case 'curl':
+ case 'json':
+ $hostname = parse_url($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['xortify_urijson'], PHP_URL_HOST);
+ break;
+ case 'curlxml':
+ case 'wgetxml':
+ $hostname = parse_url($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['xortify_urixml'], PHP_URL_HOST);
+ break;
+ case 'soap':
+ $hostname = parse_url($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['xortify_urisoap'], PHP_URL_HOST);
+ break;
+ }
+ $GLOBALS['xoopsTpl']->assign('cloudurl', 'http://'.$hostname);
+ $GLOBALS['xoopsTpl']->display('db:xortify_cpanel_bans.html');
+ }
+ break;
+ case "dashboard":
+ default:
+
+ echo xortify_adminMenu(1, 'index.php?op=dashboard');
+
+ $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');
+
+ if ($bans = XoopsCache::read('xortify_bans_cache')) {
+ $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_CLOUDEDBANS."</label>", count($bans['data']), 'Green');
+ }
+
+ if ($result = XoopsCache::read('xortify_cleanup_last')) {
+ $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_WHENCLEANED."</label>", date(_DATESTRING, $result['when']), 'Purple');
+ $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_CLEANINGTOOK."</label>", $result['took'], 'Purple');
+ $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_FILESDELETED."</label>", $result['files'], 'Purple');
+ $indexAdmin->addInfoBoxLine(_XOR_ADMIN_COUNTS, "<label>"._XOR_ADMIN_THEREARE_BYTESSAVED."</label>", $result['size'], 'Purple');
+ }
+
+ $indexAdmin->addInfoBox(_XOR_ADMIN_KEYS);
+ $indexAdmin->addInfoBoxLine(_XOR_ADMIN_KEYS, "<label>"._XOR_ADMIN_INSTANCE_KEY."</label>", XORTIFY_INSTANCE_KEY, (constant('XORTIFY_INSTANCE_KEY')!='00000-00000-00000-00000-00000'?'Green':'Red'));
+
+ echo $indexAdmin->renderIndex();
+
+ break;
+ case "about":
+ echo xortify_adminMenu(5, 'index.php?op=about');
+ $aboutAdmin = new ModuleAdmin();
+ $paypalitemno='XORTIFY299';
+ $aboutAdmin = new ModuleAdmin();
+ $about = $aboutAdmin->renderabout($paypalitemno, false);
+ $donationform = array( 0 => '<form name="donation" id="donation" action="http://www.chronolabs.com.au/modules/xpayment/" method="post" onsubmit="return xoopsFormValidate_donation();">',
+ 1 => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'.constant('_XOR_AM_ABOUT_MAKEDONATE').'</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">Donation Amount</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 AUD</option><option value="10">10.00 AUD</option><option value="20">20.00 AUD</option><option value="40">40.00 AUD</option><option value="60">60.00 AUD</option><option value="80">80.00 AUD</option><option value="90">90.00 AUD</option><option value="100">100.00 AUD</option><option value="200">200.00 AUD</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'._SUBMIT.'" title="'._SUBMIT.'" type="submit"></td></tr></tbody></table>',
+ 2 => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="AUD" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.chronolabs.com.au/modules/donations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.chronolabs.com.au/modules/donations/success.php" type="hidden"></form>', 'D'=>'',
+ 3 => '',
+ 4 => '<!-- Start Form Validation JavaScript //-->
+ <script type="text/javascript">
+ <!--//
+ function xoopsFormValidate_donation() { var myform = window.document.donation;
+ var hasSelected = false; var selectBox = myform.item[A][amount];for (i = 0; i < selectBox.options.length; i++ ) { if (selectBox.options[i].selected == true && selectBox.options[i].value != \'\') { hasSelected = true; break; } }if (!hasSelected) { window.alert("Please enter Donation Amount"); selectBox.focus(); return false; }return true;
+ }
+ //--></script>
+ <!-- End Form Validation JavaScript //-->');
+ $paypalform = array( 0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">',
+ 1 => '<input name="cmd" value="_s-xclick" type="hidden">',
+ 2 => '<input name="hosted_button_id" value="%s" type="hidden">',
+ 3 => '<img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" height="1" border="0" width="1">',
+ 4 => '<input src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="image">',
+ 5 => '</form>');
+ for($key=0;$key<=4;$key++) {
+ switch ($key) {
+ case 2:
+ $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'] . ' - ' . (strlen($GLOBALS['xoopsUser']->getVar('name'))>0?$GLOBALS['xoopsUser']->getVar('name'). ' ['.$GLOBALS['xoopsUser']->getVar('uname').']':$GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module']->getVar('dirname')), strtoupper($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module']->getVar('dirname')). ' '.$_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module']->getVar('name'));
+ break;
+ }
+ }
+
+ $istart = strpos($about, ($paypalform[0]), 1);
+ $iend = strpos($about, ($paypalform[5]), $istart+1)+strlen($paypalform[5])-1;
+ echo (substr($about, 0, $istart-1));
+ echo implode("\n", $donationform);
+ echo (substr($about, $iend+1, strlen($about)-$iend-1));
+ break;
+ }
+
+ xortify_footer_adminMenu();
+ xoops_cp_footer();
+?>
\ No newline at end of file
Added: XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/admin/menu.php
===================================================================
--- XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/admin/menu.php (rev 0)
+++ XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/admin/menu.php 2013-03-01 17:35:01 UTC (rev 11131)
@@ -0,0 +1,61 @@
+<?php
+/*
+ * Prevents Spam, Harvesting, Human Rights Abuse, Captcha Abuse etc.
+ * basic statistic of them in XOOPS Copyright (C) 2012 Simon Roberts
+ * Contact: wishcraft - si...@ch...
+ *
+ * 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 3 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, see <http://www.gnu.org/licenses/>.
+ * See /docs/license.pdf for full license.
+ *
+ * Shouts:- Mamba (www.xoops.org), flipse (www.nlxoops.nl)
+ * Many thanks for your additional work with version 1.01
+ *
+ * Version: 3.10 Final (Stable)
+ * Published: Chronolabs
+ * Download: http://code.google.com/p/chronolabs
+ * This File: menu.php
+ * Description: menu defines for admin
+ * Date: 09/09/2012 19:34 AEST
+ * License: GNU3
+ *
+ */
+$module_handler =& xoops_gethandler('module');
+if (!is_object($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module']))
+ $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module'] = $module_handler->getByDirname('xortify');
+$_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['ImageAdmin'] = $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module']->getInfo('icons32');
+$_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['XortifyImageAdmin'] = $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module']->getInfo('xortify_icons32');
+
+global $adminmenu;
+$adminmenu = array();
+$adminmenu[1]['title'] = _XOR_ADMENU4;
+$adminmenu[1]['icon'] = '../../'.$_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['ImageAdmin'].'/home.png';
+$adminmenu[1]['image'] = '../../'.$_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['ImageAdmin'].'/home.png';
+$adminmenu[1]['link'] = "admin/index.php?op=dashboard";
+$adminmenu[2]['title'] = _XOR_ADMENU1;
+$adminmenu[2]['icon'] = '../../'.$_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['XortifyImageAdmin'].'/current.bans.png';
+$adminmenu[2]['image'] = '../../'.$_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['XortifyImageAdmin'].'/current.bans.png';
+$adminmenu[2]['link'] = "admin/index.php?op=list&fct=bans";
+$adminmenu[3]['title'] = _XOR_ADMENU3;
+$adminmenu[3]['icon'] = '../../'.$_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['XortifyImageAdmin'].'/xortify.log.png';
+$adminmenu[3]['image'] = '../../'.$_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['XortifyImageAdmin'].'/xortify.log.png';
+$adminmenu[3]['link'] = "admin/index.php?op=log";
+$adminmenu[4]['title'] = _XOR_ADMENU2;
+$adminmenu[4]['icon'] = '../../'.$_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['XortifyImageAdmin'].'/access.list.png';
+$adminmenu[4]['image'] = '../../'.$_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['XortifyImageAdmin'].'/access.list.png';
+$adminmenu[4]['link'] = "admin/index.php?op=signup&fct=signup";
+$adminmenu[5]['title'] = _XOR_ADMENU5;
+$adminmenu[5]['icon'] = '../../'.$_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['ImageAdmin'].'/about.png';
+$adminmenu[5]['image'] = '../../'.$_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['ImageAdmin'].'/about.png';
+$adminmenu[5]['link'] = "admin/index.php?op=about";
+?>
\ No newline at end of file
Added: XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth.php
===================================================================
--- XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth.php (rev 0)
+++ XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth.php 2013-03-01 17:35:01 UTC (rev 11131)
@@ -0,0 +1,140 @@
+<?php
+/*
+ * Prevents Spam, Harvesting, Human Rights Abuse, Captcha Abuse etc.
+ * basic statistic of them in XOOPS Copyright (C) 2012 Simon Roberts
+ * Contact: wishcraft - si...@ch...
+ *
+ * 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 3 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, see <http://www.gnu.org/licenses/>.
+ * See /docs/license.pdf for full license.
+ *
+ * Shouts:- Mamba (www.xoops.org), flipse (www.nlxoops.nl)
+ * Many thanks for your additional work with version 1.01
+ *
+ * Version: 3.10 Final (Stable)
+ * Published: Chronolabs
+ * Download: http://code.google.com/p/chronolabs
+ * This File: auth.php
+ * Description: Xortify Authentication Library modeled from Xoops Auth.
+ * Date: 09/09/2012 19:34 AEST
+ * License: GNU3
+ *
+ */
+
+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/4.01a/htdocs/modules/xortify/class/auth/auth_curl.php
===================================================================
--- XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_curl.php (rev 0)
+++ XoopsModules/xortify/releases/4.01a/htdocs/modules/xortify/class/auth/auth_curl.php 2013-03-01 17:35:01 UTC (rev 11131)
@@ -0,0 +1,212 @@
+<?php
+/*
+ * Prevents Spam, Harvesting, Human Rights Abuse, Captcha Abuse etc.
+ * basic statistic of them in XOOPS Copyright (C) 2012 Simon Roberts
+ * Contact: wishcraft - si...@ch...
+ *
+ * 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 3 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, see <http://www.gnu.org/licenses/>.
+ * See /docs/license.pdf for full license.
+ *
+ * Shouts:- Mamba (www.xoops.org), flipse (www.nlxoops.nl)
+ * Many thanks for your additional work with version 1.01
+ *
+ * Version: 3.10 Final (Stable)
+ * Published: Chronolabs
+ * Download: http://code.google.com/p/chronolabs
+ * This File: auth_curl.php
+ * Description: Auth Library with CURL JSON routines for signup and API
+ * Date: 09/09/2012 19:34 AEST
+ * License: GNU3
+ *
+ */
+
+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);
+ }
+}
+
+if (!defined('XORTIFY_CURL_API'))
+ define('XORTIFY_CURL_API', $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['xortify_uricurl']);
+
+if (!defined('XORTIFY_USER_AGENT'))
+ define('XORTIFY_USER_AGENT', sprintf(_MI_XOR_USER_AGENT, _MI_XOR_NAME, _MI_XOR_VERSION, _MI_XOR_RUNTIME, _MI_XOR_MODE));
+
+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_CONNECTTIMEOUT, $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['curl_connecttimeout']);
+ curl_setopt($ch, CURLOPT_TIMEOUT, $_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['moduleConfig']['curl_timeout']);
+ 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)));
+ $...
[truncated message content] |