From: <wis...@us...> - 2014-12-08 20:52:00
|
Revision: 12891 http://sourceforge.net/p/xoops/svn/12891 Author: wishcraft Date: 2014-12-08 20:51:51 +0000 (Mon, 08 Dec 2014) Log Message: ----------- Fixing Trunk Added Paths: ----------- XoopsModules/signed/trunk/modules/signed/admin/ XoopsModules/signed/trunk/modules/signed/admin/about.php XoopsModules/signed/trunk/modules/signed/admin/admin.php XoopsModules/signed/trunk/modules/signed/admin/admin_footer.php XoopsModules/signed/trunk/modules/signed/admin/admin_header.php XoopsModules/signed/trunk/modules/signed/admin/events.php XoopsModules/signed/trunk/modules/signed/admin/index.html XoopsModules/signed/trunk/modules/signed/admin/menu.php XoopsModules/signed/trunk/modules/signed/admin/signatures.php Added: XoopsModules/signed/trunk/modules/signed/admin/about.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/admin/about.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/admin/about.php 2014-12-08 20:51:51 UTC (rev 12891) @@ -0,0 +1,34 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage administration + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + include_once dirname(__FILE__) . '/../../../include/cp_header.php'; + include '../../../class/xoopsformloader.php'; + include_once dirname(__FILE__) . '/admin_header.php'; + xoops_cp_header(); + + $aboutAdmin = new ModuleAdmin(); + + echo $aboutAdmin->addNavigation('about.php'); + echo $aboutAdmin->renderabout('-------------', false); + + include_once dirname(__FILE__) . '/admin_footer.php'; +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/admin/about.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/admin/admin.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/admin/admin.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/admin/admin.php 2014-12-08 20:51:51 UTC (rev 12891) @@ -0,0 +1,77 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage administration + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + include_once dirname(__FILE__) . '/admin_header.php'; + xoops_cp_header(); + + $indexAdmin = new ModuleAdmin(); + + echo $indexAdmin->addNavigation('admin.php'); + $signaturesHandler = xoops_getmodulehandler('signatures', 'signed'); + + $indexAdmin->addInfoBox(_SIGNED_AM_DASHBOARD); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_TOTAL. "</infolabel>", $signaturesHandler->getCount(new Criteria('1', '1')), 'Green'); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_PROGRESS. "</infolabel>", $signaturesHandler->getCount(new Criteria('state', 'progress')), 'Purple'); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_ACTIVE. "</infolabel>", $signaturesHandler->getCount(new Criteria('state', 'active')), 'Blue'); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_INACTIVE. "</infolabel>", $signaturesHandler->getCount(new Criteria('state', 'inactive'))."</infotext>", 'Orange'); + $criteria = new CriteriaCompo(new Criteria('state', 'active')); + $criteria->add(new Criteria('expires', time(), '>=')); + $criteria->add(new Criteria('expires', time() + (3600 * 24 * 7), '<=')); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_EXPIRE_NEXT_WEEK. "</infolabel>", $signaturesHandler->getCount($criteria), 'Red'); + $criteria = new CriteriaCompo(new Criteria('state', 'active')); + $criteria->add(new Criteria('expires', time(), '>=')); + $criteria->add(new Criteria('expires', time() + (3600 * 24 * 14), '<=')); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_EXPIRE_NEXT_FORTNIGHT. "</infolabel>", $signaturesHandler->getCount($criteria), 'Red'); + $criteria = new CriteriaCompo(new Criteria('1', '1')); + $criteria->add(new Criteria('expires', 0, '>')); + $criteria->add(new Criteria('expires', time(), '<=')); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_EXPIRED. "</infolabel>", $signaturesHandler->getCount($criteria), 'Red'); + $criteria = new CriteriaCompo(new Criteria('1', '1')); + $criteria->add(new Criteria('issued', time(), '<=')); + $criteria->add(new Criteria('issued', time() - (3600 * 24 * 7), '>=')); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_ISSUED_LAST_WEEK. "</infolabel>", $signaturesHandler->getCount($criteria), 'Green'); + $criteria = new CriteriaCompo(new Criteria('1', '1')); + $criteria->add(new Criteria('saved', time(), '<=')); + $criteria->add(new Criteria('saved', time() - (3600 * 24 * 7), '>=')); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_CREATED_LAST_WEEK. "</infolabel>", $signaturesHandler->getCount($criteria), 'Cyan'); + $criteria = new CriteriaCompo(new Criteria('1', '1')); + $criteria->add(new Criteria('used', time(), '<=')); + $criteria->add(new Criteria('used', time() - (3600 * 24 * 7), '>=')); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_ACCESSED_LAST_WEEK. "</infolabel>", $signaturesHandler->getCount($criteria), 'Black'); + $criteria = new CriteriaCompo(new Criteria('1', '1')); + $criteria->add(new Criteria('issued', time(), '<=')); + $criteria->add(new Criteria('issued', time() - (3600 * 24 * 14), '>=')); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_ISSUED_LAST_FORTNIGHT. "</infolabel>", $signaturesHandler->getCount($criteria), 'Green'); + $criteria = new CriteriaCompo(new Criteria('1', '1')); + $criteria->add(new Criteria('saved', time(), '<=')); + $criteria->add(new Criteria('saved', time() - (3600 * 24 * 14), '>=')); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_CREATED_LAST_FORTNIGHT. "</infolabel>", $signaturesHandler->getCount($criteria), 'Cyan'); + $criteria = new CriteriaCompo(new Criteria('1', '1')); + $criteria->add(new Criteria('used', time(), '<=')); + $criteria->add(new Criteria('used', time() - (3600 * 24 * 14), '>=')); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_ACCESSED_LAST_FORTNIGHT. "</infolabel>", $signaturesHandler->getCount($criteria), 'Black'); + + echo $indexAdmin->renderIndex(); + + include_once dirname(__FILE__) . '/admin_footer.php'; + +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/admin/admin.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/admin/admin_footer.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/admin/admin_footer.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/admin/admin_footer.php 2014-12-08 20:51:51 UTC (rev 12891) @@ -0,0 +1,26 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage administration + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + echo "<div class='adminfooter'>\n" . _SIGNED_AM_ADMIN_FOOTER . "\n" ."</div>"; + + xoops_cp_footer(); +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/admin/admin_footer.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/admin/admin_header.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/admin/admin_header.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/admin/admin_header.php 2014-12-08 20:51:51 UTC (rev 12891) @@ -0,0 +1,65 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage administration + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + + $path = dirname(dirname(dirname(dirname(__FILE__)))); + include_once $path . '/mainfile.php'; + include_once $path . '/include/cp_functions.php'; + require_once $path . '/include/cp_header.php'; + + global $xoopsModule; + $thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname'); + + // Load language files + xoops_loadLanguage('admin', $thisModuleDir); + xoops_loadLanguage('modinfo', $thisModuleDir); + xoops_loadLanguage('main', $thisModuleDir); + + xoops_load('pagenav'); + + $pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); + $pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); + $pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); + + include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); + + if ($xoopsUser) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar('mid'), $xoopsUser->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } + } else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); + } + + if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $xoopsTpl = new XoopsTpl(); + } + + if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { + include_once XOOPS_ROOT_PATH . '/class/template.php'; + $GLOBALS['xoopsTpl'] = new XoopsTpl(); + } +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/admin/admin_header.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/admin/events.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/admin/events.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/admin/events.php 2014-12-08 20:51:51 UTC (rev 12891) @@ -0,0 +1,39 @@ +<?php +/** + * Private message + * + * 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 pm + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: prune.php 12593 2014-06-14 16:04:02Z beckmi $ + */ + + include_once dirname(__FILE__) . '/admin_header.php'; + xoops_cp_header(); + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation('events.php'); + + $start = intval(isset($_REQUEST['start']) ? $_REQUEST['start'] : "0"); + $limit = intval(isset($_REQUEST['limit']) ? $_REQUEST['limit'] : "42"); + + $eventsHandler = xoops_getmodulehandler('events', 'signed'); + $pageNav = new XoopsPageNav($eventsHandler->getCount(new Criteria("1","1")), $limit, $start, 'start', 'limit='.$limit); + + $GLOBALS['xoopsTpl']->assign('pagenav', $pageNav->renderNav(5)); + $GLOBALS['xoopsTpl']->append('signatures', $eventsHandler->getAdminTabled($start, $limit)); + $GLOBALS['xoopsTpl']->display($GLOBALS['xoops']->path('/modules/signed/templates/admin/signed_events.html')); + + include_once dirname(__FILE__) . '/admin_footer.php'; + +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/admin/events.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/admin/index.html =================================================================== --- XoopsModules/signed/trunk/modules/signed/admin/index.html (rev 0) +++ XoopsModules/signed/trunk/modules/signed/admin/index.html 2014-12-08 20:51:51 UTC (rev 12891) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/admin/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/admin/menu.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/admin/menu.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/admin/menu.php 2014-12-08 20:51:51 UTC (rev 12891) @@ -0,0 +1,58 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage administration + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + $path = dirname(dirname(dirname(dirname(__FILE__)))); + include_once $path . '/mainfile.php'; + + $dirname = basename(dirname(dirname(__FILE__))); + $module_handler = xoops_gethandler('module'); + $module = $module_handler->getByDirname($dirname); + $pathIcon32 = $module->getInfo('icons32'); + $pathModuleAdmin = $module->getInfo('dirmoduleadmin'); + $pathLanguage = $path . $pathModuleAdmin; + + if (!file_exists($fileinc = $pathLanguage . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/' . 'main.php')) { + $fileinc = $pathLanguage . '/language/english/main.php'; + } + + include_once $fileinc; + + $adminmenu = array(); + + $i = 1; + $adminmenu[$i]['title'] = _SIGNED_MI_INDEX; + $adminmenu[$i]['link'] = "admin/admin.php"; + $adminmenu[$i]['icon'] = $pathIcon32.'/security.png' ; + ++$i; + $adminmenu[$i]['title'] = _SIGNED_MI_SIGNATURES; + $adminmenu[$i]['link'] = "admin/signatures.php"; + $adminmenu[$i]['icon'] = $pathIcon32.'/identity.png' ; + ++$i; + $adminmenu[$i]['title'] = _SIGNED_MI_EVENTS; + $adminmenu[$i]['link'] = "admin/events.php"; + $adminmenu[$i]['icon'] = $pathIcon32.'/event.png' ; + ++$i; + $adminmenu[$i]['title'] = _SIGNED_MI_ABOUT; + $adminmenu[$i]['link'] = 'admin/about.php'; + $adminmenu[$i]['icon'] = $pathIcon32.'/about.png'; + +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/admin/menu.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/admin/signatures.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/admin/signatures.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/admin/signatures.php 2014-12-08 20:51:51 UTC (rev 12891) @@ -0,0 +1,41 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage administration + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + include_once dirname(__FILE__) . '/admin_header.php'; + xoops_cp_header(); + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation('signatures.php'); + + $start = intval(isset($_REQUEST['start']) ? $_REQUEST['start'] : "0"); + $limit = intval(isset($_REQUEST['limit']) ? $_REQUEST['limit'] : "42"); + + $signatureHandler = xoops_getmodulehandler('signatures', 'signed'); + $pageNav = new XoopsPageNav($signatureHandler->getCount(new Criteria("1","1")), $limit, $start, 'start', 'limit='.$limit); + + $GLOBALS['xoopsTpl']->assign('pagenav', $pageNav->renderNav(5)); + $GLOBALS['xoopsTpl']->append('signatures', $signatureHandler->getAdminTabled($start, $limit)); + $GLOBALS['xoopsTpl']->display($GLOBALS['xoops']->path('/modules/signed/templates/admin/signed_signatures.html')); + + include_once dirname(__FILE__) . '/admin_footer.php'; + +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/admin/signatures.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property |
From: <wis...@us...> - 2014-12-08 20:53:53
|
Revision: 12892 http://sourceforge.net/p/xoops/svn/12892 Author: wishcraft Date: 2014-12-08 20:53:40 +0000 (Mon, 08 Dec 2014) Log Message: ----------- Fixing Trunk Added Paths: ----------- XoopsModules/signed/trunk/modules/signed/api/ XoopsModules/signed/trunk/modules/signed/api/banned/ XoopsModules/signed/trunk/modules/signed/api/banned/.htaccess XoopsModules/signed/trunk/modules/signed/api/banned/index.php XoopsModules/signed/trunk/modules/signed/api/classes/ XoopsModules/signed/trunk/modules/signed/api/classes/.htaccess XoopsModules/signed/trunk/modules/signed/api/classes/index.php XoopsModules/signed/trunk/modules/signed/api/descriptions/ XoopsModules/signed/trunk/modules/signed/api/descriptions/.htaccess XoopsModules/signed/trunk/modules/signed/api/descriptions/index.php XoopsModules/signed/trunk/modules/signed/api/enumerators/ XoopsModules/signed/trunk/modules/signed/api/enumerators/.htaccess XoopsModules/signed/trunk/modules/signed/api/enumerators/index.php XoopsModules/signed/trunk/modules/signed/api/fields/ XoopsModules/signed/trunk/modules/signed/api/fields/.htaccess XoopsModules/signed/trunk/modules/signed/api/fields/index.php XoopsModules/signed/trunk/modules/signed/api/fieldtypes/ XoopsModules/signed/trunk/modules/signed/api/fieldtypes/.htaccess XoopsModules/signed/trunk/modules/signed/api/fieldtypes/index.php XoopsModules/signed/trunk/modules/signed/api/identifications/ XoopsModules/signed/trunk/modules/signed/api/identifications/.htaccess XoopsModules/signed/trunk/modules/signed/api/identifications/index.php XoopsModules/signed/trunk/modules/signed/api/index.php XoopsModules/signed/trunk/modules/signed/api/language/ XoopsModules/signed/trunk/modules/signed/api/language/.htaccess XoopsModules/signed/trunk/modules/signed/api/language/index.php XoopsModules/signed/trunk/modules/signed/api/languages/ XoopsModules/signed/trunk/modules/signed/api/languages/.htaccess XoopsModules/signed/trunk/modules/signed/api/languages/index.php XoopsModules/signed/trunk/modules/signed/api/processes/ XoopsModules/signed/trunk/modules/signed/api/processes/.htaccess XoopsModules/signed/trunk/modules/signed/api/processes/index.php XoopsModules/signed/trunk/modules/signed/api/prompts/ XoopsModules/signed/trunk/modules/signed/api/prompts/.htaccess XoopsModules/signed/trunk/modules/signed/api/prompts/index.php XoopsModules/signed/trunk/modules/signed/api/providers/ XoopsModules/signed/trunk/modules/signed/api/providers/.htaccess XoopsModules/signed/trunk/modules/signed/api/providers/index.php XoopsModules/signed/trunk/modules/signed/api/request/ XoopsModules/signed/trunk/modules/signed/api/request/.htaccess XoopsModules/signed/trunk/modules/signed/api/request/index.php XoopsModules/signed/trunk/modules/signed/api/sign/ XoopsModules/signed/trunk/modules/signed/api/sign/.htaccess XoopsModules/signed/trunk/modules/signed/api/sign/index.php XoopsModules/signed/trunk/modules/signed/api/signatures/ XoopsModules/signed/trunk/modules/signed/api/signatures/.htaccess XoopsModules/signed/trunk/modules/signed/api/signatures/index.php XoopsModules/signed/trunk/modules/signed/api/sites/ XoopsModules/signed/trunk/modules/signed/api/sites/.htaccess XoopsModules/signed/trunk/modules/signed/api/sites/index.php XoopsModules/signed/trunk/modules/signed/api/states/ XoopsModules/signed/trunk/modules/signed/api/states/.htaccess XoopsModules/signed/trunk/modules/signed/api/states/index.php XoopsModules/signed/trunk/modules/signed/api/validate.php XoopsModules/signed/trunk/modules/signed/api/validations/ XoopsModules/signed/trunk/modules/signed/api/validations/.htaccess XoopsModules/signed/trunk/modules/signed/api/validations/index.php XoopsModules/signed/trunk/modules/signed/api/verification/ XoopsModules/signed/trunk/modules/signed/api/verification/.htaccess XoopsModules/signed/trunk/modules/signed/api/verification/index.php XoopsModules/signed/trunk/modules/signed/api/verify/ XoopsModules/signed/trunk/modules/signed/api/verify/.htaccess XoopsModules/signed/trunk/modules/signed/api/verify/index.php Added: XoopsModules/signed/trunk/modules/signed/api/banned/.htaccess =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/banned/.htaccess (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/banned/.htaccess 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,6 @@ +<IfModule mod_rewrite.c> + + RewriteEngine On + RewriteRule ^$ index.php + +</IfModule> Property changes on: XoopsModules/signed/trunk/modules/signed/api/banned/.htaccess ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/banned/index.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/banned/index.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/banned/index.php 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,44 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage api + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + // Enables API Runtime Constant + define('_SIGNED_EVENT_SYSTEM', 'api'); + define('_SIGNED_EVENT_TYPE', basename(dirname(__FILE__))); + + define('_SIGNED_API_FUNCTION', basename(dirname(__FILE__))); + + require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'common.php'; + require dirname(dirname(__FILE__)) . _DS_ . 'validate.php'; + + // Checks if API Function is Enabled + if (!in_array(basename(dirname(__FILE__)), $GLOBALS['api']->callKeys())) { + header("Location: " . _URL_ROOT); + exit(0); + } + + if (function_exists('http_response_code')) + http_response_code(200); + echo $GLOBALS['api']->format(array('success'=> true, 'banned' => array('hostname' => signedSecurity::getInstance()->getBannedHostnames(), 'ip' => signedSecurity::getInstance()->getBannedIP()), 'when' => time())); + @$GLOBALS['logger']->logPolling('default', basename(dirname(__FILE__)), array('server' => $_SERVER, 'request' => $_REQUEST)); + exit(0); + +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/api/banned/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/classes/.htaccess =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/classes/.htaccess (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/classes/.htaccess 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,6 @@ +<IfModule mod_rewrite.c> + + RewriteEngine On + RewriteRule ^$ index.php + +</IfModule> Property changes on: XoopsModules/signed/trunk/modules/signed/api/classes/.htaccess ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/classes/index.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/classes/index.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/classes/index.php 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,50 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage api + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + // Enables API Runtime Constant + define('_SIGNED_EVENT_SYSTEM', 'api'); + define('_SIGNED_EVENT_TYPE', basename(dirname(__FILE__))); + define('_SIGNED_API_FUNCTION', basename(dirname(__FILE__))); + + require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'common.php'; + require dirname(dirname(__FILE__)) . _DS_ . 'validate.php'; + + // Checks if API Function is Enabled + if (!in_array(basename(dirname(__FILE__)), $GLOBALS['api']->callKeys())) { + header("Location: " . _URL_ROOT); + exit(0); + } + + if (isset($_GET['language'])&&!empty($_GET['language'])) { + if (function_exists('http_response_code')) + http_response_code(200); + echo $GLOBALS['api']->format(array('success'=> true, 'classes' => signedProcesses::getInstance()->getClassArray(), 'when' => time())); + @$GLOBALS['logger']->logPolling('default', basename(dirname(__FILE__)), array('server' => $_SERVER, 'request' => $_REQUEST)); + exit(0); + + } else { + if (function_exists('http_response_code')) + http_response_code(400); + echo $GLOBALS['api']->format(array('success'=> false, 'error'=> 'The corresponding field(s): '.implode(', ', array('language')) . ' ~ was not specified!', 'error-code' => '135')); + exit(0); + } +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/api/classes/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/descriptions/.htaccess =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/descriptions/.htaccess (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/descriptions/.htaccess 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,6 @@ +<IfModule mod_rewrite.c> + + RewriteEngine On + RewriteRule ^$ index.php + +</IfModule> Property changes on: XoopsModules/signed/trunk/modules/signed/api/descriptions/.htaccess ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/descriptions/index.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/descriptions/index.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/descriptions/index.php 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,50 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage api + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + // Enables API Runtime Constant + define('_SIGNED_EVENT_SYSTEM', 'api'); + define('_SIGNED_EVENT_TYPE', basename(dirname(__FILE__))); + define('_SIGNED_API_FUNCTION', basename(dirname(__FILE__))); + + require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'common.php'; + require dirname(dirname(__FILE__)) . _DS_ . 'validate.php'; + + // Checks if API Function is Enabled + if (!in_array(basename(dirname(__FILE__)), $GLOBALS['api']->callKeys())) { + header("Location: " . _URL_ROOT); + exit(0); + } + + if (isset($_GET['language'])&&!empty($_GET['language'])) { + if (function_exists('http_response_code')) + http_response_code(200); + echo $GLOBALS['api']->format(array('success'=> true, 'descriptions' => signedProcesses::getInstance()->getFieldDescriptions(), 'when' => time())); + @$GLOBALS['logger']->logPolling('default', basename(dirname(__FILE__)), array('server' => $_SERVER, 'request' => $_REQUEST)); + exit(0); + + } else { + if (function_exists('http_response_code')) + http_response_code(400); + echo $GLOBALS['api']->format(array('success'=> false, 'error'=> 'The corresponding field(s): '.implode(', ', array('language')) . ' ~ was not specified!', 'error-code' => '135')); + exit(0); + } +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/api/descriptions/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/enumerators/.htaccess =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/enumerators/.htaccess (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/enumerators/.htaccess 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,6 @@ +<IfModule mod_rewrite.c> + + RewriteEngine On + RewriteRule ^$ index.php + +</IfModule> Property changes on: XoopsModules/signed/trunk/modules/signed/api/enumerators/.htaccess ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/enumerators/index.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/enumerators/index.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/enumerators/index.php 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,49 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage api + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + // Enables API Runtime Constant + define('_SIGNED_API_FUNCTION', basename(dirname(__FILE__))); + define('_SIGNED_EVENT_SYSTEM', 'api'); + define('_SIGNED_EVENT_TYPE', basename(dirname(__FILE__))); + require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'common.php'; + require dirname(dirname(__FILE__)) . _DS_ . 'validate.php'; + + // Checks if API Function is Enabled + if (!in_array(basename(dirname(__FILE__)), $GLOBALS['api']->callKeys())) { + header("Location: " . _URL_ROOT); + exit(0); + } + + if (isset($_GET['language'])&&!empty($_GET['language'])) { + if (function_exists('http_response_code')) + http_response_code(200); + echo $GLOBALS['api']->format(array('success'=> true, 'enumerators' => signedProcesses::getInstance()->getEnumeratorsArray(), 'when' => time())); + @$GLOBALS['logger']->logPolling('default', basename(dirname(__FILE__)), array('server' => $_SERVER, 'request' => $_REQUEST)); + exit(0); + + } else { + if (function_exists('http_response_code')) + http_response_code(400); + echo $GLOBALS['api']->format(array('success'=> false, 'error'=> 'The corresponding field(s): '.implode(', ', array('language')) . ' ~ was not specified!', 'error-code' => '135')); + exit(0); + } +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/api/enumerators/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/fields/.htaccess =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/fields/.htaccess (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/fields/.htaccess 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,6 @@ +<IfModule mod_rewrite.c> + + RewriteEngine On + RewriteRule ^$ index.php + +</IfModule> Property changes on: XoopsModules/signed/trunk/modules/signed/api/fields/.htaccess ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/fields/index.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/fields/index.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/fields/index.php 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,49 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage api + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + // Enables API Runtime Constant + define('_SIGNED_API_FUNCTION', basename(dirname(__FILE__))); + define('_SIGNED_EVENT_SYSTEM', 'api'); + define('_SIGNED_EVENT_TYPE', basename(dirname(__FILE__))); + require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'common.php'; + require dirname(dirname(__FILE__)) . _DS_ . 'validate.php'; + + // Checks if API Function is Enabled + if (!in_array(basename(dirname(__FILE__)), $GLOBALS['api']->callKeys())) { + header("Location: " . _URL_ROOT); + exit(0); + } + + if (isset($_GET['language'])&&!empty($_GET['language'])) { + if (function_exists('http_response_code')) + http_response_code(200); + echo $GLOBALS['api']->format(array('success'=> true, 'fields' => signedProcesses::getInstance()->getFieldsArray(), 'when' => time())); + @$GLOBALS['logger']->logPolling('default', basename(dirname(__FILE__)), array('server' => $_SERVER, 'request' => $_REQUEST)); + exit(0); + + } else { + if (function_exists('http_response_code')) + http_response_code(400); + echo $GLOBALS['api']->format(array('success'=> false, 'error'=> 'The corresponding field(s): '.implode(', ', array('language')) . ' ~ was not specified!', 'error-code' => '135')); + exit(0); + } +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/api/fields/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/fieldtypes/.htaccess =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/fieldtypes/.htaccess (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/fieldtypes/.htaccess 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,6 @@ +<IfModule mod_rewrite.c> + + RewriteEngine On + RewriteRule ^$ index.php + +</IfModule> Property changes on: XoopsModules/signed/trunk/modules/signed/api/fieldtypes/.htaccess ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/fieldtypes/index.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/fieldtypes/index.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/fieldtypes/index.php 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,49 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage api + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + // Enables API Runtime Constant + define('_SIGNED_API_FUNCTION', basename(dirname(__FILE__))); + define('_SIGNED_EVENT_SYSTEM', 'api'); + define('_SIGNED_EVENT_TYPE', basename(dirname(__FILE__))); + require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'common.php'; + require dirname(dirname(__FILE__)) . _DS_ . 'validate.php'; + + // Checks if API Function is Enabled + if (!in_array(basename(dirname(__FILE__)), $GLOBALS['api']->callKeys())) { + header("Location: " . _URL_ROOT); + exit(0); + } + + if (isset($_GET['language'])&&!empty($_GET['language'])) { + if (function_exists('http_response_code')) + http_response_code(200); + echo $GLOBALS['api']->format(array('success'=> true, 'fieldtypes' => signedProcesses::getInstance()->getFieldnamesArray(), 'when' => time())); + @$GLOBALS['logger']->logPolling('default', basename(dirname(__FILE__)), array('server' => $_SERVER, 'request' => $_REQUEST)); + exit(0); + + } else { + if (function_exists('http_response_code')) + http_response_code(400); + echo $GLOBALS['api']->format(array('success'=> false, 'error'=> 'The corresponding field(s): '.implode(', ', array('language')) . ' ~ was not specified!', 'error-code' => '135')); + exit(0); + } +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/api/fieldtypes/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/identifications/.htaccess =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/identifications/.htaccess (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/identifications/.htaccess 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,6 @@ +<IfModule mod_rewrite.c> + + RewriteEngine On + RewriteRule ^$ index.php + +</IfModule> Property changes on: XoopsModules/signed/trunk/modules/signed/api/identifications/.htaccess ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/identifications/index.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/identifications/index.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/identifications/index.php 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,49 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage api + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + // Enables API Runtime Constant + define('_SIGNED_API_FUNCTION', basename(dirname(__FILE__))); + define('_SIGNED_EVENT_SYSTEM', 'api'); + define('_SIGNED_EVENT_TYPE', basename(dirname(__FILE__))); + require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'common.php'; + require dirname(dirname(__FILE__)) . _DS_ . 'validate.php'; + + // Checks if API Function is Enabled + if (!in_array(basename(dirname(__FILE__)), $GLOBALS['api']->callKeys())) { + header("Location: " . _URL_ROOT); + exit(0); + } + + if (isset($_GET['language'])&&!empty($_GET['language'])) { + if (function_exists('http_response_code')) + http_response_code(200); + echo $GLOBALS['api']->format(array('success'=> true, 'identifications' => signedProcesses::getInstance()->getIdentificationsArray(), 'when' => time())); + @$GLOBALS['logger']->logPolling('default', basename(dirname(__FILE__)), array('server' => $_SERVER, 'request' => $_REQUEST)); + exit(0); + + } else { + if (function_exists('http_response_code')) + http_response_code(400); + echo $GLOBALS['api']->format(array('success'=> false, 'error'=> 'The corresponding field(s): '.implode(', ', array('language')) . ' ~ was not specified!', 'error-code' => '135')); + exit(0); + } +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/api/identifications/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/index.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/index.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/index.php 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,29 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage api + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + +define('_SIGNED_EVENT_SYSTEM', 'api'); +define('_SIGNED_EVENT_TYPE', 'help'); +require dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'header.php'; +require dirname(__FILE__) . _DS_ . 'validate.php'; +require _PATH_TEMPLATES . _DS_ . 'common' . _DS_ . 'api.php'; +require dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'footer.php'; +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/api/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/language/.htaccess =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/language/.htaccess (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/language/.htaccess 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,6 @@ +<IfModule mod_rewrite.c> + + RewriteEngine On + RewriteRule ^$ index.php + +</IfModule> Property changes on: XoopsModules/signed/trunk/modules/signed/api/language/.htaccess ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/language/index.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/language/index.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/language/index.php 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,41 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage api + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + // Enables API Runtime Constant + define('_SIGNED_API_FUNCTION', basename(dirname(__FILE__))); + define('_SIGNED_EVENT_SYSTEM', 'api'); + define('_SIGNED_EVENT_TYPE', basename(dirname(__FILE__))); + require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'common.php'; + require dirname(dirname(__FILE__)) . _DS_ . 'validate.php'; + + // Checks if API Function is Enabled + if (!in_array(basename(dirname(__FILE__)), $GLOBALS['api']->callKeys())) { + header("Location: " . _URL_ROOT); + exit(0); + } + + if (function_exists('http_response_code')) + http_response_code(200); + echo $GLOBALS['api']->format(array('success'=> true, 'constants' => signedProcesses::getInstance()->getLanguageArray(), 'when' => time())); + @$GLOBALS['logger']->logPolling('default', basename(dirname(__FILE__)), array('server' => $_SERVER, 'request' => $_REQUEST)); + exit(0); +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/api/language/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/languages/.htaccess =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/languages/.htaccess (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/languages/.htaccess 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,6 @@ +<IfModule mod_rewrite.c> + + RewriteEngine On + RewriteRule ^$ index.php + +</IfModule> Property changes on: XoopsModules/signed/trunk/modules/signed/api/languages/.htaccess ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/languages/index.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/languages/index.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/languages/index.php 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,41 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage api + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + // Enables API Runtime Constant + define('_SIGNED_API_FUNCTION', basename(dirname(__FILE__))); + define('_SIGNED_EVENT_SYSTEM', 'api'); + define('_SIGNED_EVENT_TYPE', basename(dirname(__FILE__))); + require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'common.php'; + require dirname(dirname(__FILE__)) . _DS_ . 'validate.php'; + + // Checks if API Function is Enabled + if (!in_array(basename(dirname(__FILE__)), $GLOBALS['api']->callKeys())) { + header("Location: " . _URL_ROOT); + exit(0); + } + + if (function_exists('http_response_code')) + http_response_code(200); + echo $GLOBALS['api']->format(array('success'=> true, 'languages' => signedProcesses::getInstance()->getLanguages(), 'when' => time())); + @$GLOBALS['logger']->logPolling('default', basename(dirname(__FILE__)), array('server' => $_SERVER, 'request' => $_REQUEST)); + exit(0); +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/api/languages/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/processes/.htaccess =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/processes/.htaccess (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/processes/.htaccess 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,6 @@ +<IfModule mod_rewrite.c> + + RewriteEngine On + RewriteRule ^$ index.php + +</IfModule> Property changes on: XoopsModules/signed/trunk/modules/signed/api/processes/.htaccess ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/processes/index.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/processes/index.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/processes/index.php 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,49 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage api + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + // Enables API Runtime Constant + define('_SIGNED_API_FUNCTION', basename(dirname(__FILE__))); + define('_SIGNED_EVENT_SYSTEM', 'api'); + define('_SIGNED_EVENT_TYPE', basename(dirname(__FILE__))); + require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'common.php'; + require dirname(dirname(__FILE__)) . _DS_ . 'validate.php'; + + // Checks if API Function is Enabled + if (!in_array(basename(dirname(__FILE__)), $GLOBALS['api']->callKeys())) { + header("Location: " . _URL_ROOT); + exit(0); + } + + if (isset($_GET['language'])&&!empty($_GET['language'])) { + if (function_exists('http_response_code')) + http_response_code(200); + echo $GLOBALS['api']->format(array('success'=> true, 'processes' => signedProcesses::getInstance()->getProcessesArray(), 'when' => time())); + @$GLOBALS['logger']->logPolling('default', basename(dirname(__FILE__)), array('server' => $_SERVER, 'request' => $_REQUEST)); + exit(0); + + } else { + if (function_exists('http_response_code')) + http_response_code(400); + echo $GLOBALS['api']->format(array('success'=> false, 'error'=> 'The corresponding field(s): '.implode(', ', array('language')) . ' ~ was not specified!', 'error-code' => '135')); + exit(0); + } +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/api/processes/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/prompts/.htaccess =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/prompts/.htaccess (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/prompts/.htaccess 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,6 @@ +<IfModule mod_rewrite.c> + + RewriteEngine On + RewriteRule ^$ index.php + +</IfModule> Property changes on: XoopsModules/signed/trunk/modules/signed/api/prompts/.htaccess ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/prompts/index.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/prompts/index.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/prompts/index.php 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,49 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage api + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + // Enables API Runtime Constant + define('_SIGNED_API_FUNCTION', basename(dirname(__FILE__))); + define('_SIGNED_EVENT_SYSTEM', 'api'); + define('_SIGNED_EVENT_TYPE', basename(dirname(__FILE__))); + require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'common.php'; + require dirname(dirname(__FILE__)) . _DS_ . 'validate.php'; + + // Checks if API Function is Enabled + if (!in_array(basename(dirname(__FILE__)), $GLOBALS['api']->callKeys())) { + header("Location: " . _URL_ROOT); + exit(0); + } + + if (isset($_GET['language'])&&!empty($_GET['language'])) { + if (function_exists('http_response_code')) + http_response_code(200); + echo $GLOBALS['api']->format(array('success'=> true, 'prompts' => signedProcesses::getInstance()->getPromptsArray(), 'when' => time())); + @$GLOBALS['logger']->logPolling('default', basename(dirname(__FILE__)), array('server' => $_SERVER, 'request' => $_REQUEST)); + exit(0); + + } else { + if (function_exists('http_response_code')) + http_response_code(400); + echo $GLOBALS['api']->format(array('success'=> false, 'error'=> 'The corresponding field(s): '.implode(', ', array('language')) . ' ~ was not specified!', 'error-code' => '135')); + exit(0); + } +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/api/prompts/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/providers/.htaccess =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/providers/.htaccess (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/providers/.htaccess 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,6 @@ +<IfModule mod_rewrite.c> + + RewriteEngine On + RewriteRule ^$ index.php + +</IfModule> Property changes on: XoopsModules/signed/trunk/modules/signed/api/providers/.htaccess ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/providers/index.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/providers/index.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/providers/index.php 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,49 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage api + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + // Enables API Runtime Constant + define('_SIGNED_API_FUNCTION', basename(dirname(__FILE__))); + define('_SIGNED_EVENT_SYSTEM', 'api'); + define('_SIGNED_EVENT_TYPE', basename(dirname(__FILE__))); + require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'common.php'; + require dirname(dirname(__FILE__)) . _DS_ . 'validate.php'; + + // Checks if API Function is Enabled + if (!in_array(basename(dirname(__FILE__)), $GLOBALS['api']->callKeys())) { + header("Location: " . _URL_ROOT); + exit(0); + } + + if (isset($_GET['language'])&&!empty($_GET['language'])) { + if (function_exists('http_response_code')) + http_response_code(200); + echo $GLOBALS['api']->format(array('success'=> true, 'providers' => signedProcesses::getInstance()->getProvidedArray(), 'when' => time())); + @$GLOBALS['logger']->logPolling('default', basename(dirname(__FILE__)), array('server' => $_SERVER, 'request' => $_REQUEST)); + exit(0); + + } else { + if (function_exists('http_response_code')) + http_response_code(400); + echo $GLOBALS['api']->format(array('success'=> false, 'error'=> 'The corresponding field(s): '.implode(', ', array('language')) . ' ~ was not specified!', 'error-code' => '135')); + exit(0); + } +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/api/providers/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/request/.htaccess =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/request/.htaccess (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/request/.htaccess 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,6 @@ +<IfModule mod_rewrite.c> + + RewriteEngine On + RewriteRule ^$ index.php + +</IfModule> Property changes on: XoopsModules/signed/trunk/modules/signed/api/request/.htaccess ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/api/request/index.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/request/index.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/api/request/index.php 2014-12-08 20:53:40 UTC (rev 12892) @@ -0,0 +1,181 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage api + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + // Enables API Runtime Constant + define('_SIGNED_API_FUNCTION', basename(dirname(__FILE__))); + define('_SIGNED_EVENT_SYSTEM', 'api'); + define('_SIGNED_EVENT_TYPE', basename(dirname(__FILE__))); + + require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'common.php'; + require dirname(dirname(__FILE__)) . _DS_ . 'validate.php'; + + // Checks if API Function is Enabled + if (!in_array(basename(dirname(__FILE__)), $GLOBALS['api']->callKeys())) { + header("Location: " . _URL_ROOT); + exit(0); + } + + foreach($_REQUEST as $field => $value) { + if (!empty($value)||strlen(trim($value))!=0) + $data[$field] = $value; + } + + $GLOBALS['io'] = signedStorage::getInstance(_SIGNED_RESOURCES_STORAGE); + + $states = signedProcesses::getInstance()->getRequestStatesArray(); + $fields = signedProcesses::getInstance()->getFieldsArray(); + $identifications = signedProcesses::getInstance()->getIdentificationsArray(); + $signatures = signedProcesses::getInstance()->getSignatures(); + + if (signedAPI::getInstance()->verifyAPIFields(basename(dirname(__FILE__)), $data)==true) { + $servicekey = signedSecurity::getInstance()->extractServiceKey($data['code'], $data['certificate'], $data['verification-key']); + if (signedSecurity::getInstance()->getHostCode()==$servicekey) { + if ($signature = signedCiphers::getInstance()->getSignature($data['serial-number'], $data['code'], $data['certificate'], $data['any-name'], $data['any-email'], $data['any-date'], true)) { + $request = $GLOBALS['io']->load(_PATH_PATHWAYS_REQUEST, $signature['serial-number']); + $type = $signature['signature']['type']; + if ($request['sent']!=0 || $request['sent']<time()) { + if (function_exists('http_response_code')) + http_response_code(400); + echo $GLOBALS['api']->format(array('success'=> false, 'error'=> 'The corresponding request has been sent to the client, this means until it is resolved you will be not be able to request anymore changes to their signature!', 'error-code' => '302')); + exit(0); + } + if (!in_array($data['type-key'], $types = array_merge(array_key($identifications[$type]), array_key($signatures)))) { + if (function_exists('http_response_code')) + http_response_code(400); + echo $GLOBALS['api']->format(array('success'=> false, 'error'=> 'The corresponding \'type-key\' is not found ~ the only available options for this signature are: '.implode(', ', $types) . '!', 'error-code' => '303')); + exit(0); + } + if (!in_array($data['request-code'], array_key($states))) { + if (function_exists('http_response_code')) + http_response_code(400); + echo $GLOBALS['api']->format(array('success'=> false, 'error'=> 'The corresponding \'request-code\' is not found ~ the only available options for this signature are: '.implode(', ', array_key($states)) . '!', 'error-code' => '304')); + exit(0); + } + if (in_array($data['type-key'], array_key($identifications[$type]))) + { + $clause = 'identification'; + } else { + $clause = $data['type-key']; + } + foreach($data['fields'] as $key => $field) { + if (!in_array($field, array_key($fields[$clause]))) { + unset($data['fields'][$key]); + } + } + foreach($data['fields'] as $key => $field) { + if (in_array($data['type-key'], array_key($identifications[$type]))) + { + $request['request'][$type][$clause][$data['type-key']][$field] = $data['request-code']; + } else { + $request['request'][$type][$clause][$field] = $data['request-code']; + } + } + if (in_array($data['type-key'], array_key($identifications[$type]))) + { + $request['fields'][$data['type-key']] = array_keys($request['request'][$type][$clause][$data['type-key']][$field]); + } else { + $request['fields'][$clause] = array_keys($request['request'][$type][$clause][$field]); + } + if (isset($data['callback-url'])) { + $request['callback']['action'] = true; + $request['callback'][md5($data['callback-url'])]['url'] = $data['callback-url']; + $request['callback'][md5($data['callback-url'])]['fields']['signature-package'] = $data['signature-package-field']; + $request['callback'][md5($data['callback-url'])]['fields']['request-rejected'] = $data['request-rejected-field']; + $request['callback'][md5($data['callback-url'])]['fields']['signature-updated'] = $data['signature-updated-field']; + } else { + if (!isset($request['callback']['action'])) + $request['callback']['action'] = false; + } + + $uniqueid = (isset($data['polling-unique-id'])&&!empty($data['polling-unique-id'])?$data['polling-unique-id']:'TM-'.time()) . "--" . (count(array_keys($request['client'])) + 1); + if (in_array($uniqueid, array_keys($request['client']))) + $uniqueid .= ':--' . str_replace('.', '-', microtime(true)); + if (isset($data['client-name'])) + $request['calling'][$uniqueid]['client']['name'] = $data['client-name']; + if (isset($data['client-uname'])) + $request['calling'][$uniqueid]['client']['uname'] = $data['client-uname']; + if (isset($data['client-email'])) + $request['calling'][$uniqueid]['client']['email'] = $data['client-email']; + + if (isset($data['client-site-name'])) + $request['calling'][$uniqueid]['client']['sitename'] = $data['site-name']; + if (isset($data['client-site-uri'])) + $request['calling'][$uniqueid]['client']['uri'] = $data['site-uri']; + $request['calling'][$uniqueid]['client']['netbios'] = gethostbyaddr(signedSecurity::getInstance()->getIP(true)); + $request['calling'][$uniqueid]['client']['ip'] = json_decode(file_get_contents("http://lookups.labs.coop/v1/country/".signedSecurity::getInstance()->getIP(true)."/json.api"), true); + $request['calling'][$uniqueid]['instance'] = $_SESSION["signed"]['instance']['number']; + $request['calling-ids'] = array_keys($request['calling']); + + $GLOBALS['io']->save($request, _PATH_PATHWAYS_REQUEST, $signature['serial-number']); + + if (function_exists('http_response_code')) + http_response_code(200); + echo $GLOBALS['api']->format(array('success'=> true, 'queued-requests' => $request['request'], 'sending-request' => date('Y-m-d H:i:s', $request['reminder']), 'when' => time())); + @$GLOBALS['logger']->logPolling('default', basename(dirname(__FILE__)), array('server' => $_SERVER, 'request' => $_REQUEST)); + exit(0); + + } else { + if (function_exists('http_response_code')) + http_response_code(400); + echo $GLOBALS['api']->format(array('success'=> false, 'error'=> 'The corresponding field(s): '.implode(', ', array('serial-number', 'code', 'certificate')) . ' ~ did not correspond with the same signature or was wrong!', 'error-code' => '104')); + exit(0); + } + } else { + foreach(signedProcesses::getInstance()->getSites() as $key => $srv) { + if ($srv['code'] == $servicekey) { + $service = $srv; + continue; + } + } + + if (isset($service)) { + if (!$ch = curl_init($url = $service['protocol'] . '://' . $service['api-uri'] . '/' . basename(dirname(__FILE__)) . '/')) { + trigger_error('Could not intialise CURL file: '.$url); + return false; + } + $cookies = _PATH_CACHE.'/api-'.md5($url).'.cookie'; + + curl_setopt($ch, CURLOPT_HEADER, 0); + curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 190); + curl_setopt($ch, CURLOPT_TIMEOUT, 190); + curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); + $data = curl_exec($ch); + $info = curl_getinfo($ch); + curl_close($ch); + if (function_exists('http_response_code')) + http_response_code($info['http_code']); + echo $data; + exit(0); + } else { + if (function_exists('http_response_code')) + http_response_code(400); + echo $GLOBALS['api']->format(array('success'=> false, 'error'=> 'Service Key:~ '.$servicekey.' is unknown and not a trusted ensignator!', 'error-code' => '115')); + exit(0); + } + } + } +?> \ No newline at end of file Property changes on: XoopsModules/signed/tr... [truncated message content] |
From: <wis...@us...> - 2014-12-08 20:57:09
|
Revision: 12893 http://sourceforge.net/p/xoops/svn/12893 Author: wishcraft Date: 2014-12-08 20:57:03 +0000 (Mon, 08 Dec 2014) Log Message: ----------- Fixing Trunk Added Paths: ----------- XoopsModules/signed/trunk/modules/signed/class/ XoopsModules/signed/trunk/modules/signed/class/cache/ XoopsModules/signed/trunk/modules/signed/class/cache/apc.php XoopsModules/signed/trunk/modules/signed/class/cache/file.php XoopsModules/signed/trunk/modules/signed/class/cache/index.html XoopsModules/signed/trunk/modules/signed/class/cache/memcache.php XoopsModules/signed/trunk/modules/signed/class/cache/model.php XoopsModules/signed/trunk/modules/signed/class/cache/signedcache.php XoopsModules/signed/trunk/modules/signed/class/cache/xcache.php XoopsModules/signed/trunk/modules/signed/class/captcha/ XoopsModules/signed/trunk/modules/signed/class/captcha/index.html XoopsModules/signed/trunk/modules/signed/class/captcha/signedcaptcha.php XoopsModules/signed/trunk/modules/signed/class/event_links.php XoopsModules/signed/trunk/modules/signed/class/events.php XoopsModules/signed/trunk/modules/signed/class/file/ XoopsModules/signed/trunk/modules/signed/class/file/index.html XoopsModules/signed/trunk/modules/signed/class/file/signedfile.php XoopsModules/signed/trunk/modules/signed/class/index.html XoopsModules/signed/trunk/modules/signed/class/mail/ XoopsModules/signed/trunk/modules/signed/class/mail/index.html XoopsModules/signed/trunk/modules/signed/class/mail/signedmultimailer.php XoopsModules/signed/trunk/modules/signed/class/mobile/ XoopsModules/signed/trunk/modules/signed/class/mobile/handlers/ XoopsModules/signed/trunk/modules/signed/class/mobile/handlers/index.html XoopsModules/signed/trunk/modules/signed/class/mobile/handlers/sms.cardboardfish.php XoopsModules/signed/trunk/modules/signed/class/mobile/index.html XoopsModules/signed/trunk/modules/signed/class/mobile/plugin/ XoopsModules/signed/trunk/modules/signed/class/mobile/plugin/index.html XoopsModules/signed/trunk/modules/signed/class/mobile/signedsmscontroller.php XoopsModules/signed/trunk/modules/signed/class/mobile/signedsmsmobile.php XoopsModules/signed/trunk/modules/signed/class/qcp/ XoopsModules/signed/trunk/modules/signed/class/qcp/index.html XoopsModules/signed/trunk/modules/signed/class/qcp/qcp.base.php XoopsModules/signed/trunk/modules/signed/class/qcp/qcp.class.php XoopsModules/signed/trunk/modules/signed/class/qcp/qcp.enumerator.php XoopsModules/signed/trunk/modules/signed/class/qcp/qcp.leaver-beaver.php XoopsModules/signed/trunk/modules/signed/class/signatures.php XoopsModules/signed/trunk/modules/signed/class/signedapi.php XoopsModules/signed/trunk/modules/signed/class/signedarrays.php XoopsModules/signed/trunk/modules/signed/class/signedcanvas.php XoopsModules/signed/trunk/modules/signed/class/signedciphers.php XoopsModules/signed/trunk/modules/signed/class/signededitor/ XoopsModules/signed/trunk/modules/signed/class/signededitor/index.html XoopsModules/signed/trunk/modules/signed/class/signededitor/readme.txt XoopsModules/signed/trunk/modules/signed/class/signededitor/signededitor.php XoopsModules/signed/trunk/modules/signed/class/signedform/ XoopsModules/signed/trunk/modules/signed/class/signedform/form.php XoopsModules/signed/trunk/modules/signed/class/signedform/formbutton.php XoopsModules/signed/trunk/modules/signed/class/signedform/formbuttontray.php XoopsModules/signed/trunk/modules/signed/class/signedform/formcaptcha.php XoopsModules/signed/trunk/modules/signed/class/signedform/formcheckbox.php XoopsModules/signed/trunk/modules/signed/class/signedform/formcolorpicker.php XoopsModules/signed/trunk/modules/signed/class/signedform/formdatetime.php XoopsModules/signed/trunk/modules/signed/class/signedform/formdhtmltextarea.php XoopsModules/signed/trunk/modules/signed/class/signedform/formeditor.php XoopsModules/signed/trunk/modules/signed/class/signedform/formelement.php XoopsModules/signed/trunk/modules/signed/class/signedform/formelementtray.php XoopsModules/signed/trunk/modules/signed/class/signedform/formfile.php XoopsModules/signed/trunk/modules/signed/class/signedform/formhidden.php XoopsModules/signed/trunk/modules/signed/class/signedform/formhiddentoken.php XoopsModules/signed/trunk/modules/signed/class/signedform/formlabel.php XoopsModules/signed/trunk/modules/signed/class/signedform/formpassword.php XoopsModules/signed/trunk/modules/signed/class/signedform/formradio.php XoopsModules/signed/trunk/modules/signed/class/signedform/formradioyn.php XoopsModules/signed/trunk/modules/signed/class/signedform/formselect.php XoopsModules/signed/trunk/modules/signed/class/signedform/formselectcheckgroup.php XoopsModules/signed/trunk/modules/signed/class/signedform/formselectcountry.php XoopsModules/signed/trunk/modules/signed/class/signedform/formselecteditor.php XoopsModules/signed/trunk/modules/signed/class/signedform/formselectenumerator.php XoopsModules/signed/trunk/modules/signed/class/signedform/formselectmatchoption.php XoopsModules/signed/trunk/modules/signed/class/signedform/formselectmonths.php XoopsModules/signed/trunk/modules/signed/class/signedform/formselecttimezone.php XoopsModules/signed/trunk/modules/signed/class/signedform/formselectyears.php XoopsModules/signed/trunk/modules/signed/class/signedform/formtext.php XoopsModules/signed/trunk/modules/signed/class/signedform/formtextarea.php XoopsModules/signed/trunk/modules/signed/class/signedform/formtextdateselect.php XoopsModules/signed/trunk/modules/signed/class/signedform/index.html XoopsModules/signed/trunk/modules/signed/class/signedform/simpleform.php XoopsModules/signed/trunk/modules/signed/class/signedform/tableform.php XoopsModules/signed/trunk/modules/signed/class/signedform/themeform.php XoopsModules/signed/trunk/modules/signed/class/signedformloader.php XoopsModules/signed/trunk/modules/signed/class/signedlists.php XoopsModules/signed/trunk/modules/signed/class/signedlogger.php XoopsModules/signed/trunk/modules/signed/class/signedmailer.php XoopsModules/signed/trunk/modules/signed/class/signedmobile.php XoopsModules/signed/trunk/modules/signed/class/signedobject.php XoopsModules/signed/trunk/modules/signed/class/signedpackages.php XoopsModules/signed/trunk/modules/signed/class/signedprocesses.php XoopsModules/signed/trunk/modules/signed/class/signedprompts.php XoopsModules/signed/trunk/modules/signed/class/signedsecurity.php XoopsModules/signed/trunk/modules/signed/class/signedsession.php XoopsModules/signed/trunk/modules/signed/class/signedstorage.php XoopsModules/signed/trunk/modules/signed/class/uploader.php XoopsModules/signed/trunk/modules/signed/class/wideimage/ XoopsModules/signed/trunk/modules/signed/class/wideimage/Canvas.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Coordinate.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Exception.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Font/ XoopsModules/signed/trunk/modules/signed/class/wideimage/Font/GDF.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Font/PS.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Font/TTF.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Image.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Mapper/ XoopsModules/signed/trunk/modules/signed/class/wideimage/Mapper/BMP.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Mapper/GD.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Mapper/GD2.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Mapper/GIF.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Mapper/JPEG.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Mapper/PNG.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Mapper/TGA.php XoopsModules/signed/trunk/modules/signed/class/wideimage/MapperFactory.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/ XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/AddNoise.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/ApplyConvolution.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/ApplyFilter.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/ApplyMask.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/AsGrayscale.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/AsNegative.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/AutoCrop.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/CopyChannelsPalette.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/CopyChannelsTrueColor.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/CorrectGamma.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/Crop.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/Flip.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/GetMask.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/Merge.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/Mirror.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/Resize.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/ResizeCanvas.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/Rotate.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/RoundCorners.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/Unsharp.php XoopsModules/signed/trunk/modules/signed/class/wideimage/OperationFactory.php XoopsModules/signed/trunk/modules/signed/class/wideimage/PaletteImage.php XoopsModules/signed/trunk/modules/signed/class/wideimage/TrueColorImage.php XoopsModules/signed/trunk/modules/signed/class/wideimage/WideImage.php XoopsModules/signed/trunk/modules/signed/class/wideimage/index.html XoopsModules/signed/trunk/modules/signed/class/wideimage/vendor/ XoopsModules/signed/trunk/modules/signed/class/wideimage/vendor/de77/ XoopsModules/signed/trunk/modules/signed/class/wideimage/vendor/de77/BMP.php XoopsModules/signed/trunk/modules/signed/class/wideimage/vendor/de77/TGA.php XoopsModules/signed/trunk/modules/signed/class/xmlarray.php XoopsModules/signed/trunk/modules/signed/class/xmlwrapper.php XoopsModules/signed/trunk/modules/signed/crons/ XoopsModules/signed/trunk/modules/signed/crons/.htaccess XoopsModules/signed/trunk/modules/signed/crons/callbacks.php XoopsModules/signed/trunk/modules/signed/crons/expires.php XoopsModules/signed/trunk/modules/signed/crons/expiry.php XoopsModules/signed/trunk/modules/signed/crons/index.html XoopsModules/signed/trunk/modules/signed/crons/request.php XoopsModules/signed/trunk/modules/signed/css/ XoopsModules/signed/trunk/modules/signed/css/calendar-blue.css XoopsModules/signed/trunk/modules/signed/css/index.html XoopsModules/signed/trunk/modules/signed/css/signed.css XoopsModules/signed/trunk/modules/signed/css/style.css XoopsModules/signed/trunk/modules/signed/docs/ XoopsModules/signed/trunk/modules/signed/docs/changelog.txt XoopsModules/signed/trunk/modules/signed/docs/credits.txt XoopsModules/signed/trunk/modules/signed/docs/index.html XoopsModules/signed/trunk/modules/signed/docs/install.txt XoopsModules/signed/trunk/modules/signed/docs/lang_diff.txt XoopsModules/signed/trunk/modules/signed/dojsonids.php XoopsModules/signed/trunk/modules/signed/dojsonoperations.php XoopsModules/signed/trunk/modules/signed/fonts/ XoopsModules/signed/trunk/modules/signed/fonts/COOPBL.eot XoopsModules/signed/trunk/modules/signed/fonts/COOPBL.otf XoopsModules/signed/trunk/modules/signed/fonts/COOPBL.svg XoopsModules/signed/trunk/modules/signed/fonts/COOPBL.ttf XoopsModules/signed/trunk/modules/signed/fonts/COOPBL.woff XoopsModules/signed/trunk/modules/signed/fonts/ERASMD.eot XoopsModules/signed/trunk/modules/signed/fonts/ERASMD.otf XoopsModules/signed/trunk/modules/signed/fonts/ERASMD.svg XoopsModules/signed/trunk/modules/signed/fonts/ERASMD.ttf XoopsModules/signed/trunk/modules/signed/fonts/ERASMD.woff XoopsModules/signed/trunk/modules/signed/fonts/index.html XoopsModules/signed/trunk/modules/signed/footer.php XoopsModules/signed/trunk/modules/signed/generator.php XoopsModules/signed/trunk/modules/signed/go/ XoopsModules/signed/trunk/modules/signed/go/.htaccess XoopsModules/signed/trunk/modules/signed/go/index.php XoopsModules/signed/trunk/modules/signed/header.php XoopsModules/signed/trunk/modules/signed/image/ XoopsModules/signed/trunk/modules/signed/image/icons/ XoopsModules/signed/trunk/modules/signed/image/icons/16/ XoopsModules/signed/trunk/modules/signed/image/icons/16/index.html XoopsModules/signed/trunk/modules/signed/image/icons/32/ XoopsModules/signed/trunk/modules/signed/image/icons/32/about.png XoopsModules/signed/trunk/modules/signed/image/icons/32/event.png XoopsModules/signed/trunk/modules/signed/image/icons/32/identity.png XoopsModules/signed/trunk/modules/signed/image/icons/32/index.html XoopsModules/signed/trunk/modules/signed/image/icons/32/security.png XoopsModules/signed/trunk/modules/signed/image/icons/index.html XoopsModules/signed/trunk/modules/signed/image/index.html XoopsModules/signed/trunk/modules/signed/image/signed.png XoopsModules/signed/trunk/modules/signed/image/watermark.gif XoopsModules/signed/trunk/modules/signed/image/watermark.php XoopsModules/signed/trunk/modules/signed/include/ XoopsModules/signed/trunk/modules/signed/include/common.php XoopsModules/signed/trunk/modules/signed/include/configs.php XoopsModules/signed/trunk/modules/signed/include/constants.php XoopsModules/signed/trunk/modules/signed/include/form-edit-object.php XoopsModules/signed/trunk/modules/signed/include/form-generic-edit-form.php XoopsModules/signed/trunk/modules/signed/include/form-generic-form.php XoopsModules/signed/trunk/modules/signed/include/form-identification-edit-form.php XoopsModules/signed/trunk/modules/signed/include/form-identification-form.php XoopsModules/signed/trunk/modules/signed/include/form-object.php XoopsModules/signed/trunk/modules/signed/include/functions.php XoopsModules/signed/trunk/modules/signed/include/index.html XoopsModules/signed/trunk/modules/signed/include/language.php XoopsModules/signed/trunk/modules/signed/index.php XoopsModules/signed/trunk/modules/signed/js/ XoopsModules/signed/trunk/modules/signed/js/calendar.js XoopsModules/signed/trunk/modules/signed/js/color-picker.js XoopsModules/signed/trunk/modules/signed/js/formdhtmltextarea.js XoopsModules/signed/trunk/modules/signed/js/index.html XoopsModules/signed/trunk/modules/signed/js/json.validation.js XoopsModules/signed/trunk/modules/signed/js/layersmenu.js XoopsModules/signed/trunk/modules/signed/js/signed.js XoopsModules/signed/trunk/modules/signed/language/ XoopsModules/signed/trunk/modules/signed/language/english/ XoopsModules/signed/trunk/modules/signed/language/english/admin.php XoopsModules/signed/trunk/modules/signed/language/english/calendar.php XoopsModules/signed/trunk/modules/signed/language/english/captcha.php XoopsModules/signed/trunk/modules/signed/language/english/content.php XoopsModules/signed/trunk/modules/signed/language/english/countries.php XoopsModules/signed/trunk/modules/signed/language/english/errors.php XoopsModules/signed/trunk/modules/signed/language/english/formdhtmltextarea.php XoopsModules/signed/trunk/modules/signed/language/english/global.php XoopsModules/signed/trunk/modules/signed/language/english/help/ XoopsModules/signed/trunk/modules/signed/language/english/help/help.html XoopsModules/signed/trunk/modules/signed/language/english/help/index.html XoopsModules/signed/trunk/modules/signed/language/english/index.html XoopsModules/signed/trunk/modules/signed/language/english/mail.php XoopsModules/signed/trunk/modules/signed/language/english/mail_template/ XoopsModules/signed/trunk/modules/signed/language/english/mail_template/html/ XoopsModules/signed/trunk/modules/signed/language/english/mail_template/html/expired-identification.html XoopsModules/signed/trunk/modules/signed/language/english/mail_template/html/expired-signature.html XoopsModules/signed/trunk/modules/signed/language/english/mail_template/html/index.html XoopsModules/signed/trunk/modules/signed/language/english/mail_template/html/signature-email.html XoopsModules/signed/trunk/modules/signed/language/english/mail_template/html/update-request.html XoopsModules/signed/trunk/modules/signed/language/english/mail_template/html/verify-email.html XoopsModules/signed/trunk/modules/signed/language/english/mail_template/index.html XoopsModules/signed/trunk/modules/signed/language/english/mail_template/text/ XoopsModules/signed/trunk/modules/signed/language/english/mail_template/text/expired-identification.txt XoopsModules/signed/trunk/modules/signed/language/english/mail_template/text/expired-signature.txt XoopsModules/signed/trunk/modules/signed/language/english/mail_template/text/index.html XoopsModules/signed/trunk/modules/signed/language/english/mail_template/text/signature-email.txt XoopsModules/signed/trunk/modules/signed/language/english/mail_template/text/update-request.txt XoopsModules/signed/trunk/modules/signed/language/english/mail_template/text/verify-email.txt XoopsModules/signed/trunk/modules/signed/language/english/main.php XoopsModules/signed/trunk/modules/signed/language/english/modinfo.php XoopsModules/signed/trunk/modules/signed/language/english/months.php XoopsModules/signed/trunk/modules/signed/language/english/signedmailerlocal.php XoopsModules/signed/trunk/modules/signed/language/english/signedmobilelocal.php XoopsModules/signed/trunk/modules/signed/language/english/sms_template/ XoopsModules/signed/trunk/modules/signed/language/english/sms_template/index.html XoopsModules/signed/trunk/modules/signed/language/english/sms_template/verify-mobile.txt XoopsModules/signed/trunk/modules/signed/language/english/style.css XoopsModules/signed/trunk/modules/signed/language/english/timezone.php XoopsModules/signed/trunk/modules/signed/language/english/titles.php XoopsModules/signed/trunk/modules/signed/language/english/uploader.php XoopsModules/signed/trunk/modules/signed/language/index.html XoopsModules/signed/trunk/modules/signed/preloads/ XoopsModules/signed/trunk/modules/signed/preloads/api.php XoopsModules/signed/trunk/modules/signed/preloads/index.html XoopsModules/signed/trunk/modules/signed/request.php XoopsModules/signed/trunk/modules/signed/reset.php XoopsModules/signed/trunk/modules/signed/sql/ XoopsModules/signed/trunk/modules/signed/sql/index.html XoopsModules/signed/trunk/modules/signed/sql/mysql.sql XoopsModules/signed/trunk/modules/signed/templates/ XoopsModules/signed/trunk/modules/signed/templates/admin/ XoopsModules/signed/trunk/modules/signed/templates/admin/index.html XoopsModules/signed/trunk/modules/signed/templates/admin/signed_events.html XoopsModules/signed/trunk/modules/signed/templates/admin/signed_signatures.html XoopsModules/signed/trunk/modules/signed/templates/common/ XoopsModules/signed/trunk/modules/signed/templates/common/api.php XoopsModules/signed/trunk/modules/signed/templates/common/canvas.php XoopsModules/signed/trunk/modules/signed/templates/common/index.html XoopsModules/signed/trunk/modules/signed/templates/common/no-url.php XoopsModules/signed/trunk/modules/signed/templates/common/reset.php XoopsModules/signed/trunk/modules/signed/templates/common/start.php XoopsModules/signed/trunk/modules/signed/templates/common/update-identification.php XoopsModules/signed/trunk/modules/signed/templates/common/verify-email.php XoopsModules/signed/trunk/modules/signed/templates/common/verify-mobile.php XoopsModules/signed/trunk/modules/signed/templates/deployed/ XoopsModules/signed/trunk/modules/signed/templates/deployed/entity/ XoopsModules/signed/trunk/modules/signed/templates/deployed/entity/index.html XoopsModules/signed/trunk/modules/signed/templates/deployed/entity/send-email.php XoopsModules/signed/trunk/modules/signed/templates/deployed/entity/update-email.php XoopsModules/signed/trunk/modules/signed/templates/deployed/index.html XoopsModules/signed/trunk/modules/signed/templates/deployed/personal/ XoopsModules/signed/trunk/modules/signed/templates/deployed/personal/index.html XoopsModules/signed/trunk/modules/signed/templates/deployed/personal/send-email.php XoopsModules/signed/trunk/modules/signed/templates/deployed/personal/update-email.php XoopsModules/signed/trunk/modules/signed/templates/fields/ XoopsModules/signed/trunk/modules/signed/templates/fields/entity/ XoopsModules/signed/trunk/modules/signed/templates/fields/entity/generic-edit-form.php XoopsModules/signed/trunk/modules/signed/templates/fields/entity/generic-form.php XoopsModules/signed/trunk/modules/signed/templates/fields/entity/index.html XoopsModules/signed/trunk/modules/signed/templates/fields/identification/ XoopsModules/signed/trunk/modules/signed/templates/fields/identification/identification-edit-form.php XoopsModules/signed/trunk/modules/signed/templates/fields/identification/identification-form.php XoopsModules/signed/trunk/modules/signed/templates/fields/identification/index.html XoopsModules/signed/trunk/modules/signed/templates/fields/index.html XoopsModules/signed/trunk/modules/signed/templates/fields/personal/ XoopsModules/signed/trunk/modules/signed/templates/fields/personal/generic-edit-form.php XoopsModules/signed/trunk/modules/signed/templates/fields/personal/generic-form.php XoopsModules/signed/trunk/modules/signed/templates/fields/personal/index.html XoopsModules/signed/trunk/modules/signed/templates/help/ XoopsModules/signed/trunk/modules/signed/templates/help/entity/ XoopsModules/signed/trunk/modules/signed/templates/help/entity/finished.php XoopsModules/signed/trunk/modules/signed/templates/help/entity/index.html XoopsModules/signed/trunk/modules/signed/templates/help/entity/introduction.php XoopsModules/signed/trunk/modules/signed/templates/help/identification/ XoopsModules/signed/trunk/modules/signed/templates/help/identification/finished-update.php XoopsModules/signed/trunk/modules/signed/templates/help/identification/index.html XoopsModules/signed/trunk/modules/signed/templates/help/identification/needed.php XoopsModules/signed/trunk/modules/signed/templates/help/index.html XoopsModules/signed/trunk/modules/signed/templates/help/personal/ XoopsModules/signed/trunk/modules/signed/templates/help/personal/finished.php XoopsModules/signed/trunk/modules/signed/templates/help/personal/index.html XoopsModules/signed/trunk/modules/signed/templates/help/personal/introduction.php XoopsModules/signed/trunk/modules/signed/templates/index.html XoopsModules/signed/trunk/modules/signed/templates/signed_wrapper.html XoopsModules/signed/trunk/modules/signed/templates/update/ XoopsModules/signed/trunk/modules/signed/templates/update/identification/ XoopsModules/signed/trunk/modules/signed/templates/update/identification/identification-form.php XoopsModules/signed/trunk/modules/signed/templates/update/identification/index.html XoopsModules/signed/trunk/modules/signed/templates/update/index.html XoopsModules/signed/trunk/modules/signed/updator.php XoopsModules/signed/trunk/modules/signed/verifor.php XoopsModules/signed/trunk/modules/signed/xoops_version.php Added: XoopsModules/signed/trunk/modules/signed/class/cache/apc.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/class/cache/apc.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/class/cache/apc.php 2014-12-08 20:57:03 UTC (rev 12893) @@ -0,0 +1,126 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage cache + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + +defined('_PATH_ROOT') or die('Restricted access'); + +/** + * APC storage engine for cache. + * + * + * PHP versions 4 and 5 + * + * CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/> + * Copyright 2005-2008, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The MIT License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. + * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project + * @package cake + * @subpackage cake.cake.libs.cache + * @since CakePHP(tm) v 1.2.0.4933 + * @version $Revision: 8066 $ + * @modifiedby $LastChangedBy: beckmi $ + * @lastmodified $Date: 2011-11-06 01:09:33 -0400 (Sun, 06 Nov 2011) $ + * @license http://www.opensource.org/licenses/mit-license.php The MIT License + */ + +/** + * APC storage engine for cache + * + * @package cake + * @subpackage cake.cake.libs.cache + */ +class signedCacheApc extends signedCacheEngine +{ + /** + * Initialize the Cache Engine + * + * Called automatically by the cache frontend + * To reinitialize the settings call Cache::engine('EngineName', [optional] settings = array()); + * + * @param array $setting array of setting for the engine + * @return boolean True if the engine has been successfully initialized, false if not + * @see CacheEngine::__defaults + * @access public + */ + function init($settings = array()) + { + parent::init($settings); + return function_exists('apc_cache_info'); + } + + /** + * Write data for key into cache + * + * @param string $key Identifier for the data + * @param mixed $value Data to be cached + * @param integer $duration How long to cache the data, in seconds + * @return boolean True if the data was succesfully cached, false on failure + * @access public + */ + function write($key, &$value, $duration) + { + return apc_store($key, $value, $duration); + } + + /** + * Read a key from the cache + * + * @param string $key Identifier for the data + * @return mixed The cached data, or false if the data doesn't exist, has expired, or if there was an error fetching it + * @access public + */ + function read($key) + { + return apc_fetch($key); + } + + /** + * Delete a key from the cache + * + * @param string $key Identifier for the data + * @return boolean True if the value was succesfully deleted, false if it didn't exist or couldn't be removed + * @access public + */ + function delete($key) + { + return apc_delete($key); + } + + /** + * Delete all keys from the cache + * + * @return boolean True if the cache was succesfully cleared, false otherwise + * @access public + */ + function clear() + { + return apc_clear_cache('user'); + } +} + +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/class/cache/apc.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/class/cache/file.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/class/cache/file.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/class/cache/file.php 2014-12-08 20:57:03 UTC (rev 12893) @@ -0,0 +1,317 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage cache + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + +defined('_PATH_ROOT') or die('Restricted access'); + +/** + * File Storage engine for cache + * + * + * PHP versions 4 and 5 + * + * CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/> + * Copyright 2005-2008, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The MIT License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. + * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project + * @package cake + * @subpackage cake.cake.libs.cache + * @since CakePHP(tm) v 1.2.0.4933 + * @version $Revision: 10686 $ + * @modifiedby $LastChangedBy: beckmi $ + * @lastmodified $Date: 2013-01-06 14:07:24 -0500 (Sun, 06 Jan 2013) $ + * @license http://www.opensource.org/licenses/mit-license.php The MIT License + */ + +/** + * File Storage engine for cache + * + * @todo use the File and Folder classes (if it's not a too big performance hit) + * @package cake + * @subpackage cake.cake.libs.cache + */ +class signedCacheFile extends signedCacheEngine +{ + /** + * Instance of File class + * + * @var object + * @access private + */ + var $file = null; + + /** + * settings + * path = absolute path to cache directory, default => CACHE + * prefix = string prefix for filename, default => signed_ + * lock = enable file locking on write, default => false + * serialize = serialize the data, default => false + * + * @var array + * @see CacheEngine::__defaults + * @access public + */ + var $settings = array(); + + /** + * Set to true if FileEngine::init(); and FileEngine::active(); do not fail. + * + * @var boolean + * @access private + */ + var $active = false; + + /** + * True unless FileEngine::active(); fails + * + * @var boolean + * @access private + */ + var $init = true; + + /** + * Initialize the Cache Engine + * + * Called automatically by the cache frontend + * To reinitialize the settings call Cache::engine('EngineName', [optional] settings = array()); + * + * @param array $setting array of setting for the engine + * @return boolean True if the engine has been successfully initialized, false if not + * @access public + */ + function init($settings = array()) + { + parent::init($settings); + $defaults = array('path' => _PATH_CACHE , 'extension' => '.php' , 'prefix' => 'signed_' , 'lock' => false , 'serialize' => false , 'duration' => 31556926); + $this->settings = array_merge($defaults, $this->settings); + if (!isset($this->file)) { + include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'file' . _DS_ . 'signedfile.php'; + $this->file = signedFile::getHandler('file', $this->settings['path'] . '/index.html', true); + } + $this->settings['path'] = $this->file->folder->cd($this->settings['path']); + if (empty($this->settings['path'])) { + return false; + } + return $this->active(); + } + + /** + * Garbage collection. Permanently remove all expired and deleted data + * + * @return boolean True if garbage collection was succesful, false on failure + * @access public + */ + function gc() + { + return $this->clear(true); + } + + /** + * Write data for key into cache + * + * @param string $key Identifier for the data + * @param mixed $data Data to be cached + * @param mixed $duration How long to cache the data, in seconds + * @return boolean True if the data was succesfully cached, false on failure + * @access public + */ + function write($key, $data = null, $duration = null) + { + if (!isset($data) || ! $this->init) { + return false; + } + + if ($this->setKey($key) === false) { + return false; + } + + if ($duration == null) { + $duration = $this->settings['duration']; + } + $windows = false; + $lineBreak = "\n"; + + if (substr(PHP_OS, 0, 3) == "WIN") { + $lineBreak = "\r\n"; + $windows = true; + } + $expires = time() + $duration; + if (!empty($this->settings['serialize'])) { + if ($windows) { + $data = str_replace('\\', '\\\\\\\\', serialize($data)); + } else { + $data = serialize($data); + } + $contents = $expires . $lineBreak . $data . $lineBreak; + } else { + $contents = $expires . $lineBreak . "return " . var_export($data, true) . ";" . $lineBreak; + } + + if ($this->settings['lock']) { + $this->file->lock = true; + } + $success = $this->file->write($contents); + if ($GLOBALS['logger'] = signedLogger::getInstance()) + $GLOBALS['logger']->logBytes(strlen($contents), 'cache-written'); + $this->file->close(); + return $success; + } + + /** + * Read a key from the cache + * + * @param string $key Identifier for the data + * @return mixed The cached data, or false if the data doesn't exist, has expired, or if there was an error fetching it + * @access public + */ + function read($key) + { + if ($this->setKey($key) === false || ! $this->init) { + return false; + } + if ($this->settings['lock']) { + $this->file->lock = true; + } + $cachetime = $this->file->read(11); + + if ($cachetime !== false && intval($cachetime) < time()) { + $this->file->close(); + $this->file->delete(); + return false; + } + + $data = $this->file->read(true); + if ($GLOBALS['logger'] = signedLogger::getInstance()) + $GLOBALS['logger']->logBytes(strlen($data), 'cache-read'); + if (!empty($data) && !empty($this->settings['serialize'])) { + $data = stripslashes($data); + $data = preg_replace('!s:(\d+):"(.*?)";!se', "'s:'.strlen('$2').':\"$2\";'", $data); + $data = unserialize($data); + if (is_array($data)) { + signedLoad::load('signedUtility'); + $data = signedUtility::recursive('stripslashes', $data); + } + } else if ($data && empty($this->settings['serialize'])) { + $data = eval($data); + } + $this->file->close(); + return $data; + } + + /** + * Delete a key from the cache + * + * @param string $key Identifier for the data + * @return boolean True if the value was successfully deleted, false if it didn't exist or couldn't be removed + * @access public + */ + function delete($key) + { + if ($this->setKey($key) === false || ! $this->init) { + return false; + } + return $this->file->delete(); + } + + /** + * Delete all values from the cache + * + * @param boolean $check Optional - only delete expired cache items + * @return boolean True if the cache was succesfully cleared, false otherwise + * @access public + */ + function clear($check = true) + { + if (!$this->init) { + return false; + } + $dir = dir($this->settings['path']); + if ($check) { + $now = time(); + $threshold = $now - $this->settings['duration']; + } + while (($entry = $dir->read()) !== false) { + if ($this->setKey(str_replace($this->settings['prefix'], '', $entry)) === false) { + continue; + } + if ($check) { + $mtime = $this->file->lastChange(); + + if ($mtime === false || $mtime > $threshold) { + continue; + } + + $expires = $this->file->read(11); + $this->file->close(); + + if ($expires > $now) { + continue; + } + } + $this->file->delete(); + } + $dir->close(); + return true; + } + + /** + * Get absolute file for a given key + * + * @param string $key The key + * @return mixed Absolute cache file for the given key or false if erroneous + * @access private + */ + function setKey($key) + { + $this->file->folder->cd($this->settings['path']); + $this->file->name = $this->settings['prefix'] . $key . $this->settings['extension']; + $this->file->handle = null; + $this->file->info = null; + if (!$this->file->folder->inPath($this->file->pwd(), true)) { + return false; + } + } + /** + * Determine is cache directory is writable + * + * @return boolean + * @access private + */ + function active() + { + if (!$this->active && $this->init && ! is_writable($this->settings['path'])) { + $this->init = false; + trigger_error(sprintf('%s is not writable', $this->settings['path']), E_USER_WARNING); + } else { + $this->active = true; + } + return true; + } +} + +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/class/cache/file.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/class/cache/index.html =================================================================== --- XoopsModules/signed/trunk/modules/signed/class/cache/index.html (rev 0) +++ XoopsModules/signed/trunk/modules/signed/class/cache/index.html 2014-12-08 20:57:03 UTC (rev 12893) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/class/cache/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/class/cache/memcache.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/class/cache/memcache.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/class/cache/memcache.php 2014-12-08 20:57:03 UTC (rev 12893) @@ -0,0 +1,183 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage cache + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + +defined('_PATH_ROOT') or die('Restricted access'); + +/** + * Memcache storage engine for cache + * + * + * PHP versions 4 and 5 + * + * CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/> + * Copyright 2005-2008, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The MIT License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. + * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project + * @package cake + * @subpackage cake.cake.libs.cache + * @since CakePHP(tm) v 1.2.0.4933 + * @version $Revision: 8066 $ + * @modifiedby $LastChangedBy: beckmi $ + * @lastmodified $Date: 2011-11-06 01:09:33 -0400 (Sun, 06 Nov 2011) $ + * @license http://www.opensource.org/licenses/mit-license.php The MIT License + */ +/** + * Memcache storage engine for cache + * + * @package cake + * @subpackage cake.cake.libs.cache + */ +class signedCacheMemcache extends signedCacheEngine +{ + /** + * Memcache wrapper. + * + * @var object + * @access private + */ + var $memcache = null; + /** + * settings + * servers = string or array of memcache servers, default => 127.0.0.1 + * compress = boolean, default => false + * + * @var array + * @access public + */ + var $settings = array(); + /** + * Initialize the Cache Engine + * + * Called automatically by the cache frontend + * To reinitialize the settings call Cache::engine('EngineName', [optional] settings = array()); + * + * @param array $setting array of setting for the engine + * @return boolean True if the engine has been successfully initialized, false if not + * @access public + */ + function init($settings = array()) + { + if (!class_exists('Memcache')) { + return false; + } + parent::init($settings); + $defaults = array( + 'servers' => array( + '127.0.0.1') , + 'compress' => false); + $this->settings = array_merge($defaults, $this->settings); + + if (!$this->settings['compress']) { + $this->settings['compress'] = MEMCACHE_COMPRESSED; + } + if (!is_array($this->settings['servers'])) { + $this->settings['servers'] = array( + $this->settings['servers']); + } + $this->memcache = null; + $this->memcache = new Memcache(); + foreach ($this->settings['servers'] as $server) { + $parts = explode(':', $server); + $host = $parts[0]; + $port = 11211; + if (isset($parts[1])) { + $port = $parts[1]; + } + if ($this->memcache->addServer($host, $port)) { + return true; + } + } + return false; + } + /** + * Write data for key into cache + * + * @param string $key Identifier for the data + * @param mixed $value Data to be cached + * @param integer $duration How long to cache the data, in seconds + * @return boolean True if the data was succesfully cached, false on failure + * @access public + */ + function write($key, &$value, $duration) + { + return $this->memcache->set($key, $value, $this->settings['compress'], $duration); + } + /** + * Read a key from the cache + * + * @param string $key Identifier for the data + * @return mixed The cached data, or false if the data doesn't exist, has expired, or if there was an error fetching it + * @access public + */ + function read($key) + { + return $this->memcache->get($key); + } + /** + * Delete a key from the cache + * + * @param string $key Identifier for the data + * @return boolean True if the value was succesfully deleted, false if it didn't exist or couldn't be removed + * @access public + */ + function delete($key) + { + return $this->memcache->delete($key); + } + /** + * Delete all keys from the cache + * + * @return boolean True if the cache was succesfully cleared, false otherwise + * @access public + */ + function clear() + { + return $this->memcache->flush(); + } + /** + * Connects to a server in connection pool + * + * @param string $host host ip address or name + * @param integer $port Server port + * @return boolean True if memcache server was connected + * @access public + */ + function connect($host, $port = 11211) + { + if ($this->memcache->getServerStatus($host, $port) === 0) { + if ($this->memcache->connect($host, $port)) { + return true; + } + return false; + } + return true; + } +} + +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/class/cache/memcache.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/class/cache/model.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/class/cache/model.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/class/cache/model.php 2014-12-08 20:57:03 UTC (rev 12893) @@ -0,0 +1,224 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage cache + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + +defined('_PATH_ROOT') or die('Restricted access'); + +/** + * Database Storage engine for cache + * + * + * PHP versions 4 and 5 + * + * CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/> + * Copyright 2005-2008, Cake Software Foundation, Inc. + * 1785 E. Sahara Avenue, Suite 490-204 + * Las Vegas, Nevada 89104 + * + * Licensed under The MIT License + * Redistributions of files must retain the above copyright notice. + * + * @filesource + * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. + * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project + * @package cake + * @subpackage cake.cake.libs.cache + * @since CakePHP(tm) v 1.2.0.4933 + * @version $Revision: 8066 $ + * @modifiedby $LastChangedBy: beckmi $ + * @lastmodified $Date: 2011-11-06 01:09:33 -0400 (Sun, 06 Nov 2011) $ + * @license http://www.opensource.org/licenses/mit-license.php The MIT License + */ +/** + * Database Storage engine for cache + * + * @package cake + * @subpackage cake.cake.libs.cache + */ +class signedCacheModel extends signedCacheEngine +{ + /** + * settings + * className = name of the model to use, default => Cache + * fields = database fields that hold data and ttl, default => data, expires + * + * @var array + * @access public + */ + var $settings = array(); + + /** + * Model instance. + * + * @var object + * @access private + */ + var $model = null; + + /** + * Model instance. + * + * @var object + * @access private + */ + var $fields = array(); + + /** + * Initialize the Cache Engine + * + * Called automatically by the cache frontend + * To reinitialize the settings call Cache::engine('EngineName', [optional] settings = array()); + * + * @param array $setting array of setting for the engine + * @return boolean True if the engine has been successfully initialized, false if not + * @access public + */ + function init($settings) + { + $signedDB =& signedDatabaseFactory::getDatabaseConnection(); + + parent::init($settings); + $defaults = array('fields' => array('data' , 'expires')); + $this->settings = array_merge($defaults, $this->settings); + $this->fields = $this->settings['fields']; + $this->model = new signedCacheModelHandler($signedDB); + return true; + } + + /** + * Garbage collection. Permanently remove all expired and deleted data + * + * @access public + */ + function gc() + { + return $this->model->deleteAll(new Criteria($this->fields[1], time, '<= ')); + } + + /** + * Write data for key into cache + * + * @param string $key Identifier for the data + * @param mixed $data Data to be cached + * @param integer $duration How long to cache the data, in seconds + * @return boolean True if the data was succesfully cached, false on failure + * @access public + */ + function write($key, $data, $duration) + { + // if (isset($this->settings['serialize'])) { + $data = serialize($data); + // } + if (! $data) { + return false; + } + $cache_obj = $this->model->create(); + $cache_obj->setVar($this->model::KEYNAME, $key); + $cache_obj->setVar($this->fields[0], $data); + $cache_obj->setVar($this->fields[1], time() + $duration); + return $this->model->insert($cache_obj); + } + + /** + * Read a key from the cache + * + * @param string $key Identifier for the data + * @return mixed The cached data, or false if the data doesn't exist, has expired, or if there was an error fetching it + * @access public + */ + function read($key) + { + $criteria = new CriteriaCompo(new Criteria($this->model::KEYNAME, $key)); + $criteria->add(new Criteria($this->fields[1], time(), ">")); + $criteria->setLimit(1); + $data = $this->model->getAll($criteria); + if (!$data) { + return null; + } + return unserialize($data[0]); + } + + /** + * Delete a key from the cache + * + * @param string $key Identifier for the data + * @return boolean True if the value was succesfully deleted, false if it didn't exist or couldn't be removed + * @access public + */ + function delete($key) + { + return $this->model->delete($key); + } + + /** + * Delete all keys from the cache + * + * @return boolean True if the cache was succesfully cleared, false otherwise + * @access public + */ + function clear() + { + return $this->model->deleteAll(); + } +} + +/** + * signedCacheModelObject + * + * @package + * @author John + * @copyright Copyright (c) 2009 + * @version $Id: model.php 8066 2011-11-06 05:09:33Z beckmi $ + * @access public + */ +class signedCacheModelObject extends signedObject +{ + function signedCacheModelObject() + { + $this->__construct(); + } + + function __construct() + { + parent::__construct(); + $this->initVar('key', XOBJ_DTYPE_TXTBOX); + $this->initVar('data', XOBJ_DTYPE_SOURCE); + $this->initVar('expires', XOBJ_DTYPE_INT); + } +} + +/** + * signedCacheModelHandler + * + * @package + * @author John + * @copyright Copyright (c) 2009 + * @version $Id: model.php 8066 2011-11-06 05:09:33Z beckmi $ + * @access public + */ +class signedCacheModelHandler extends signedPersistableObjectHandler +{ + const TABLE = 'cache_model'; + const CLASSNAME = 'signedCacheModelObject'; + const KEYNAME = 'key'; +} + +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/class/cache/model.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/class/cache/signedcache.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/class/cache/signedcache.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/class/cache/signedcache.php 2014-12-08 20:57:03 UTC (rev 12893) @@ -0,0 +1,495 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 1.13 + * @author Simon Roberts <wis...@us...> + * @author Antony Cipher <ci...@la...> + * @subpackage cache + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + +defined('_PATH_ROOT') or die('Restricted access'); + +/** + * Caching for CakePHP. + * + * @package cake + * @subpackage cake.cake.libs + */ +class signedCache +{ + /** + * Cache engine to use + * + * @var object + * @access protected + */ + var $engine = null; + // static $engine = null; + + + /** + * Cache configuration stack + * + * @var array + * @access private + */ + var $configs = array(); + + /** + * Holds name of the current configuration being used + * + * @var array + * @access private + */ + var $name = null; + + /** + * signedCache::__construct() + */ + function __construct() + { + } + + /** + * Returns a singleton instance + * + * @return object + * @access public + */ + static function &getInstance() + { + static $instance; + if (!isset($instance)) { + $class = __CLASS__; + $instance = new $class(); + } + return $instance; + } + + /** + * Tries to find and include a file for a cache engine and returns object instance + * + * @param $name Name of the engine + * @return mixed $engine object or null + * @access private + */ + function loadEngine($name) + { + if (!class_exists('signedCache' . ucfirst($name))) { + if (file_exists($file = dirname(__FILE__) . '/' . strtolower($name) . '.php')) { + include $file; + } else { + trigger_error('File :' . $file . ' not found in file : ' . __FILE__ . ' at line: ' . __LINE__, E_USER_WARNING); + return false; + } + } + return true; + } + + /** + * Set the cache configuration to use + * + * @param string $name Name of the configuration + * @param array $settings Optional associative array of settings passed to the engine + * @return array (engine, settings) on success, false on failure + * @access public + */ + function config($name = 'default', $settings = array()) + { + $_this =& signedCache::getInstance(); + if (is_array($name)) { + extract($name); + } + + if (isset($_this->configs[$name])) { + $settings = array_merge($_this->configs[$name], $settings); + } else if (!empty($settings)) { + $_this->configs[$name] = $settings; + } else if ($_this->configs !== null && isset($_this->configs[$_this->name])) { + $name = $_this->name; + $settings = $_this->configs[$_this->name]; + } else { + $name = 'default'; + if (!empty($_this->configs['default'])) { + $settings = $_this->configs['default']; + } else { + $settings = array( + 'engine' => 'file'); + } + } + $engine = 'file'; + if (!empty($settings['engine'])) { + $engine = $settings['engine']; + } + + if ($name !== $_this->name) { + if ($_this->engine($engine, $settings) === false) { + trigger_error("Cache Engine {$engine} is not set", E_USER_WARNING); + return false; + } + $_this->name = $name; + $_this->configs[$name] = $_this->settings($engine); + } + + $settings = $_this->configs[$name]; + return compact('engine', 'settings'); + } + + /**... [truncated message content] |
From: <wis...@us...> - 2015-07-27 01:10:27
|
Revision: 13131 http://sourceforge.net/p/xoops/svn/13131 Author: wishcraft Date: 2015-07-27 01:10:24 +0000 (Mon, 27 Jul 2015) Log Message: ----------- Signed 2.1.9 - The final signed down! Dod oodoo doood oo didoo doocd php-dev/respository/xoops-svn/XoopsModules/signed/ Added Paths: ----------- XoopsModules/signed/trunk/modules/signed/admin/ XoopsModules/signed/trunk/modules/signed/admin/about.php XoopsModules/signed/trunk/modules/signed/admin/admin.php XoopsModules/signed/trunk/modules/signed/admin/admin_footer.php XoopsModules/signed/trunk/modules/signed/admin/admin_header.php XoopsModules/signed/trunk/modules/signed/admin/events.php XoopsModules/signed/trunk/modules/signed/admin/index.html XoopsModules/signed/trunk/modules/signed/admin/menu.php XoopsModules/signed/trunk/modules/signed/admin/salty.php XoopsModules/signed/trunk/modules/signed/admin/signatures.php XoopsModules/signed/trunk/modules/signed/api/ XoopsModules/signed/trunk/modules/signed/api/banned/ XoopsModules/signed/trunk/modules/signed/api/banned/.htaccess XoopsModules/signed/trunk/modules/signed/api/banned/index.php XoopsModules/signed/trunk/modules/signed/api/classes/ XoopsModules/signed/trunk/modules/signed/api/classes/.htaccess XoopsModules/signed/trunk/modules/signed/api/classes/index.php XoopsModules/signed/trunk/modules/signed/api/descriptions/ XoopsModules/signed/trunk/modules/signed/api/descriptions/.htaccess XoopsModules/signed/trunk/modules/signed/api/descriptions/index.php XoopsModules/signed/trunk/modules/signed/api/enumerators/ XoopsModules/signed/trunk/modules/signed/api/enumerators/.htaccess XoopsModules/signed/trunk/modules/signed/api/enumerators/index.php XoopsModules/signed/trunk/modules/signed/api/fields/ XoopsModules/signed/trunk/modules/signed/api/fields/.htaccess XoopsModules/signed/trunk/modules/signed/api/fields/index.php XoopsModules/signed/trunk/modules/signed/api/fieldtypes/ XoopsModules/signed/trunk/modules/signed/api/fieldtypes/.htaccess XoopsModules/signed/trunk/modules/signed/api/fieldtypes/index.php XoopsModules/signed/trunk/modules/signed/api/identifications/ XoopsModules/signed/trunk/modules/signed/api/identifications/.htaccess XoopsModules/signed/trunk/modules/signed/api/identifications/index.php XoopsModules/signed/trunk/modules/signed/api/index.php XoopsModules/signed/trunk/modules/signed/api/language/ XoopsModules/signed/trunk/modules/signed/api/language/.htaccess XoopsModules/signed/trunk/modules/signed/api/language/index.php XoopsModules/signed/trunk/modules/signed/api/languages/ XoopsModules/signed/trunk/modules/signed/api/languages/.htaccess XoopsModules/signed/trunk/modules/signed/api/languages/index.php XoopsModules/signed/trunk/modules/signed/api/processes/ XoopsModules/signed/trunk/modules/signed/api/processes/.htaccess XoopsModules/signed/trunk/modules/signed/api/processes/index.php XoopsModules/signed/trunk/modules/signed/api/prompts/ XoopsModules/signed/trunk/modules/signed/api/prompts/.htaccess XoopsModules/signed/trunk/modules/signed/api/prompts/index.php XoopsModules/signed/trunk/modules/signed/api/providers/ XoopsModules/signed/trunk/modules/signed/api/providers/.htaccess XoopsModules/signed/trunk/modules/signed/api/providers/index.php XoopsModules/signed/trunk/modules/signed/api/request/ XoopsModules/signed/trunk/modules/signed/api/request/.htaccess XoopsModules/signed/trunk/modules/signed/api/request/index.php XoopsModules/signed/trunk/modules/signed/api/sign/ XoopsModules/signed/trunk/modules/signed/api/sign/.htaccess XoopsModules/signed/trunk/modules/signed/api/sign/index.php XoopsModules/signed/trunk/modules/signed/api/signatures/ XoopsModules/signed/trunk/modules/signed/api/signatures/.htaccess XoopsModules/signed/trunk/modules/signed/api/signatures/index.php XoopsModules/signed/trunk/modules/signed/api/sites/ XoopsModules/signed/trunk/modules/signed/api/sites/.htaccess XoopsModules/signed/trunk/modules/signed/api/sites/index.php XoopsModules/signed/trunk/modules/signed/api/states/ XoopsModules/signed/trunk/modules/signed/api/states/.htaccess XoopsModules/signed/trunk/modules/signed/api/states/index.php XoopsModules/signed/trunk/modules/signed/api/validate.php XoopsModules/signed/trunk/modules/signed/api/validations/ XoopsModules/signed/trunk/modules/signed/api/validations/.htaccess XoopsModules/signed/trunk/modules/signed/api/validations/index.php XoopsModules/signed/trunk/modules/signed/api/verification/ XoopsModules/signed/trunk/modules/signed/api/verification/.htaccess XoopsModules/signed/trunk/modules/signed/api/verification/index.php XoopsModules/signed/trunk/modules/signed/api/verify/ XoopsModules/signed/trunk/modules/signed/api/verify/.htaccess XoopsModules/signed/trunk/modules/signed/api/verify/index.php XoopsModules/signed/trunk/modules/signed/class/ XoopsModules/signed/trunk/modules/signed/class/cache/ XoopsModules/signed/trunk/modules/signed/class/cache/apc.php XoopsModules/signed/trunk/modules/signed/class/cache/file.php XoopsModules/signed/trunk/modules/signed/class/cache/index.html XoopsModules/signed/trunk/modules/signed/class/cache/memcache.php XoopsModules/signed/trunk/modules/signed/class/cache/model.php XoopsModules/signed/trunk/modules/signed/class/cache/signedcache.php XoopsModules/signed/trunk/modules/signed/class/cache/xcache.php XoopsModules/signed/trunk/modules/signed/class/captcha/ XoopsModules/signed/trunk/modules/signed/class/captcha/index.html XoopsModules/signed/trunk/modules/signed/class/captcha/signedcaptcha.php XoopsModules/signed/trunk/modules/signed/class/cryptus/ XoopsModules/signed/trunk/modules/signed/class/cryptus/aesctr/ XoopsModules/signed/trunk/modules/signed/class/cryptus/aesctr/aes.class.php XoopsModules/signed/trunk/modules/signed/class/cryptus/aesctr/aesctr.class.php XoopsModules/signed/trunk/modules/signed/class/cryptus/aesctr/aesctr.php XoopsModules/signed/trunk/modules/signed/class/cryptus/aesctr/index.html XoopsModules/signed/trunk/modules/signed/class/cryptus/cryptus.php XoopsModules/signed/trunk/modules/signed/class/cryptus/index.html XoopsModules/signed/trunk/modules/signed/class/cryptus/mcrypt/ XoopsModules/signed/trunk/modules/signed/class/cryptus/mcrypt/index.html XoopsModules/signed/trunk/modules/signed/class/cryptus/mcrypt/mcrypt.php XoopsModules/signed/trunk/modules/signed/class/cryptus/mysql/ XoopsModules/signed/trunk/modules/signed/class/cryptus/mysql/index.html XoopsModules/signed/trunk/modules/signed/class/cryptus/mysql/mysql.php XoopsModules/signed/trunk/modules/signed/class/cryptus/openssl/ XoopsModules/signed/trunk/modules/signed/class/cryptus/openssl/index.html XoopsModules/signed/trunk/modules/signed/class/cryptus/openssl/openssl.php XoopsModules/signed/trunk/modules/signed/class/cryptus/rsa-openssl/ XoopsModules/signed/trunk/modules/signed/class/cryptus/rsa-openssl/index.html XoopsModules/signed/trunk/modules/signed/class/cryptus/rsa-openssl/rsa-openssl.php XoopsModules/signed/trunk/modules/signed/class/cryptus.php XoopsModules/signed/trunk/modules/signed/class/event_links.php XoopsModules/signed/trunk/modules/signed/class/events.php XoopsModules/signed/trunk/modules/signed/class/file/ XoopsModules/signed/trunk/modules/signed/class/file/index.html XoopsModules/signed/trunk/modules/signed/class/file/signedfile.php XoopsModules/signed/trunk/modules/signed/class/index.html XoopsModules/signed/trunk/modules/signed/class/keiyes.php XoopsModules/signed/trunk/modules/signed/class/mail/ XoopsModules/signed/trunk/modules/signed/class/mail/index.html XoopsModules/signed/trunk/modules/signed/class/mail/signedmultimailer.php XoopsModules/signed/trunk/modules/signed/class/mobile/ XoopsModules/signed/trunk/modules/signed/class/mobile/handlers/ XoopsModules/signed/trunk/modules/signed/class/mobile/handlers/index.html XoopsModules/signed/trunk/modules/signed/class/mobile/handlers/sip.class.php XoopsModules/signed/trunk/modules/signed/class/mobile/handlers/sip.exception.php XoopsModules/signed/trunk/modules/signed/class/mobile/handlers/sms.cardboardfish.php XoopsModules/signed/trunk/modules/signed/class/mobile/handlers/sms.sip.php XoopsModules/signed/trunk/modules/signed/class/mobile/index.html XoopsModules/signed/trunk/modules/signed/class/mobile/plugin/ XoopsModules/signed/trunk/modules/signed/class/mobile/plugin/index.html XoopsModules/signed/trunk/modules/signed/class/mobile/signedsmscontroller.php XoopsModules/signed/trunk/modules/signed/class/mobile/signedsmsmobile.php XoopsModules/signed/trunk/modules/signed/class/signatures.php XoopsModules/signed/trunk/modules/signed/class/signedapi.php XoopsModules/signed/trunk/modules/signed/class/signedarrays.php XoopsModules/signed/trunk/modules/signed/class/signedcanvas.php XoopsModules/signed/trunk/modules/signed/class/signedciphers.php XoopsModules/signed/trunk/modules/signed/class/signededitor/ XoopsModules/signed/trunk/modules/signed/class/signededitor/index.html XoopsModules/signed/trunk/modules/signed/class/signededitor/readme.txt XoopsModules/signed/trunk/modules/signed/class/signededitor/signededitor.php XoopsModules/signed/trunk/modules/signed/class/signedform/ XoopsModules/signed/trunk/modules/signed/class/signedform/form.php XoopsModules/signed/trunk/modules/signed/class/signedform/formbutton.php XoopsModules/signed/trunk/modules/signed/class/signedform/formbuttontray.php XoopsModules/signed/trunk/modules/signed/class/signedform/formcaptcha.php XoopsModules/signed/trunk/modules/signed/class/signedform/formcheckbox.php XoopsModules/signed/trunk/modules/signed/class/signedform/formcolorpicker.php XoopsModules/signed/trunk/modules/signed/class/signedform/formdatetime.php XoopsModules/signed/trunk/modules/signed/class/signedform/formdhtmltextarea.php XoopsModules/signed/trunk/modules/signed/class/signedform/formeditor.php XoopsModules/signed/trunk/modules/signed/class/signedform/formelement.php XoopsModules/signed/trunk/modules/signed/class/signedform/formelementtray.php XoopsModules/signed/trunk/modules/signed/class/signedform/formfile.php XoopsModules/signed/trunk/modules/signed/class/signedform/formhidden.php XoopsModules/signed/trunk/modules/signed/class/signedform/formhiddentoken.php XoopsModules/signed/trunk/modules/signed/class/signedform/formlabel.php XoopsModules/signed/trunk/modules/signed/class/signedform/formpassword.php XoopsModules/signed/trunk/modules/signed/class/signedform/formradio.php XoopsModules/signed/trunk/modules/signed/class/signedform/formradioyn.php XoopsModules/signed/trunk/modules/signed/class/signedform/formselect.php XoopsModules/signed/trunk/modules/signed/class/signedform/formselectcheckgroup.php XoopsModules/signed/trunk/modules/signed/class/signedform/formselectcountry.php XoopsModules/signed/trunk/modules/signed/class/signedform/formselecteditor.php XoopsModules/signed/trunk/modules/signed/class/signedform/formselectenumerator.php XoopsModules/signed/trunk/modules/signed/class/signedform/formselectmatchoption.php XoopsModules/signed/trunk/modules/signed/class/signedform/formselectmonths.php XoopsModules/signed/trunk/modules/signed/class/signedform/formselecttimezone.php XoopsModules/signed/trunk/modules/signed/class/signedform/formselectyears.php XoopsModules/signed/trunk/modules/signed/class/signedform/formtext.php XoopsModules/signed/trunk/modules/signed/class/signedform/formtextarea.php XoopsModules/signed/trunk/modules/signed/class/signedform/formtextdateselect.php XoopsModules/signed/trunk/modules/signed/class/signedform/index.html XoopsModules/signed/trunk/modules/signed/class/signedform/simpleform.php XoopsModules/signed/trunk/modules/signed/class/signedform/tableform.php XoopsModules/signed/trunk/modules/signed/class/signedform/themeform.php XoopsModules/signed/trunk/modules/signed/class/signedformloader.php XoopsModules/signed/trunk/modules/signed/class/signedlists.php XoopsModules/signed/trunk/modules/signed/class/signedlogger.php XoopsModules/signed/trunk/modules/signed/class/signedmailer.php XoopsModules/signed/trunk/modules/signed/class/signedmobile.php XoopsModules/signed/trunk/modules/signed/class/signedobject.php XoopsModules/signed/trunk/modules/signed/class/signedpackages.php XoopsModules/signed/trunk/modules/signed/class/signedprocesses.php XoopsModules/signed/trunk/modules/signed/class/signedprompts.php XoopsModules/signed/trunk/modules/signed/class/signedsecurity.php XoopsModules/signed/trunk/modules/signed/class/signedsession.php XoopsModules/signed/trunk/modules/signed/class/signedstorage.php XoopsModules/signed/trunk/modules/signed/class/uploader.php XoopsModules/signed/trunk/modules/signed/class/wideimage/ XoopsModules/signed/trunk/modules/signed/class/wideimage/Canvas.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Coordinate.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Exception.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Font/ XoopsModules/signed/trunk/modules/signed/class/wideimage/Font/GDF.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Font/PS.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Font/TTF.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Image.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Mapper/ XoopsModules/signed/trunk/modules/signed/class/wideimage/Mapper/BMP.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Mapper/GD.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Mapper/GD2.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Mapper/GIF.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Mapper/JPEG.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Mapper/PNG.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Mapper/TGA.php XoopsModules/signed/trunk/modules/signed/class/wideimage/MapperFactory.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/ XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/AddNoise.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/ApplyConvolution.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/ApplyFilter.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/ApplyMask.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/AsGrayscale.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/AsNegative.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/AutoCrop.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/CopyChannelsPalette.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/CopyChannelsTrueColor.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/CorrectGamma.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/Crop.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/Flip.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/GetMask.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/Merge.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/Mirror.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/Resize.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/ResizeCanvas.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/Rotate.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/RoundCorners.php XoopsModules/signed/trunk/modules/signed/class/wideimage/Operation/Unsharp.php XoopsModules/signed/trunk/modules/signed/class/wideimage/OperationFactory.php XoopsModules/signed/trunk/modules/signed/class/wideimage/PaletteImage.php XoopsModules/signed/trunk/modules/signed/class/wideimage/TrueColorImage.php XoopsModules/signed/trunk/modules/signed/class/wideimage/WideImage.php XoopsModules/signed/trunk/modules/signed/class/wideimage/index.html XoopsModules/signed/trunk/modules/signed/class/wideimage/vendor/ XoopsModules/signed/trunk/modules/signed/class/wideimage/vendor/de77/ XoopsModules/signed/trunk/modules/signed/class/wideimage/vendor/de77/BMP.php XoopsModules/signed/trunk/modules/signed/class/wideimage/vendor/de77/TGA.php XoopsModules/signed/trunk/modules/signed/class/xcp/ XoopsModules/signed/trunk/modules/signed/class/xcp/.htaccess XoopsModules/signed/trunk/modules/signed/class/xcp/XCP-Logo.png XoopsModules/signed/trunk/modules/signed/class/xcp/XCP-Logo.psd XoopsModules/signed/trunk/modules/signed/class/xcp/XCP-Logo.xcf XoopsModules/signed/trunk/modules/signed/class/xcp/debug_base.php XoopsModules/signed/trunk/modules/signed/class/xcp/debug_enumerator.php XoopsModules/signed/trunk/modules/signed/class/xcp/debug_leaver.php XoopsModules/signed/trunk/modules/signed/class/xcp/index.php XoopsModules/signed/trunk/modules/signed/class/xcp/xcp.base.php XoopsModules/signed/trunk/modules/signed/class/xcp/xcp.class.php XoopsModules/signed/trunk/modules/signed/class/xcp/xcp.enumerator.php XoopsModules/signed/trunk/modules/signed/class/xcp/xcp.leaver.php XoopsModules/signed/trunk/modules/signed/class/xmlarray.php XoopsModules/signed/trunk/modules/signed/class/xmlwrapper.php XoopsModules/signed/trunk/modules/signed/crons/ XoopsModules/signed/trunk/modules/signed/crons/.htaccess XoopsModules/signed/trunk/modules/signed/crons/callbacks.php XoopsModules/signed/trunk/modules/signed/crons/expires.php XoopsModules/signed/trunk/modules/signed/crons/expiry.php XoopsModules/signed/trunk/modules/signed/crons/index.html XoopsModules/signed/trunk/modules/signed/crons/request.php XoopsModules/signed/trunk/modules/signed/css/ XoopsModules/signed/trunk/modules/signed/css/calendar-blue.css XoopsModules/signed/trunk/modules/signed/css/index.html XoopsModules/signed/trunk/modules/signed/css/signed.css XoopsModules/signed/trunk/modules/signed/css/style.css XoopsModules/signed/trunk/modules/signed/dojsonids.php XoopsModules/signed/trunk/modules/signed/dojsonoperations.php XoopsModules/signed/trunk/modules/signed/fonts/ XoopsModules/signed/trunk/modules/signed/fonts/index.html XoopsModules/signed/trunk/modules/signed/footer.php XoopsModules/signed/trunk/modules/signed/generator.php XoopsModules/signed/trunk/modules/signed/go/ XoopsModules/signed/trunk/modules/signed/go/.htaccess XoopsModules/signed/trunk/modules/signed/go/index.php XoopsModules/signed/trunk/modules/signed/header.php XoopsModules/signed/trunk/modules/signed/image/ XoopsModules/signed/trunk/modules/signed/image/icons/ XoopsModules/signed/trunk/modules/signed/image/icons/16/ XoopsModules/signed/trunk/modules/signed/image/icons/16/index.html XoopsModules/signed/trunk/modules/signed/image/icons/32/ XoopsModules/signed/trunk/modules/signed/image/icons/32/about.png XoopsModules/signed/trunk/modules/signed/image/icons/32/event.png XoopsModules/signed/trunk/modules/signed/image/icons/32/identity.png XoopsModules/signed/trunk/modules/signed/image/icons/32/index.html XoopsModules/signed/trunk/modules/signed/image/icons/32/security.png XoopsModules/signed/trunk/modules/signed/image/icons/index.html XoopsModules/signed/trunk/modules/signed/image/index.html XoopsModules/signed/trunk/modules/signed/image/loading.gif XoopsModules/signed/trunk/modules/signed/image/signed.png XoopsModules/signed/trunk/modules/signed/image/watermark.gif XoopsModules/signed/trunk/modules/signed/image/watermark.php XoopsModules/signed/trunk/modules/signed/include/ XoopsModules/signed/trunk/modules/signed/include/blowfish-salt.php XoopsModules/signed/trunk/modules/signed/include/common.php XoopsModules/signed/trunk/modules/signed/include/configs.php XoopsModules/signed/trunk/modules/signed/include/constants.php XoopsModules/signed/trunk/modules/signed/include/form-edit-object.php XoopsModules/signed/trunk/modules/signed/include/form-generic-edit-form.php XoopsModules/signed/trunk/modules/signed/include/form-generic-form.php XoopsModules/signed/trunk/modules/signed/include/form-identification-edit-form.php XoopsModules/signed/trunk/modules/signed/include/form-identification-form.php XoopsModules/signed/trunk/modules/signed/include/form-object.php XoopsModules/signed/trunk/modules/signed/include/functions.php XoopsModules/signed/trunk/modules/signed/include/index.html XoopsModules/signed/trunk/modules/signed/include/language.php XoopsModules/signed/trunk/modules/signed/include/salty-api-uri.diz XoopsModules/signed/trunk/modules/signed/include/strata-api-uri.diz XoopsModules/signed/trunk/modules/signed/include/upgrade-module.php XoopsModules/signed/trunk/modules/signed/index.php XoopsModules/signed/trunk/modules/signed/js/ XoopsModules/signed/trunk/modules/signed/js/calendar.js XoopsModules/signed/trunk/modules/signed/js/color-picker.js XoopsModules/signed/trunk/modules/signed/js/formdhtmltextarea.js XoopsModules/signed/trunk/modules/signed/js/index.html XoopsModules/signed/trunk/modules/signed/js/json.validation.js XoopsModules/signed/trunk/modules/signed/js/layersmenu.js XoopsModules/signed/trunk/modules/signed/js/signed.js XoopsModules/signed/trunk/modules/signed/language/ XoopsModules/signed/trunk/modules/signed/language/english/ XoopsModules/signed/trunk/modules/signed/language/english/admin.php XoopsModules/signed/trunk/modules/signed/language/english/calendar.php XoopsModules/signed/trunk/modules/signed/language/english/captcha.php XoopsModules/signed/trunk/modules/signed/language/english/content.php XoopsModules/signed/trunk/modules/signed/language/english/countries.php XoopsModules/signed/trunk/modules/signed/language/english/errors.php XoopsModules/signed/trunk/modules/signed/language/english/formdhtmltextarea.php XoopsModules/signed/trunk/modules/signed/language/english/global.php XoopsModules/signed/trunk/modules/signed/language/english/help/ XoopsModules/signed/trunk/modules/signed/language/english/help/help.html XoopsModules/signed/trunk/modules/signed/language/english/help/index.html XoopsModules/signed/trunk/modules/signed/language/english/index.html XoopsModules/signed/trunk/modules/signed/language/english/mail.php XoopsModules/signed/trunk/modules/signed/language/english/mail_template/ XoopsModules/signed/trunk/modules/signed/language/english/mail_template/html/ XoopsModules/signed/trunk/modules/signed/language/english/mail_template/html/expired-identification.html XoopsModules/signed/trunk/modules/signed/language/english/mail_template/html/expired-signature.html XoopsModules/signed/trunk/modules/signed/language/english/mail_template/html/index.html XoopsModules/signed/trunk/modules/signed/language/english/mail_template/html/signature-email.html XoopsModules/signed/trunk/modules/signed/language/english/mail_template/html/update-request.html XoopsModules/signed/trunk/modules/signed/language/english/mail_template/html/verify-email.html XoopsModules/signed/trunk/modules/signed/language/english/mail_template/index.html XoopsModules/signed/trunk/modules/signed/language/english/mail_template/text/ XoopsModules/signed/trunk/modules/signed/language/english/mail_template/text/expired-identification.txt XoopsModules/signed/trunk/modules/signed/language/english/mail_template/text/expired-signature.txt XoopsModules/signed/trunk/modules/signed/language/english/mail_template/text/index.html XoopsModules/signed/trunk/modules/signed/language/english/mail_template/text/signature-email.txt XoopsModules/signed/trunk/modules/signed/language/english/mail_template/text/update-request.txt XoopsModules/signed/trunk/modules/signed/language/english/mail_template/text/verify-email.txt XoopsModules/signed/trunk/modules/signed/language/english/main.php XoopsModules/signed/trunk/modules/signed/language/english/modinfo.php XoopsModules/signed/trunk/modules/signed/language/english/months.php XoopsModules/signed/trunk/modules/signed/language/english/signedmailerlocal.php XoopsModules/signed/trunk/modules/signed/language/english/signedmobilelocal.php XoopsModules/signed/trunk/modules/signed/language/english/sms_template/ XoopsModules/signed/trunk/modules/signed/language/english/sms_template/index.html XoopsModules/signed/trunk/modules/signed/language/english/sms_template/verify-mobile.txt XoopsModules/signed/trunk/modules/signed/language/english/style.css XoopsModules/signed/trunk/modules/signed/language/english/timezone.php XoopsModules/signed/trunk/modules/signed/language/english/titles.php XoopsModules/signed/trunk/modules/signed/language/english/uploader.php XoopsModules/signed/trunk/modules/signed/language/index.html XoopsModules/signed/trunk/modules/signed/preloads/ XoopsModules/signed/trunk/modules/signed/preloads/api.php XoopsModules/signed/trunk/modules/signed/preloads/index.html XoopsModules/signed/trunk/modules/signed/request.php XoopsModules/signed/trunk/modules/signed/reset.php XoopsModules/signed/trunk/modules/signed/sql/ XoopsModules/signed/trunk/modules/signed/sql/index.html XoopsModules/signed/trunk/modules/signed/sql/mysql.sql XoopsModules/signed/trunk/modules/signed/templates/ XoopsModules/signed/trunk/modules/signed/templates/admin/ XoopsModules/signed/trunk/modules/signed/templates/admin/index.html XoopsModules/signed/trunk/modules/signed/templates/admin/signed_events.html XoopsModules/signed/trunk/modules/signed/templates/admin/signed_salty_details.html XoopsModules/signed/trunk/modules/signed/templates/admin/signed_salty_recovery.html XoopsModules/signed/trunk/modules/signed/templates/admin/signed_salty_search.html XoopsModules/signed/trunk/modules/signed/templates/admin/signed_signatures.html XoopsModules/signed/trunk/modules/signed/templates/common/ XoopsModules/signed/trunk/modules/signed/templates/common/api.php XoopsModules/signed/trunk/modules/signed/templates/common/canvas.php XoopsModules/signed/trunk/modules/signed/templates/common/index.html XoopsModules/signed/trunk/modules/signed/templates/common/no-url.php XoopsModules/signed/trunk/modules/signed/templates/common/reset.php XoopsModules/signed/trunk/modules/signed/templates/common/start.php XoopsModules/signed/trunk/modules/signed/templates/common/update-identification.php XoopsModules/signed/trunk/modules/signed/templates/common/verify-email.php XoopsModules/signed/trunk/modules/signed/templates/common/verify-mobile.php XoopsModules/signed/trunk/modules/signed/templates/deployed/ XoopsModules/signed/trunk/modules/signed/templates/deployed/entity/ XoopsModules/signed/trunk/modules/signed/templates/deployed/entity/index.html XoopsModules/signed/trunk/modules/signed/templates/deployed/entity/send-email.php XoopsModules/signed/trunk/modules/signed/templates/deployed/entity/update-email.php XoopsModules/signed/trunk/modules/signed/templates/deployed/index.html XoopsModules/signed/trunk/modules/signed/templates/deployed/personal/ XoopsModules/signed/trunk/modules/signed/templates/deployed/personal/index.html XoopsModules/signed/trunk/modules/signed/templates/deployed/personal/send-email.php XoopsModules/signed/trunk/modules/signed/templates/deployed/personal/update-email.php XoopsModules/signed/trunk/modules/signed/templates/fields/ XoopsModules/signed/trunk/modules/signed/templates/fields/entity/ XoopsModules/signed/trunk/modules/signed/templates/fields/entity/generic-edit-form.php XoopsModules/signed/trunk/modules/signed/templates/fields/entity/generic-form.php XoopsModules/signed/trunk/modules/signed/templates/fields/entity/index.html XoopsModules/signed/trunk/modules/signed/templates/fields/identification/ XoopsModules/signed/trunk/modules/signed/templates/fields/identification/identification-edit-form.php XoopsModules/signed/trunk/modules/signed/templates/fields/identification/identification-form.php XoopsModules/signed/trunk/modules/signed/templates/fields/identification/index.html XoopsModules/signed/trunk/modules/signed/templates/fields/index.html XoopsModules/signed/trunk/modules/signed/templates/fields/personal/ XoopsModules/signed/trunk/modules/signed/templates/fields/personal/generic-edit-form.php XoopsModules/signed/trunk/modules/signed/templates/fields/personal/generic-form.php XoopsModules/signed/trunk/modules/signed/templates/fields/personal/index.html XoopsModules/signed/trunk/modules/signed/templates/help/ XoopsModules/signed/trunk/modules/signed/templates/help/entity/ XoopsModules/signed/trunk/modules/signed/templates/help/entity/finished.php XoopsModules/signed/trunk/modules/signed/templates/help/entity/index.html XoopsModules/signed/trunk/modules/signed/templates/help/entity/introduction.php XoopsModules/signed/trunk/modules/signed/templates/help/identification/ XoopsModules/signed/trunk/modules/signed/templates/help/identification/finished-update.php XoopsModules/signed/trunk/modules/signed/templates/help/identification/index.html XoopsModules/signed/trunk/modules/signed/templates/help/identification/needed.php XoopsModules/signed/trunk/modules/signed/templates/help/index.html XoopsModules/signed/trunk/modules/signed/templates/help/personal/ XoopsModules/signed/trunk/modules/signed/templates/help/personal/finished.php XoopsModules/signed/trunk/modules/signed/templates/help/personal/index.html XoopsModules/signed/trunk/modules/signed/templates/help/personal/introduction.php XoopsModules/signed/trunk/modules/signed/templates/index.html XoopsModules/signed/trunk/modules/signed/templates/signed_wrapper.html XoopsModules/signed/trunk/modules/signed/templates/update/ XoopsModules/signed/trunk/modules/signed/templates/update/identification/ XoopsModules/signed/trunk/modules/signed/templates/update/identification/identification-form.php XoopsModules/signed/trunk/modules/signed/templates/update/identification/index.html XoopsModules/signed/trunk/modules/signed/templates/update/index.html XoopsModules/signed/trunk/modules/signed/updator.php XoopsModules/signed/trunk/modules/signed/verifor.php XoopsModules/signed/trunk/modules/signed/xoops_version.php Removed Paths: ------------- XoopsModules/signed/trunk/modules/signed/admin/ XoopsModules/signed/trunk/modules/signed/api/ XoopsModules/signed/trunk/modules/signed/class/ XoopsModules/signed/trunk/modules/signed/crons/ XoopsModules/signed/trunk/modules/signed/css/ XoopsModules/signed/trunk/modules/signed/dojsonids.php XoopsModules/signed/trunk/modules/signed/dojsonoperations.php XoopsModules/signed/trunk/modules/signed/fonts/ XoopsModules/signed/trunk/modules/signed/footer.php XoopsModules/signed/trunk/modules/signed/generator.php XoopsModules/signed/trunk/modules/signed/go/ XoopsModules/signed/trunk/modules/signed/header.php XoopsModules/signed/trunk/modules/signed/image/ XoopsModules/signed/trunk/modules/signed/include/ XoopsModules/signed/trunk/modules/signed/index.php XoopsModules/signed/trunk/modules/signed/js/ XoopsModules/signed/trunk/modules/signed/language/ XoopsModules/signed/trunk/modules/signed/preloads/ XoopsModules/signed/trunk/modules/signed/request.php XoopsModules/signed/trunk/modules/signed/reset.php XoopsModules/signed/trunk/modules/signed/sql/ XoopsModules/signed/trunk/modules/signed/templates/ XoopsModules/signed/trunk/modules/signed/updator.php XoopsModules/signed/trunk/modules/signed/verifor.php XoopsModules/signed/trunk/modules/signed/xoops_version.php Added: XoopsModules/signed/trunk/modules/signed/admin/about.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/admin/about.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/admin/about.php 2015-07-27 01:10:24 UTC (rev 13131) @@ -0,0 +1,34 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 2.07 + * @author Simon Roberts <wis...@us...> + * @author Leshy Cipherhouse <le...@sl...> + * @subpackage administration + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + include_once dirname(__FILE__) . '/../../../include/cp_header.php'; + include '../../../class/xoopsformloader.php'; + include_once dirname(__FILE__) . '/admin_header.php'; + xoops_cp_header(); + + $aboutAdmin = new ModuleAdmin(); + + echo $aboutAdmin->addNavigation('about.php'); + echo $aboutAdmin->renderabout('-------------', false); + + include_once dirname(__FILE__) . '/admin_footer.php'; +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/admin/about.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/admin/admin.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/admin/admin.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/admin/admin.php 2015-07-27 01:10:24 UTC (rev 13131) @@ -0,0 +1,77 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 2.07 + * @author Simon Roberts <wis...@us...> + * @author Leshy Cipherhouse <le...@sl...> + * @subpackage administration + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + include_once dirname(__FILE__) . '/admin_header.php'; + xoops_cp_header(); + + $indexAdmin = new ModuleAdmin(); + + echo $indexAdmin->addNavigation('admin.php'); + $signaturesHandler = xoops_getmodulehandler('signatures', 'signed'); + + $indexAdmin->addInfoBox(_SIGNED_AM_DASHBOARD); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_TOTAL. "</infolabel>", $signaturesHandler->getCount(new Criteria('1', '1')), 'Green'); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_PROGRESS. "</infolabel>", $signaturesHandler->getCount(new Criteria('state', 'progress')), 'Purple'); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_ACTIVE. "</infolabel>", $signaturesHandler->getCount(new Criteria('state', 'active')), 'Blue'); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_INACTIVE. "</infolabel>", $signaturesHandler->getCount(new Criteria('state', 'inactive'))."</infotext>", 'Orange'); + $criteria = new CriteriaCompo(new Criteria('state', 'active')); + $criteria->add(new Criteria('expires', time(), '>=')); + $criteria->add(new Criteria('expires', time() + (3600 * 24 * 7), '<=')); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_EXPIRE_NEXT_WEEK. "</infolabel>", $signaturesHandler->getCount($criteria), 'Red'); + $criteria = new CriteriaCompo(new Criteria('state', 'active')); + $criteria->add(new Criteria('expires', time(), '>=')); + $criteria->add(new Criteria('expires', time() + (3600 * 24 * 14), '<=')); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_EXPIRE_NEXT_FORTNIGHT. "</infolabel>", $signaturesHandler->getCount($criteria), 'Red'); + $criteria = new CriteriaCompo(new Criteria('1', '1')); + $criteria->add(new Criteria('expires', 0, '>')); + $criteria->add(new Criteria('expires', time(), '<=')); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_EXPIRED. "</infolabel>", $signaturesHandler->getCount($criteria), 'Red'); + $criteria = new CriteriaCompo(new Criteria('1', '1')); + $criteria->add(new Criteria('issued', time(), '<=')); + $criteria->add(new Criteria('issued', time() - (3600 * 24 * 7), '>=')); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_ISSUED_LAST_WEEK. "</infolabel>", $signaturesHandler->getCount($criteria), 'Green'); + $criteria = new CriteriaCompo(new Criteria('1', '1')); + $criteria->add(new Criteria('saved', time(), '<=')); + $criteria->add(new Criteria('saved', time() - (3600 * 24 * 7), '>=')); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_CREATED_LAST_WEEK. "</infolabel>", $signaturesHandler->getCount($criteria), 'Cyan'); + $criteria = new CriteriaCompo(new Criteria('1', '1')); + $criteria->add(new Criteria('used', time(), '<=')); + $criteria->add(new Criteria('used', time() - (3600 * 24 * 7), '>=')); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_ACCESSED_LAST_WEEK. "</infolabel>", $signaturesHandler->getCount($criteria), 'Black'); + $criteria = new CriteriaCompo(new Criteria('1', '1')); + $criteria->add(new Criteria('issued', time(), '<=')); + $criteria->add(new Criteria('issued', time() - (3600 * 24 * 14), '>=')); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_ISSUED_LAST_FORTNIGHT. "</infolabel>", $signaturesHandler->getCount($criteria), 'Green'); + $criteria = new CriteriaCompo(new Criteria('1', '1')); + $criteria->add(new Criteria('saved', time(), '<=')); + $criteria->add(new Criteria('saved', time() - (3600 * 24 * 14), '>=')); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_CREATED_LAST_FORTNIGHT. "</infolabel>", $signaturesHandler->getCount($criteria), 'Cyan'); + $criteria = new CriteriaCompo(new Criteria('1', '1')); + $criteria->add(new Criteria('used', time(), '<=')); + $criteria->add(new Criteria('used', time() - (3600 * 24 * 14), '>=')); + $indexAdmin->addInfoBoxLine(_SIGNED_AM_DASHBOARD, "<infolabel>" ._SIGNED_AM_ACCESSED_LAST_FORTNIGHT. "</infolabel>", $signaturesHandler->getCount($criteria), 'Black'); + + echo $indexAdmin->renderIndex(); + + include_once dirname(__FILE__) . '/admin_footer.php'; + +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/admin/admin.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/admin/admin_footer.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/admin/admin_footer.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/admin/admin_footer.php 2015-07-27 01:10:24 UTC (rev 13131) @@ -0,0 +1,26 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 2.07 + * @author Simon Roberts <wis...@us...> + * @author Leshy Cipherhouse <le...@sl...> + * @subpackage administration + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + echo "<div class='adminfooter'>\n" . _SIGNED_AM_ADMIN_FOOTER . "\n" ."</div>"; + + xoops_cp_footer(); +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/admin/admin_footer.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/admin/admin_header.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/admin/admin_header.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/admin/admin_header.php 2015-07-27 01:10:24 UTC (rev 13131) @@ -0,0 +1,66 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 2.07 + * @author Simon Roberts <wis...@us...> + * @author Leshy Cipherhouse <le...@sl...> + * @subpackage administration + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + define("_PATH_ROOT", dirname(__DIR__)); + + require_once '../../../mainfile.php'; + require_once '../../../include/cp_functions.php'; + require_once '../../../include/cp_header.php'; + + + global $xoopsModule; + $thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname'); + + // Load language files + xoops_loadLanguage('admin', $thisModuleDir); + xoops_loadLanguage('modinfo', $thisModuleDir); + xoops_loadLanguage('main', $thisModuleDir); + + xoops_load('pagenav'); + + $pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); + $pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); + $pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); + + include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); + + if ($xoopsUser) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar('mid'), $xoopsUser->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } + } else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); + } + + if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $xoopsTpl = new XoopsTpl(); + } + + if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { + include_once XOOPS_ROOT_PATH . '/class/template.php'; + $GLOBALS['xoopsTpl'] = new XoopsTpl(); + } +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/admin/admin_header.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/admin/events.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/admin/events.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/admin/events.php 2015-07-27 01:10:24 UTC (rev 13131) @@ -0,0 +1,39 @@ +<?php +/** + * Private message + * + * 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 pm + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: prune.php 12593 2014-06-14 16:04:02Z beckmi $ + */ + + include_once dirname(__FILE__) . '/admin_header.php'; + xoops_cp_header(); + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation('events.php'); + + $start = intval(isset($_REQUEST['start']) ? $_REQUEST['start'] : "0"); + $limit = intval(isset($_REQUEST['limit']) ? $_REQUEST['limit'] : "42"); + + $eventsHandler = xoops_getmodulehandler('events', 'signed'); + $pageNav = new XoopsPageNav($eventsHandler->getCount(new Criteria("1","1")), $limit, $start, 'start', 'limit='.$limit); + + $GLOBALS['xoopsTpl']->assign('pagenav', $pageNav->renderNav(5)); + $GLOBALS['xoopsTpl']->append('signatures', $eventsHandler->getAdminTabled($start, $limit)); + $GLOBALS['xoopsTpl']->display($GLOBALS['xoops']->path('/modules/signed/templates/admin/signed_events.html')); + + include_once dirname(__FILE__) . '/admin_footer.php'; + +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/admin/events.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/admin/index.html =================================================================== --- XoopsModules/signed/trunk/modules/signed/admin/index.html (rev 0) +++ XoopsModules/signed/trunk/modules/signed/admin/index.html 2015-07-27 01:10:24 UTC (rev 13131) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/admin/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/admin/menu.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/admin/menu.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/admin/menu.php 2015-07-27 01:10:24 UTC (rev 13131) @@ -0,0 +1,58 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 2.07 + * @author Simon Roberts <wis...@us...> + * @author Leshy Cipherhouse <le...@sl...> + * @subpackage administration + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + $path = dirname(dirname(dirname(dirname(__FILE__)))); + include_once $path . '/mainfile.php'; + + $dirname = basename(dirname(dirname(__FILE__))); + $module_handler = xoops_gethandler('module'); + $module = $module_handler->getByDirname($dirname); + $pathIcon32 = $module->getInfo('icons32'); + $pathModuleAdmin = $module->getInfo('dirmoduleadmin'); + $pathLanguage = $path . $pathModuleAdmin; + + if (!file_exists($fileinc = $pathLanguage . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/' . 'main.php')) { + $fileinc = $pathLanguage . '/language/english/main.php'; + } + + include_once $fileinc; + + $adminmenu = array(); + + $i = 1; + $adminmenu[$i]['title'] = _SIGNED_MI_INDEX; + $adminmenu[$i]['link'] = "admin/admin.php"; + $adminmenu[$i]['icon'] = $pathIcon32.'/security.png' ; + ++$i; + $adminmenu[$i]['title'] = _SIGNED_MI_SIGNATURES; + $adminmenu[$i]['link'] = "admin/signatures.php"; + $adminmenu[$i]['icon'] = $pathIcon32.'/identity.png' ; + ++$i; + $adminmenu[$i]['title'] = _SIGNED_MI_EVENTS; + $adminmenu[$i]['link'] = "admin/events.php"; + $adminmenu[$i]['icon'] = $pathIcon32.'/event.png' ; + ++$i; + $adminmenu[$i]['title'] = _SIGNED_MI_ABOUT; + $adminmenu[$i]['link'] = 'admin/about.php'; + $adminmenu[$i]['icon'] = $pathIcon32.'/about.png'; + +?> \ No newline at end of file Property changes on: XoopsModules/signed/trunk/modules/signed/admin/menu.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/signed/trunk/modules/signed/admin/salty.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/admin/salty.php (rev 0) +++ XoopsModules/signed/trunk/modules/signed/admin/salty.php 2015-07-27 01:10:24 UTC (rev 13131) @@ -0,0 +1,188 @@ +<?php +/** + * Chronolabs Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * + * 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 Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package signed + * @since 2.07 + * @author Simon Roberts <wis...@us...> + * @author Leshy Cipherhouse <le...@sl...> + * @subpackage administration + * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) + */ + + /** + * signed salty api source's + * + * @return array + * + */ + function signed_getSaltyAPIs() + { + $ret = array(); + foreach(explode("\n", file_get_contents(dirname(__DIR__) . DIRECTORY_SEPARATOR . "include" . DIRECTORY_SEPARATOR . "salty-api-uri.diz")) as $key => $line) + { + $parts = explode("||", $line); + $ret[$parts[0]] = $parts[1]; + } + return $ret; + } + + $op = (!isset($_REQUEST['op'])?'default':$_REQUEST["op"]); + $email = (!isset($_REQUEST['email'])?$_SESSION['salty']['email']:$_REQUEST["email"]); + $name = (!isset($_REQUEST['name'])?$_SESSION['salty']['name']:$_REQUEST["name"]); + $url = (!isset($_REQUEST['url'])?$_SESSION['salty']['url']:$_REQUEST["url"]); + $salt = (!isset($_REQUEST['salt'])?'':$_REQUEST["salt"]); + $pin = (!isset($_REQUEST['pin'])?$_SESSION['salty']['pin']:$_REQUEST["pin"]); + $api = (!isset($_REQUEST['api'])?'':$_REQUEST["api"]); + + if (empty($email)||empty($name)||empty($url)||empty($pin)||strlen($pin)<4||!is_numeric($pin)) + $op = 'default'; + require_once 'admin_header.php'; + require_once dirname(__DIR__) . '/class/signedformloader.php'; + require_once dirname(__DIR__) . '/class/signedstorage.php'; + + if (defined("SIGNED_BLOWFISH_SALT") && constant("SIGNED_BLOWFISH_SALT") != "%%%%%%%%%%%%%%%%%%%%%"){ + redirect_header(XOOPS_URL . '/modules/signed/admin/admin.php', 5, _NOPERM); + exit(0); + } + + xoops_cp_header(); + + switch($op) + { + default: + case 'default': + $_SESSION['salty'] = array(); + $stepform = new signedForm(_SIGNED_AM_FORM_SALTY_ONE_TITLE, 'salpha', $_SERVER["REQUEST_URI"], 'post', true); + $stepform->addElement(new XoopsFormText(_SIGNED_AM_FORM_EMAIL, 'email', 32, 255, (empty($email)?$GLOBALS['xoopsConfig']['admin_mail']:$email)), true); + $stepform->addElement(new XoopsFormText(_SIGNED_AM_FORM_NAME, 'name', 32, 255, (empty($name)?$GLOBALS['xoopsConfig']['site_name']:$name)), true); + $stepform->addElement(new XoopsFormText(_SIGNED_AM_FORM_URL, 'url', 32, 255, (empty($url)?constant("XOOPS_URL"):$url)), true); + $stepform->addElement(new XoopsFormText(_SIGNED_AM_FORM_PIN, 'pin', 12, 12, $pin), true); + $stepform->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit'), true); + $stepform->addElement(new XoopsFormHidden('op', 'search')); + $stepform->assign($GLOBALS['xoopsTpl']); + $GLOBALS['xoopsTpl']->display($GLOBALS['xoops']->path('/modules/signed/templates/admin/signed_salty_details.html')); + break; + case 'search': + $_SESSION['salty']['email'] = $email; + $_SESSION['salty']['name'] = $name; + $_SESSION['salty']['url'] = $url; + $_SESSION['salty']['pin'] = $pin; + $GLOBALS['xoopsTpl']->display($GLOBALS['xoops']->path('/modules/signed/templates/admin/signed_salty_search.html')); + include_once dirname(__FILE__) . '/admin_footer.php'; + sleep(mt_rand(3,5)); + $found = false; + foreach(signed_getSaltyAPIs() as $uri => $name) + { + $result = json_decode(signedStorage::getURL("$uri/v2/search.api", 25, 25, array("response"=>"json", "method"=> "email", "query" => $_SESSION['salty']['email'])), true); + if ($result['code']==200) + { + $found = true; + $_SESSION['salty']['api'][$uri]['email'] = $result['results']; + } + sleep(mt_rand(2,3)); + $result = json_decode(signedStorage::getURL("$uri/v2/search.api", 25, 25, array("response"=>"json", "method"=> "uri", "query" => $_SESSION['salty']['uri'])), true); + if ($result['code']==200) + { + $found = true; + $_SESSION['salty']['api'][$uri]['uri'] = $result['results']; + } + sleep(mt_rand(2,3)); + } + if ($found == false) + { + redirect_header(XOOPS_URL . '/modules/signed/admin/salty.php?op=lodge&email='.$email.'&name='.$name.'&pin='.$pin.'&url='.$url.'', 5, _SIGNED_AM_FORM_SALTY_NONEFOUND); + exit(0); + } + redirect_header(XOOPS_URL . '/modules/signed/admin/salty.php?op=recover', 5, _SIGNED_AM_FORM_SALTY_SALTSFOUND); + exit(0); + break; + case "lodge": + $cryptus_handler = xoops_getmodulehandler('cryptus', 'signed'); + $salt = $cryptus_handler->generateSalts(mt_rand(198, 3096), microtime(true)); + if ($cryptus_handler->writeBlowfishSalts(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'blowfish-salt.php', $salt )) + { + $uris = array_keys(signed_getSaltyAPIs()); + shuffle($uris); + foreach($uris as $id => $uri) + { + $result = json_decode(signedStorage::getURL("$uri/v2/lodge.api", 45, 45, array("response"=>"json", "email"=> $email, "name"=> $name , + "pin"=> $pin, "uri"=> $url, "salt"=> $salt)), true); + if ($result['code']==200) + { + unset($_SESSION['salty']); + redirect_header(XOOPS_URL . '/modules/signed/admin/admin.php', 5, _SIGNED_AM_FORM_SALTY_TRANSFIXED); + } + } + } + redirect_header(XOOPS_URL . '/modules/signed/admin/admin.php', 5, _SIGNED_AM_FORM_SALTY_TRANSFIXED); + exit(0); + break; + case "exhume": + + $keys = (isset($_REQUEST['keys'])?$_REQUEST['keys']:array()); + $pins = (isset($_REQUEST['pin'])?$_REQUEST['pin']:array()); + foreach($keys as $idx => $value) + { + $uri = $_SESSION['salty']['keystore'][$_REQUEST['api']][$idx]['uri']; + $_SESSION['salty']['keystore'][$_REQUEST['api']][$idx]['attempts']--; + $result = json_decode(signedStorage::getURL("$uri/v2/retrieve.api", 125, 125, array("response"=>"json", "email"=> $_SESSION['salty']['keystore'][$_REQUEST['api']][$idx]['salt']['email'], + "uri"=> $_SESSION['salty']['keystore'][$_REQUEST['api']][$idx]['salt']['protocol'] . $_SESSION['salty']['keystore'][$_REQUEST['api']][$idx]['salt']['domain'] . $_SESSION['salty']['keystore'][$_REQUEST['api']][$idx]['salt']['path'], + "pin"=> $pins[$idx])), true); + if ($result['code']==200) + { + $cryptus_handler = xoops_getmodulehandler('cryptus', 'signed'); + if ($cryptus_handler->writeBlowfishSalts(dirname(__DIR__) . 'include' . DIRECTORY_SEPARATOR . 'blowfish-salt.php', $result['salt'] )) + { + unset($_SESSION['salty']); + continue; + } + } else { + if ($_SESSION['salty']['keystore'][$_REQUEST['api']][$idx]['attempts']==0) + { + unset($_SESSION['salty']['keystore'][$_REQUEST['api']][$idx]); + if (count($_SESSION['salty']['keystore'][$_REQUEST['api']])==0) + unset($_SESSION['salty']['keystore'][$_REQUEST['api']]); + } + if (count($_SESSION['salty']['keystore'])) + redirect_header(XOOPS_URL . '/modules/signed/admin/salty.php?op=recover', 5, _SIGNED_AM_FORM_SALTY_RECOVERY_FAILED); + else + redirect_header(XOOPS_URL . '/modules/signed/admin/salty.php?op=default', 5, _SIGNED_AM_FORM_SALTY_START_BEGINNING); + exit(0); + } + } + redirect_header(XOOPS_URL . '/modules/signed/admin/admin.php', 5, _SIGNED_AM_FORM_SALTY_TRANSFIXED); + break; + case "recovery": + case "recover": + $saltyapi = signed_getSaltyAPIs(); + if (!isset($_SESSION['salty']['keystore'])) + { + $_SESSION['salty']['keystore'] = array(); + foreach($_SESSION['salty']['api'] as $uri => $methods) + foreach($methods as $method ... [truncated message content] |
From: <wis...@us...> - 2015-07-29 10:31:11
|
Revision: 13133 http://sourceforge.net/p/xoops/svn/13133 Author: wishcraft Date: 2015-07-29 10:31:09 +0000 (Wed, 29 Jul 2015) Log Message: ----------- Signed 2.1.9 Final Major - Puesdo.legal.binding.v2 Modified Paths: -------------- XoopsModules/signed/trunk/modules/signed/admin/admin_header.php XoopsModules/signed/trunk/modules/signed/api/index.php XoopsModules/signed/trunk/modules/signed/api/validate.php XoopsModules/signed/trunk/modules/signed/class/cryptus/aesctr/aesctr.php XoopsModules/signed/trunk/modules/signed/class/cryptus/cryptus.php XoopsModules/signed/trunk/modules/signed/class/cryptus/mcrypt/mcrypt.php XoopsModules/signed/trunk/modules/signed/class/cryptus/mysql/mysql.php XoopsModules/signed/trunk/modules/signed/class/cryptus/openssl/openssl.php XoopsModules/signed/trunk/modules/signed/class/cryptus/rsa-openssl/rsa-openssl.php XoopsModules/signed/trunk/modules/signed/class/signedapi.php XoopsModules/signed/trunk/modules/signed/class/signedformloader.php XoopsModules/signed/trunk/modules/signed/class/signedstorage.php XoopsModules/signed/trunk/modules/signed/class/xcp/debug_base.php XoopsModules/signed/trunk/modules/signed/class/xcp/debug_leaver.php XoopsModules/signed/trunk/modules/signed/class/xcp/index.php XoopsModules/signed/trunk/modules/signed/dojsonids.php XoopsModules/signed/trunk/modules/signed/dojsonoperations.php XoopsModules/signed/trunk/modules/signed/generator.php XoopsModules/signed/trunk/modules/signed/include/blowfish-salt.php XoopsModules/signed/trunk/modules/signed/include/common.php XoopsModules/signed/trunk/modules/signed/include/configs.php XoopsModules/signed/trunk/modules/signed/include/form-object.php XoopsModules/signed/trunk/modules/signed/include/functions.php XoopsModules/signed/trunk/modules/signed/language/english/admin.php XoopsModules/signed/trunk/modules/signed/language/english/modinfo.php XoopsModules/signed/trunk/modules/signed/sql/mysql.sql XoopsModules/signed/trunk/modules/signed/templates/common/canvas.php XoopsModules/signed/trunk/modules/signed/xoops_version.php Modified: XoopsModules/signed/trunk/modules/signed/admin/admin_header.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/admin/admin_header.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/admin/admin_header.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -19,14 +19,13 @@ * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) */ + - define("_PATH_ROOT", dirname(__DIR__)); + $path = dirname(dirname(dirname(dirname(__FILE__)))); + include_once $path . '/mainfile.php'; + include_once $path . '/include/cp_functions.php'; + require_once $path . '/include/cp_header.php'; - require_once '../../../mainfile.php'; - require_once '../../../include/cp_functions.php'; - require_once '../../../include/cp_header.php'; - - global $xoopsModule; $thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname'); Modified: XoopsModules/signed/trunk/modules/signed/api/index.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/index.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/api/index.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -19,10 +19,12 @@ * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) */ - +header('Content-type: application/json'); define('_SIGNED_EVENT_SYSTEM', 'api'); define('_SIGNED_EVENT_TYPE', 'help'); require dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'header.php'; +ini_set("zlib.output_compression", 'Off'); +ini_set("zlib.output_compression_level", -1); require dirname(__FILE__) . _DS_ . 'validate.php'; require _PATH_TEMPLATES . _DS_ . 'common' . _DS_ . 'api.php'; require dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'footer.php'; Modified: XoopsModules/signed/trunk/modules/signed/api/validate.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/api/validate.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/api/validate.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -19,7 +19,7 @@ * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) */ - + if (defined("_SIGNED_API_ENABLED")) { if (constant("_SIGNED_API_ENABLED")==false) { Modified: XoopsModules/signed/trunk/modules/signed/class/cryptus/aesctr/aesctr.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/class/cryptus/aesctr/aesctr.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/class/cryptus/aesctr/aesctr.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -123,7 +123,7 @@ */ function getAlgorithms() { - return array(basename(__DIR__)); + return array(dirname(__DIR__)); } /** @@ -132,9 +132,9 @@ */ function getFileExtensions() { - return array( basename(__DIR__) . '.128' => array("keyen"=>128, "salt" => SIGNED_BLOWFISH_SALT), - basename(__DIR__) . '.192' => array("keyen"=>192, "salt" => SIGNED_BLOWFISH_SALT), - basename(__DIR__) . '.256' => array("keyen"=>256, "salt" => SIGNED_BLOWFISH_SALT)); + return array( dirname(__DIR__) . '.128' => array("keyen"=>128, "salt" => SIGNED_BLOWFISH_SALT), + dirname(__DIR__) . '.192' => array("keyen"=>192, "salt" => SIGNED_BLOWFISH_SALT), + dirname(__DIR__) . '.256' => array("keyen"=>256, "salt" => SIGNED_BLOWFISH_SALT)); } /** Modified: XoopsModules/signed/trunk/modules/signed/class/cryptus/cryptus.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/class/cryptus/cryptus.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/class/cryptus/cryptus.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -19,10 +19,14 @@ * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) */ + +if (!class_exists("signedCryptus")) + die('Signed Cryptus Library objectivity need to be loaded first - Restricted Access!'); -require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'signedlists.php'; +if (!class_exists("signedCryptusHandler")) + die('Signed Cryptus handler need to be loaded first - Restricted Access!'); -class signedCryptusLibraries extends signedCryptus +class signedCryptusLibraries extends signedCryptusHandler { @@ -47,29 +51,27 @@ */ function __construct() { - foreach(signedLists::getDirListAsArray(__DIR__) as $key => $folder) + foreach($this->getDirListAsArray(__DIR__) as $key => $folder) { if (file_exists($cipherlib = __DIR__ . DIRECTORY_SEPARATOR . $folder . DIRECTORY_SEPARATOR . $folder . ".php")) { $pass = true; - require_once $cipherlib; - $class_name = "signedCryptus" . ucfirst(str_replace(array(" "), "", ucwords(str_replace(array("-", ".", "_"), " ", $folder)))); + include_once $cipherlib; + $class_name = "signedCryptus" . str_replace(array(" "), "", ucwords(str_replace(array("-", ".", "_"), " ", $folder))); if (class_exists($class_name)) { $this->cipherobjs[$folder] = new $class_name(); if (count($this->cipherobjs[$folder]->phplibry)>0) { foreach($this->cipherobjs[$folder]->phplibry as $extension) - if (!empty($extension)) - if (!extension_loaded($extension)) - $pass = false; + if (!extension_loaded($extension)) + $pass = false; } if (count($this->cipherobjs[$folder]->phpfuncs)>0) { - foreach($this->cipherobjs[$folder]->phpfuncs as $function) - if (!empty($function)) - if (!function_exists($function)) - $pass = false; + foreach($this->cipherobjs[$folder]->phpfuncs as $function) + if (!function_exists($function)) + $pass = false; } if ($pass==true) { @@ -96,6 +98,9 @@ */ static function getInstance() { + ini_set('display_errors', true); + error_reporting(E_ERROR); + static $object = NULL; if (!is_object($object)) $object = new signedCryptusLibraries(); @@ -107,41 +112,12 @@ * * @return multitype:multitype:number string */ - function encrypt($extension = '', $data = '', $key = '') - { - $parts = explode('.', $extension); - if (!isset($this->cipherobjs[$parts[0]])) - return $data; - $extensions = $this->cipherobjs[$parts[0]]->getFileExtensions(); - return $this->cipherobjs[$parts[0]]->crypt($data, $key, $extensions[$extension]['cipher'], $extensions[$extension]['mode']); - } - - - /** - * - * @return multitype:multitype:number string - */ - function decrypt($extension = '', $data = '', $key = '') + static function getKeyBitz($extensions = array()) { - $parts = explode('.', $extension); - if (!isset($this->cipherobjs[$parts[0]])) - return $data; - $extensions = $this->cipherobjs[$parts[0]]->getFileExtensions(); - return $this->cipherobjs[$parts[0]]->decrypt($data, $key, $extensions[$extension]['cipher'], $extensions[$extension]['mode']); - } - - - /** - * - * @return multitype:multitype:number string - */ - static function getKeysBitz() - { - static $bits = array(); - if (empty($bits)) - foreach($this->extensions as $folder => $extensions) - foreach($extensions as $key => $type) - $bits["$folder.$key"] = $type['keyen']; + if (empty($extensions)) + return false; + foreach($extensions as $fileext => $values) + $bits[$values["keyen"]] = $fileext; return $bits; } @@ -171,7 +147,6 @@ $result[$this->cipherobjs[$folder]->name . " [*.$extension]"] = $extension; else $result[$extension] = $this->cipherobjs[$folder]->name . " [*.$extension]"; - return $result; } /* @@ -195,7 +170,7 @@ { if ($this->pbkdf2Algorithms()!=false) return 'pbkdf2'; - return 'simplioKey'; + return 'simpKey'; } /** @@ -208,32 +183,7 @@ */ function simplioKey($passphrase = '', $salt = '', $key_length = 128, $raw_output = false) { - - if (empty($passphrase) || empty($salt)) - return false; - - if($key_length <= 0) { - $key_length = 128; - } - - while(strlen($passphrase)<$key_length) - $passphrase = $passphrase . $passphrase; - - while(strlen($salt)<$key_length) - $salt = $salt . $salt; - - $output = ''; - for($rt=0;$rt<=$key_length;$rt++) - { - $output = $output . (substr($passphrase, $rt, 1) ^ substr($salt, strlen($salt)- $rt, 1) ^ substr($passphrase, strlen($passphrase) - $rt, 1)); - } - - if($raw_output) { - return substr($output, 0, $key_length); - } - else { - return base64_encode(substr($output, 0, $key_length)); - } + } /** @@ -287,5 +237,34 @@ else { return base64_encode(substr($output, 0, $key_length)); } + } + + + /** + * gets list of name of directories inside a directory + */ + static function getDirListAsArray($dirname) + { + $ignored = array( + 'cvs' , + '_darcs'); + $list = array(); + if (substr($dirname, - 1) != '/') { + $dirname .= '/'; + } + if ($handle = opendir($dirname)) { + while ($file = readdir($handle)) { + if (substr($file, 0, 1) == '.' || in_array(strtolower($file), $ignored)) + continue; + if (is_dir($dirname . $file)) { + $list[$file] = $file; + } + } + closedir($handle); + asort($list); + reset($list); + } + + return $list; } } \ No newline at end of file Modified: XoopsModules/signed/trunk/modules/signed/class/cryptus/mcrypt/mcrypt.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/class/cryptus/mcrypt/mcrypt.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/class/cryptus/mcrypt/mcrypt.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -102,7 +102,7 @@ function getAlgorithms() { - return array(basename(__DIR__) => mcrypt_list_algorithms()); + return array(dirname(__DIR__) => mcrypt_list_algorithms()); } /** @@ -117,7 +117,7 @@ foreach($algorithms as $id => $cipher) foreach(mcrypt_list_modes() as $kiey => $mode) if (($bitz == mcrypt_get_key_size($cipher, $mode)) > 0 ) - $extensions[basename(__DIR__) . '.' . ".$mode.$bitz".str_replace(array(" "), "", ucwords(str_replace(array("-", ".", "_"), " ", $cipher)))] = array("keyen"=>$bitz, "mode"=>$mode, "cipher" => $cipher, "salt" => SIGNED_BLOWFISH_SALT); + $extensions[dirname(__DIR__) . '.' . ".$mode.$bitz".str_replace(array(" "), "", ucwords(str_replace(array("-", ".", "_"), " ", $cipher)))] = array("keyen"=>$bitz, "mode"=>$mode, "cipher" => $cipher, "salt" => SIGNED_BLOWFISH_SALT); return $extensions; } @@ -181,7 +181,7 @@ * @param unknown_type $bitz * @return boolean */ - function decrypt($data = '', $key = '', $cipher = '',$mode = '') + function decrypt($data = '', $key = '', $mode = '', $cipher = '',$mode = '') { if (($bitz = parent::getKeiyeLength($key, array_key($this->getKeyBitz($cipher, $mode))))>0) { Modified: XoopsModules/signed/trunk/modules/signed/class/cryptus/mysql/mysql.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/class/cryptus/mysql/mysql.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/class/cryptus/mysql/mysql.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -42,13 +42,13 @@ * * @var string */ - var $encryptsql = "SELECT %s(\"%s\", \"%s\") as `encrypt`"; + var $encryptsql = "SELECT COMPRESS(%s(\"%s\", \"%s\")) as `encrypt`"; /** * * @var string */ - var $decryptsql = "SELECT %s(\"%s\", \"%s\") as `decrypt`"; + var $decryptsql = "SELECT UNCOMPRESS(%s(\"%s\", \"%s\")) as `decrypt`"; /** * @@ -112,7 +112,9 @@ */ function getAlgorithms() { - return array(basename(__DIR__) => array( 'encode'=>array("encrypt"=>"ENCODE","decrypt"=>"DECODE"))); + return array(dirname(__DIR__) => array( 'code.128'=>array("encrypt"=>"ENCODE","decrypt"=>"DECODE"), + 'des.192'=>array("encrypt"=>"AES_ENCRYPT","decrypt"=>"AES_DECRYPT"), + 'aes.256'=>array("encrypt"=>"AES_ENCRYPT","decrypt"=>"AES_DECRYPT"))); } /** @@ -121,7 +123,9 @@ */ function getFileExtensions() { - return array( basename(__DIR__) . '.encode' => array("keyen"=>128, "salt" => SIGNED_BLOWFISH_SALT)); + return array( dirname(__DIR__) . '.code.128' => array("keyen"=>128, "salt" => SIGNED_BLOWFISH_SALT), + dirname(__DIR__) . '.des.192' => array("keyen"=>192, "salt" => SIGNED_BLOWFISH_SALT), + dirname(__DIR__) . '.aes.256' => array("keyen"=>256, "salt" => SIGNED_BLOWFISH_SALT)); } Modified: XoopsModules/signed/trunk/modules/signed/class/cryptus/openssl/openssl.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/class/cryptus/openssl/openssl.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/class/cryptus/openssl/openssl.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -103,7 +103,7 @@ */ function getAlgorithms() { - return array(basename(__DIR__) => array( 'openssl' => openssl_get_cipher_methods() )); + return array(dirname(__DIR__) => array( 'openssl' => openssl_get_cipher_methods() )); } /** @@ -131,7 +131,7 @@ foreach($this->getAlgorithms() as $folder => $algorithms) foreach($algorithms as $id => $cipher) if (($bitz == openssl_cipher_iv_length($cipher) * 8) > 0 ) - $extensions[basename(__DIR__) . '.' . ".$bitz".str_replace(array(" "), "", ucwords(str_replace(array("-", ".", "_"), " ", $cipher)))] = array("keyen"=>$bitz, "cipher" => $cipher, "salt" => SIGNED_BLOWFISH_SALT); + $extensions[dirname(__DIR__) . '.' . ".$bitz".str_replace(array(" "), "", ucwords(str_replace(array("-", ".", "_"), " ", $cipher)))] = array("keyen"=>$bitz, "cipher" => $cipher, "salt" => SIGNED_BLOWFISH_SALT); return $extensions; } Modified: XoopsModules/signed/trunk/modules/signed/class/cryptus/rsa-openssl/rsa-openssl.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/class/cryptus/rsa-openssl/rsa-openssl.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/class/cryptus/rsa-openssl/rsa-openssl.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -101,7 +101,7 @@ */ function getAlgorithms() { - return array(basename(__DIR__) => array( 'rsa-ssl' => array() )); + return array(dirname(__DIR__) => array( 'rsa-ssl' => array() )); } /** @@ -114,7 +114,7 @@ $confighandler = xoops_gethandler('config'); $signed = $modulehandler->getByDirname('signed'); $configs = $confighandler->getConfigLists($signed->getVar('mid')); - return array( basename(__DIR__) . '.rsa-ssl' => array("keyen"=>"cert", "cert" => $configs['pem-key'])); + return array( dirname(__DIR__) . '.rsa-ssl' => array("keyen"=>"cert", "cert" => $configs['pem-key'])); } /** Modified: XoopsModules/signed/trunk/modules/signed/class/signedapi.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/class/signedapi.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/class/signedapi.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -22,20 +22,6 @@ defined('_PATH_ROOT') or die('Restricted access'); - -/** - * Opens Access Origin Via networking Route NPN - */ -header('Access-Control-Allow-Origin: *'); -header('Origin: *'); - -/** - * Turns of GZ Lib Compression for Document Incompatibility - */ -ini_set("zlib.output_compression", 'Off'); -ini_set("zlib.output_compression_level", -1); - - /** * */ Modified: XoopsModules/signed/trunk/modules/signed/class/signedformloader.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/class/signedformloader.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/class/signedformloader.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -22,36 +22,36 @@ xoops_load('XoopsFormLoader'); -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('Form') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('ThemeForm') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('SimpleForm') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormElement') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormElementTray') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormLabel') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormCheckBox') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormPassword') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormButton') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormButtonTray') . '.php'; // To be cleaned -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormHidden') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormFile') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormRadio') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormRadioYN') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormSelect') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormSelectMatchOption') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormSelectCountry') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormSelectTimeZone') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormSelectEditor') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormSelectEnumerator') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormSelectMonths') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormSelectYears') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormText') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormTextArea') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormTextDateSelect') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormDhtmlTextArea') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormDateTime') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormHiddenToken') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormColorPicker') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormCaptcha') . '.php'; -include_once __DIR__ . DIRECTORY_SEPARATOR . 'signedform' . DIRECTORY_SEPARATOR . strtolower('FormEditor') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('Form') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('ThemeForm') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('SimpleForm') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormElement') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormElementTray') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormLabel') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormCheckBox') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormPassword') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormButton') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormButtonTray') . '.php'; // To be cleaned +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormHidden') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormFile') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormRadio') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormRadioYN') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormSelect') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormSelectMatchOption') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormSelectCountry') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormSelectTimeZone') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormSelectEditor') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormSelectEnumerator') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormSelectMonths') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormSelectYears') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormText') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormTextArea') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormTextDateSelect') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormDhtmlTextArea') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormDateTime') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormHiddenToken') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormColorPicker') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormCaptcha') . '.php'; +include_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedform' . _DS_ . strtolower('FormEditor') . '.php'; ?> \ No newline at end of file Modified: XoopsModules/signed/trunk/modules/signed/class/signedstorage.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/class/signedstorage.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/class/signedstorage.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -173,12 +173,6 @@ return $data; } - /** - * - * @param unknown_type $path - * @param unknown_type $filetitle - * @return string|boolean - */ function file_exists($path = '', $filetitle = '') { foreach($this->_methods as $extension => $function) @@ -384,19 +378,7 @@ { if (!file_exists($filename)) return false; - $data = file_get_contents($filename); - $file = basename($filename); - $path = str_replace(array($file, XOOPS_VAR_PATH), "", $filename); - $keiye_handler = xoops_getmodulehandler('keiyes', 'signed'); - $results = $keiye_handler->retieveKeiye($file, $path); - $extension = $results['algorithm'].'.'.$results['cipher']; - if (!empty($extension) && $extension != '.') - { - $cryptus_handler = xoops_getmodulehandler('cryptus', 'signed'); - $data = $cryptus_handler->cryptolibs->decrypt($extension, $data, $results['key']); - } - if ($GLOBALS['logger'] = signedLogger::getInstance()) $GLOBALS['logger']->logBytes(strlen($data), 'io-read'); return $data; @@ -416,75 +398,13 @@ if (empty($content)) return false; - $file = basename($filename); - $path = str_replace(array($file, XOOPS_VAR_PATH), "", $filename); - $keiye_handler = xoops_getmodulehandler('keiyes', 'signed'); - $algorithm = ''; - $cipher = ''; - $key = ''; - $sealmd5 = $openmd5 = md5($content); - if ($_SESSION['signed']['encryption']) - { - $cryptus_handler = xoops_getmodulehandler('cryptus', 'signed'); - $parts = explode(".", $ext = $cryptus_handler->getRandomExtension()); - $bitz = $cryptus_handler->cryptolibs->getKeysBitz(); - $keyfunc = $cryptus_handler->cryptolibs->kieyeFunc(); - $key = $cryptus_handler->cryptolibs->$keyfunc(sha1($content).md5($content), SIGNED_BLOWFISH_SALT, $bitz[$ext], true); - $algorithm = $parts[0]; - unset($parts[0]); - $cipher = implode('.', $parts); - $openmd5 = md5($content); - $sealmd5 = md5($content = $cryptus_handler->cryptolibs->encrypt($ext, $content, $key)); - } + $f = fopen($filename, 'w'); + fwrite($f, $content, strlen($content)); + fclose($f); - if (file_put_contents($filename, $content, false)) - { - $keiye_handler->lodgeKey($file, $path, $algoritm, $cipher, $key, $sealmd5, $openmd5, filesize($filename)); - if ($GLOBALS['logger'] = signedLogger::getInstance()) - $GLOBALS['logger']->logBytes(strlen($content), 'io-write'); - } + if ($GLOBALS['logger'] = signedLogger::getInstance()) + $GLOBALS['logger']->logBytes(strlen($content), 'io-write'); + return $filename; } - - - /** function getURL() - * - * cURL Routine - * @return string() - */ - public static function getURL($uri = '', $timeout = 17, $connectout = 28, $post_data = array(), $getheaders = false) - { - if (!function_exists("curl_init")) - { - return file_get_contents($uri); - } - if (!$uiol = curl_init($uri)) { - return false; - } - curl_setopt($uiol, CURLOPT_POST, (count($post_data)==0?false:true)); - if (count($post_data)!=0) - curl_setopt($uiol, CURLOPT_POSTFIELDS, http_build_query($post_data)); - curl_setopt($uiol, CURLOPT_CONNECTTIMEOUT, $connectout); - curl_setopt($uiol, CURLOPT_TIMEOUT, $timeout); - curl_setopt($uiol, CURLOPT_RETURNTRANSFER, true); - curl_setopt($uiol, CURLOPT_SSL_VERIFYHOST, false); - curl_setopt($uiol, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($uiol, CURLOPT_VERBOSE, $getheaders); - curl_setopt($uiol, CURLOPT_HEADER, $getheaders); - - /** - * Execute Curl Call - * @var string - */ - $response = curl_exec($uiol); - if ($getheaders==true) { - $infos = curl_getinfo($uiol); - $header = substr($response, 0, curl_getinfo($uiol, CURLINFO_HEADER_SIZE)); - $data = substr($response, curl_getinfo($uiol, CURLINFO_HEADER_SIZE)); - curl_close($uiol); - return array('info'=>$infos, 'header' =>$header, 'data' => $data); - } - curl_close($uiol); - return $response; - } } \ No newline at end of file Modified: XoopsModules/signed/trunk/modules/signed/class/xcp/debug_base.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/class/xcp/debug_base.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/class/xcp/debug_base.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -181,7 +181,7 @@ <?php if (isset($_POST['seed'])) { - //ini_set('display_errors', true'); ini_set('log_errors', true); ini_set('error_log', XOOPS_ROOT_PATH . DIRETORY_SEPARATOR . 'php-errors.txt'); error_reporting(E_ALL); + //; class xcp { Modified: XoopsModules/signed/trunk/modules/signed/class/xcp/debug_leaver.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/class/xcp/debug_leaver.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/class/xcp/debug_leaver.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -184,7 +184,7 @@ <?php if (isset($_POST['charstring'])&&isset($_POST['seed'])&&isset($_POST['length'])) { - //ini_set('display_errors', true'); ini_set('log_errors', true); ini_set('error_log', XOOPS_ROOT_PATH . DIRETORY_SEPARATOR . 'php-errors.txt'); error_reporting(E_ALL); + //; class xcp { @@ -202,7 +202,7 @@ $enum_calc = $enumerator->enum_calc(substr($_POST['charstring'],$i,1),$enum_calc); } - //ini_set('display_errors', true'); ini_set('log_errors', true); ini_set('error_log', XOOPS_ROOT_PATH . DIRETORY_SEPARATOR . 'php-errors.txt'); error_reporting(E_ALL); + //; $crc = new xcp_leaver($enum_calc, $xcp_base, $_POST['length']); echo "Milliseconds: ".(abs((time()+microtime())-$mt)*1000)."\n"; Modified: XoopsModules/signed/trunk/modules/signed/class/xcp/index.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/class/xcp/index.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/class/xcp/index.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -192,7 +192,7 @@ <?php if (isset($_POST['charstring'])&&isset($_POST['seed'])&&isset($_POST['length'])) { - //ini_set('display_errors', true'); ini_set('log_errors', true); ini_set('error_log', XOOPS_ROOT_PATH . DIRETORY_SEPARATOR . 'php-errors.txt'); error_reporting(E_ALL); + //; require ('class/xcp.class.php'); set_time_limit(120); $crc = new xcp($_POST['charstring'], $_POST['seed'], $_POST['length']); Modified: XoopsModules/signed/trunk/modules/signed/dojsonids.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/dojsonids.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/dojsonids.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -19,22 +19,14 @@ * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) */ +header('Content-type: application/json'); +header('Origin: *'); +header('Access-Control-Allow-Origin: *'); require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'common.php'; -$GLOBALS['xoopsLogger']->activated = false; -/** - * Opens Access Origin Via networking Route NPN - */ -header('Access-Control-Allow-Origin: *'); -header('Origin: *'); - -/** - * Turns of GZ Lib Compression for Document Incompatibility - */ ini_set("zlib.output_compression", 'Off'); ini_set("zlib.output_compression_level", -1); - +$GLOBALS['xoopsLogger']->activated = false; ob_end_flush(); -header('Content-type: application/json'); set_time_limit(120); if (signedCiphers::getInstance()->getHash(_URL_ROOT.date('Ymdh').session_id())==$_REQUEST['passkey']) { $ids = signedArrays::getInstance()->returnKeyed($_REQUEST['signature_mode'], 'getIdentificationsArray'); Modified: XoopsModules/signed/trunk/modules/signed/dojsonoperations.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/dojsonoperations.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/dojsonoperations.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -18,22 +18,14 @@ * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) */ - +header('Content-type: application/json'); +header('Origin: *'); +header('Access-Control-Allow-Origin: *'); require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'common.php'; +ini_set("zlib.output_compression", 'Off'); +ini_set("zlib.output_compression_level", -1); $GLOBALS['xoopsLogger']->activated = false; -/** - * Opens Access Origin Via networking Route NPN - */ -header('Access-Control-Allow-Origin: *'); -header('Origin: *'); - -/** - * Turns of GZ Lib Compression for Document Incompatibility - */ -ini_set("zlib.output_compression", 'Off'); -ini_set("zlib.output_compression_level", -1); -header('Content-type: application/json'); set_time_limit(120); $passed = true; if (isset($_REQUEST['fields-typal'])) { Modified: XoopsModules/signed/trunk/modules/signed/generator.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/generator.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/generator.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -19,7 +19,6 @@ * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) */ - $GLOBALS['errors'] = array(); define('_SIGNED_EVENT_SYSTEM', 'generator'); require dirname(__FILE__) . DIRECTORY_SEPARATOR . 'header.php'; Modified: XoopsModules/signed/trunk/modules/signed/include/blowfish-salt.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/include/blowfish-salt.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/include/blowfish-salt.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -15,7 +15,7 @@ * @since 2.07 * @author Simon Roberts <wis...@us...> * @author Leshy Cipherhouse <le...@sl...> - * @subpackage module + * @subpackage cryptographic * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) */ Modified: XoopsModules/signed/trunk/modules/signed/include/common.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/include/common.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/include/common.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -24,7 +24,10 @@ $GLOBALS['signedBoot'] = microtime(true); require_once(dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'mainfile.php'); - + + header('Origin: *'); + header('Access-Control-Allow-Origin: *'); + if (!isset($_SESSION["signed"]['configurations']) || empty($_SESSION["signed"]['configurations'])) { $module_handler = xoops_gethandler('module'); @@ -127,5 +130,5 @@ unset($_SESSION["signed"]['unlink'][$key]); } } - + ?> Modified: XoopsModules/signed/trunk/modules/signed/include/configs.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/include/configs.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/include/configs.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -19,7 +19,7 @@ * @description Digital Signature Generation & API Services (Psuedo-legal correct binding measure) * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) */ - + require_once(dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'mainfile.php'); //Signee Details @@ -52,5 +52,5 @@ define('_SIGNED_CARDBOARDFISH_API_URL', $_SESSION["signed"]['configurations']['cardboardfish_uri']); define('_SIGNED_CARDBOARDFISH_API_USERNAME', $_SESSION["signed"]['configurations']['cardboardfish_user']); define('_SIGNED_CARDBOARDFISH_API_PASSWORD', $_SESSION["signed"]['configurations']['cardboardfish_pass']); - + ?> Modified: XoopsModules/signed/trunk/modules/signed/include/form-object.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/include/form-object.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/include/form-object.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -135,12 +135,14 @@ function verify($mode = '', $variables = array(), $step = '') { - if (isset($_POST['fields-typal']) && !empty($_POST['fields-typal'])) $typal = $_POST['fields-typal']; else $typal = $mode; + if ($GLOBALS['security']->check(true, $variables['SIGNED_TOKEN_REQUEST'])==false) + return false; + $fields = signedArrays::getInstance()->returnKeyed($typal, 'getFieldsArray'); switch(typal) { case 'identification': @@ -156,26 +158,6 @@ default: } - - if (isset($variables['fields-required'])) - { - foreach($variables['fields-required'] as $key => $field) - { - if (!in_array($fields[$field]['type'], array('images', 'logos', 'photos'))) - if (empty($variables[$typal][$key]) || strlen($variables[$typal][$key]) == 0) { - $GLOBALS['errors'][] = "The field titled: <em><strong>" . $fields[$key]['title'] . '</strong></em> ~ is required to continue to the next step!'; - } - } - } - if (isset($variables['upload-fields-required'])) - { - foreach($variables['upload-fields-required'] as $key => $field) - { - if (empty($_FILES[$typal . '-' . $key]['tmp_name']) && $_FILES[$typal . '-' . $key]['size'] == 0) { - $GLOBALS['errors'][] = "The image/file upload field titled: <em><strong>" . $fields[$key]['title'] . '</strong></em> ~ is required to continue to the next step!'; - } - } - } $validations = signedArrays::getInstance()->returnKeyed($typal, "getValidationsArray"); foreach($variables['fields'] as $key => $field) @@ -198,7 +180,26 @@ } } } - + if (isset($variables['fields-required'])) + { + foreach($variables['fields-required'] as $key => $field) + { + if (!in_array($fields[$field]['type'], array('images', 'logo', 'photo'))) + if (empty($variables[$typal][$key]) || strlen($variables[$typal][$key]) == 0) { + $GLOBALS['errors'][] = "The field titled: <em><strong>" . $fields[$key]['title'] . '</strong></em> ~ is required to continue to the next step!'; + } + } + } + if (isset($variables['upload-fields-required'])) + { + foreach($variables['upload-fields-required'] as $key => $field) + { + if (empty($_FILES[$typal . '-' . $key]['tmp_name']) && $_FILES[$typal . '-' . $key]['size'] == 0) { + $GLOBALS['errors'][] = "The image/file upload field titled: <em><strong>" . $fields[$key]['title'] . '</strong></em> ~ is required to continue to the next step!'; + } + } + } + $fields = signedArrays::getInstance()->returnKeyed($typal, 'getFieldsArray'); $package = array(); foreach($fields as $name => $field) { Modified: XoopsModules/signed/trunk/modules/signed/include/functions.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/include/functions.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/include/functions.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -20,16 +20,15 @@ * @link https://signed.labs.coop Digital Signature Generation & API Services (Psuedo-legal correct binding measure) */ - + require_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'xmlarray.php'; require_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'xmlwrapper.php'; require_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'cache' . _DS_ . 'signedcache.php'; require_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedlists.php'; - + /** * Loads signed Objectivity */ - require_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedapi.php'; require_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedarrays.php'; require_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedcanvas.php'; @@ -41,23 +40,21 @@ require_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedprompts.php'; require_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedsecurity.php'; require_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedstorage.php'; - require_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'cryptus.php'; + require_once _PATH_ROOT . _DS_ . 'class' . _DS_ . 'signedcryptus.php'; - if (file_exists($blowfish = __DIR__ . DIRECTORY_SEPARATOR . 'blowfish-salt.php')) - { + if (file_exists($blowfish = __DIR__ . DIRECTORY_SEPARATOR . 'blowfish-salt.php')) require_once($blowfish); if (constant("SIGNED_BLOWFISH_SALT") != "%%%%%%%%%%%%%%%%%%%%%") + chmod($blowfish, 0400); + elseif(signedCryptusHandler::writeBlowfishSalts($blowfish)) chmod($blowfish, 0400); - } - + /** * gets Instances of signed Objectivity */ global $security, $io; $GLOBALS['security'] = signedSecurity::getInstance(); $GLOBALS['io'] = signedStorage::getInstance(_SIGNED_STORAGE); - - /** * signed language loader wrapper @@ -145,80 +142,77 @@ return $mailer; } - /** * Function to get the base domain name from a URL. * credit for this function should goto Phosphorus and Lime, it is released under LGPL. * * @param string $url the URL to be stripped. * @return string + * @fixed */ - function signed_getBaseDomain($url) + function signed_getBaseDomain($url, $debug = 0) { - static $strata, $fallout, $stratas; - - require_once dirname(__DIR__) . 'class'. DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR . 'signedcache.php'; - - if (empty($strata)) - { - if (!$strata = SignedCache::read('internets_stratas')) - { - if (empty($stratas)) - $stratas = explode("\n", file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'strata-api-uri.diz')); - shuffle($stratas); - $attempts = 0; - while(empty($strata) || $attempts < (count($strata) * 1.65)) - { - $attempts++; - $strata = array_keys(unserialize(getURIData($stratas[mt_rand(0, count($stratas)-1)] ."/v1/strata/serial.api", 15, 19))); - } - if (!empty($strata)) - SignedCache::write('internets_stratas', $strata, 3600*24*mt(3.75,11)); - } - } - if (empty($fallout)) - { - if (!$fallout = SignedCache::read('internets_fallouts')) - { - if (empty($stratas)) - $stratas = explode("\n", file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'strata-api-uri.diz')); - shuffle($stratas); - $attempts = 0; - while(empty($fallout) || $attempts < (count($strata) * 1.65)) - { - $attempts++; - $fallout = array_keys(unserialize(getURIData($stratas[mt_rand(0, count($stratas)-1)] ."/v1/fallout/serial.api", 15, 19))); - } - if (!empty($fallout)) - SignedCache::write('internets_fallouts', $fallout, 3600*24*mt(3.75,11)); - } - } - - // Get Full Hostname - $url = strtolower($url); - $hostname = parse_url($url, PHP_URL_HOST); - if (!filter_var($hostname, FILTER_VALIDATE_IP) === true) - return $hostname; - - // break up domain, reverse - $elements = explode('.', $hostname); - $elements = array_reverse($elements); - - // Returns Base Domain - if (in_array($elements[0], $fallout) && in_array($elements[1], $strata)) - return $elements[2] . '.' . $elements[1] . '.' . $elements[0]; - elseif (in_array($elements[0], $fallout) || in_array($elements[0], $strata)) - return $elements[1] . '.' . $elements[0]; - - // Nothing Found - return $hostname; + $base_domain = ''; + $url = strtolower($url); + + if ($G_TLD = signedCache::read('dms_realms_list')) + { + $G_TLD = array_keys(unserialize(file_get_contents("http://strata.labs.coop/v1/strata/serial.api"))); + if (empty($G_TLD)) + $G_TLD = array_keys(unserialize(file_get_contents("https://strata.ringwould.com.au/v1/strata/serial.api"))); + if (empty($G_TLD)) + $G_TLD = array_keys(unserialize(file_get_contents("http://strata.ringwould.com.au/v1/strata/serial.api"))); + signedCache::write('dms_realms_list', $G_TLD, 3600*24*mt(3.75,11)); + } + if ($C_TLD = signedCache::read('fallout_realms_list')) + { + $C_TLD = array_keys(unserialize(file_get_contents("http://strata.labs.coop/v1/fallout/serial.api"))); + if (empty($C_TLD)) + $C_TLD = array_keys(unserialize(file_get_contents("https://strata.ringwould.com.au/v1/fallout/serial.api"))); + if (empty($C_TLD)) + $C_TLD = array_keys(unserialize(file_get_contents("http://strata.ringwould.com.au/v1/fallout/serial.api"))); + signedCache::read('fallout_realms_list', $C_TLD, 3600*24*mt(3.75,11)); + } + + // get domain + if (!$full_domain = signed_getUrlDomain($url)) { + return $base_domain; + } + + // break up domain, reverse + $DOMAIN = explode('.', $full_domain); + if ($debug) { + //print_r($DOMAIN); + } + $DOMAIN = array_reverse($DOMAIN); + if ($debug) { + //print_r($DOMAIN); + } + // first check for ip address + if (count($DOMAIN) == 4 && is_numeric($DOMAIN[0]) && is_numeric($DOMAIN[3])) { + return $full_domain; + } + + // if only 2 domain parts, that must be our domain + if (count($DOMAIN) <= 2) { + return $full_domain; + } + + /* + finally, with 3+ domain parts: obviously D0 is tld now, + if D0 = ctld and D1 = gtld, we might have something like com.uk so, + if D0 = ctld && D1 = gtld && D2 != 'www', domain = D2.D1.D0 else if D0 = ctld && D1 = gtld && D2 == 'www', + domain = D1.D0 else domain = D1.D0 - these rules are simplified below. + */ + if (in_array($DOMAIN[0], $C_TLD) && in_array($DOMAIN[1], $G_TLD) && $DOMAIN[2] != 'www') { + $full_domain = $DOMAIN[2] . '.' . $DOMAIN[1] . '.' . $DOMAIN[0]; + } else { + $full_domain = $DOMAIN[1] . '.' . $DOMAIN[0]; + } + // did we succeed? + return $full_domain; } - /** - * - * @param unknown_type $url - * @return Ambigous <string, mixed> - */ function signed_getUrlDomain($url) { $domain = ''; Modified: XoopsModules/signed/trunk/modules/signed/language/english/admin.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/language/english/admin.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/language/english/admin.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -43,7 +43,6 @@ define('_SIGNED_AM_SIBBLINGS', 'Events in Group'); define('_SIGNED_AM_COMMENT', 'Event comment'); define('_SIGNED_AM_SYSTEM', 'System Type'); - define('_SIGNED_AM_USED', 'Used Signing'); // Dashboard define('_SIGNED_AM_DASHBOARD', 'Signature(s) Binding Totals'); @@ -62,27 +61,6 @@ define('_SIGNED_AM_TOTAL', 'Total Signatures: %s'); //Footer - define("_SIGNED_AM_ADMIN_FOOTER", '<div style="text-align: center; font-size: 145%; margin-top: 9px; padding-top: 13px; text-shadow: 2px 1px 1px rgb(193, 104, 233); border-top: 3px dashed #000;">This module is maintained by the <a target="_blank" class="tooltip" rel="external" href="http://chrono.labs.coop/" title="Visit Chronolabs Landing Page">Chronolabs Cooperative</a> inclusive with the <a target="_blank" class="tooltip" rel="external" href="http://xoops.org/" title="Visit XOOPS Community">XOOPS Community</a><br/><a href="http://www.xoops.org" rel="external"><img style="margin-top: 23px;"src="http://xoops.org/images/logo.png" alt="XOOPS" title="XOOPS"></a><br/><a href="http://labs.coop" rel="external"><img style="margin-top: 19px;"src="http://web.labs.coop/image/logo.png" alt="Chronolabs" title="Chronolabs cooperative"></a></div>'); + define("_SIGNED_AM_ADMIN_FOOTER", '<div style="text-align: center; font-size: 145%; margin-top: 9px; padding-top: 13px; text-shadow: 2px 1px 1px rgb(193, 104, 233); border-top: 3px dashed #000;">This module is maintained by the <a target="_blank" class="tooltip" rel="external" href="http://chrono.labs.coop/" title="Visit Chronolabs Landing Page">Chronolabs Cooperative</a> inclusive with the <a target="_blank" class="tooltip" rel="external" href="http://xoops.org/" title="Visit XOOPS Community">XOOPS Community</a><br/><a href="http://www.xoops.org" rel="external"><img style="margin-top: 23px;"src="http://xoops.org/images/logo.png" alt="XOOPS" title="XOOPS"></a><br/><a href="http://labs.coop" rel="external"><img style="margin-top: 19px;"src="http://web.labs.coop/image/logo.png" alt="Chronolabs" title="Chronolabs cooperative"></a></div>') - // Salty Generator 2.1.8 - define('_SIGNED_AM_FORM_SALTY_ONE_TITLE', 'Populate your Blowfish Salt Information<br/>\n(careful of same pin if exhumation of previous salt!)'); - define('_SIGNED_AM_FORM_EMAIL', 'Blowfish Salt Email Address'); - define('_SIGNED_AM_FORM_NAME', 'Blowfish Salt Naming'); - define('_SIGNED_AM_FORM_URL', 'Blowfish Salt Site Root URI'); - define('_SIGNED_AM_FORM_PIN', 'Your Blowfish Seal Pin Number'); - define('_SIGNED_AM_FORM_SALT', 'Your Blowfish Salt'); - define('_SIGNED_AM_FORM_SALPHA_H1', 'Blowfish Encryption Salter Wizard'); - define('_SIGNED_AM_FORM_SALPHA_H2', 'Recovery of a Blowfish Salt with this Wizard'); - define('_SIGNED_AM_FORM_SALPHA_P1', 'This is the <strong>Blowfish Encryption Salter Wizard</strong>; which allows you to search for existing salt\'s if you are recovering a system or allows you to assigned and save a new system salt for <em>Signed 2</em>!'); - define('_SIGNED_AM_FORM_SALPHA_P2', 'This wizard will allow you to recovery of a Blowfish Salt as long as you remember your pin, without your pin which we do not store only use as an encryption key; there is no way without an accurate pin to recover an existing salt! * CAUTION!!'); - define('_SIGNED_AM_FORM_SSEARCH_H1', 'Searching for Existing Salts!'); - define('_SIGNED_AM_FORM_SSEARCH_P1', 'This will search for a moment then go too the required next steps!'); - define('_SIGNED_AM_FORM_SALTY_NONEFOUND', 'No recovery salts found; moving you to submission and lodgement of a salt to complete wizard!'); - define('_SIGNED_AM_FORM_SALTY_SALTSFOUND', 'There is potentially a blowfish salt to be recovered that has been found; moving you to salt recovery wizard!'); - define('_SIGNED_AM_FORM_SALTY_TRANSFIXED', 'Blowfish Encryption Salt Transfixed on API Recovery Sites and written into code libraries!'); - define('_SIGNED_AM_FORM_SRECOVERY_H1', 'Recover your existing Blowfish Encryption Salt!'); - define('_SIGNED_AM_FORM_SRECOVERY_P1', 'If you have existing signatures on your books or website; then you will have to most likely if your using any systems of the cryptologist libraries included with signed; you will have to recover your existing <strong>Blowfish Encryption Salt!</strong><br/>If you do not then you can simple click on this link: <a href="'. XOOPS_URL . '/modules/signed/admin/salty.php?op=lodge">Lodge a new Encryption Salt</a> and you will start from fresh with the cryptographic engines!'); - define('_SIGNED_AM_FORM_SRECOVERY_P2', 'Below are the salt keys you have a choice from; we do not memories the pin but use it as a cryptographic algorithm; you will have upto five attempts per key to recover one of them; put a pin in select the radio option then press submit to attempt to decipher they blowfish encryption salts from the APIs!'); - define('_SIGNED_AM_FORM_SALTY_RECOVERY_FAILED', 'Recovery Attempt for that Salt Key Failed!'); - define('_SIGNED_AM_FORM_SALTY_START_BEGINNING', 'Recovery Attempt all finished there are no more Salt Key; need too start from the beginning!'); ?> \ No newline at end of file Modified: XoopsModules/signed/trunk/modules/signed/language/english/modinfo.php =================================================================== --- XoopsModules/signed/trunk/modules/signed/language/english/modinfo.php 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/language/english/modinfo.php 2015-07-29 10:31:09 UTC (rev 13133) @@ -29,7 +29,7 @@ // Module Definitions define('_SIGNED_MI_MODULE_NAME', 'Self Signed'); - define('_SIGNED_MI_MODULE_VERSION', '2.19'); + define('_SIGNED_MI_MODULE_VERSION', '1.14'); define('_SIGNED_MI_MODULE_DESCRIPTION', 'Final Major Release'); define('_SIGNED_MI_MODULE_AUTHOR', 'Simon Roberts aka. Leshy Cipherhouse <le...@sl...>'); define('_SIGNED_MI_MODULE_CREDITS', 'cipher, MyNamesNot, Wishcraft'); @@ -179,40 +179,19 @@ define('_SIGNED_MI_SMS_CARDBOARDFISH_PASS_DESC', ''); - // Additions in version 2.0.7 + // Additions in version 2.07 + // Module Preferences + define('_SIGNED_MI_COMPRESSION', 'Enable Data Compression of File Store System'); + define('_SIGNED_MI_COMPRESSION_DESC', 'This currently uses mysql ~ compress(); decompress() in an open select statement!'); define('_SIGNED_MI_ENCRYPTION', 'Enable Cycling Algorithm File Encryption System'); - define('_SIGNED_MI_ENCRYPTION_DESC', 'Every time a data file is read and re-written then change and cycle the encryption algorithm!'); + define('_SIGNED_MI_ENCRYPTION_DESC', ''); define('_SIGNED_MI_CIPHERS', 'Cipher algorithms to use in the cycle'); - define('_SIGNED_MI_CIPHERS_DESC', 'Ciphers to support in the algoritm! (Enable mCrypt + OpenSSL For more Algoritms)'); - define('_SIGNED_MI_SSLPEMKEY_PATH', 'OpenSSL-RSA PEM Key path for [rsa-openssl] cipher'); - define('_SIGNED_MI_SSLPEMKEY_PATH_DESC', 'Path to the PEM Key to use for rsa-openssl signing'); + define('_SIGNED_MI_CIPHERS_DESC', ''); + define('_SIGNED_MI_SSLPEMKEY_PATH', 'OpenSSL-RSA PEM Key path for [rsa-opensll] cipher'); + define('_SIGNED_MI_SSLPEMKEY_PATH_DESC', ''); define('_SIGNED_MI_USEOCR', 'Support OCR API'); - define('_SIGNED_MI_USEOCR_DESC', 'Support the <a href="http://jump.labs.coop/ug8oaq" target="_blank">OCR API for identification bitmapping</a>!!'); + define('_SIGNED_MI_USEOCR_DESC', ''); define('_SIGNED_MI_OCRAPI', 'Path for the Online OCR API'); - define('_SIGNED_MI_OCRAPI_DESC', 'Path for the <a href="http://jump.labs.coop/ug8oaq" target="_blank">OCR API for identification bitmapping</a>!!'); - define('_SIGNED_MI_SALTY_NEEDTOBESET', 'Your blowfish encryption salt needs to be set; you will have to assign one or retrieve your old salt from the API Services!!'); + define('_SIGNED_MI_OCRAPI_DESC', ''); - // Version 2.1.9 - define('_SIGNED_MI_SMS_SIP_SERVER', 'SIP/VOIP Server Hostname'); - define('_SIGNED_MI_SMS_SIP_SERVER_DESC', 'This is the network routable hostname for the SIP/VOIP Service'); - define('_SIGNED_MI_SMS_SIP_USER', 'SIP/VOIP Service Username'); - define('_SIGNED_MI_SMS_SIP_USER_DESC', 'This is the the username for the SIP/VOIP Service'); - define('_SIGNED_MI_SMS_SIP_PASS', 'SIP/VOIP Service Password'); - define('_SIGNED_MI_SMS_SIP_PASS_DESC', 'This is the username for the SIP/VOIP Service'); - - // Version 2.1.9 - Configuration Categories - define('_SIGNED_MI_CONFCAT_SEO', 'URL SEO'); - define('_SIGNED_MI_CONFCAT_SEO_DESC', 'Short URL and .htaccess settings'); - define('_SIGNED_MI_CONFCAT_CIPHERS', 'Cryptographic Engines'); - define('_SIGNED_MI_CONFCAT_CIPHERS_DESC', 'Algorithms and Cipher Options'); - define('_SIGNED_MI_CONFCAT_SYSTEMS', 'General Settings'); - define('_SIGNED_MI_CONFCAT_SYSTEMS_DESC', 'Generalised System Options & Settings'); - define('_SIGNED_MI_CONFCAT_FILES', 'File IO And Stores'); - define('_SIGNED_MI_CONFCAT_FILES_DESC', 'Storage systems and file store methods!'); - define('_SIGNED_MI_CONFCAT_APIS', 'Signed Application Programmable Interfaces'); - define('_SIGNED_MI_CONFCAT_APIS_DESC', 'Option for the self disovery API for Signed!'); - define('_SIGNED_MI_CONFCAT_EMAIL', 'Email options'); - define('_SIGNED_MI_CONFCAT_EMAIL_DESC', 'Settings for Email in Signed!'); - define('_SIGNED_MI_CONFCAT_SMS', 'SMS & Mobile Options'); - define('_SIGNED_MI_CONFCAT_SMS_DESC', 'Settings for SMS & Mobile Messaging!'); ?> \ No newline at end of file Modified: XoopsModules/signed/trunk/modules/signed/sql/mysql.sql =================================================================== --- XoopsModules/signed/trunk/modules/signed/sql/mysql.sql 2015-07-27 01:11:43 UTC (rev 13132) +++ XoopsModules/signed/trunk/modules/signed/sql/mysql.sql 2015-07-29 10:31:09 UTC (rev 13133) @@ -16,26 +16,6 @@ PRIMARY KEY (`signid`) ) ENGINE=INNODB; -CREATE TABLE `signed_keiyes` ( - `keiyeid` mediumint(16) unsigned NOT NULL auto_increment, - `typal` enum('serial', 'xml', 'json', 'raw') NOT NULL default 'raw', - `path` varchar(200) NOT NULL default '', - `filename` varchar(200) NOT NULL default '', - `seal-md5` varchar(32) NOT NULL default '', - `open-md5` varchar(32) NOT NULL default '', - `algorithm` varchar(48) NOT NULL default '', - `cipher` varchar(48) NOT NULL default '', - `key` tinytext, - `last-algorithm` varchar(48) NOT NULL default '', - `last-cipher` varchar(48) NOT NULL default '', - `last-key` tinytext, - `bytes` int(24) unsigned NOT NULL default '0', - `created` int(13) unsigned NOT NULL default '0', - `accessed` int(13) unsigned NOT NULL default '0', - PRIMARY KEY (`keiyeid`), - KEY `indexer` (`path`(14), `filename`(14), `seal-md5`(12)) -) ENGINE=INNODB; - CREATE TABLE `signed_events` ( `eventid` mediumint(19) unsigned NOT NULL auto_increment, `system` varchar(128) NOT NULL defaul... [truncated message content] |