From: <wis...@us...> - 2016-12-29 05:47:30
|
Revision: 13227 http://sourceforge.net/p/xoops/svn/13227 Author: wishcraft Date: 2016-12-29 05:47:26 +0000 (Thu, 29 Dec 2016) Log Message: ----------- Module: Email Ticketer Please! still in early alpha! Added Paths: ----------- XoopsModules/please/trunk/admin/ XoopsModules/please/trunk/admin/about.php XoopsModules/please/trunk/admin/add-departments.php XoopsModules/please/trunk/admin/departments.php XoopsModules/please/trunk/admin/edit-departments.php XoopsModules/please/trunk/admin/footer.php XoopsModules/please/trunk/admin/header.php XoopsModules/please/trunk/admin/index.html XoopsModules/please/trunk/admin/index.php XoopsModules/please/trunk/admin/menu.php XoopsModules/please/trunk/admin/permissions.php XoopsModules/please/trunk/admin/post.php XoopsModules/please/trunk/blocks/ XoopsModules/please/trunk/blocks/index.html XoopsModules/please/trunk/class/ XoopsModules/please/trunk/class/addresses.php XoopsModules/please/trunk/class/bcc.php XoopsModules/please/trunk/class/cc.php XoopsModules/please/trunk/class/contents.php XoopsModules/please/trunk/class/correspondence.php XoopsModules/please/trunk/class/correspondence_bcc.php XoopsModules/please/trunk/class/correspondence_cc.php XoopsModules/please/trunk/class/correspondence_contents.php XoopsModules/please/trunk/class/correspondence_relayed.php XoopsModules/please/trunk/class/correspondence_to.php XoopsModules/please/trunk/class/departments.php XoopsModules/please/trunk/class/departments_escalations.php XoopsModules/please/trunk/class/departments_keywords.php XoopsModules/please/trunk/class/departments_mantis_projects.php XoopsModules/please/trunk/class/departments_staff.php XoopsModules/please/trunk/class/departments_staff_keywords.php XoopsModules/please/trunk/class/departments_staff_mantis_tickets.php XoopsModules/please/trunk/class/emails.php XoopsModules/please/trunk/class/emails_files.php XoopsModules/please/trunk/class/files.php XoopsModules/please/trunk/class/images.php XoopsModules/please/trunk/class/index.html XoopsModules/please/trunk/class/keywords.php XoopsModules/please/trunk/class/mailboxs/ XoopsModules/please/trunk/class/mailboxs/api.php XoopsModules/please/trunk/class/mailboxs/imap.php XoopsModules/please/trunk/class/mailboxs.php XoopsModules/please/trunk/class/messages.php XoopsModules/please/trunk/class/messages_cc.php XoopsModules/please/trunk/class/messages_files.php XoopsModules/please/trunk/class/messages_to.php XoopsModules/please/trunk/class/mimetypes.php XoopsModules/please/trunk/class/names.php XoopsModules/please/trunk/class/objects.php XoopsModules/please/trunk/class/phones.php XoopsModules/please/trunk/class/relayed.php XoopsModules/please/trunk/class/spam_addresses.php XoopsModules/please/trunk/class/spam_keywords.php XoopsModules/please/trunk/class/subjects.php XoopsModules/please/trunk/class/tickets.php XoopsModules/please/trunk/class/tickets_attachments.php XoopsModules/please/trunk/class/tickets_contents.php XoopsModules/please/trunk/class/tickets_departments.php XoopsModules/please/trunk/class/tickets_files.php XoopsModules/please/trunk/class/tickets_keywords.php XoopsModules/please/trunk/class/tickets_ownership.php XoopsModules/please/trunk/class/tickets_referees.php XoopsModules/please/trunk/class/to.php XoopsModules/please/trunk/class/wiki.php XoopsModules/please/trunk/class/wiki_keywords.php XoopsModules/please/trunk/class/wiki_staff.php XoopsModules/please/trunk/crons/ XoopsModules/please/trunk/crons/index.html XoopsModules/please/trunk/header.php XoopsModules/please/trunk/images/ XoopsModules/please/trunk/images/index.html XoopsModules/please/trunk/images/modicon.png XoopsModules/please/trunk/include/ XoopsModules/please/trunk/include/common.php XoopsModules/please/trunk/include/enumerators/ XoopsModules/please/trunk/include/enumerators/attachments__mailboxs.diz XoopsModules/please/trunk/include/enumerators/collect__mailboxs.diz XoopsModules/please/trunk/include/enumerators/images__mailboxs.diz XoopsModules/please/trunk/include/enumerators/index.html XoopsModules/please/trunk/include/enumerators/manager_bcc__departments.diz XoopsModules/please/trunk/include/enumerators/mantis__departments.diz XoopsModules/please/trunk/include/enumerators/messaging__departments_staff.diz XoopsModules/please/trunk/include/enumerators/method__correspondence.diz XoopsModules/please/trunk/include/enumerators/method__mailboxs.diz XoopsModules/please/trunk/include/enumerators/mode__departments_escalations.diz XoopsModules/please/trunk/include/enumerators/mode__phones.diz XoopsModules/please/trunk/include/enumerators/mode__tickets.diz XoopsModules/please/trunk/include/enumerators/mode__tickets_referees.diz XoopsModules/please/trunk/include/enumerators/recieved__emails.diz XoopsModules/please/trunk/include/enumerators/sending__emails.diz XoopsModules/please/trunk/include/enumerators/signature__mailboxs.diz XoopsModules/please/trunk/include/enumerators/spam-checking__messages.diz XoopsModules/please/trunk/include/enumerators/spam-email__messages.diz XoopsModules/please/trunk/include/enumerators/spam-training__messages.diz XoopsModules/please/trunk/include/enumerators/ssl__mailboxs.diz XoopsModules/please/trunk/include/enumerators/state__departments_staff.diz XoopsModules/please/trunk/include/enumerators/state__keywords.diz XoopsModules/please/trunk/include/enumerators/state__tickets.diz XoopsModules/please/trunk/include/enumerators/state__tickets_attachments.diz XoopsModules/please/trunk/include/enumerators/state__tickets_contents.diz XoopsModules/please/trunk/include/enumerators/state__tickets_ownership.diz XoopsModules/please/trunk/include/enumerators/state__wiki.diz XoopsModules/please/trunk/include/enumerators/storage__files.diz XoopsModules/please/trunk/include/enumerators/storage__images.diz XoopsModules/please/trunk/include/enumerators/typal__files.diz XoopsModules/please/trunk/include/enumerators/typal__messages.diz XoopsModules/please/trunk/include/enumerators/typal__phones.diz XoopsModules/please/trunk/include/enumerators/typal__tickets_attachments.diz XoopsModules/please/trunk/include/enumerators/typal__where.diz XoopsModules/please/trunk/include/enumerators/wammy__mailboxs.diz XoopsModules/please/trunk/include/formloader.php XoopsModules/please/trunk/include/formselectenumerator.php XoopsModules/please/trunk/include/functions.php XoopsModules/please/trunk/include/index.html XoopsModules/please/trunk/include/install.php XoopsModules/please/trunk/include/onupdate.php XoopsModules/please/trunk/include/uninstall.php XoopsModules/please/trunk/index.php XoopsModules/please/trunk/language/ XoopsModules/please/trunk/language/english/ XoopsModules/please/trunk/language/english/admin.php XoopsModules/please/trunk/language/english/blocks.php XoopsModules/please/trunk/language/english/errors.php XoopsModules/please/trunk/language/english/index.html XoopsModules/please/trunk/language/english/mail_template/ XoopsModules/please/trunk/language/english/main.php XoopsModules/please/trunk/language/english/modinfo.php XoopsModules/please/trunk/language/english/release.nfo XoopsModules/please/trunk/language/english/release.xcode XoopsModules/please/trunk/language/index.html XoopsModules/please/trunk/mantis.php XoopsModules/please/trunk/preloads/ XoopsModules/please/trunk/preloads/index.html XoopsModules/please/trunk/preloads/sef.php XoopsModules/please/trunk/sql/ XoopsModules/please/trunk/sql/index.html XoopsModules/please/trunk/sql/mysqli.sql XoopsModules/please/trunk/sql/tables.diz XoopsModules/please/trunk/templates/ XoopsModules/please/trunk/templates/admin/ XoopsModules/please/trunk/templates/admin/about.html XoopsModules/please/trunk/templates/admin/add-departments.html XoopsModules/please/trunk/templates/admin/departments.html XoopsModules/please/trunk/templates/admin/edit-departments.html XoopsModules/please/trunk/templates/admin/index.html XoopsModules/please/trunk/templates/blocks/ XoopsModules/please/trunk/templates/blocks/index.html XoopsModules/please/trunk/templates/groups.php.tpl XoopsModules/please/trunk/templates/index.html XoopsModules/please/trunk/xoops_version.php Removed Paths: ------------- XoopsModules/please/trunk/admin/ XoopsModules/please/trunk/blocks/ XoopsModules/please/trunk/class/ XoopsModules/please/trunk/crons/ XoopsModules/please/trunk/images/ XoopsModules/please/trunk/include/ XoopsModules/please/trunk/index.php XoopsModules/please/trunk/language/ XoopsModules/please/trunk/mantis.php XoopsModules/please/trunk/preloads/ XoopsModules/please/trunk/sql/ XoopsModules/please/trunk/templates/ XoopsModules/please/trunk/xoops_version.php Added: XoopsModules/please/trunk/admin/about.php =================================================================== --- XoopsModules/please/trunk/admin/about.php (rev 0) +++ XoopsModules/please/trunk/admin/about.php 2016-12-29 05:47:26 UTC (rev 13227) @@ -0,0 +1,39 @@ +<?php +/** + * Please Email Ticketer of Batch Group & User Emails +* +* 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 General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) +* @author Simon Roberts (wishcraft) <wis...@us...> +* @subpackage language +* @description Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets +* @version 1.0.5 +* @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/please +* @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/please +* @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/please +* @link http://internetfounder.wordpress.com +*/ + +$GLOBALS['template'] = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR . 'admin' . DIRECTORY_SEPARATOR . str_replace('.php', '.html', basename(__FILE__)); +include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php'; +include_once __DIR__ . '/header.php'; +xoops_cp_header(); +$module_info = $module_handler->get($xoopsModule->getVar('mid')); +$aboutAdmin = new ModuleAdmin(); +$GLOBALS['xoopsTpl']->assign('nav', $aboutAdmin->addNavigation(basename(__FILE__))); +$about = $aboutAdmin->renderAbout('ZZZXXX7777888', false); +$replace = '<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> + <input type="hidden" name="cmd" value="_s-xclick"> + <input type="hidden" name="hosted_button_id" value="ZZZXXX7777888"> + <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" style="background-color:transparent;"> + <img alt="" border="0" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" width="1" height="1"> + </form>'; +$GLOBALS['xoopsTpl']->assign('about', str_replace($replace, _AM_PLEASE_ADMIN_DONATE, $about)); +include_once __DIR__ . '/footer.php'; Added: XoopsModules/please/trunk/admin/add-departments.php =================================================================== --- XoopsModules/please/trunk/admin/add-departments.php (rev 0) +++ XoopsModules/please/trunk/admin/add-departments.php 2016-12-29 05:47:26 UTC (rev 13227) @@ -0,0 +1,32 @@ +<?php +/** + * Please Email Ticketer of Batch Group & User Emails +* +* 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 General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) +* @author Simon Roberts (wishcraft) <wis...@us...> +* @subpackage language +* @description Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets +* @version 1.0.5 +* @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/please +* @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/please +* @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/please +* @link http://internetfounder.wordpress.com +*/ + +$GLOBALS['template'] = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR . 'admin' . DIRECTORY_SEPARATOR . str_replace('.php', '.html', basename(__FILE__)); +global $xoopsModule, $xoopsTpl, $thisModuleDir; +include_once __DIR__ . '/header.php'; +xoops_cp_header(); +$indexAdmin = new ModuleAdmin(); +$GLOBALS['xoopsTpl']->assign('nav',$indexAdmin->addNavigation('departments.php')); +$departments_handler = xoops_getModuleHandler('departments', $thisModuleDir); +$GLOBALS['xoopsTpl']->assign('form', $departments_handler->getAddFormAdmin()); +include_once __DIR__ . '/footer.php'; Added: XoopsModules/please/trunk/admin/departments.php =================================================================== --- XoopsModules/please/trunk/admin/departments.php (rev 0) +++ XoopsModules/please/trunk/admin/departments.php 2016-12-29 05:47:26 UTC (rev 13227) @@ -0,0 +1,70 @@ +<?php +/** + * Please Email Ticketer of Batch Group & User Emails +* +* 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 General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) +* @author Simon Roberts (wishcraft) <wis...@us...> +* @subpackage language +* @description Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets +* @version 1.0.5 +* @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/please +* @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/please +* @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/please +* @link http://internetfounder.wordpress.com +*/ + +$GLOBALS['template'] = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR . 'admin' . DIRECTORY_SEPARATOR . str_replace('.php', '.html', basename(__FILE__)); +global $xoopsModule, $xoopsTpl, $thisModuleDir; + +include_once __DIR__ . '/header.php'; +xoops_cp_header(); + +$indexAdmin = new ModuleAdmin(); +$indexAdmin->addItemButton(_AM_PLEASE_ADMIN_DEPARTMENTS_ADD, 'add-departments.php', 'add', ''); +$GLOBALS['xoopsTpl']->assign('nav',$indexAdmin->addNavigation(basename(__FILE__))); +$GLOBALS['xoopsTpl']->assign('buttons',$indexAdmin->renderButton('right', '')); +$departments_handler = xoops_getModuleHandler('departments', $thisModuleDir); +if (!isset($GLOBALS['sort'])||empty($GLOBALS['sort'])) + $GLOBALS['sort'] = $departments_handler->getDefaultSort('admin'); +$criteria = new Criteria(1, 1); +if (isset($GLOBALS['sort']) && !empty($GLOBALS['sort'])) + $criteria->setSort($GLOBALS['sort']); +if (isset($GLOBALS['order']) && !empty($GLOBALS['order'])) + $criteria->setOrder($GLOBALS['order']); +$pagenav = new XoopsPageNav($ttlitems = $departments_handler->count($criteria), $GLOBALS['limit'], $GLOBALS['start'], 'start', 'limit='.$GLOBALS['limit'].(isset($GLOBALS['op'])&&!empty($GLOBALS['op'])?'&op='.$GLOBALS['op']:"").(isset($GLOBALS['sort'])&&!empty($GLOBALS['sort'])?'&sort='.$GLOBALS['sort']:"").(isset($GLOBALS['order'])&&!empty($GLOBALS['order'])?'&order='.$GLOBALS['order']:"")); +$GLOBALS['xoopsTpl']->assign('pagenav',$pagenav->renderNav(_AM_PLEASE_ADMIN_PAGENAV_OFFSET)); +$criteria->setStart($GLOBALS['start']); +$criteria->setLimit($GLOBALS['limit']); +if ($ttlitems==0) +{ + redirect_header(XOOPS_URL . '/modules/' . $thisModuleDir . '/admin/add-department.php', 4, _ERR_PLEASE_ADMIN_NODEPARTMENTS); + exit(0); +} +if ($departments = $departments_handler->getObjects($criteria, true, false)) +{ + $GLOBALS['xoopsTpl']->assign('tableheaders', $departments_handler->getAdminListFormHeader()); + foreach($departments as $id => $department) + { + $GLOBALS['xoopsTpl']->append('departments', $department->getAdminListFormItems()); + } +} else { + if ($GLOBALS['start']>0 && $GLOBALS['start'] > $GLOBALS['limit']) + $GLOBALS['start'] = $GLOBALS['start'] - $GLOBALS['limit']; + else + $GLOBALS['start'] = 0; + redirect_header(XOOPS_URL . '/modules/' . $thisModuleDir . '/admin/'.basename(__FILE__).'?start='.$GLOBALS['start'].'&limit='.$GLOBALS['limit'].(isset($GLOBALS['op'])&&!empty($GLOBALS['op'])?'&op='.$GLOBALS['op']:"").(isset($GLOBALS['sort'])&&!empty($GLOBALS['sort'])?'&sort='.$GLOBALS['sort']:"").(isset($GLOBALS['order'])&&!empty($GLOBALS['order'])?'&order='.$GLOBALS['order']:""), 4, _ERR_PLEASE_ADMIN_LISTRANGEEXCEEDED); + exit(0); +} +$GLOBALS['xoopsTpl']->assign('start', $GLOBALS['start']); +$GLOBALS['xoopsTpl']->assign('limit', $GLOBALS['limit']); +$GLOBALS['xoopsTpl']->assign('sort', $GLOBALS['sort']); +$GLOBALS['xoopsTpl']->assign('order', $GLOBALS['order']); +include_once __DIR__ . '/footer.php'; Added: XoopsModules/please/trunk/admin/edit-departments.php =================================================================== --- XoopsModules/please/trunk/admin/edit-departments.php (rev 0) +++ XoopsModules/please/trunk/admin/edit-departments.php 2016-12-29 05:47:26 UTC (rev 13227) @@ -0,0 +1,38 @@ +<?php +/** + * Please Email Ticketer of Batch Group & User Emails +* +* 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 General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) +* @author Simon Roberts (wishcraft) <wis...@us...> +* @subpackage language +* @description Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets +* @version 1.0.5 +* @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/please +* @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/please +* @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/please +* @link http://internetfounder.wordpress.com +*/ + +$GLOBALS['template'] = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR . 'admin' . DIRECTORY_SEPARATOR . str_replace('.php', '.html', basename(__FILE__)); +global $xoopsModule, $xoopsTpl, $thisModuleDir; +include_once __DIR__ . '/header.php'; +xoops_cp_header(); +$indexAdmin = new ModuleAdmin(); +$GLOBALS['xoopsTpl']->assign('nav',$indexAdmin->addNavigation('departments.php')); +$departments_handler = xoops_getModuleHandler('departments', $thisModuleDir); +$department = $departments_handler->getMD5($GLOBALS['id']); +if (is_object($department) && !empty($department)) + $GLOBALS['xoopsTpl']->assign('form', $department->getEditFormAdmin()); +else { + redirect_header(XOOPS_URL . '/modules/' . $thisModuleDir . '/admin/departments.php', 4, _ERR_PLEASE_ADMIN_INVALIDHASH); + exit(0); +} +include_once __DIR__ . '/footer.php'; \ No newline at end of file Added: XoopsModules/please/trunk/admin/footer.php =================================================================== --- XoopsModules/please/trunk/admin/footer.php (rev 0) +++ XoopsModules/please/trunk/admin/footer.php 2016-12-29 05:47:26 UTC (rev 13227) @@ -0,0 +1,29 @@ +<?php +/** + * Please Email Ticketer of Batch Group & User Emails +* +* 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 General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) +* @author Simon Roberts (wishcraft) <wis...@us...> +* @subpackage language +* @description Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets +* @version 1.0.5 +* @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/please +* @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/please +* @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/please +* @link http://internetfounder.wordpress.com +*/ +if (!empty($GLOBALS['template'])) + $GLOBALS['xoopsTpl']->assign('footer',$footer="<div class='adminfooter'>\n" . " <div style='text-align: center;'>\n" . " <a href='http://www.xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" . " </div>\n" . ' ' . _AM_PLEASE_ADMIN_FOOTER . "\n" . '</div>'); +if (!empty($GLOBALS['template'])) + $GLOBALS['xoopsTpl']->display($GLOBALS['template']); +if (empty($GLOBALS['template'])) + echo $footer; +xoops_cp_footer(); Added: XoopsModules/please/trunk/admin/header.php =================================================================== --- XoopsModules/please/trunk/admin/header.php (rev 0) +++ XoopsModules/please/trunk/admin/header.php 2016-12-29 05:47:26 UTC (rev 13227) @@ -0,0 +1,94 @@ +<?php +/** + * Please Email Ticketer of Batch Group & User Emails +* +* 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 General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) +* @author Simon Roberts (wishcraft) <wis...@us...> +* @subpackage language +* @description Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets +* @version 1.0.5 +* @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/please +* @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/please +* @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/please +* @link http://internetfounder.wordpress.com +*/ + +$path = dirname(dirname(dirname(__DIR__))); +include_once dirname(__DIR__) . '/header.php'; +include_once $path . '/include/cp_functions.php'; +require_once $path . '/include/cp_header.php'; + +global $xoopsModule, $xoopsTpl, $thisModuleDir; + +$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname'); + +//if functions.php file exist +//require_once dirname(__DIR__) . '/include/functions.php'; + +// Load language files +xoops_loadLanguage('errors', $thisModuleDir); +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'); + +$myts = MyTextSanitizer::getInstance(); + +if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { + include_once XOOPS_ROOT_PATH . '/class/template.php'; + $xoopsTpl = new XoopsTpl(); +} + +include_once $GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php'); + +xoops_loadLanguage('user'); +if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { + include_once $GLOBALS['xoops']->path('/class/template.php'); + $GLOBALS['xoopsTpl'] = new XoopsTpl(); +} + +if (isset($GLOBALS['xoopsTpl'])) +{ + $GLOBALS['xoopsTpl']->assign('dirname', $thisModuleDir); +} +if (isset($_REQUEST['start'])&&!empty($_REQUEST['start'])) + $GLOBALS['start'] = $_REQUEST['start']; +else + $GLOBALS['start'] = 0; + +if (isset($_REQUEST['limit'])&&!empty($_REQUEST['limit'])) + $GLOBALS['limit'] = $_REQUEST['limit']; +else + $GLOBALS['limit'] = _AM_PLEASE_ADMIN_LIMIT_ITEMS; + +if (isset($_REQUEST['sort'])&&!empty($_REQUEST['sort'])) + $GLOBALS['sort'] = $_REQUEST['sort']; +else + $GLOBALS['sort'] = ''; + +if (isset($_REQUEST['order'])&&!empty($_REQUEST['order'])) + $GLOBALS['order'] = $_REQUEST['order']; +else + $GLOBALS['order'] = 'ASC'; + +if (isset($_REQUEST['op'])&&!empty($_REQUEST['op'])) + $GLOBALS['op'] = $_REQUEST['op']; +else + $GLOBALS['op'] = ''; + +if (isset($_REQUEST['id'])&&!empty($_REQUEST['id'])) + $GLOBALS['id'] = $_REQUEST['id']; +else + $GLOBALS['id'] = ''; Added: XoopsModules/please/trunk/admin/index.html =================================================================== --- XoopsModules/please/trunk/admin/index.html (rev 0) +++ XoopsModules/please/trunk/admin/index.html 2016-12-29 05:47:26 UTC (rev 13227) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/please/trunk/admin/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/please/trunk/admin/index.php =================================================================== --- XoopsModules/please/trunk/admin/index.php (rev 0) +++ XoopsModules/please/trunk/admin/index.php 2016-12-29 05:47:26 UTC (rev 13227) @@ -0,0 +1,48 @@ +<?php +/** + * Please Email Ticketer of Batch Group & User Emails +* +* 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 General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) +* @author Simon Roberts (wishcraft) <wis...@us...> +* @subpackage language +* @description Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets +* @version 1.0.5 +* @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/please +* @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/please +* @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/please +* @link http://internetfounder.wordpress.com +*/ + +$GLOBALS['template'] = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR . 'admin' . DIRECTORY_SEPARATOR . str_replace('.php', '.html', basename(__FILE__)); + +include_once __DIR__ . '/header.php'; +xoops_cp_header(); + +$indexAdmin = new ModuleAdmin(); +//----------------------- +// $xpPartnerHandler = xoops_getModuleHandler('partners', $xoopsModule->getVar('dirname')); + +// $totalPartners = $xpPartnerHandler->getCount(); +// $totalNonActivePartners = $xpPartnerHandler->getCount(new Criteria('status', 0, '=')); +// $totalActivePartners = $totalPartners - $totalNonActivePartners; + +// $indexAdmin->addInfoBox(_MD_XPARTNERS_DASHBOARD); + +// $indexAdmin->addInfoBoxLine(_MD_XPARTNERS_DASHBOARD, "<infolabel>" ._MD_XPARTNERS_TOTALACTIVE. "</infolabel>", $totalActivePartners, 'Green'); +// $indexAdmin->addInfoBoxLine(_MD_XPARTNERS_DASHBOARD, "<infolabel>" ._MD_XPARTNERS_TOTALNONACTIVE. "</infolabel>", $totalNonActivePartners, 'Red'); +// $indexAdmin->addInfoBoxLine(_MD_XPARTNERS_DASHBOARD, "<infolabel>" ._MD_XPARTNERS_TOTALPARTNERS. "</infolabel><infotext>", $totalPartners."</infotext>"); +//---------------------------- + +$GLOBALS['xoopsTpl']->assign('nav',$indexAdmin->addNavigation(basename(__FILE__))); +$GLOBALS['xoopsTpl']->assign('index',$indexAdmin->renderIndex()); + +include_once __DIR__ . '/footer.php'; +//xoops_cp_footer(); Added: XoopsModules/please/trunk/admin/menu.php =================================================================== --- XoopsModules/please/trunk/admin/menu.php (rev 0) +++ XoopsModules/please/trunk/admin/menu.php 2016-12-29 05:47:26 UTC (rev 13227) @@ -0,0 +1,89 @@ +<?php +/** + * Please Email Ticketer of Batch Group & User Emails +* +* 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 General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) +* @author Simon Roberts (wishcraft) <wis...@us...> +* @subpackage language +* @description Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets +* @version 1.0.5 +* @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/please +* @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/please +* @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/please +* @link http://internetfounder.wordpress.com +*/ + +$path = dirname(dirname(dirname(__DIR__))); +include_once $path . '/mainfile.php'; + +$dirname = basename(dirname(__DIR__)); +$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'] = _MI_PLEASE_ADMINMENU_HOME; +$adminmenu[$i]['link'] = 'admin/index.php'; +$adminmenu[$i]['icon'] = $pathIcon32 . '/home.png'; +++$i; +$adminmenu[$i]['title'] = _MI_PLEASE_ADMINMENU_DEPARTMENTS; +$adminmenu[$i]['link'] = 'admin/departments.php'; +$adminmenu[$i]['icon'] = $pathIcon32 . '/users.png'; +++$i; +$adminmenu[$i]['title'] = _MI_PLEASE_ADMINMENU_MAILBOXES; +$adminmenu[$i]['link'] = 'admin/mailboxes.php'; +$adminmenu[$i]['icon'] = $pathIcon32 . '/mail_forward.png'; +++$i; +$adminmenu[$i]['title'] = _MI_PLEASE_ADMINMENU_ESCALATION; +$adminmenu[$i]['link'] = 'admin/escalations.php'; +$adminmenu[$i]['icon'] = $pathIcon32 . '/security.png'; +++$i; +$adminmenu[$i]['title'] = _MI_PLEASE_ADMINMENU_USERS; +$adminmenu[$i]['link'] = 'admin/users.php'; +$adminmenu[$i]['icon'] = $pathIcon32 . '/users.png'; +++$i; +$adminmenu[$i]['title'] = _MI_PLEASE_ADMINMENU_FILES; +$adminmenu[$i]['link'] = 'admin/files.php'; +$adminmenu[$i]['icon'] = $pathIcon32 . '/fileshare.png'; +++$i; +$adminmenu[$i]['title'] = _MI_PLEASE_ADMINMENU_MIMETYPES; +$adminmenu[$i]['link'] = 'admin/mimetypes.php'; +$adminmenu[$i]['icon'] = $pathIcon32 . '/upload.png'; +++$i; +$adminmenu[$i]['title'] = _MI_PLEASE_ADMINMENU_TICKETS; +$adminmenu[$i]['link'] = 'admin/tickets.php'; +$adminmenu[$i]['icon'] = $pathIcon32 . '/event.png'; +++$i; +$adminmenu[$i]['title'] = _MI_PLEASE_ADMINMENU_KEYWQRDS; +$adminmenu[$i]['link'] = 'admin/keywords.php'; +$adminmenu[$i]['icon'] = $pathIcon32 . '/highlight.png'; +++$i; +$adminmenu[$i]['title'] = _MI_PLEASE_ADMINMENU_REPORTS; +$adminmenu[$i]['link'] = 'admin/reports.php'; +$adminmenu[$i]['icon'] = $pathIcon32 . '/newsletter.png'; +++$i; +$adminmenu[$i]['title'] = _MI_PLEASE_ADMINMENU_PERMISSIONS; +$adminmenu[$i]['link'] = 'admin/permissions.php'; +$adminmenu[$i]['icon'] = $pathIcon32 . '/permissions.png'; +++$i; +$adminmenu[$i]['title'] = _MI_PLEASE_ADMINMENU_ABOUT; +$adminmenu[$i]['link'] = 'admin/about.php'; +$adminmenu[$i]['icon'] = $pathIcon32 . '/about.png'; Added: XoopsModules/please/trunk/admin/permissions.php =================================================================== --- XoopsModules/please/trunk/admin/permissions.php (rev 0) +++ XoopsModules/please/trunk/admin/permissions.php 2016-12-29 05:47:26 UTC (rev 13227) @@ -0,0 +1,112 @@ +<?php +/** + * Please Email Ticketer of Batch Group & User Emails +* +* 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 General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) +* @author Simon Roberts (wishcraft) <wis...@us...> +* @subpackage language +* @description Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets +* @version 1.0.5 +* @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/please +* @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/please +* @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/please +* @link http://internetfounder.wordpress.com +*/ + +include_once __DIR__ . '/admin_header.php'; +xoops_cp_header(); +$indexAdmin = new ModuleAdmin(); +echo $indexAdmin->addNavigation(basename(__FILE__)); + +$op = \Xmf\Request::getCmd('op', 'edit'); + +$perm_desc = ''; +switch ($op) { + case 'visibility': + //redirect_header("visibility.php", 0, _PROFILE_AM_PROF_VISIBLE); + header('Location: visibility.php'); + break; + + case 'edit': + $title_of_form = _PROFILE_AM_PROF_EDITABLE; + $perm_name = 'profile_edit'; + $restriction = 'field_edit'; + $anonymous = false; + break; + + case 'search': + $title_of_form = _PROFILE_AM_PROF_SEARCH; + $perm_name = 'profile_search'; + $restriction = ''; + $anonymous = true; + break; + + case 'access': + $title_of_form = _PROFILE_AM_PROF_ACCESS; + $perm_name = 'profile_access'; + $perm_desc = _PROFILE_AM_PROF_ACCESS_DESC; + $restriction = ''; + $anonymous = true; + break; +} + +include_once $GLOBALS['xoops']->path('/class/xoopsformloader.php'); +$opform = new XoopsSimpleForm('', 'opform', 'permissions.php', 'get'); +$op_select = new XoopsFormSelect('', 'op', $op); +$op_select->setExtra('onchange="document.forms.opform.submit()"'); +$op_select->addOption('visibility', _PROFILE_AM_PROF_VISIBLE); +$op_select->addOption('edit', _PROFILE_AM_PROF_EDITABLE); +$op_select->addOption('search', _PROFILE_AM_PROF_SEARCH); +$op_select->addOption('access', _PROFILE_AM_PROF_ACCESS); +$opform->addElement($op_select); +$opform->display(); + +$module_id = $GLOBALS['xoopsModule']->getVar('mid'); +include_once $GLOBALS['xoops']->path('/class/xoopsform/grouppermform.php'); +$form = new XoopsGroupPermForm($title_of_form, $module_id, $perm_name, $perm_desc, 'admin/permissions.php?op=' . $op, $anonymous); +if ($op === 'access') { + $member_handler = xoops_getHandler('member'); + $glist = $member_handler->getGroupList(); + foreach (array_keys($glist) as $i) { + if ($i != XOOPS_GROUP_ANONYMOUS) { + $form->addItem($i, $glist[$i]); + } + } +} else { + $profile_handler = xoops_getModuleHandler('profile'); + $fields = $profile_handler->loadFields(); + + if ($op !== 'search') { + foreach (array_keys($fields) as $i) { + if ($restriction == '' || $fields[$i]->getVar($restriction)) { + $form->addItem($fields[$i]->getVar('field_id'), xoops_substr($fields[$i]->getVar('field_title'), 0, 25)); + } + } + } else { + $searchable_types = array( + 'textbox', + 'select', + 'radio', + 'yesno', + 'date', + 'datetime', + 'timezone', + 'language'); + foreach (array_keys($fields) as $i) { + if (in_array($fields[$i]->getVar('field_type'), $searchable_types)) { + $form->addItem($fields[$i]->getVar('field_id'), xoops_substr($fields[$i]->getVar('field_title'), 0, 25)); + } + } + } +} +$form->display(); +include_once __DIR__ . '/admin_footer.php'; +//xoops_cp_footer(); Added: XoopsModules/please/trunk/admin/post.php =================================================================== --- XoopsModules/please/trunk/admin/post.php (rev 0) +++ XoopsModules/please/trunk/admin/post.php 2016-12-29 05:47:26 UTC (rev 13227) @@ -0,0 +1,41 @@ +<?php +/** + * Please Email Ticketer of Batch Group & User Emails +* +* 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 General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) +* @author Simon Roberts (wishcraft) <wis...@us...> +* @subpackage language +* @description Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets +* @version 1.0.5 +* @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/please +* @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/please +* @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/please +* @link http://internetfounder.wordpress.com +*/ + +include_once __DIR__ . '/header.php'; + + switch ($GLOBALS['op']) + { + case "departments": + + break; + case "add-department": + + break; + case "edit-department": + + break; + } + + +include_once __DIR__ . '/footer.php'; + Added: XoopsModules/please/trunk/blocks/index.html =================================================================== --- XoopsModules/please/trunk/blocks/index.html (rev 0) +++ XoopsModules/please/trunk/blocks/index.html 2016-12-29 05:47:26 UTC (rev 13227) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/please/trunk/blocks/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/please/trunk/class/addresses.php =================================================================== --- XoopsModules/please/trunk/class/addresses.php (rev 0) +++ XoopsModules/please/trunk/class/addresses.php 2016-12-29 05:47:26 UTC (rev 13227) @@ -0,0 +1,127 @@ +<?php +/** + * Please Addresses Ticketer of Batch Group & User Addressess + * + * 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 General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage please + * @description Addresses Ticking for Support/Faults/Management of Batch Group & User managed emails tickets + * @version 1.0.5 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/please + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/please + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/please + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MI_PLEASE_MODULE_DIRNAME')) { + return false; +} + +//* +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); + +/** + * Class for Addresses in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_addresses` ( + * `id` int(14) UNSIGNED NOT NULL AUTO_INCREMENT, + * `address` varchar(198) DEFAULT '', + * `uid` int(11) DEFAULT '0', + * `recieved` int(12) DEFAULT '0', + * `sent` int(12) DEFAULT '0', + * `tickets` int(12) DEFAULT '0', + * `ticket-id` mediumint(30) UNSIGNED DEFAULT '0', + * `created` int(12) DEFAULT '0', + * `action` int(12) DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`address`(18),`uid`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseAddresses extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('address', XOBJ_DTYPE_TXTBOX, null, false, 198); + self::initVar('uid', XOBJ_DTYPE_INT, null, false); + self::initVar('recieved', XOBJ_DTYPE_INT, null, false); + self::initVar('sent', XOBJ_DTYPE_INT, null, false); + self::initVar('tickets', XOBJ_DTYPE_INT, null, false); + self::initVar('ticket-id', XOBJ_DTYPE_INT, null, false); + self::initVar('created', XOBJ_DTYPE_INT, time(), false); + self::initVar('action', XOBJ_DTYPE_INT, 0, false); + + $this->handler = __CLASS__ . 'Handler'; + if (!empty($id) && !is_null($id)) + { + $handler = new $this->handler; + self::assignVars($handler->get($id)->getValues(array_keys($this->vars))); + } + + } + +} + + +/** + * Handler Class for Addresses in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseAddressesHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_addresses'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseAddresses'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'address'; + + function __construct(&$db) + { + if (!object($db)) + $db = $GLOBAL["xoopsDB"]; + parent::__construct($db, self::$tbl, self::$child, self::$identity, self::$envalued); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/please/trunk/class/addresses.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/please/trunk/class/bcc.php =================================================================== --- XoopsModules/please/trunk/class/bcc.php (rev 0) +++ XoopsModules/please/trunk/class/bcc.php 2016-12-29 05:47:26 UTC (rev 13227) @@ -0,0 +1,121 @@ +<?php +/** + * Please Bcc Ticketer of Batch Group & User Bccs + * + * 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 General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage please + * @description Bcc Ticking for Support/Faults/Management of Batch Group & User managed emails tickets + * @version 1.0.5 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/please + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/please + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/please + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MI_PLEASE_MODULE_DIRNAME')) { + return false; +} + +//* +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); + +/** + * Class for Bcc in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_bcc` ( + * `id` mediumint(30) UNSIGNED NOT NULL AUTO_INCREMENT, + * `ticket-id` mediumint(30) UNSIGNED DEFAULT '0', + * `address-id` int(14) UNSIGNED EFAULT '0', + * `name-id` int(14) UNSIGNED DEFAULT '0', + * `email-id` mediumint(30) UNSIGNED DEFAULT '0', + * `created` int(12) DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`address-id`,`name-id`,`email-id`,`ticket-id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseBcc extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('ticket-id', XOBJ_DTYPE_INT, null, false); + self::initVar('address-id', XOBJ_DTYPE_INT, null, false); + self::initVar('name-id', XOBJ_DTYPE_INT, null, false); + self::initVar('email-id', XOBJ_DTYPE_INT, null, false); + self::initVar('created', XOBJ_DTYPE_INT, time(), false); + + $this->handler = __CLASS__ . 'Handler'; + if (!empty($id) && !is_null($id)) + { + $handler = new $this->handler; + self::assignVars($handler->get($id)->getValues(array_keys($this->vars))); + } + + } + +} + + +/** + * Handler Class for Bcc in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseBccHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_bcc'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseBcc'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'created'; + + function __construct(&$db) + { + if (!object($db)) + $db = $GLOBAL["xoopsDB"]; + parent::__construct($db, self::$tbl, self::$child, self::$identity, self::$envalued); + } +} +?> \ No newline at end of file Added: XoopsModules/please/trunk/class/cc.php =================================================================== --- XoopsModules/please/trunk/class/cc.php (rev 0) +++ XoopsModules/please/trunk/class/cc.php 2016-12-29 05:47:26 UTC (rev 13227) @@ -0,0 +1,121 @@ +<?php +/** + * Please Cc Ticketer of Batch Group & User Ccs + * + * 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 General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage please + * @description Cc Ticking for Support/Faults/Management of Batch Group & User managed emails tickets + * @version 1.0.5 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/please + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/please + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/please + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MI_PLEASE_MODULE_DIRNAME')) { + return false; +} + +//* +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); + +/** + * Class for Cc in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_cc` ( + * `id` mediumint(30) UNSIGNED NOT NULL AUTO_INCREMENT, + * `ticket-id` mediumint(30) UNSIGNED DEFAULT '0', + * `address-id` int(14) UNSIGNED DEFAULT '0', + * `name-id` int(14) UNSIGNED DEFAULT '0', + * `email-id` mediumint(30) UNSIGNED DEFAULT '0', + * `created` int(12) DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`address-id`,`name-id`,`email-id`,`ticket-id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCc extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('ticket-id', XOBJ_DTYPE_INT, null, false); + self::initVar('address-id', XOBJ_DTYPE_INT, null, false); + self::initVar('name-id', XOBJ_DTYPE_INT, null, false); + self::initVar('email-id', XOBJ_DTYPE_INT, null, false); + self::initVar('created', XOBJ_DTYPE_INT, time(), false); + + $this->handler = __CLASS__ . 'Handler'; + if (!empty($id) && !is_null($id)) + { + $handler = new $this->handler; + self::assignVars($handler->get($id)->getValues(array_keys($this->vars))); + } + + } + +} + + +/** + * Handler Class for Cc in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCcHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_cc'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseCc'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'created'; + + function __construct(&$db) + { + if (!object($db)) + $db = $GLOBAL["xoopsDB"]; + parent::__construct($db, self::$tbl, self::$child, self::$identity, self::$envalued); + } +} +?> \ No newline at end of file Added: XoopsModules/please/trunk/class/contents.php =================================================================== --- XoopsModules/please/trunk/class/contents.php (rev 0) +++ XoopsModules/please/trunk/class/contents.php 2016-12-29 05:47:26 UTC (rev 13227) @@ -0,0 +1,133 @@ +<?php +/** + * Please Contents Ticketer of Batch Group & User Contentss + * + * 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 General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage please + * @description Contents Ticking for Support/Faults/Management of Batch Group & User managed emails tickets + * @version 1.0.5 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/please + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/please + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/please + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MI_PLEASE_MODULE_DIRNAME')) { + return false; +} + +//* +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); + +/** + * Class for Contents in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_contents` ( + * `id` mediumint(30) UNSIGNED NOT NULL AUTO_INCREMENT, + * `key` varchar(44) DEFAULT '', + * `text` longtext, + * `created` int(12) DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`key`(20)) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseContents extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, 0, false); + self::initVar('key', XOBJ_DTYPE_TXTBOX, sha1(null), true, 44); + self::initVar('text', XOBJ_DTYPE_OTHER, 0, false);; + self::initVar('created', XOBJ_DTYPE_INT, time(), false); + + $this->handler = __CLASS__ . 'Handler'; + if (!empty($id) && !is_null($id)) + { + $handler = new $this->handler; + self::assignVars($handler->get($id)->getValues(array_keys($this->vars))); + } + + } + +} + + +/** + * Handler Class for Contents in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseContentsHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_contents'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseContents'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'text'; + + function __construct(&$db) + { + if (!object($db)) + $db = $GLOBAL["xoopsDB"]; + parent::__construct($db, self::$tbl, self::$child, self::$identity, self::$envalued); + } + + /** + * (non-PHPdoc) + * @see XoopsPersistableObjectHandler::insert() + */ + function insert($object = null, $force = true) + { + if (is_a($object, 'pleaseContents')) + { + if ($object->getVar('key')==sha1(null)) + { + $object->setVar('key', sha1(_PLEASE_SALT_BLOWFISH . md5($object->getVar('text') . _PLEASE_SALT_WHENSET . _PLEASE_SALT_WHERESET))); + } + return parent::insert($obejct, $force); + } + } +} +?> \ No newline at end of file Added: XoopsModules/please/trunk/class/correspondence.php =================================================================== --- XoopsModules/please/trunk/class/correspondence.php (rev 0) +++ XoopsModules/please/trunk/class/correspondence.php 2016-12-29 05:47:26 UTC (rev 13227) @@ -0,0 +1,122 @@ +<?php +/** + * Please Correspondences Ticketer of Batch Group & User Correspondencess + * + * 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 General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage please + * @description Correspondences Ticking for Support/Faults/Management of Batch Group & User managed emails tickets + * @version 1.0.5 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/please + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/please + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/please + * @link http://internetfounder.wordpress.com + */ + +if (!defined('_MI_PLEASE_MODULE_DIRNAME')) { + return false; +} + +//* +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); + +/** + * Class for Correspondences in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_correspondences` ( + * `id` mediumint(38) UNSIGNED NOT NULL AUTO_INCREMENT, + * `method` enum('email','pm','staff','mantis','unknown') DEFAULT 'unknown', + * `ticket-id` mediumint(30) UNSIGNED DEFAULT '0', + * `department-id` mediumint(6) UNSIGNED DEFAULT '0', + * `staff-id` mediumint(1... [truncated message content] |