From: <wis...@us...> - 2017-08-19 20:29:31
|
Revision: 13273 http://sourceforge.net/p/xoops/svn/13273 Author: wishcraft Date: 2017-08-19 20:29:28 +0000 (Sat, 19 Aug 2017) Log Message: ----------- Inital Planning of Legal Consent Module! Added Paths: ----------- XoopsModules/consent/ XoopsModules/consent/trunk/ XoopsModules/consent/trunk/modules/ XoopsModules/consent/trunk/modules/consent/ XoopsModules/consent/trunk/modules/consent/admin/ XoopsModules/consent/trunk/modules/consent/admin/index.html XoopsModules/consent/trunk/modules/consent/class/ XoopsModules/consent/trunk/modules/consent/class/agreements.php XoopsModules/consent/trunk/modules/consent/class/batches.php XoopsModules/consent/trunk/modules/consent/class/callbacks.php XoopsModules/consent/trunk/modules/consent/class/clientel.php XoopsModules/consent/trunk/modules/consent/class/emails.php XoopsModules/consent/trunk/modules/consent/class/guardians.php XoopsModules/consent/trunk/modules/consent/class/index.html XoopsModules/consent/trunk/modules/consent/class/objects.php XoopsModules/consent/trunk/modules/consent/class/statistics.php XoopsModules/consent/trunk/modules/consent/header.php XoopsModules/consent/trunk/modules/consent/images/ XoopsModules/consent/trunk/modules/consent/images/1x1.png XoopsModules/consent/trunk/modules/consent/images/index.html XoopsModules/consent/trunk/modules/consent/include/ XoopsModules/consent/trunk/modules/consent/include/data/ XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.ods XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.xlsx XoopsModules/consent/trunk/modules/consent/include/data/index.html XoopsModules/consent/trunk/modules/consent/include/enumerators/ XoopsModules/consent/trunk/modules/consent/include/enumerators/index.html XoopsModules/consent/trunk/modules/consent/include/functions.php XoopsModules/consent/trunk/modules/consent/include/index.html XoopsModules/consent/trunk/modules/consent/language/ XoopsModules/consent/trunk/modules/consent/language/english/ XoopsModules/consent/trunk/modules/consent/language/english/errors.php XoopsModules/consent/trunk/modules/consent/language/english/index.html XoopsModules/consent/trunk/modules/consent/language/english/mail_templates/ XoopsModules/consent/trunk/modules/consent/language/english/mail_templates/index.html XoopsModules/consent/trunk/modules/consent/language/english/modinfo.php XoopsModules/consent/trunk/modules/consent/language/english/style.css XoopsModules/consent/trunk/modules/consent/language/index.html XoopsModules/consent/trunk/modules/consent/sql/ XoopsModules/consent/trunk/modules/consent/sql/index.html XoopsModules/consent/trunk/modules/consent/sql/mysql.sql XoopsModules/consent/trunk/modules/consent/sql/tables.diz XoopsModules/consent/trunk/modules/consent/templates/ XoopsModules/consent/trunk/modules/consent/templates/admin/ XoopsModules/consent/trunk/modules/consent/templates/admin/index.html XoopsModules/consent/trunk/modules/consent/templates/index.html XoopsModules/consent/trunk/modules/consent/templates/pdf/ XoopsModules/consent/trunk/modules/consent/templates/pdf/clientel-consent-grouped.html XoopsModules/consent/trunk/modules/consent/templates/pdf/clientel-consent-individual.html XoopsModules/consent/trunk/modules/consent/templates/pdf/guardian-consent-grouped.html XoopsModules/consent/trunk/modules/consent/templates/pdf/guardian-consent-individual.html XoopsModules/consent/trunk/modules/consent/templates/pdf/index.html XoopsModules/consent/trunk/modules/consent/upload.php XoopsModules/consent/trunk/modules/consent/xoops_version.php Added: XoopsModules/consent/trunk/modules/consent/admin/index.html =================================================================== --- XoopsModules/consent/trunk/modules/consent/admin/index.html (rev 0) +++ XoopsModules/consent/trunk/modules/consent/admin/index.html 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/admin/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/class/agreements.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/class/agreements.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/class/agreements.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,160 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * 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://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MD_consent_MODULE_DIRNAME')) { + return false; +} + +//* +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); + +/** + * Database Table for Agreements in Legal Consent Module + * + * For Table:- + * <code> + * CREATE TABLE `consent_agreements` ( + * `id` int(32) NOT NULL AUTO_INCREMENT, + * `uid` int(13) NOT NULL DEFAULT '0', + * `approval` enum('Waiting','Approved','Unapproved') NOT NULL DEFAULT 'Waiting', + * `batch-id` int(20) NOT NULL DEFAULT '0', + * `gardian-id` int(20) NOT NULL DEFAULT '0', + * `clientel-id` int(20) NOT NULL DEFAULT '0', + * `hashkey` varchar(12) NOT NULL DEFAULT '', + * `referee` varchar(18) NOT NULL DEFAULT '', + * `callback-url` varchar(255) NOT NULL DEFAULT '', + * `svn-path` varchar(255) NOT NULL DEFAULT '', + * `gardian-filename-pdf` varchar(128) NOT NULL DEFAULT '', + * `clientel-filename-pdf` varchar(128) NOT NULL DEFAULT '', + * `gardian-response-file` varchar(128) NOT NULL DEFAULT '', + * `clientel-response-file` varchar(128) NOT NULL DEFAULT '', + * `response-waiting` enum('Gardian','Clientel','Both') NOT NULL DEFAULT 'Both', + * `response-sourced` enum('Gardian','Clientel','Both') NOT NULL DEFAULT 'Both', + * `response-comment` mediumtext, + * `response-network` mediumtext, + * `response-notified` int(11) NOT NULL DEFAULT '0', + * `response-weight` int(11) NOT NULL DEFAULT '0', + * `response-gardian-weight` int(11) NOT NULL DEFAULT '0', + * `response-clientel-weight` int(11) NOT NULL DEFAULT '0', + * `email-ids` mediumtext, + * `email-agreement-type` enum('None','Gardian','Clientel','Both') NOT NULL DEFAULT 'Both', + * `email-recovery-type` enum('None','Gardian','Clientel','Batch') NOT NULL DEFAULT 'None', + * `email-recovery-guardian-sent` int(11) NOT NULL DEFAULT '0', + * `email-recovery-clientel-sent` int(11) NOT NULL DEFAULT '0', + * `email-from` varchar(64) NOT NULL DEFAULT '', + * `email-sent` int(11) NOT NULL DEFAULT '0', + * `email-views` int(11) NOT NULL DEFAULT '0', + * `email-viewed` int(11) NOT NULL DEFAULT '0', + * `email-gardian-sent` int(11) NOT NULL DEFAULT '0', + * `email-gardian-views` int(11) NOT NULL DEFAULT '0', + * `email-gardian-viewed` int(11) NOT NULL DEFAULT '0', + * `email-clientel-sent` int(11) NOT NULL DEFAULT '0', + * `email-clientel-views` int(11) NOT NULL DEFAULT '0', + * `email-clientel-viewed` int(11) NOT NULL DEFAULT '0', + * `email-remiders-sent` int(11) NOT NULL DEFAULT '0', + * `email-remiders-views` int(11) NOT NULL DEFAULT '0', + * `email-remiders-viewed` int(11) NOT NULL DEFAULT '0', + * `email-progress-sent` int(11) NOT NULL DEFAULT '0', + * `email-progress-views` int(11) NOT NULL DEFAULT '0', + * `email-progress-viewed` int(11) NOT NULL DEFAULT '0', + * `email-recovery-sent` int(11) NOT NULL DEFAULT '0', + * `email-recovery-views` int(11) NOT NULL DEFAULT '0', + * `email-recovery-viewed` int(11) NOT NULL DEFAULT '0', + * `created` int(11) NOT NULL DEFAULT '0', + * `emailed` int(11) NOT NULL DEFAULT '0', + * `response` int(11) NOT NULL DEFAULT '0', + * `recovery` int(11) NOT NULL DEFAULT '0', + * `reminde` int(11) NOT NULL DEFAULT '0', + * `timeout` int(11) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`approval`,`batch-id`,`gardian-id`,`clientel-id`,`hashkey`,`email-agreement-type`,`created`,`emailed`,`response`,`reminde`,`timeout`) USING BTREE KEY_BLOCK_SIZE=32 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentAgreements extends consentXoopsObject +{ + + var $handler = 'consentAgreementsHandler'; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('fontid', XOBJ_DTYPE_INT, null, false); + self::initVar('value', XOBJ_DTYPE_INT, null, false); + + if (!empty($id) && !is_null($id)) + { + $handler = new $this->handler; + self::assignVars($handler->get($id)->getValues(array_keys($this->vars))); + } + + } + +} + + +/** + * Handler Class for Agreements + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentAgreementsHandler extends consentXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'consent_agreements'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'consentAgreements'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'value'; + + function __construct(&$db) + { + if (!is_object($db)) + $db = $GLOBAL["xoopsDB"]; + parent::__construct($db, $this->tbl, $this->child, $this->identity, $this->envalued); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/class/agreements.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/class/batches.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/class/batches.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/class/batches.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,176 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * 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://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MD_consent_MODULE_DIRNAME')) { + return false; +} + +//* +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); + +/** + * Database Table for Batches in Legal Consent Module + * + * For Table:- + * <code> + * CREATE TABLE `consent_batches` ( + * `id` int(20) NOT NULL AUTO_INCREMENT, + * `uid` int(13) NOT NULL DEFAULT '0', + * `hashkey` varchar(12) NOT NULL DEFAULT '', + * `referee` varchar(18) NOT NULL DEFAULT '', + * `org` varchar(64) NOT NULL DEFAULT '', + * `name` varchar(64) NOT NULL DEFAULT '', + * `email` varchar(196) NOT NULL DEFAULT '', + * `phone` varchar(20) NOT NULL DEFAULT '', + * `message` mediumtext, + * `event` mediumtext, + * `cc` mediumtext, + * `bcc` mediumtext, + * `callback-url` varchar(255) NOT NULL DEFAULT '', + * `email-agreement-type` enum('Gardian','Clientel','Both') NOT NULL DEFAULT 'Both', + * `csv-lines` int(11) NOT NULL DEFAULT '0', + * `csv-bytes` int(11) NOT NULL DEFAULT '0', + * `csv-md5` varchar(32) NOT NULL DEFAULT ',', + * `csv-field` varchar(8) NOT NULL DEFAULT ',', + * `csv-terminated` varchar(8) NOT NULL DEFAULT '\n', + * `csv-string` varchar(8) NOT NULL DEFAULT '"', + * `response-weight` int(11) NOT NULL DEFAULT '0', + * `response-gardian-weight` int(11) NOT NULL DEFAULT '0', + * `response-clientel-weight` int(11) NOT NULL DEFAULT '0', + * `email-from` varchar(64) NOT NULL DEFAULT '', + * `email-sent` int(11) NOT NULL DEFAULT '0', + * `email-views` int(11) NOT NULL DEFAULT '0', + * `email-viewed` int(11) NOT NULL DEFAULT '0', + * `email-gardian-sent` int(11) NOT NULL DEFAULT '0', + * `email-gardian-views` int(11) NOT NULL DEFAULT '0', + * `email-gardian-viewed` int(11) NOT NULL DEFAULT '0', + * `email-clientel-sent` int(11) NOT NULL DEFAULT '0', + * `email-clientel-views` int(11) NOT NULL DEFAULT '0', + * `email-clientel-viewed` int(11) NOT NULL DEFAULT '0', + * `email-remiders-sent` int(11) NOT NULL DEFAULT '0', + * `email-remiders-views` int(11) NOT NULL DEFAULT '0', + * `email-remiders-viewed` int(11) NOT NULL DEFAULT '0', + * `email-progress-sent` int(11) NOT NULL DEFAULT '0', + * `email-progress-views` int(11) NOT NULL DEFAULT '0', + * `email-progress-viewed` int(11) NOT NULL DEFAULT '0', + * `email-recovery-sent` int(11) NOT NULL DEFAULT '0', + * `email-recovery-views` int(11) NOT NULL DEFAULT '0', + * `email-recovery-viewed` int(11) NOT NULL DEFAULT '0', + * `batches` int(11) NOT NULL DEFAULT '0', + * `gardians-created` int(11) NOT NULL DEFAULT '0', + * `clientel-created` int(11) NOT NULL DEFAULT '0', + * `gardians-existed` int(11) NOT NULL DEFAULT '0', + * `clientel-existed` int(11) NOT NULL DEFAULT '0', + * `batches-failed` int(11) NOT NULL DEFAULT '0', + * `gardians-failed` int(11) NOT NULL DEFAULT '0', + * `clientel-failed` int(11) NOT NULL DEFAULT '0', + * `batches-approved` int(11) NOT NULL DEFAULT '0', + * `gardians-approved` int(11) NOT NULL DEFAULT '0', + * `clientel-approved` int(11) NOT NULL DEFAULT '0', + * `batches-unapproved` int(11) NOT NULL DEFAULT '0', + * `gardians-unapproved` int(11) NOT NULL DEFAULT '0', + * `clientel-unapproved` int(11) NOT NULL DEFAULT '0', + * `batches-recovery` int(11) NOT NULL DEFAULT '0', + * `gardians-recovery` int(11) NOT NULL DEFAULT '0', + * `clientel-recovery` int(11) NOT NULL DEFAULT '0', + * `batches-recovered` int(11) NOT NULL DEFAULT '0', + * `gardians-recovered` int(11) NOT NULL DEFAULT '0', + * `clientel-recovered` int(11) NOT NULL DEFAULT '0', + * `approvals` int(11) NOT NULL DEFAULT '0', + * `reminders` int(11) NOT NULL DEFAULT '0', + * `recovery` int(11) NOT NULL DEFAULT '0', + * `created` int(11) NOT NULL DEFAULT '0', + * `timeout` int(11) NOT NULL DEFAULT '0', + * `reported` int(11) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`hashkey`,`email`,`timeout`) USING BTREE KEY_BLOCK_SIZE=32 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentBatches extends consentXoopsObject +{ + + var $handler = 'consentBatchesHandler'; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('fontid', XOBJ_DTYPE_INT, null, false); + self::initVar('value', XOBJ_DTYPE_INT, null, false); + + if (!empty($id) && !is_null($id)) + { + $handler = new $this->handler; + self::assignVars($handler->get($id)->getValues(array_keys($this->vars))); + } + + } + +} + + +/** + * Handler Class for Batches + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentBatchesHandler extends consentXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'consent_batches'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'consentBatches'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'value'; + + function __construct(&$db) + { + if (!is_object($db)) + $db = $GLOBAL["xoopsDB"]; + parent::__construct($db, $this->tbl, $this->child, $this->identity, $this->envalued); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/class/batches.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/class/callbacks.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/class/callbacks.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/class/callbacks.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,114 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * 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://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MD_consent_MODULE_DIRNAME')) { + return false; +} + +//* +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); + +/** + * Database Table for Callbacks in Legal Consent Module + * + * For Table:- + * <code> + * CREATE TABLE `consent_callbacks` ( + * `when` int(12) NOT NULL, + * `uri` varchar(250) NOT NULL DEFAULT '', + * `timeout` int(4) NOT NULL DEFAULT '0', + * `connection` int(4) NOT NULL DEFAULT '0', + * `data` mediumtext NOT NULL, + * `queries` mediumtext NOT NULL, + * `fails` int(3) NOT NULL DEFAULT '0', + * PRIMARY KEY (`when`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentCallbacks extends consentXoopsObject +{ + + var $handler = 'consentCallbacksHandler'; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('fontid', XOBJ_DTYPE_INT, null, false); + self::initVar('value', XOBJ_DTYPE_INT, null, false); + + if (!empty($id) && !is_null($id)) + { + $handler = new $this->handler; + self::assignVars($handler->get($id)->getValues(array_keys($this->vars))); + } + + } + +} + + +/** + * Handler Class for Callbacks + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentCallbacksHandler extends consentXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'consent_callbacks'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'consentCallbacks'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'value'; + + function __construct(&$db) + { + if (!is_object($db)) + $db = $GLOBAL["xoopsDB"]; + parent::__construct($db, $this->tbl, $this->child, $this->identity, $this->envalued); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/class/callbacks.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/class/clientel.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/class/clientel.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/class/clientel.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,123 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * 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://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MD_consent_MODULE_DIRNAME')) { + return false; +} + +//* +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); + +/** + * Database Table for Clientel in Legal Consent Module + * + * For Table:- + * <code> + * CREATE TABLE `consent_clientel` ( + * `id` int(20) NOT NULL AUTO_INCREMENT, + * `uid` int(13) NOT NULL DEFAULT '0', + * `hashkey` varchar(12) NOT NULL DEFAULT '', + * `name` varchar(64) NOT NULL DEFAULT '', + * `email` varchar(196) NOT NULL DEFAULT '', + * `phone` varchar(20) NOT NULL DEFAULT '', + * `created` int(11) NOT NULL DEFAULT '0', + * `emailed` int(11) NOT NULL DEFAULT '0', + * `response` int(11) NOT NULL DEFAULT '0', + * `undelivered` int(11) NOT NULL DEFAULT '0', + * `recovered` int(11) NOT NULL DEFAULT '0', + * `recovery-id` int(20) NOT NULL DEFAULT '0', + * `agreement-ids` mediumtext, + * `email-views` int(11) NOT NULL DEFAULT '0', + * `email-viewed` int(11) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`hashkey`,`name`,`email`,`phone`) USING BTREE KEY_BLOCK_SIZE=32 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentClientel extends consentXoopsObject +{ + + var $handler = 'consentClientelHandler'; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('fontid', XOBJ_DTYPE_INT, null, false); + self::initVar('value', XOBJ_DTYPE_INT, null, false); + + if (!empty($id) && !is_null($id)) + { + $handler = new $this->handler; + self::assignVars($handler->get($id)->getValues(array_keys($this->vars))); + } + + } + +} + + +/** + * Handler Class for Clientel + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentClientelHandler extends consentXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'consent_clientel'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'consentClientel'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'value'; + + function __construct(&$db) + { + if (!is_object($db)) + $db = $GLOBAL["xoopsDB"]; + parent::__construct($db, $this->tbl, $this->child, $this->identity, $this->envalued); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/class/clientel.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/class/emails.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/class/emails.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/class/emails.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,121 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * 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://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MD_consent_MODULE_DIRNAME')) { + return false; +} + +//* +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); + +/** + * Database Table for Emails in Legal Consent Module + * + * For Table:- + * <code> + * CREATE TABLE `consent_emails` ( + * `id` int(32) NOT NULL AUTO_INCREMENT, + * `approval` enum('Delivered','Undelivered','Unknown') NOT NULL DEFAULT 'Unknown', + * `email-type` enum('Agreement','Reminder','Recovery','Progress','Unknown') NOT NULL DEFAULT 'Unknown', + * `email-target` enum('Batch','Gardian','Clientel','Webmaster','Unknown') NOT NULL DEFAULT 'Unknown', + * `agreement-id` int(20) NOT NULL DEFAULT '0', + * `batch-id` int(20) NOT NULL DEFAULT '0', + * `gardian-id` int(20) NOT NULL DEFAULT '0', + * `clientel-id` int(20) NOT NULL DEFAULT '0', + * `email` varchar(196) NOT NULL DEFAULT '', + * `referee` varchar(18) NOT NULL DEFAULT '', + * `created` int(11) NOT NULL DEFAULT '0', + * `timeout` int(11) NOT NULL DEFAULT '0', + * `checked` int(11) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`approval`,`email-type`,`email-target`,`email`) USING BTREE KEY_BLOCK_SIZE=32 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentEmails extends consentXoopsObject +{ + + var $handler = 'consentEmailsHandler'; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('fontid', XOBJ_DTYPE_INT, null, false); + self::initVar('value', XOBJ_DTYPE_INT, null, false); + + if (!empty($id) && !is_null($id)) + { + $handler = new $this->handler; + self::assignVars($handler->get($id)->getValues(array_keys($this->vars))); + } + + } + +} + + +/** + * Handler Class for Emails + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentEmailsHandler extends consentXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'consent_emails'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'consentEmails'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'value'; + + function __construct(&$db) + { + if (!is_object($db)) + $db = $GLOBAL["xoopsDB"]; + parent::__construct($db, $this->tbl, $this->child, $this->identity, $this->envalued); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/class/emails.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/class/guardians.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/class/guardians.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/class/guardians.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,123 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * 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://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MD_consent_MODULE_DIRNAME')) { + return false; +} + +//* +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); + +/** + * Database Table for Guardians in Legal Consent Module + * + * For Table:- + * <code> + * CREATE TABLE `consent_guardians` ( + * `id` int(20) NOT NULL AUTO_INCREMENT, + * `uid` int(13) NOT NULL DEFAULT '0', + * `hashkey` varchar(12) NOT NULL DEFAULT '', + * `name` varchar(64) NOT NULL DEFAULT '', + * `email` varchar(196) NOT NULL DEFAULT '', + * `phone` varchar(20) NOT NULL DEFAULT '', + * `created` int(11) NOT NULL DEFAULT '0', + * `emailed` int(11) NOT NULL DEFAULT '0', + * `response` int(11) NOT NULL DEFAULT '0', + * `undelivered` int(11) NOT NULL DEFAULT '0', + * `recovered` int(11) NOT NULL DEFAULT '0', + * `recovery-id` int(20) NOT NULL DEFAULT '0', + * `agreement-ids` mediumtext, + * `email-views` int(11) NOT NULL DEFAULT '0', + * `email-viewed` int(11) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`hashkey`,`name`,`email`,`phone`) USING BTREE KEY_BLOCK_SIZE=32 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentGuardians extends consentXoopsObject +{ + + var $handler = 'consentGuardiansHandler'; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('fontid', XOBJ_DTYPE_INT, null, false); + self::initVar('value', XOBJ_DTYPE_INT, null, false); + + if (!empty($id) && !is_null($id)) + { + $handler = new $this->handler; + self::assignVars($handler->get($id)->getValues(array_keys($this->vars))); + } + + } + +} + + +/** + * Handler Class for Guardians + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentGuardiansHandler extends consentXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'consent_guardians'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'consentGuardians'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'value'; + + function __construct(&$db) + { + if (!is_object($db)) + $db = $GLOBAL["xoopsDB"]; + parent::__construct($db, $this->tbl, $this->child, $this->identity, $this->envalued); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/class/guardians.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/class/index.html =================================================================== --- XoopsModules/consent/trunk/modules/consent/class/index.html (rev 0) +++ XoopsModules/consent/trunk/modules/consent/class/index.html 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/class/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/class/objects.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/class/objects.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/class/objects.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,140 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * 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://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MI_CONSENT_MODULE_DIRNAME')) { + return false; +} + +require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'functions.php'; + +/** + * Class for Addresses in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentXoopsObject extends XoopsObject +{ + /** + * (non-PHPdoc) + * @see XoopsObject::assignVar() + */ + function assignVar($key, $value) + { + if ($this->vars[$key]['data_type'] == XOBJ_DTYPE_OTHER) { + parent::assignVar($key, consentDecompressData($value)); + } elseif (strpos($key, 'pass')||strpos($key, 'password')) { + parent::assignVar($key, consentDecryptPassword($value, PLEASE_SALT . PLEASE_SALT_WHENSET)); + } else + parent::assignVar($key, $value); + } + + /** + * (non-PHPdoc) + * @see XoopsObject::cleanVars() + */ + function cleanVars($object = null) + { + $ret = false; + if (empty($object)||is_null($object)) + $object = self; + if (is_a($object, "XoopsObject")) + if ($ret = parent::cleanVars($object)) + { + foreach(array_keys($object->vars) as $field) + { + if ($object->vars[$field]['data_type'] == XOBJ_DTYPE_OTHER) { + $object->vars[$field]['value'] = consentCompressData($object->vars[$field]['value']); + } elseif (strpos($field, 'pass')||strpos($field, 'password')) { + $object->vars[$field]['value'] = consentEncryptPassword($object->vars[$field]['value'], PLEASE_SALT . PLEASE_SALT_WHENSET); + } + } + } + return $ret; + } + + /** + * Returns MD5 Identify hash for handler getMD5()' + * + * @param string $field + * @return string + */ + function getMD5($field = 'id') + { + return md5(PLEASE_SALT . $this->getVar($field) . PLEASE_SALT); + } +} + +/** + * Handler Modelling Class for Addresses in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentXoopsObjectHandler extends XoopsPersistableObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = ''; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = ''; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = ''; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = ''; + + /** + * Class Constructor + * @param XoopsDB $db + * @param string $tbl + * @param string $child + * @param string $identity + * @param string $envalued + */ + function __construct($db, $tbl = '', $child = '', $identity = '', $envalued = '') + { + if (!is_object($db)) + $db = $GLOBAL["xoopsDB"]; + $this->tbl = $tbl; + $this->child = $child; + $this->identity = $identity; + $this->envalued = $envalued; + return parent::__construct($db, $this->tbl, $this->child, $this->identity, $this->envalued); + } + +} \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/class/objects.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/class/statistics.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/class/statistics.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/class/statistics.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,123 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * 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://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MD_consent_MODULE_DIRNAME')) { + return false; +} + +//* +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); + +/** + * Database Table for Statistics in Legal Consent Module + * + * For Table:- + * <code> + * CREATE TABLE `consent_statistics` ( + * `id` mediumint(32) NOT NULL AUTO_INCREMENT, + * `key` varchar(64) NOT NULL DEFAULT '', + * `when` int(13) NOT NULL DEFAULT '0', + * `year` int(4) NOT NULL DEFAULT '0', + * `month` int(2) NOT NULL DEFAULT '0', + * `day` int(2) NOT NULL DEFAULT '0', + * `week` int(2) NOT NULL DEFAULT '0', + * `hour` int(2) NOT NULL DEFAULT '0', + * `minute` int(2) NOT NULL DEFAULT '0', + * `seconds` int(2) NOT NULL DEFAULT '0', + * `quarter` enum('0-15','15-30','30-45','45-60') NOT NULL DEFAULT '0-15', + * `day-name` enum('Sun','Sat','Mon','Tue','Wed','Thu','Fri') NOT NULL DEFAULT 'Sun', + * `stat` float(22,9) NOT NULL DEFAULT '0.000000000', + * `adverage` float(22,9) NOT NULL DEFAULT '0.000000000', + * `stdev` float(22,9) NOT NULL DEFAULT '0.000000000', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`key`,`year`,`month`,`day`,`week`,`hour`,`minute`,`quarter`,`day-name`) USING BTREE KEY_BLOCK_SIZE=32 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentStatistics extends consentXoopsObject +{ + + var $handler = 'consentStatisticsHandler'; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('fontid', XOBJ_DTYPE_INT, null, false); + self::initVar('value', XOBJ_DTYPE_INT, null, false); + + if (!empty($id) && !is_null($id)) + { + $handler = new $this->handler; + self::assignVars($handler->get($id)->getValues(array_keys($this->vars))); + } + + } + +} + + +/** + * Handler Class for Statistics + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class consentStatisticsHandler extends consentXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'consent_statistics'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'consentStatistics'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'value'; + + function __construct(&$db) + { + if (!is_object($db)) + $db = $GLOBAL["xoopsDB"]; + parent::__construct($db, $this->tbl, $this->child, $this->identity, $this->envalued); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/class/statistics.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/header.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/header.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/header.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,59 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * 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://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + if (!defined(_MD_CONSENT_MODULE_DIRNAME)) + define('_MD_CONSENT_MODULE_DIRNAME', basename(__DIR__)); + + include_once (dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'mainfile.php'); + + ini_set('display_errors', true); + error_reporting(E_ALL); + + set_time_limit(8444); + + xoops_loadLanguage('modinfo', _MD_CONSENT_MODULE_DIRNAME); + xoops_loadLanguage('errors', _MD_CONSENT_MODULE_DIRNAME); + + global $consentModule, $consentConfigsList, $consentConfigs, $consentConfigsOptions; + + if (empty($consentModule)) + { + if (is_a($consentModule = xoops_gethandler('module')->getByDirname(_MD_CONSENT_MODULE_DIRNAME), "XoopsModule")) + { + if (empty($consentConfigsList)) + { + $consentConfigsList = xoops_gethandler('config')->getConfigList($consentModule->getVar('mid')); + if (!defined('_MD_CONSENT_DEFAULT_TWITTER')) + define('_MD_CONSENT_DEFAULT_TWITTER',$consentConfigsList['username']); + } + if (empty($consentConfigs)) + { + $consentConfigs = xoops_gethandler('config')->getConfigs(new Criteria('conf_modid', $consentModule->getVar('mid'))); + } + if (empty($consentConfigsOptions) && !empty($consentConfigs)) + { + foreach($consentConfigs as $key => $config) + $consentConfigsOptions[$config->getVar('conf_name')] = $config->getConfOptions(); + } + } + } + + include_once (__DIR__ . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'functions.php'); + +?> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/header.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/images/1x1.png =================================================================== (Binary files differ) Index: XoopsModules/consent/trunk/modules/consent/images/1x1.png =================================================================== --- XoopsModules/consent/trunk/modules/consent/images/1x1.png 2017-08-13 11:00:18 UTC (rev 13272) +++ XoopsModules/consent/trunk/modules/consent/images/1x1.png 2017-08-19 20:29:28 UTC (rev 13273) Property changes on: XoopsModules/consent/trunk/modules/consent/images/1x1.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/images/index.html =================================================================== --- XoopsModules/consent/trunk/modules/consent/images/index.html (rev 0) +++ XoopsModules/consent/trunk/modules/consent/images/index.html 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/images/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.ods =================================================================== (Binary files differ) Index: XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.ods =================================================================== --- XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.ods 2017-08-13 11:00:18 UTC (rev 13272) +++ XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.ods 2017-08-19 20:29:28 UTC (rev 13273) Property changes on: XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.ods ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.xlsx =================================================================== (Binary files differ) Index: XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.xlsx =================================================================== --- XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.xlsx 2017-08-13 11:00:18 UTC (rev 13272) +++ XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.xlsx 2017-08-19 20:29:28 UTC (rev 13273) Property changes on: XoopsModules/consent/trunk/modules/consent/include/data/batch-csv-template.xlsx ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/include/data/index.html =================================================================== --- XoopsModules/consent/trunk/modules/consent/include/data/index.html (rev 0) +++ XoopsModules/consent/trunk/modules/consent/include/data/index.html 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/include/data/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/include/enumerators/index.html =================================================================== --- XoopsModules/consent/trunk/modules/consent/include/enumerators/index.html (rev 0) +++ XoopsModules/consent/trunk/modules/consent/include/enumerators/index.html 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/include/enumerators/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/include/functions.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/include/functions.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/include/functions.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,107 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * 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://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + +if (!function_exists("getEnumeratorValues")) { + /** + * Loads a field enumerator values + * + * @param string $filename + * @param string $variable + * @return array(): + */ + function getEnumeratorValues($filename = '', $variable = '') + { + $variable = str_replace(array('-', ' '), "_", $variable); + static $ret = array(); + if (!isset($ret[basename($file)])) + if (file_exists($file = __DIR__ . DIRECTORY_SEPARATOR . 'enumerators' . DIRECTORY_SEPARATOR . "$variable__" . str_replace("php", "diz", basename($filename)))) + foreach( file($file) as $id => $value ) + if (!empty($value)) + $ret[basename($file)][$value] = $value; + return $ret[basename($file)]; + } +} + +if (!function_exists("consentDecryptPassword")) { + /** + * Decrypts a password + * + * @param string $password + * @param string $cryptiopass + * @return string: + */ + function consentDecryptPassword($password = '', $cryptiopass = '') + { + $sql = "SELECT AES_DECRYPT(%s, %s) as `crypteec`"; + list($result) = $GLOBALS["xoopsDB"]->fetchRow($GLOBALS["xoopsDB"]->queryF(sprintf($sql, $GLOBALS["xoopsDB"]->quote($password), $GLOBALS["xoopsDB"]->quote($cryptiopass)))); + return $result; + } +} + + +if (!function_exists("consentEncryptPassword")) { + /** + * Encrypts a password + * + * @param string $password + * @param string $cryptiopass + * @return string: + */ + function consentEncryptPassword($password = '', $cryptiopass = '') + { + $sql = "SELECT AES_ENCRYPT(%s, %s) as `encrypic`"; + list($result) = $GLOBALS["xoopsDB"]->fetchRow($GLOBALS["xoopsDB"]->queryF(sprintf($sql, $GLOBALS["xoopsDB"]->quote($password), $GLOBALS["xoopsDB"]->quote($cryptiopass)))); + return $result; + } +} + + +if (!function_exists("consentCompressData")) { + /** + * Compresses a textualisation + * + * @param string $data + * @return string: + */ + function consentCompressData($data = '') + { + $sql = "SELECT COMPRESS(%s) as `compressed`"; + list($result) = $GLOBALS["xoopsDB"]->fetchRow($GLOBALS["xoopsDB"]->queryF(sprintf($sql, $GLOBALS["xoopsDB"]->quote($data)))); + return $result; + } +} + + +if (!function_exists("consentDecompressData")) { + /** + * Compresses a textualisation + * + * @param string $data + * @return string: + */ + function consentDecompressData($data = '') + { + $sql = "SELECT DECOMPRESS(%s) as `compressed`"; + list($result) = $GLOBALS["xoopsDB"]->fetchRow($GLOBALS["xoopsDB"]->queryF(sprintf($sql, $GLOBALS["xoopsDB"]->quote($data)))); + return $result; + } +} + +?> Property changes on: XoopsModules/consent/trunk/modules/consent/include/functions.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/include/index.html =================================================================== --- XoopsModules/consent/trunk/modules/consent/include/index.html (rev 0) +++ XoopsModules/consent/trunk/modules/consent/include/index.html 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/include/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/language/english/errors.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/language/english/errors.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/language/english/errors.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,24 @@ +<?php +/** + * Font Converter for fonts2web.org.uk +* +* 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://fonts2web.org.uk +* @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) +* @author Simon Roberts (wishcraft) <wis...@us...> +* @subpackage convert +* @description Converts fonts to web distributional format in a zip pack stamped +* @version 1.0.1 +* @link http://fonts2web.org.uk +* @link http://fonts.labs.coop +* @link http://internetfounder.wordpress.com +*/ + + +?> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/language/english/errors.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/language/english/index.html =================================================================== --- XoopsModules/consent/trunk/modules/consent/language/english/index.html (rev 0) +++ XoopsModules/consent/trunk/modules/consent/language/english/index.html 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/language/english/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/language/english/mail_templates/index.html =================================================================== --- XoopsModules/consent/trunk/modules/consent/language/english/mail_templates/index.html (rev 0) +++ XoopsModules/consent/trunk/modules/consent/language/english/mail_templates/index.html 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/consent/trunk/modules/consent/language/english/mail_templates/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/consent/trunk/modules/consent/language/english/modinfo.php =================================================================== --- XoopsModules/consent/trunk/modules/consent/language/english/modinfo.php (rev 0) +++ XoopsModules/consent/trunk/modules/consent/language/english/modinfo.php 2017-08-19 20:29:28 UTC (rev 13273) @@ -0,0 +1,106 @@ +<?php +/** + * Legal Consent is a module for obtain legal guardianship consent + * + * 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://fonts2web.org.uk + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage consent + * @description Legal Consent is a module for obtain legal guardianship consent + * @version 1.0.1 + * @link http://internetfounder.wordpress.com + */ + +// Licencing Commonality & Defaults +define('_MD_CONSENT_LICENSE_EXTENSION','eot'); +define('_MD_CONSENT_LICENSE_NAME','Creative Commons - Share Alike'); +define('_MD_CONSENT_LICENSE_CODE','BY-SA'); +d... [truncated message content] |