From: <wis...@us...> - 2015-07-14 16:22:46
|
Revision: 13127 http://sourceforge.net/p/xoops/svn/13127 Author: wishcraft Date: 2015-07-14 16:22:44 +0000 (Tue, 14 Jul 2015) Log Message: ----------- Please Email Ticketer -- Prealpa2 Removed Paths: ------------- XoopsModules/please/trunk/admin/ XoopsModules/please/trunk/blocks/ XoopsModules/please/trunk/class/ XoopsModules/please/trunk/crons/ XoopsModules/please/trunk/image/ 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 Deleted: XoopsModules/please/trunk/index.php =================================================================== --- XoopsModules/please/trunk/index.php 2015-07-14 15:51:36 UTC (rev 13126) +++ XoopsModules/please/trunk/index.php 2015-07-14 16:22:44 UTC (rev 13127) @@ -1,168 +0,0 @@ -<?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 GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) - * @author Simon Roberts (wishcraft) <wis...@us...> - * @subpackage please - * @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 ('../../mainfile.php'); - - if ($GLOBALS['xoopsModuleConfig']['htaccess']==true) { - $url = XOOPS_URL.'/noticer/'.basename($_SERVER['PHP_SELF']).'?'.$_SERVER['QUERY_STRING']; - if ($_SERVER['REQUEST_URI'].'?'.$_SERVER['QUERY_STRING']!=$url && strpos($_SERVER['REQUEST_URI'], 'odules/')>0) { - header( "HTTP/1.1 301 Moved Permanently" ); - header('Location: '.$url); - exit(0); - } - } - - xoops_load('XoopsCache'); - - include('include/functions.php'); - include('include/forms.php'); - - switch ((string)$_REQUEST['op']) { - default: - $elements = array('message', 'signature', 'name', 'template', 'uid', 'results', 'language'); - foreach($elements as $items) { - unset($_SESSION[$item]); - } - - case "stepa": - if (!isset($_GET['extra']) && $_SERVER["REQUEST_METHOD"]!='POST') { - if ($_SERVER['REQUEST_URI']!=XOOPS_URL . '/noticer/stepa.html'){ - header( "HTTP/1.1 301 Moved Permanently" ); - header('Location: '.XOOPS_URL . '/noticer/stepa.html'); - exit(0); - } - } - $msg = array(); - $elements = array('message', 'signature', 'name', 'template', 'uid', 'language'); - $pass = true; - foreach($elements as $items) - if (strlen(trim($_REQUEST[$items]))==0 && empty($_REQUEST[$items])) { - $pass = false; - } else { - $msg[$items] = $_REQUEST[$items]; - } - if ($pass == true) { - XoopsCache::write('mailer_'.sha1($_SERVER['REMOTE_ADDR']), $msg, 60*60*24*7*4*9.78); - unset($_SESSION['results']); - header( "HTTP/1.1 301 Moved Permanently" ); - header('Location: '.XOOPS_URL . '/noticer/stepb.html'); - exit(0); - } - - $xoopsOption['template_main'] = 'noticer_index.html'; - include $GLOBALS['xoops']->path('/header.php'); - $xoTheme->addStylesheet(XOOPS_URL."/modules/noticer/language/".$GLOBALS['xoopsConfig']['language']."/noticer_style.css"); - $GLOBALS['xoopsTpl']->assign('paragraph', _MN_NOTICER_PARAGRAPH_STEPA); - $GLOBALS['xoopsTpl']->assign('title', _MN_NOTICER_TITLE_STEPA); - $GLOBALS['xoopsTpl']->assign('form', noticer_form_stepa()); - $GLOBALS['xoopsTpl']->assign('xoops_pagetitle', _MN_NOTICER_TITLE_STEPA); - include $GLOBALS['xoops']->path('/footer.php'); - exit(0); - break; - - case "stepb": - $msg = XoopsCache::read('mailer_'.sha1($_SERVER['REMOTE_ADDR'])); - $elements = array('message', 'signature', 'name', 'template', 'uid', 'language'); - $pass = true; - foreach($elements as $items) - if (trim($msg[$items])=='' && empty($msg[$items])) { - echo $items; - exit(0); - $pass = false; - } - if ($pass == false) { - header( "HTTP/1.1 301 Moved Permanently" ); - header('Location: '.XOOPS_URL . '/noticer/stepa.html'); - exit(0); - } - - if (!isset($_GET['extra']) && $_SERVER["REQUEST_METHOD"]!='POST') { - if ($_SERVER['REQUEST_URI']!=XOOPS_URL . '/noticer/stepb.html'){ - header( "HTTP/1.1 301 Moved Permanently" ); - header('Location: '.XOOPS_URL . '/noticer/stepb.html'); - exit(0); - } - } - - $emails = noticer_importFormEmails(); - if (count($emails)==0) { - $xoopsOption['template_main'] = 'noticer_index.html'; - include $GLOBALS['xoops']->path('/header.php'); - $xoTheme->addStylesheet(XOOPS_URL."/modules/noticer/language/".$GLOBALS['xoopsConfig']['language']."/noticer_style.css"); - $GLOBALS['xoopsTpl']->assign('paragraph', _MN_NOTICER_PARAGRAPH_STEPA); - $GLOBALS['xoopsTpl']->assign('title', _MN_NOTICER_TITLE_STEPA); - $GLOBALS['xoopsTpl']->assign('form', noticer_form_stepb()); - $GLOBALS['xoopsTpl']->assign('xoops_pagetitle', _MN_NOTICER_TITLE_STEPB); - include $GLOBALS['xoops']->path('/footer.php'); - exit(0); - } else { - $santize = array('message', 'signature'); - $sender_handler = xoops_getmodulehandler('sender', 'noticer'); - $email_handler = xoops_getmodulehandler('email', 'noticer'); - $sender = $sender_handler->create(); - foreach($elements as $items) { - if (in_array($items, $santize)) { - $myts = new MyTextSanitizer(); - $sender->setVar($items, $myts->displayTarea($msg[$items], true, true, true, true, true, true)); - } else { - $sender->setVar($items, $msg[$items]); - } - } - $sender->setVar('language', $GLOBALS['xoopsConfig']['language']); - $sender->setVar('created', time()); - $sender = $sender_handler->get($sender_handler->insert($sender, true)); - $_SESSION['results'] = $email_handler->importEmails($sender, $emails); - header( "HTTP/1.1 301 Moved Permanently" ); - header('Location: '.XOOPS_URL . '/noticer/results.html'); - exit(0); - } - break; - - case "results": - - if (!isset($_SESSION['results'])) { - header( "HTTP/1.1 301 Moved Permanently" ); - header('Location: '.XOOPS_URL . '/noticer/stepa.html'); - exit(0); - } - - if (!isset($_GET['extra'])) { - if ($_SERVER['REQUEST_URI']!=XOOPS_URL . '/noticer/results.html'){ - header( "HTTP/1.1 301 Moved Permanently" ); - header('Location: '.XOOPS_URL . '/noticer/results.html'); - exit(0); - } - } - $xoopsOption['template_main'] = 'noticer_results.html'; - include $GLOBALS['xoops']->path('/header.php'); - $xoTheme->addStylesheet(XOOPS_URL."/modules/noticer/language/".$GLOBALS['xoopsConfig']['language']."/noticer_style.css"); - $GLOBALS['xoopsTpl']->assign('paragraph', _MN_NOTICER_PARAGRAPH_RESULTS); - $GLOBALS['xoopsTpl']->assign('title', _MN_NOTICER_TITLE_RESULTS); - $GLOBALS['xoopsTpl']->assign('results', $_SESSION['results']); - $GLOBALS['xoopsTpl']->assign('xoops_pagetitle', _MN_NOTICER_TITLE_RESULTS); - include $GLOBALS['xoops']->path('/footer.php'); - exit(0); - break; - } - -?> \ No newline at end of file Deleted: XoopsModules/please/trunk/mantis.php =================================================================== --- XoopsModules/please/trunk/mantis.php 2015-07-14 15:51:36 UTC (rev 13126) +++ XoopsModules/please/trunk/mantis.php 2015-07-14 16:22:44 UTC (rev 13127) @@ -1,105 +0,0 @@ -<?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 GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) - * @author Simon Roberts (wishcraft) <wis...@us...> - * @subpackage please - * @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 - */ - -/** - * Example usage (using jQuery): - * var url = "/modules/please/mantis.php?name=mc_project_get_issues&project_id=0&page_number=1&per_page=10"; - * $.getJSON(url, function(data) { - * $.each(data, function() { - * console.log(data.id + ': ' data.summary); - * }); - * }); - */ - -/** - * Include Required Control Files - */ -require_once __DIR__ . DIRECTORY_SEPARATOR . "include" . DIRECTORY_SEPARATOR . "common.php"; - -/** - * Opens Access Origin Via networking Route NPN - */ -header('Access-Control-Allow-Origin: *'); -header('Origin: *'); - -/** - * Turns of GZ Lib Compression for Document Incompatibility - */ -ini_set("zlib.output_compression", 'Off'); -ini_set("zlib.output_compression_level", -1); - -/** - * Set header Context-type - */ -header("Context-type: application/json"); - -if (!$GLOBALS['pleaseConfig']['mantis_support']) - die(json_encode(array('error'=>_ERR_MANTIS_ADAPTOR_NOSUPPORT))); -/** - * Compile Variable into streamline var $args - */ -parse_str(http_build_query($_POST).'&'.http_build_query($_GET), $args); - -/** - * Checks passkey if valid! - */ -if (!isset($args['passkey'])) { - die(json_encode(array('error'=>_ERR_MANTIS_ADAPTOR_NOPASSKEY))); -} elseif($args['passkey'] != sha1($ipv4 = gethostbyname(parse_url($_SERVER["REFERER_URI"], PHP_URL_HOST))._PLEASE_SALT_WHENSET.parse_url(_PLEASE_SALT_WHERESET, PHP_URL_HOST))) - die(json_encode(array('error'=>sprintf(_ERR_MANTIS_ADAPTOR_WRONGPASS, $ipv4)))); -unset($args['passkey']); - - -/** - * get and sets Passed Variables - */ -if (!isset($args['name'])) { - die(json_encode(array('error'=>_ERR_MANTIS_ADAPTOR_NOFUNCTION))); -} - -/** - * Set user and function on SOAP API with mantis! - */ -$function_name = $args['name']; -unset($args['name']); -$args = array_merge( - array( - 'username' => $GLOBALS['pleaseConfig']['mantis_username'], - 'password' => $GLOBALS['pleaseConfig']['mantis_password'] - ), - $args -); -try { - $client = new SoapClient($GLOBALS['pleaseConfig']['mantis_api_uri'] . '?wsdl'); - - $result = $client->__soapCall($function_name, $args); -} catch (SoapFault $e) { - $result = array( - 'error' => $e->faultstring - ); -} - -/** - * Passes the result! - */ -die(json_encode($result)); \ No newline at end of file Deleted: XoopsModules/please/trunk/xoops_version.php =================================================================== --- XoopsModules/please/trunk/xoops_version.php 2015-07-14 15:51:36 UTC (rev 13126) +++ XoopsModules/please/trunk/xoops_version.php 2015-07-14 16:22:44 UTC (rev 13127) @@ -1,295 +0,0 @@ -<?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 GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) - * @author Simon Roberts (wishcraft) <wis...@us...> - * @subpackage please - * @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 (!defined('XOOPS_ROOT_PATH')) { - die('XOOPS root path not defined'); -} - -if (!defined(_MI_PLEASE_MODULE_DIRNAME)) - define('_MI_PLEASE_MODULE_DIRNAME', basename(__DIR__)); - -$modversion['dirname'] = _MI_PLEASE_MODULE_DIRNAME; -$modversion['name'] = _MI_PLEASE_MODULE_NAME; -$modversion['version'] = _MI_PLEASE_MODULE_VERSION; -$modversion['releasedate'] = _MI_PLEASE_MODULE_RELEASEDATE; -$modversion['status'] = _MI_PLEASE_MODULE_STATUS; -$modversion['description'] = _MI_PLEASE_MODULE_DESCRIPTION; -$modversion['credits'] = _MI_PLEASE_MODULE_CREDITS; -$modversion['author'] = _MI_PLEASE_MODULE_AUTHORALIAS; -$modversion['help'] = _MI_PLEASE_MODULE_HELP; -$modversion['license'] = _MI_PLEASE_MODULE_LICENCE; -$modversion['official'] = _MI_PLEASE_MODULE_OFFICAL; -$modversion['image'] = _MI_PLEASE_MODULE_ICON; -$modversion['module_status'] = _MI_PLEASE_MODULE_STATUS; -$modversion['website'] = _MI_PLEASE_MODULE_WEBSITE; -$modversion['dirmoduleadmin'] = _MI_PLEASE_MODULE_ADMINMODDIR; -$modversion['icons16'] = _MI_PLEASE_MODULE_ADMINICON16; -$modversion['icons32'] = _MI_PLEASE_MODULE_ADMINICON32; -$modversion['release_info'] = _MI_PLEASE_MODULE_RELEASEINFO; -$modversion['release_file'] = _MI_PLEASE_MODULE_RELEASEFILE; -$modversion['release_date'] = _MI_PLEASE_MODULE_RELEASEDATE; -$modversion['author_realname'] = _MI_PLEASE_MODULE_AUTHORREALNAME; -$modversion['author_website_url'] = _MI_PLEASE_MODULE_AUTHORWEBSITE; -$modversion['author_website_name'] = _MI_PLEASE_MODULE_AUTHORSITENAME; -$modversion['author_email'] = _MI_PLEASE_MODULE_AUTHOREMAIL; -$modversion['author_word'] = _MI_PLEASE_MODULE_AUTHORWORD; -$modversion['status_version'] = _MI_PLEASE_MODULE_VERSION; -$modversion['warning'] = _MI_PLEASE_MODULE_WARNINGS; -$modversion['demo_site_url'] = _MI_PLEASE_MODULE_DEMO_SITEURL; -$modversion['demo_site_name'] = _MI_PLEASE_MODULE_DEMO_SITENAME; -$modversion['support_site_url'] = _MI_PLEASE_MODULE_SUPPORT_SITEURL; -$modversion['support_site_name'] = _MI_PLEASE_MODULE_SUPPORT_SITENAME; -$modversion['submit_feature'] = _MI_PLEASE_MODULE_SUPPORT_FEATUREREQUEST; -$modversion['submit_bug'] = _MI_PLEASE_MODULE_SUPPORT_BUGREPORTING; -$modversion['people']['developers'] = explode("|", _MI_PLEASE_MODULE_DEVELOPERS); -$modversion['people']['testers'] = explode("|", _MI_PLEASE_MODULE_TESTERS); -$modversion['people']['translaters'] = explode("|", _MI_PLEASE_MODULE_TRANSLATERS); -$modversion['people']['documenters'] = explode("|", _MI_PLEASE_MODULE_DOCUMENTERS); - -// Requirements -$modversion['min_php'] = '5.3.7'; -$modversion['min_xoops'] = '2.5.7'; -$modversion['min_db'] = array('mysql' => '5.0.7', 'mysqli' => '5.0.7'); -$modversion['min_admin'] = '1.1'; - -// Database SQL File and Tables -$modversion['sqlfile']['mysql'] = "sql/mysqli.sql"; -$modversion['tables'][0] = "noticer_sender"; -$modversion['tables'][1] = "noticer_email"; - -//Search -$modversion['hasSearch'] = _MI_PLEASE_MODULE_HASSEARCH; -//$modversion['search']['file'] = "include/search.inc.php"; -//$modversion['search']['func'] = "publisher_search"; - -// Main -$modversion['hasMain'] = _MI_PLEASE_MODULE_HASMAIN; - -// Admin -$modversion['hasAdmin'] = _MI_PLEASE_MODULE_HASADMIN; -//$modversion['adminindex'] = "admin/index.php"; -//$modversion['adminmenu'] = "admin/menu.php"; -//$modversion['system_menu'] = 1; - -// Comments -$modversion['hasComments'] = _MI_PLEASE_MODULE_HASCOMMENTS; -//$modversion['comments']['itemName'] = 'itemid'; -//$modversion['comments']['pageName'] = 'item.php'; -//$modversion['comments']['callbackFile'] = 'include/comment_functions.php'; -//$modversion['comments']['callback']['approve'] = 'publisher_com_approve'; -//$modversion['comments']['callback']['update'] = 'publisher_com_update'; - -// Add extra menu items -//$modversion['sub'][3]['name'] = _MI_PLEASE_SUB_ARCHIVE; -//$modversion['sub'][3]['url'] = "archive.php"; - - -// Create Block Constant Defines -$i = 0; -++$i; -//$modversion['blocks'][$i]['file'] = "items_new.php"; -//$modversion['blocks'][$i]['name'] = _MI_PLEASE_ITEMSNEW; -//$modversion['blocks'][$i]['description'] = _MI_PLEASE_ITEMSNEW_DSC; -//$modversion['blocks'][$i]['show_func'] = "publisher_items_new_show"; -//$modversion['blocks'][$i]['edit_func'] = "publisher_items_new_edit"; -//$modversion['blocks'][$i]['options'] = "0|datesub|0|5|65|none"; -//$modversion['blocks'][$i]['template'] = "publisher_items_new.tpl"; - - -// Templates -$i = 0; -$modversion['templates'][$i]['file'] = 'noticer_index.html'; -$modversion['templates'][$i]['description'] = 'Honeypot noticer Template'; -$i++; -$modversion['templates'][$i]['file'] = 'noticer_results.html'; -$modversion['templates'][$i]['description'] = 'Honeypot noticer results'; - -// Config categories -$modversion['configcat']['seo']['name'] = _MI_PLEASE_CONFCAT_SEO; -$modversion['configcat']['seo']['description'] = _MI_PLEASE_CONFCAT_SEO_DESC; - -$modversion['configcat']['email']['name'] = _MI_PLEASE_CONFCAT_EMAIL; -$modversion['configcat']['email']['description'] = _MI_PLEASE_CONFCAT_EMAIL_DESC; - -$modversion['configcat']['systems']['name'] = _MI_PLEASE_CONFCAT_SYSTEMS; -$modversion['configcat']['systems']['description'] = _MI_PLEASE_CONFCAT_SYSTEMS_DESC; - -// Config categories -$i=0; -++$i; -$modversion['config'][$i]['name'] = 'htaccess'; -$modversion['config'][$i]['title'] = '_MI_PLEASE_HTACCESS'; -$modversion['config'][$i]['description'] = '_MI_PLEASE_HTACCESS_DESC'; -$modversion['config'][$i]['formtype'] = 'yesno'; -$modversion['config'][$i]['valuetype'] = 'int'; -$modversion['config'][$i]['default'] = false; -$modversion['config'][$i]['options'] = array(); -$modversion['config'][$i]['category'] = 'seo'; -++$i; -$modversion['config'][$i]['name'] = 'base'; -$modversion['config'][$i]['title'] = '_MI_PLEASE_BASE'; -$modversion['config'][$i]['description'] = '_MI_PLEASE_BASE_DESC'; -$modversion['config'][$i]['formtype'] = 'yesno'; -$modversion['config'][$i]['valuetype'] = 'int'; -$modversion['config'][$i]['default'] = false; -$modversion['config'][$i]['options'] = array(); -$modversion['config'][$i]['category'] = 'seo'; -++$i; -$modversion['config'][$i]['name'] = 'html'; -$modversion['config'][$i]['title'] = '_MI_PLEASE_HTML'; -$modversion['config'][$i]['description'] = '_MI_PLEASE_HTML_DESC'; -$modversion['config'][$i]['formtype'] = 'text'; -$modversion['config'][$i]['valuetype'] = 'text'; -$modversion['config'][$i]['default'] = 'html'; -$modversion['config'][$i]['options'] = array(); -$modversion['config'][$i]['category'] = 'seo'; -++$i; -$modversion['config'][$i]['name'] = 'rss'; -$modversion['config'][$i]['title'] = '_MI_PLEASE_RSS'; -$modversion['config'][$i]['description'] = '_MI_PLEASE_RSS_DESC'; -$modversion['config'][$i]['formtype'] = 'text'; -$modversion['config'][$i]['valuetype'] = 'text'; -$modversion['config'][$i]['default'] = 'html'; -$modversion['config'][$i]['options'] = array(); -$modversion['config'][$i]['category'] = 'seo'; -++$i; -$modversion['config'][$i]['name'] = 'email_method'; -$modversion['config'][$i]['title'] = '_MI_PLEASE_EMAILMETHOD'; -$modversion['config'][$i]['description'] = '_MI_PLEASE_EMAILMETHOD_DESC'; -$modversion['config'][$i]['formtype'] = 'select'; -$modversion['config'][$i]['valuetype'] = 'text'; -$modversion['config'][$i]['default'] = 'class'; -$modversion['config'][$i]['options'] = array(_MI_PLEASE_EMAILMETHOD_PHP => 'class', _MI_PLEASE_EMAILMETHOD_PHP => 'extention'); -$modversion['config'][$i]['category'] = 'email'; -++$i; -$modversion['config'][$i]['name'] = 'email_typal'; -$modversion['config'][$i]['title'] = '_MI_PLEASE_EMAILTYPAL'; -$modversion['config'][$i]['description'] = '_MI_PLEASE_EMAILTYPAL_DESC'; -$modversion['config'][$i]['formtype'] = 'select'; -$modversion['config'][$i]['valuetype'] = 'text'; -$modversion['config'][$i]['default'] = 'imap'; -$modversion['config'][$i]['options'] = array(_MI_PLEASE_EMAILTYPAL_IMAP => 'imap', _MI_PLEASE_EMAILTYPAL_POP3 => 'pop3');; -$modversion['config'][$i]['category'] = 'email'; -++$i; -$modversion['config'][$i]['name'] = 'email_service'; -$modversion['config'][$i]['title'] = '_MI_PLEASE_EMAILSERVICE'; -$modversion['config'][$i]['description'] = '_MI_PLEASE_EMAILSERVICE_DESC'; -$modversion['config'][$i]['formtype'] = 'text'; -$modversion['config'][$i]['valuetype'] = 'text'; -$modversion['config'][$i]['default'] = 'imap.'.parse_url(XOOPS_URL, PHP_URL_HOST); -$modversion['config'][$i]['options'] = array(); -$modversion['config'][$i]['category'] = 'email'; -++$i; -$modversion['config'][$i]['name'] = 'email_port'; -$modversion['config'][$i]['title'] = '_MI_PLEASE_EMAILPORT'; -$modversion['config'][$i]['description'] = '_MI_PLEASE_EMAILPORT_DESC'; -$modversion['config'][$i]['formtype'] = 'text'; -$modversion['config'][$i]['valuetype'] = 'int'; -$modversion['config'][$i]['default'] = '993'; -$modversion['config'][$i]['options'] = array(); -$modversion['config'][$i]['category'] = 'email'; -++$i; -$modversion['config'][$i]['name'] = 'email_user'; -$modversion['config'][$i]['title'] = '_MI_PLEASE_EMAILUSER'; -$modversion['config'][$i]['description'] = '_MI_PLEASE_EMAILUSER_DESC'; -$modversion['config'][$i]['formtype'] = 'text'; -$modversion['config'][$i]['valuetype'] = 'text'; -$modversion['config'][$i]['default'] = 'ticketpls@'.parse_url(XOOPS_URL, PHP_URL_HOST); -$modversion['config'][$i]['options'] = array(); -$modversion['config'][$i]['category'] = 'email'; -++$i; -$modversion['config'][$i]['name'] = 'email_pass'; -$modversion['config'][$i]['title'] = '_MI_PLEASE_EMAILPASS'; -$modversion['config'][$i]['description'] = '_MI_PLEASE_EMAILPASS_DESC'; -$modversion['config'][$i]['formtype'] = 'password'; -$modversion['config'][$i]['valuetype'] = 'text'; -$modversion['config'][$i]['default'] = ''; -$modversion['config'][$i]['options'] = array(); -$modversion['config'][$i]['category'] = 'email'; -++$i; -$modversion['config'][$i]['name'] = 'email_folder'; -$modversion['config'][$i]['title'] = '_MI_PLEASE_EMAILFOLDER'; -$modversion['config'][$i]['description'] = '_MI_PLEASE_EMAILFOLDER_DESC'; -$modversion['config'][$i]['formtype'] = 'text'; -$modversion['config'][$i]['valuetype'] = 'text'; -$modversion['config'][$i]['default'] = 'INBOX'; -$modversion['config'][$i]['options'] = array(); -$modversion['config'][$i]['category'] = 'email'; -++$i; -$modversion['config'][$i]['name'] = 'email_reply_addy'; -$modversion['config'][$i]['title'] = '_MI_PLEASE_EMAILREPLYADDY'; -$modversion['config'][$i]['description'] = '_MI_PLEASE_EMAILREPLYADDY_DESC'; -$modversion['config'][$i]['formtype'] = 'text'; -$modversion['config'][$i]['valuetype'] = 'text'; -$modversion['config'][$i]['default'] = 'ticketpls@'.parse_url(XOOPS_URL, PHP_URL_HOST); -$modversion['config'][$i]['options'] = array(); -$modversion['config'][$i]['category'] = 'email'; -++$i; -$modversion['config'][$i]['name'] = 'email_reply_name'; -$modversion['config'][$i]['title'] = '_MI_PLEASE_EMAILREPLYNAME'; -$modversion['config'][$i]['description'] = '_MI_PLEASE_EMAILREPLYNAME_DESC'; -$modversion['config'][$i]['formtype'] = 'text'; -$modversion['config'][$i]['valuetype'] = 'text'; -$modversion['config'][$i]['default'] = "[%username%] ~ [%sitename%]"; -$modversion['config'][$i]['options'] = array(); -$modversion['config'][$i]['category'] = 'email'; -++$i; -$modversion['config'][$i]['name'] = 'email_attachments'; -$modversion['config'][$i]['title'] = '_MI_PLEASE_EMAILATTACHMENTS'; -$modversion['config'][$i]['description'] = '_MI_PLEASE_EMAILATTACHMENTS_DESC'; -$modversion['config'][$i]['formtype'] = 'yesno'; -$modversion['config'][$i]['valuetype'] = 'int'; -$modversion['config'][$i]['default'] = true; -$modversion['config'][$i]['options'] = array(); -$modversion['config'][$i]['category'] = 'email'; -++$i; -$modversion['config'][$i]['name'] = 'email_signature'; -$modversion['config'][$i]['title'] = '_MI_PLEASE_EMAILSIGNATURE'; -$modversion['config'][$i]['description'] = '_MI_PLEASE_EMAILSIGNATURE_DESC'; -$modversion['config'][$i]['formtype'] = 'yesno'; -$modversion['config'][$i]['valuetype'] = 'int'; -$modversion['config'][$i]['default'] = true; -$modversion['config'][$i]['options'] = array(); -$modversion['config'][$i]['category'] = 'email'; - - - -// Notification -$modversion['hasNotification'] = 1; -//$modversion['notification']['lookup_file'] = 'include/notification.inc.php'; -//$modversion['notification']['lookup_func'] = 'publisher_notify_iteminfo'; - -//$modversion['notification']['category'][1]['name'] = 'global_item'; -//$modversion['notification']['category'][1]['title'] = _MI_PLEASE_GLOBAL_ITEM_NOTIFY; -//$modversion['notification']['category'][1]['description'] = _MI_PLEASE_GLOBAL_ITEM_NOTIFY_DSC; -//$modversion['notification']['category'][1]['subscribe_from'] = array('index.php', 'category.php', 'item.php'); - -//$modversion['notification']['event'][1]['name'] = 'category_created'; -//$modversion['notification']['event'][1]['category'] = 'global_item'; -//$modversion['notification']['event'][1]['title'] = _MI_PLEASE_GLOBAL_ITEM_CATEGORY_CREATED_NOTIFY; -//$modversion['notification']['event'][1]['caption'] = _MI_PLEASE_GLOBAL_ITEM_CATEGORY_CREATED_NOTIFY_CAP; -//$modversion['notification']['event'][1]['description'] = _MI_PLEASE_GLOBAL_ITEM_CATEGORY_CREATED_NOTIFY_DSC; -//$modversion['notification']['event'][1]['mail_template'] = 'global_item_category_created'; -//$modversion['notification']['event'][1]['mail_subject'] = _MI_PLEASE_GLOBAL_ITEM_CATEGORY_CREATED_NOTIFY_SBJ; - -?> |
From: <wis...@us...> - 2015-07-14 16:23:51
|
Revision: 13128 http://sourceforge.net/p/xoops/svn/13128 Author: wishcraft Date: 2015-07-14 16:23:47 +0000 (Tue, 14 Jul 2015) Log Message: ----------- Please Email Ticketer -- Prealpa2 Added Paths: ----------- XoopsModules/please/trunk/admin/ XoopsModules/please/trunk/admin/index.html 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_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/examples.buildfrom/ XoopsModules/please/trunk/class/examples.buildfrom/IncomingMail.php XoopsModules/please/trunk/class/examples.buildfrom/Mailbox.php XoopsModules/please/trunk/class/examples.buildfrom/class.AReader.php XoopsModules/please/trunk/class/examples.buildfrom/imap.php XoopsModules/please/trunk/class/examples.buildfrom/pop3.php XoopsModules/please/trunk/class/examples.buildfrom/sample.usage.php XoopsModules/please/trunk/class/index.html XoopsModules/please/trunk/class/keywords.php XoopsModules/please/trunk/class/messages.php XoopsModules/please/trunk/class/names.php XoopsModules/please/trunk/class/objects.php XoopsModules/please/trunk/class/relayed.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_ownership.php XoopsModules/please/trunk/class/to.php XoopsModules/please/trunk/class/wiki.php XoopsModules/please/trunk/class/wiki_keywords.php XoopsModules/please/trunk/crons/ XoopsModules/please/trunk/crons/index.html XoopsModules/please/trunk/image/ XoopsModules/please/trunk/image/index.html XoopsModules/please/trunk/include/ XoopsModules/please/trunk/include/common.php XoopsModules/please/trunk/include/enumerators/ 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/recieved__emails.diz XoopsModules/please/trunk/include/enumerators/sending__emails.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/typal__tickets_attachments.diz XoopsModules/please/trunk/include/functions.php XoopsModules/please/trunk/include/index.html 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/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/index.html XoopsModules/please/trunk/templates/blocks/ XoopsModules/please/trunk/templates/blocks/index.html XoopsModules/please/trunk/templates/index.html XoopsModules/please/trunk/templates/salts.php.tpl XoopsModules/please/trunk/xoops_version.php Added: XoopsModules/please/trunk/admin/index.html =================================================================== --- XoopsModules/please/trunk/admin/index.html (rev 0) +++ XoopsModules/please/trunk/admin/index.html 2015-07-14 16:23:47 UTC (rev 13128) @@ -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/blocks/index.html =================================================================== --- XoopsModules/please/trunk/blocks/index.html (rev 0) +++ XoopsModules/please/trunk/blocks/index.html 2015-07-14 16:23:47 UTC (rev 13128) @@ -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 2015-07-14 16:23:47 UTC (rev 13128) @@ -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 GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.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 2015-07-14 16:23:47 UTC (rev 13128) @@ -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 GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.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 2015-07-14 16:23:47 UTC (rev 13128) @@ -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 GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.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 2015-07-14 16:23:47 UTC (rev 13128) @@ -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 GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.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 2015-07-14 16:23:47 UTC (rev 13128) @@ -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 GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.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(18) UNSIGNED DEFAULT '0', + * `created` int(12) DEFAULT '0', + * `sent` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('method', XOBJ_DTYPE_ENUM, 'unknown', false, false, false, getEnumeratorValues(basename(__FILE__), 'method')); + self::initVar('ticket-id', XOBJ_DTYPE_INT, null, false); + self::initVar('department-id', XOBJ_DTYPE_INT, null, false); + self::initVar('staff-id', XOBJ_DTYPE_INT, null, false); + self::initVar('created', XOBJ_DTYPE_INT, time(), false); + self::initVar('sent', XOBJ_DTYPE_INT, null, 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 Correspondences in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondencesHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_correspondences'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseCorrespondences'; + + /** + * 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/correspondence_bcc.php =================================================================== --- XoopsModules/please/trunk/class/correspondence_bcc.php (rev 0) +++ XoopsModules/please/trunk/class/correspondence_bcc.php 2015-07-14 16:23:47 UTC (rev 13128) @@ -0,0 +1,122 @@ +<?php +/** + * Please Correspondences_bcc Ticketer of Batch Group & User Correspondences_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 GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage please + * @description Correspondences_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 Correspondences_bcc in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_correspondences_bcc` ( + * `id` mediumint(38) UNSIGNED NOT NULL AUTO_INCREMENT, + * `bcc-id` mediumint(30) UNSIGNED DEFAULT '0', + * `department-id` mediumint(6) UNSIGNED DEFAULT '0', + * `ticket-id` mediumint(30) UNSIGNED DEFAULT '0', + * `staff-id` mediumint(18) UNSIGNED DEFAULT '0', + * `sent` int(12) DEFAULT '0', + * `viewed` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences_bcc extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('bcc-id', XOBJ_DTYPE_INT, null, false); + self::initVar('department-id', XOBJ_DTYPE_INT, null, false); + self::initVar('ticket-id', XOBJ_DTYPE_INT, null, false); + self::initVar('staff-id', XOBJ_DTYPE_INT, null, false); + self::initVar('sent', XOBJ_DTYPE_INT, null, false); + self::initVar('viewed', XOBJ_DTYPE_INT, null, 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 Correspondences_bcc in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences_bccHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_correspondences_bcc'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseCorrespondences_bcc'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'viewed'; + + 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/correspondence_cc.php =================================================================== --- XoopsModules/please/trunk/class/correspondence_cc.php (rev 0) +++ XoopsModules/please/trunk/class/correspondence_cc.php 2015-07-14 16:23:47 UTC (rev 13128) @@ -0,0 +1,122 @@ +<?php +/** + * Please Correspondences_cc Ticketer of Batch Group & User Correspondences_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 GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage please + * @description Correspondences_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 Correspondences_cc in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_correspondences_cc` ( + * `id` mediumint(38) UNSIGNED NOT NULL AUTO_INCREMENT, + * `cc-id` mediumint(30) UNSIGNED DEFAULT '0', + * `department-id` mediumint(6) UNSIGNED DEFAULT '0', + * `ticket-id` mediumint(30) UNSIGNED DEFAULT '0', + * `staff-id` mediumint(18) UNSIGNED DEFAULT '0', + * `sent` int(12) DEFAULT '0', + * `viewed` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences_cc extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('cc-id', XOBJ_DTYPE_INT, null, false); + self::initVar('department-id', XOBJ_DTYPE_INT, null, false); + self::initVar('ticket-id', XOBJ_DTYPE_INT, null, false); + self::initVar('staff-id', XOBJ_DTYPE_INT, null, false); + self::initVar('sent', XOBJ_DTYPE_INT, null, false); + self::initVar('viewed', XOBJ_DTYPE_INT, null, 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 Correspondences_cc in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences_ccHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_correspondences_cc'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseCorrespondences_cc'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'cc-id'; + + 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/correspondence_contents.php =================================================================== --- XoopsModules/please/trunk/class/correspondence_contents.php (rev 0) +++ XoopsModules/please/trunk/class/correspondence_contents.php 2015-07-14 16:23:47 UTC (rev 13128) @@ -0,0 +1,122 @@ +<?php +/** + * Please Correspondences_contents Ticketer of Batch Group & User Correspondences_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 GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage please + * @description Correspondences_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 Correspondences_contents in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_correspondences_contents` ( + * `id` mediumint(38) UNSIGNED NOT NULL AUTO_INCREMENT, + * `correspondence-id` mediumint(38) UNSIGNED DEFAULT '0', + * `ticket-contents-id` mediumint(30) UNSIGNED DEFAULT '0', + * `ticket-id` mediumint(30) UNSIGNED DEFAULT '0', + * `staff-id` mediumint(18) UNSIGNED DEFAULT '0', + * `created` int(12) DEFAULT '0', + * `sent` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences_contents extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('correspondence-id', XOBJ_DTYPE_INT, null, false); + self::initVar('ticket-contents-id', XOBJ_DTYPE_INT, null, false); + self::initVar('ticket-id', XOBJ_DTYPE_INT, null, false); + self::initVar('staff-id', XOBJ_DTYPE_INT, null, false); + self::initVar('created', XOBJ_DTYPE_INT, null, false); + self::initVar('sent', XOBJ_DTYPE_INT, null, 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 Correspondences_contents in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences_contentsHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_correspondences_contents'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseCorrespondences_contents'; + + /** + * 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/correspondence_relayed.php =================================================================== --- XoopsModules/please/trunk/class/correspondence_relayed.php (rev 0) +++ XoopsModules/please/trunk/class/correspondence_relayed.php 2015-07-14 16:23:47 UTC (rev 13128) @@ -0,0 +1,122 @@ +<?php +/** + * Please Correspondences_relayed Ticketer of Batch Group & User Correspondences_relayeds + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage please + * @description Correspondences_relayed 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_relayed in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_correspondences_relayed` ( + * `id` mediumint(38) UNSIGNED NOT NULL AUTO_INCREMENT, + * `relayed-id` mediumint(30) UNSIGNED DEFAULT '0', + * `department-id` mediumint(6) UNSIGNED DEFAULT '0', + * `ticket-id` mediumint(30) UNSIGNED DEFAULT '0', + * `staff-id` mediumint(18) UNSIGNED DEFAULT '0', + * `sent` int(12) DEFAULT '0', + * `viewed` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences_relayed extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('relayed-id', XOBJ_DTYPE_INT, null, false); + self::initVar('department-id', XOBJ_DTYPE_INT, null, false); + self::initVar('ticket-id', XOBJ_DTYPE_INT, null, false); + self::initVar('staff-id', XOBJ_DTYPE_INT, null, false); + self::initVar('sent', XOBJ_DTYPE_INT, null, false); + self::initVar('viewed', XOBJ_DTYPE_INT, null, 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 Correspondences_relayed in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences_relayedHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_correspondences_relayed'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseCorrespondences_relayed'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'sent'; + + 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/correspondence_to.php =================================================================== --- XoopsModules/please/trunk/class/correspondence_to.php (rev 0) +++ XoopsModules/please/trunk/class/correspondence_to.php 2015-07-14 16:23:47 UTC (rev 13128) @@ -0,0 +1,122 @@ +<?php +/** + * Please Correspondences_to Ticketer of Batch Group & User Correspondences_tos + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage please + * @description Correspondences_to 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_to in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_correspondences_to` ( + * `id` mediumint(38) UNSIGNED NOT NULL AUTO_INCREMENT, + * `to-id` mediumint(30) UNSIGNED DEFAULT '0', + * `department-id` mediumint(6) UNSIGNED DEFAULT '0', + * `ticket-id` mediumint(30) UNSIGNED DEFAULT '0', + * `staff-id` mediumint(18) UNSIGNED DEFAULT '0', + * `sent` int(12) DEFAULT '0', + * `viewed` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences_to extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('to-id', XOBJ_DTYPE_INT, null, false); + self::initVar('department-id', XOBJ_DTYPE_INT, null, false); + self::initVar('ticket-id', XOBJ_DTYPE_INT, null, false); + self::initVar('staff-id', XOBJ_DTYPE_INT, null, false); + self::initVar('sent', XOBJ_DTYPE_INT, null, false); + self::initVar('viewed', XOBJ_DTYPE_INT, null, 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 Correspondences_to in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences_toHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_correspondences_to'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseCorrespondences_to'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'to-cc'; + + 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/departments.php =================================================================== --- XoopsModules/please/trunk/class/departments.php (rev 0) +++ XoopsModules/please/trunk/class/departments.php 2015-07-14 16:23:47 UTC (rev 13128) @@ -0,0 +1,152 @@ +<?php +/** + * Please Departments Ticketer of Batch Group & User Departmentss + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage please + * @description Departments 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 Departments in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_departments` ( + * `id` int(6) UNSIGNED NOT NULL AUTO_INCREMENT, + * `code` varchar(3) DEFAULT 'ABC', + * `name` varchar(128) DEFAULT '', + * `description` tinytext, + * `mantis-uri` varchar(350) DEFAULT '', + * `mantis-username` varchar(45) DEFAULT '', + * `mantis-password` varchar(198) DEFAULT '', + * `mantis-project-id` int(11) UNSIGNED DEFAULT '0', + * `manager-uid` int(11) DEFAULT '0', + * `manager-bcc` enum('all-email','closed-email','all-pm','closed-pm','none') DEFAULT 'none', + * `manager-mantis-username` varchar(45) DEFAULT '', + * `manager-mantis-password` varchar(198) DEFAULT '', + * `mantis` enum('yes','no') DEFAULT 'no', + * `gid` int(8) DEFAULT '0', + * `tickets` int(12) DEFAULT '0', + * `staff` int(12) DEFAULT '0', + * `clients` int(12) DEFAULT '0', + * `raised` int(12) DEFAULT '0', + * `latest-id` mediumint(30) UNSIGNED DEFAULT '0', + * `closed-id` mediumint(30) UNSIGNED DEFAULT '0', + * `signature` varchar(300) DEFAULT '', + * `created` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseDepartments extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('code', XOBJ_DTYPE_TXTBOX, 'AAB' + mt_rand(100, 100000), false); + self::initVar('name', XOBJ_DTYPE_TXTBOX, null, false, 128); + self::initVar('description', XOBJ_DTYPE_OTHER, null, false); + self::initVar('mantis-uri', XOBJ_DTYPE_TXTBOX, null, false, 350); + self::initVar('mantis-username', XOBJ_DTYPE_TXTBOX, null, false, 45); + self::initVar('mantis-password', XOBJ_DTYPE_TXTBOX, null, false, 198); + self::initVar('mantis-project-id', XOBJ_DTYPE_INT, null, false); + self::initVar('manager-uid', XOBJ_DTYPE_INT, null, false); + self::initVar('manager-bcc', XOBJ_DTYPE_ENUM, 'none', false, false, false, getEnumeratorValues(basename(__FILE__), 'manager-bcc')); + self::initVar('manager-mantis-username', XOBJ_DTYPE_TXTBOX, null, false, 45); + self::initVar('manager-mantis-password', XOBJ_DTYPE_TXTBOX, null, false, 198); + self::initVar('mantis', XOBJ_DTYPE_ENUM, 'none', false, false, false, getEnumeratorValues(basename(__FILE__), 'mantis')); + self::initVar('gid', XOBJ_DTYPE_INT, null, false); + self::initVar('tickets', XOBJ_DTYPE_INT, null, false); + self::initVar('staff', XOBJ_DTYPE_INT, null, false); + self::initVar('clients', XOBJ_DTYPE_INT, null, false); + self::initVar('raised', XOBJ_DTYPE_INT, null, false); + self::initVar('latest-id', XOBJ_DTYPE_INT, null, false); + self::initVar('closed-id', XOBJ_DTYPE_INT, null, false); + self::initVar('signature', XOBJ_DTYPE_TXTBOX, null, false, 300); + 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 Departments in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseDepartmentsHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_departments'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseDepartments'; + + /** + * 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/departments_keywords.php =================================================================== --- XoopsModules/please/trunk/class/departments_keywords.php (rev 0) +++ XoopsModules/please/trunk/class/departments_keywords.php 2015-07-14 16:23:47 UTC (rev 13128) @@ -0,0 +1,117 @@ +<?php +/** + * Please Departments_keywords Ticketer of Batch Group & User Departments_keywordss + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage please + * @description Departments_keywords 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 Departments_keywords in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_departments_keywords` ( + * `id` int(18) UNSIGNED NOT NULL AUTO_INCREMENT, + * `department-id` int(6) UNSIGNED DEFAULT '0', + * `keyword-id` int(20) UNSIGNED NOT NULL, + * `created` int(12) DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`keyword-id`,`department-id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseDepartments_keywords extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('department-id', XOBJ_DTYPE_INT, null, false); + self::initVar('keyword-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 Departments_keywords in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseDepartments_keywordsHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_departments_keywords'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseDepartments_keywords'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'keyword-id'; + + 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/departments_mantis_projects.php =================================================================== --- XoopsModules/please/trunk/class/departments_mantis_projects.php (rev 0) +++ XoopsModules/please/trunk/class/departments_mantis_projects.php 2015-07-14 16:23:47 UTC (rev 13128) @@ -0,0 +1,131 @@ +<?php +/** + * Please Departments_mantis_projects Ticketer of Batch Group & User Departments_mantis_projectss + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @author Simon Roberts (wishcraft) <wis...@us...> + * @subpackage please + * @description Departments_mantis_projects 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 Departments_mantis_projects in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_departments_mantis_projects` ( + * `id` int(26) UNSIGNED NOT NULL AUTO_INCREMENT, + * `department-id` int(6) UNSIGNED NOT NULL DEFAULT '0', + * `project-id` int(12) DEFAULT '0', + * `project-name` varchar(128) DEFAULT '', + * `project-description` tinytext, + * `tick... [truncated message content] |
From: <wis...@us...> - 2015-07-14 16:46:56
|
Revision: 13129 http://sourceforge.net/p/xoops/svn/13129 Author: wishcraft Date: 2015-07-14 16:46:53 +0000 (Tue, 14 Jul 2015) Log Message: ----------- Please Email Ticketer -- Prealpa2 Modified Paths: -------------- 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_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/examples.buildfrom/IncomingMail.php XoopsModules/please/trunk/class/examples.buildfrom/Mailbox.php XoopsModules/please/trunk/class/examples.buildfrom/imap.php XoopsModules/please/trunk/class/examples.buildfrom/pop3.php XoopsModules/please/trunk/class/keywords.php XoopsModules/please/trunk/class/messages.php XoopsModules/please/trunk/class/names.php XoopsModules/please/trunk/class/objects.php XoopsModules/please/trunk/class/relayed.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_ownership.php XoopsModules/please/trunk/class/to.php XoopsModules/please/trunk/class/wiki.php XoopsModules/please/trunk/class/wiki_keywords.php XoopsModules/please/trunk/include/common.php XoopsModules/please/trunk/include/functions.php XoopsModules/please/trunk/index.php XoopsModules/please/trunk/language/english/blocks.php XoopsModules/please/trunk/language/english/errors.php XoopsModules/please/trunk/mantis.php XoopsModules/please/trunk/preloads/sef.php XoopsModules/please/trunk/xoops_version.php Modified: XoopsModules/please/trunk/class/addresses.php =================================================================== --- XoopsModules/please/trunk/class/addresses.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/addresses.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Modified: XoopsModules/please/trunk/class/bcc.php =================================================================== --- XoopsModules/please/trunk/class/bcc.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/bcc.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Modified: XoopsModules/please/trunk/class/cc.php =================================================================== --- XoopsModules/please/trunk/class/cc.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/cc.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Modified: XoopsModules/please/trunk/class/contents.php =================================================================== --- XoopsModules/please/trunk/class/contents.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/contents.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Modified: XoopsModules/please/trunk/class/correspondence.php =================================================================== --- XoopsModules/please/trunk/class/correspondence.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/correspondence.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Modified: XoopsModules/please/trunk/class/correspondence_bcc.php =================================================================== --- XoopsModules/please/trunk/class/correspondence_bcc.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/correspondence_bcc.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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_bcc Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/correspondence_cc.php =================================================================== --- XoopsModules/please/trunk/class/correspondence_cc.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/correspondence_cc.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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_cc Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/correspondence_contents.php =================================================================== --- XoopsModules/please/trunk/class/correspondence_contents.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/correspondence_contents.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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_contents Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/correspondence_relayed.php =================================================================== --- XoopsModules/please/trunk/class/correspondence_relayed.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/correspondence_relayed.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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_relayed Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/correspondence_to.php =================================================================== --- XoopsModules/please/trunk/class/correspondence_to.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/correspondence_to.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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_to Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/departments.php =================================================================== --- XoopsModules/please/trunk/class/departments.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/departments.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Departments Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/departments_keywords.php =================================================================== --- XoopsModules/please/trunk/class/departments_keywords.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/departments_keywords.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Departments_keywords Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/departments_mantis_projects.php =================================================================== --- XoopsModules/please/trunk/class/departments_mantis_projects.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/departments_mantis_projects.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Departments_mantis_projects Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/departments_staff.php =================================================================== --- XoopsModules/please/trunk/class/departments_staff.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/departments_staff.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Departments_staff Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/departments_staff_keywords.php =================================================================== --- XoopsModules/please/trunk/class/departments_staff_keywords.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/departments_staff_keywords.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Departments_staff_keywords Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/departments_staff_mantis_tickets.php =================================================================== --- XoopsModules/please/trunk/class/departments_staff_mantis_tickets.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/departments_staff_mantis_tickets.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Departments_staff_mantis_tickets Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/emails.php =================================================================== --- XoopsModules/please/trunk/class/emails.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/emails.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Emails Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/examples.buildfrom/IncomingMail.php =================================================================== --- XoopsModules/please/trunk/class/examples.buildfrom/IncomingMail.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/examples.buildfrom/IncomingMail.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/examples.buildfrom/Mailbox.php =================================================================== --- XoopsModules/please/trunk/class/examples.buildfrom/Mailbox.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/examples.buildfrom/Mailbox.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/examples.buildfrom/imap.php =================================================================== --- XoopsModules/please/trunk/class/examples.buildfrom/imap.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/examples.buildfrom/imap.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/examples.buildfrom/pop3.php =================================================================== --- XoopsModules/please/trunk/class/examples.buildfrom/pop3.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/examples.buildfrom/pop3.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/keywords.php =================================================================== --- XoopsModules/please/trunk/class/keywords.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/keywords.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Keywords Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/messages.php =================================================================== --- XoopsModules/please/trunk/class/messages.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/messages.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Messages Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/names.php =================================================================== --- XoopsModules/please/trunk/class/names.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/names.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Names Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/objects.php =================================================================== --- XoopsModules/please/trunk/class/objects.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/objects.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Modified: XoopsModules/please/trunk/class/relayed.php =================================================================== --- XoopsModules/please/trunk/class/relayed.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/relayed.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Relayed Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/subjects.php =================================================================== --- XoopsModules/please/trunk/class/subjects.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/subjects.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Subjects Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/tickets.php =================================================================== --- XoopsModules/please/trunk/class/tickets.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/tickets.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Tickets Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/tickets_attachments.php =================================================================== --- XoopsModules/please/trunk/class/tickets_attachments.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/tickets_attachments.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Tickets_attachments Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/tickets_contents.php =================================================================== --- XoopsModules/please/trunk/class/tickets_contents.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/tickets_contents.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Tickets_contents Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/tickets_ownership.php =================================================================== --- XoopsModules/please/trunk/class/tickets_ownership.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/tickets_ownership.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Tickets_ownership Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/to.php =================================================================== --- XoopsModules/please/trunk/class/to.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/to.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 To Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/wiki.php =================================================================== --- XoopsModules/please/trunk/class/wiki.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/wiki.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Wiki Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/class/wiki_keywords.php =================================================================== --- XoopsModules/please/trunk/class/wiki_keywords.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/class/wiki_keywords.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Wiki_keywords Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/include/common.php =================================================================== --- XoopsModules/please/trunk/include/common.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/include/common.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/include/functions.php =================================================================== --- XoopsModules/please/trunk/include/functions.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/include/functions.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/index.php =================================================================== --- XoopsModules/please/trunk/index.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/index.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/language/english/blocks.php =================================================================== --- XoopsModules/please/trunk/language/english/blocks.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/language/english/blocks.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/language/english/errors.php =================================================================== --- XoopsModules/please/trunk/language/english/errors.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/language/english/errors.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/mantis.php =================================================================== --- XoopsModules/please/trunk/mantis.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/mantis.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/preloads/sef.php =================================================================== --- XoopsModules/please/trunk/preloads/sef.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/preloads/sef.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets Modified: XoopsModules/please/trunk/xoops_version.php =================================================================== --- XoopsModules/please/trunk/xoops_version.php 2015-07-14 16:23:47 UTC (rev 13128) +++ XoopsModules/please/trunk/xoops_version.php 2015-07-14 16:46:53 UTC (rev 13129) @@ -10,7 +10,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @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 Email Ticking for Support/Faults/Management of Batch Group & User managed emails tickets |
From: <wis...@us...> - 2016-11-05 21:07:36
|
Revision: 13216 http://sourceforge.net/p/xoops/svn/13216 Author: wishcraft Date: 2016-11-05 21:07:34 +0000 (Sat, 05 Nov 2016) Log Message: ----------- Please Email Ticketer -- Commencing Work Again on Module Modified Paths: -------------- XoopsModules/please/trunk/class/messages.php XoopsModules/please/trunk/class/tickets.php XoopsModules/please/trunk/sql/mysqli.sql XoopsModules/please/trunk/sql/tables.diz XoopsModules/please/trunk/xoops_version.php Added Paths: ----------- XoopsModules/please/trunk/class/departments_escalations.php XoopsModules/please/trunk/class/emails_files.php XoopsModules/please/trunk/class/files.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/phones.php XoopsModules/please/trunk/class/spam_addresses.php XoopsModules/please/trunk/class/spam_keywords.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_referees.php XoopsModules/please/trunk/class/wiki_staff.php XoopsModules/please/trunk/images/ XoopsModules/please/trunk/images/index.html XoopsModules/please/trunk/images/modicon.png 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/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/typal__files.diz XoopsModules/please/trunk/include/enumerators/typal__messages.diz XoopsModules/please/trunk/include/enumerators/typal__phones.diz Removed Paths: ------------- XoopsModules/please/trunk/image/ Added: XoopsModules/please/trunk/class/departments_escalations.php =================================================================== --- XoopsModules/please/trunk/class/departments_escalations.php (rev 0) +++ XoopsModules/please/trunk/class/departments_escalations.php 2016-11-05 21:07:34 UTC (rev 13216) @@ -0,0 +1,121 @@ +<?php +/** + * Please Departments_escalations Ticketer of Batch Group & User Departments_escalationss + * + * 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 Departments_escalations 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 Departments_escalations in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_departments_escalations` ( + * `id` int(18) unsigned NOT NULL AUTO_INCREMENT, + * `mode` enum('direct','skipping','mantis','default') DEFAULT 'default', + * `department-id` int(6) unsigned NOT NULL DEFAULT '0', + * `escalation-id` int(6) unsigned NOT NULL DEFAULT '0', + * `weight` int(8) unsigned NOT NULL DEFAULT '1', + * `created` int(12) DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`mode`,`escalation-id`,`department-id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseDepartments_escalations extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('mode', XOBJ_DTYPE_ENUM, 'unknown', false, false, false, getEnumeratorValues(basename(__FILE__), 'mode')); + self::initVar('department-id', XOBJ_DTYPE_INT, null, false); + self::initVar('escalation-id', XOBJ_DTYPE_INT, null, false); + self::initVar('weight', XOBJ_DTYPE_INT, 1, 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 Departments_escalations in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseDepartments_escalationsHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_departments_escalations'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseDepartments_escalations'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'escalation-id'; + + 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/emails_files.php =================================================================== --- XoopsModules/please/trunk/class/emails_files.php (rev 0) +++ XoopsModules/please/trunk/class/emails_files.php 2016-11-05 21:07:34 UTC (rev 13216) @@ -0,0 +1,116 @@ +<?php +/** + * Please Emails_files Ticketer of Batch Group & User Emails_filess + * + * 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 Emails_files 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 Emails_files in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_emails_files` ( + * `id` mediumint(38) unsigned NOT NULL AUTO_INCREMENT, + * `email-id` mediumint(30) unsigned DEFAULT '0', + * `file-id` mediumint(30) unsigned DEFAULT '0', + * `accessed` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseEmails_files extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('email-id', XOBJ_DTYPE_INT, null, false); + self::initVar('file-id', XOBJ_DTYPE_INT, null, false); + self::initVar('accessed', XOBJ_DTYPE_INT, null, 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 Emails_files in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseEmails_filesHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_emails_files'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseEmails_files'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'file-id'; + + 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/files.php =================================================================== --- XoopsModules/please/trunk/class/files.php (rev 0) +++ XoopsModules/please/trunk/class/files.php 2016-11-05 21:07:34 UTC (rev 13216) @@ -0,0 +1,127 @@ +<?php +/** + * Please Files Ticketer of Batch Group & User Filess + * + * 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 Files 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 Files in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_files` ( + * `id` mediumint(38) unsigned NOT NULL AUTO_INCREMENT, + * `typal` enum('embedded','sent','attachment','unknown') DEFAULT 'unknown', + * `mimetype-id` mediumint(30) unsigned NOT NULL DEFAULT '0', + * `extension` varchar(30) DEFAULT '.', + * `filename` varchar(255) DEFAULT '.', + * `path` varchar(255) DEFAULT '.', + * `bytes` int(12) DEFAULT '0', + * `created` int(12) DEFAULT '0', + * `deleted` int(12) DEFAULT '0', + * `accessed` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseFiles extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('typal', XOBJ_DTYPE_ENUM, 'unknown', false, false, false, getEnumeratorValues(basename(__FILE__), 'typal')); + self::initVar('extension', XOBJ_DTYPE_TXTBOX, null, false, 30); + self::initVar('filename', XOBJ_DTYPE_TXTBOX, null, false, 30); + self::initVar('path', XOBJ_DTYPE_TXTBOX, null, false, 30); + self::initVar('bytes', XOBJ_DTYPE_INT, null, false); + self::initVar('created', XOBJ_DTYPE_INT, time(), false); + self::initVar('deleted', XOBJ_DTYPE_INT, 0, false); + self::initVar('accessed', 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 Files in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseFilesHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_Files'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseFiles'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'filename'; + + 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 Modified: XoopsModules/please/trunk/class/messages.php =================================================================== --- XoopsModules/please/trunk/class/messages.php 2016-08-19 16:23:14 UTC (rev 13215) +++ XoopsModules/please/trunk/class/messages.php 2016-11-05 21:07:34 UTC (rev 13216) @@ -34,13 +34,19 @@ * For Table:- * <code> * CREATE TABLE `please_messages` ( - * `id` mediumint(30) UNSIGNED NOT NULL AUTO_INCREMENT, - * `email-id` mediumint(30) UNSIGNED DEFAULT '0', - * `subject-id` mediumint(30) UNSIGNED DEFAULT '0', - * `ticket-id` mediumint(30) UNSIGNED DEFAULT '0', - * `message-id` varchar(64) UNSIGNED DEFAULT '', - * `from-id` mediumint(30) UNSIGNED DEFAULT '0', - * `when` int(12) DEFAULT '0', + * `id` mediumint(30) unsigned NOT NULL AUTO_INCREMENT, + * `typal` enum('ndn','inbound','outbound','spam','unknown') DEFAULT 'unknown', + * `email-id` mediumint(30) unsigned DEFAULT '0', + * `subject-id` mediumint(30) unsigned DEFAULT '0', + * `ticket-id` mediumint(30) unsigned DEFAULT '0', + * `message-id` varchar(64) DEFAULT '', + * `from-id` mediumint(30) unsigned DEFAULT '0', + * `spam-email` enum('Yes','No') DEFAULT 'No', + * `spam-checking` enum('enabled','disabled') DEFAULT 'disabled', + * `spam-training` enum('used','ignored') DEFAULT 'ignored', + * `words` int(10) unsigned DEFAULT '0', + * `files` int(10) unsigned DEFAULT '0', + * `when` int(12) unsigned DEFAULT '0', * PRIMARY KEY (`id`), * KEY `SEARCH` (`email-id`,`subject-id`,`ticket-id`,`message-id`(32)) * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -57,11 +63,17 @@ { self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('typal', XOBJ_DTYPE_ENUM, 'unknown', false, false, false, getEnumeratorValues(basename(__FILE__), 'typal')); self::initVar('email-id', XOBJ_DTYPE_INT, null, false); self::initVar('subject-id', XOBJ_DTYPE_INT, null, false); self::initVar('ticket-id', XOBJ_DTYPE_INT, null, false); self::initVar('message-id', XOBJ_DTYPE_TXTBOX, null, false, 64); self::initVar('from-id', XOBJ_DTYPE_INT, null, false); + self::initVar('spam-email', XOBJ_DTYPE_ENUM, 'No', false, false, false, getEnumeratorValues(basename(__FILE__), 'spam-email')); + self::initVar('spam-checking', XOBJ_DTYPE_ENUM, 'disabled', false, false, false, getEnumeratorValues(basename(__FILE__), 'spam-checking')); + self::initVar('spam-training', XOBJ_DTYPE_ENUM, 'ignored', false, false, false, getEnumeratorValues(basename(__FILE__), 'spam-training')); + self::initVar('words', XOBJ_DTYPE_INT, time(), false); + self::initVar('files', XOBJ_DTYPE_INT, time(), false); self::initVar('when', XOBJ_DTYPE_INT, time(), false); $this->handler = __CLASS__ . 'Handler'; Added: XoopsModules/please/trunk/class/messages_cc.php =================================================================== --- XoopsModules/please/trunk/class/messages_cc.php (rev 0) +++ XoopsModules/please/trunk/class/messages_cc.php 2016-11-05 21:07:34 UTC (rev 13216) @@ -0,0 +1,121 @@ +<?php +/** + * Please Messages_cc Ticketer of Batch Group & User Messages_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 Messages_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 Messages_cc in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_messages_cc` ( + * `id` mediumint(38) unsigned NOT NULL AUTO_INCREMENT, + * `message-id` mediumint(30) unsigned DEFAULT '0', + * `cc-id` mediumint(30) unsigned DEFAULT '0', + * `name-id` mediumint(30) unsigned DEFAULT '0', + * `sent` int(12) DEFAULT '0', + * `viewed` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseMessages_cc extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('message-id', XOBJ_DTYPE_INT, null, false); + self::initVar('cc-id', XOBJ_DTYPE_INT, null, false); + self::initVar('name-id', XOBJ_DTYPE_INT, null, false); + self::initVar('sent', XOBJ_DTYPE_INT, null, false); + self::initVar('viewed', XOBJ_DTYPE_INT, null, 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 Messages_cc in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseMessages_ccHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_messages_cc'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseMessages_cc'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'cc-id'; + + 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/messages_files.php =================================================================== --- XoopsModules/please/trunk/class/messages_files.php (rev 0) +++ XoopsModules/please/trunk/class/messages_files.php 2016-11-05 21:07:34 UTC (rev 13216) @@ -0,0 +1,116 @@ +<?php +/** + * Please Messages_files Ticketer of Batch Group & User Messages_filess + * + * 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 Messages_files 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 Messages_files in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_messages_files` ( + * `id` mediumint(38) unsigned NOT NULL AUTO_INCREMENT, + * `message-id` mediumint(30) unsigned DEFAULT '0', + * `file-id` mediumint(30) unsigned DEFAULT '0', + * `accessed` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseMessages_files extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('message-id', XOBJ_DTYPE_INT, null, false); + self::initVar('file-id', XOBJ_DTYPE_INT, null, false); + self::initVar('accessed', XOBJ_DTYPE_INT, null, 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 Messages_files in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseMessages_filesHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_messages_files'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseMessages_files'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'file-id'; + + 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/messages_to.php =================================================================== --- XoopsModules/please/trunk/class/messages_to.php (rev 0) +++ XoopsModules/please/trunk/class/messages_to.php 2016-11-05 21:07:34 UTC (rev 13216) @@ -0,0 +1,121 @@ +<?php +/** + * Please Messages_to Ticketer of Batch Group & User Messages_tos + * + * 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 Messages_to 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 Messages_to in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_messages_to` ( + * `id` mediumint(38) unsigned NOT NULL AUTO_INCREMENT, + * `message-id` mediumint(30) unsigned DEFAULT '0', + * `to-id` mediumint(30) unsigned DEFAULT '0', + * `name-id` mediumint(30) unsigned DEFAULT '0', + * `sent` int(12) DEFAULT '0', + * `viewed` int(12) DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`to-id`,`message-id`,`name-id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseMessages_to extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('message-id', XOBJ_DTYPE_INT, null, false); + self::initVar('to-id', XOBJ_DTYPE_INT, null, false); + self::initVar('name-id', XOBJ_DTYPE_INT, null, false); + self::initVar('sent', XOBJ_DTYPE_INT, null, false); + self::initVar('viewed', XOBJ_DTYPE_INT, null, 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 Messages_to in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseMessages_toHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_messages_to'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseMessages_to'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'to-id'; + + 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/mimetypes.php =================================================================== --- XoopsModules/please/trunk/class/mimetypes.php (rev 0) +++ XoopsModules/please/trunk/class/mimetypes.php 2016-11-05 21:07:34 UTC (rev 13216) @@ -0,0 +1,132 @@ +<?php +/** + * Please Mimetypes Ticketer of Batch Group & User Mimetypess + * + * 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 Mimetypes 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 Mimetypes in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_mimetypes` ( + * `id` mediumint(38) unsigned NOT NULL AUTO_INCREMENT, + * `mimetype` varchar(255) DEFAULT '.', + * `extensions` tinytext, + * `files-embedded` int(12) unsigned DEFAULT '0', + * `files-attachment` int(12) unsigned DEFAULT '0', + * `files-sent` int(12) unsigned DEFAULT '0', + * `bytes-embedded` mediumint(32) unsigned DEFAULT '0', + * `bytes-attachment` mediumint(32) unsigned DEFAULT '0', + * `bytes-sent` mediumint(32) unsigned DEFAULT '0', + * `created` int(12) DEFAULT '0', + * `deleted` int(12) DEFAULT '0', + * `accessed` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseMimetypes extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('mimetype', XOBJ_DTYPE_TXTBOX, null, false, 255); + self::initVar('extensions', XOBJ_DTYPE_ARRAY, array(), false); + self::initVar('files-embedded', XOBJ_DTYPE_INT, null, false); + self::initVar('files-attachment', XOBJ_DTYPE_INT, null, false); + self::initVar('files-sent', XOBJ_DTYPE_INT, null, false); + self::initVar('bytes-embedded', XOBJ_DTYPE_INT, null, false); + self::initVar('bytes-attachment', XOBJ_DTYPE_INT, null, false); + self::initVar('bytes-sent', XOBJ_DTYPE_INT, null, false); + self::initVar('created', XOBJ_DTYPE_INT, time(), false); + self::initVar('deleted', XOBJ_DTYPE_INT, null, false); + self::initVar('accessed', XOBJ_DTYPE_INT, null, 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 Mimetypes in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseMimetypesHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_mimetypes'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseMimetypes'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'mimetype'; + + 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/phones.php =================================================================== --- XoopsModules/please/trunk/class/phones.php (rev 0) +++ XoopsModules/please/trunk/class/phones.php 2016-11-05 21:07:34 UTC (rev 13216) @@ -0,0 +1,137 @@ +<?php +/** + * Please Phones Ticketer of Batch Group & User Phoness + * + * 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 Phones 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 Phones in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_phones` ( + * `id` int(14) unsigned NOT NULL AUTO_INCREMENT, + * `mode` enum('personal','business','client','departmental','unknown') DEFAULT 'unknown', + * `typal` enum('mobile','landline','switch','call-center','unknown') DEFAULT 'unknown', + * `country` int(8) unsigned NOT NULL DEFAULT '0', + * `area` int(8) unsigned NOT NULL DEFAULT '0', + * `local` int(22) unsigned NOT NULL DEFAULT '0', + * `uid` int(11) unsigned NOT NULL DEFAULT '0', + * `department-id` mediumint(30) unsigned NOT NULL DEFAULT '0', + * `staff-id` mediumint(30) DEFAULT '0', + * `name-id` mediumint(30) DEFAULT '0', + * `address-id` mediumint(30) DEFAULT '0', + * `ticket-id` mediumint(30) DEFAULT '0', + * `created` int(12) DEFAULT '0', + * `accessed` int(12) DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`staff-id`,`department-id`,`created`,`local`,`area`,`country`,`uid`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleasePhones extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('mode', XOBJ_DTYPE_ENUM, 'Open', false, false, false, getEnumeratorValues(basename(__FILE__), 'mode')); + self::initVar('typal', XOBJ_DTYPE_ENUM, 'Open', false, false, false, getEnumeratorValues(basename(__FILE__), 'typal')); + self::initVar('country', XOBJ_DTYPE_INT, null, false); + self::initVar('area', XOBJ_DTYPE_INT, null, false); + self::initVar('local', XOBJ_DTYPE_INT, null, false); + self::initVar('uid', XOBJ_DTYPE_INT, null, false); + self::initVar('department-id', XOBJ_DTYPE_INT, null, false); + self::initVar('staff-id', XOBJ_DTYPE_INT, null, false); + self::initVar('name-id', XOBJ_DTYPE_INT, null, false); + self::initVar('address-id', XOBJ_DTYPE_INT, null, false); + self::initVar('ticket-id', XOBJ_DTYPE_INT, null, false); + self::initVar('created', XOBJ_DTYPE_INT, time(), false); + self::initVar('accessed', 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 Phones in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleasePhonesHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_phones'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleasePhones'; + + /** + * 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/spam_addresses.php =================================================================== --- XoopsModules/please/trunk/class/spam_addresses.php (rev 0) +++ XoopsModules/please/trunk/class/spam_addresses.php 2016-11-05 21:07:34 UTC (rev 13216) @@ -0,0 +1,116 @@ +<?php +/** + * Please Spam_addresses Ticketer of Batch Group & User Spam_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 Spam_addresses Ticking for Support/Faults/Management of Batch Group & User managed emails Spam + * @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 Spam_addresses in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_spam_addresses` ( + * `id` mediumint(38) unsigned NOT NULL AUTO_INCREMENT, + * `address-id` mediumint(30) unsigned DEFAULT '0', + * `recieved` int(12) DEFAULT '0', + * `last` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseSpam_addresses extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('address-id', XOBJ_DTYPE_INT, null, false); + self::initVar('recieved', XOBJ_DTYPE_INT, null, false); + self::initVar('last', XOBJ_DTYPE_INT, null, 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 Spam_addresses in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseSpam_addressesHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_Spam_addresses'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseSpam_addresses'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'last'; + + 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/spam_keywords.php =================================================================== --- XoopsModules/please/trunk/class/spam_keywords.php (rev 0) +++ XoopsModules/please/trunk/class/spam_keywords.php 2016-11-05 21:07:34 UTC (rev 13216) @@ -0,0 +1,118 @@ +<?php +/** + * Please Spam_keywords Ticketer of Batch Group & User Spam_keywordss + * + * 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 Spam_keywords Ticking for Support/Faults/Management of Batch Group & User managed emails Spam + * @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 Spam_keywords in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_spam_keywords` ( + * `id` mediumint(38) unsigned NOT NULL AUTO_INCREMENT, + * `keyword-id` mediumint(30) unsigned DEFAULT '0', + * `department-id` mediumint(30) unsigned DEFAULT '0', + * `recieved` int(12) DEFAULT '0', + * `last` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseSpam_keywords extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('keyword-id', XOBJ_DTYPE_INT, null, false); + self::initVar('department-id', XOBJ_DTYPE_INT, null, false); + self::initVar('recieved', XOBJ_DTYPE_INT, null, false); + self::initVar('last', XOBJ_DTYPE_INT, null, 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 Spam_keywords in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseSpam_keywordsHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_Spam_keywords'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseSpam_keywords'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'last'; + + 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 Modified: XoopsModules/please/trunk/class/tickets.php =================================================================== --- XoopsModules/please/trunk/class/tickets.php 2016-08-19 16:23:14 UTC (rev 13215) +++ XoopsModules/please/trunk/class/tickets.php 2016-11-05 21:07:34 UTC (rev 13216) @@ -63,6 +63,7 @@ self::initVar('id', XOBJ_DTYPE_INT, null, false); self::initVar('state', XOBJ_DTYPE_ENUM, 'new', false, false, false, getEnumeratorValues(basename(__FILE__), 'state')); + self::initVar('mode', XOBJ_DTYPE_ENUM, 'Open', false, false, false, getEnumeratorValues(basename(__FILE__), 'mode')); self::initVar('ticket-key', XOBJ_DTYPE_TXTBOX, 'XXX-0000000XAA', false, 20); self::initVar('subject-id', XOBJ_DTYPE_INT, null, false); self::initVar('from-id', XOBJ_DTYPE_INT, null, false); Added: XoopsModules/please/trunk/class/tickets_departments.php =================================================================== --- XoopsModules/please/trunk/class/tickets_departments.php (rev 0) +++ XoopsModules/please/trunk/class/tickets_departments.php 2016-11-05 21:07:34 UTC (rev 13216) @@ -0,0 +1,119 @@ +<?php +/** + * Please Tickets_departments Ticketer of Batch Group & User Tickets_departmentss + * + * 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 Tickets_departments 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 Tickets_departments in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_tickets_departments` ( + * `id` int(18) unsigned NOT NULL AUTO_INCREMENT, + * `ticket-id` mediumint(30) unsigned DEFAULT '0', + * `department-id` mediumint(30) unsigned DEFAULT '0', + * `weight` int(12) DEFAULT '0', + * `created` int(12) DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`department-id`,`ticket-id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseTickets_departments 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('department-id', XOBJ_DTYPE_INT, null, false); + self::initVar('weight', XOBJ_DTYPE_INT, time(), 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 Tickets_departments in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseTickets_departmentsHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_tickets_departments'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseTickets_departments'; + + /** + * 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/tickets_files.php =================================================================== --- XoopsModules/please/trunk/class/tickets_files.php (rev 0) +++ XoopsModules/please/trunk/class/tickets_files.php 2016-11-05 21:07:34 UTC (rev 13216) @@ -0,0 +1,117 @@ +<?php +/** + * Please Tickets_files Ticketer of Batch Group & User Tickets_filess + * + * 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 Tickets_files 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 Tickets_files in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_Tickets_files` ( + * `id` int(18) UNSIGNED NOT NULL AUTO_INCREMENT, + * `file-id` mediumint(30) UNSIGNED DEFAULT '0', + * `keyword-id` int(20) UNSIGNED NOT NULL, + * `accessed` int(12) DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`keyword-id`,`Tickets-id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseTickets_files 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('file-id', XOBJ_DTYPE_INT, null, false); + self::initVar('accessed', 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 Tickets_files in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseTickets_filesHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_tickets_files'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseTickets_files'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'accessed'; + + 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/tickets_keywords.php =================================================================== --- XoopsModules/please/trunk/class/tickets_keywords.php (rev 0) +++ XoopsModules/please/trunk/class/tickets_keywords.php 2016-11-05 21:07:34 UTC (rev 13216) @@ -0,0 +1,117 @@ +<?php +/** + * Please Tickets_keywords Ticketer of Batch Group & User Tickets_keywordss + * + * 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 Tickets_keywords 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 Tickets_keywords in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_Tickets_keywords` ( + * `id` int(18) UNSIGNED NOT NULL AUTO_INCREMENT, + * `Tickets-id` mediumint(30) UNSIGNED DEFAULT '0', + * `keyword-id` int(20) UNSIGNED NOT NULL, + * `created` int(12) DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`keyword-id`,`Tickets-id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseTickets_keywords 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('keyword-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 Tickets_keywords in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseTickets_keywordsHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_tickets_keywords'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseTickets_keywords'; + + /** + * 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/tickets_referees.php =================================================================== --- XoopsModules/please/trunk/class/tickets_referees.php (rev 0) +++ XoopsModules/please/trunk/class/tickets_referees.php 2016-11-05 21:07:34 UTC (rev 13216) @@ -0,0 +1,123 @@ +<?php +/** + * Please Tickets Ticketer of Batch Group & User Ticketss + * + * 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 + * MERCHANTAB... [truncated message content] |
From: <wis...@us...> - 2016-11-06 00:33:25
|
Revision: 13217 http://sourceforge.net/p/xoops/svn/13217 Author: wishcraft Date: 2016-11-06 00:33:21 +0000 (Sun, 06 Nov 2016) Log Message: ----------- Please Email Ticketer -- Commencing Work Again on Module Added Paths: ----------- XoopsModules/please/trunk/admin/ XoopsModules/please/trunk/admin/index.html 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/examples.buildfrom/ XoopsModules/please/trunk/class/examples.buildfrom/IncomingMail.php XoopsModules/please/trunk/class/examples.buildfrom/Mailbox.php XoopsModules/please/trunk/class/examples.buildfrom/class.AReader.php XoopsModules/please/trunk/class/examples.buildfrom/imap.php XoopsModules/please/trunk/class/examples.buildfrom/pop3.php XoopsModules/please/trunk/class/examples.buildfrom/sample.usage.php XoopsModules/please/trunk/class/files.php XoopsModules/please/trunk/class/index.html XoopsModules/please/trunk/class/keywords.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/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/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/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/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/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/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/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/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/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/index.html =================================================================== --- XoopsModules/please/trunk/admin/index.html (rev 0) +++ XoopsModules/please/trunk/admin/index.html 2016-11-06 00:33:21 UTC (rev 13217) @@ -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/blocks/index.html =================================================================== --- XoopsModules/please/trunk/blocks/index.html (rev 0) +++ XoopsModules/please/trunk/blocks/index.html 2016-11-06 00:33:21 UTC (rev 13217) @@ -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-11-06 00:33:21 UTC (rev 13217) @@ -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-11-06 00:33:21 UTC (rev 13217) @@ -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-11-06 00:33:21 UTC (rev 13217) @@ -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-11-06 00:33:21 UTC (rev 13217) @@ -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-11-06 00:33:21 UTC (rev 13217) @@ -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(18) UNSIGNED DEFAULT '0', + * `created` int(12) DEFAULT '0', + * `sent` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('method', XOBJ_DTYPE_ENUM, 'unknown', false, false, false, getEnumeratorValues(basename(__FILE__), 'method')); + self::initVar('ticket-id', XOBJ_DTYPE_INT, null, false); + self::initVar('department-id', XOBJ_DTYPE_INT, null, false); + self::initVar('staff-id', XOBJ_DTYPE_INT, null, false); + self::initVar('created', XOBJ_DTYPE_INT, time(), false); + self::initVar('sent', XOBJ_DTYPE_INT, null, 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 Correspondences in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondencesHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_correspondences'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseCorrespondences'; + + /** + * 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/correspondence_bcc.php =================================================================== --- XoopsModules/please/trunk/class/correspondence_bcc.php (rev 0) +++ XoopsModules/please/trunk/class/correspondence_bcc.php 2016-11-06 00:33:21 UTC (rev 13217) @@ -0,0 +1,122 @@ +<?php +/** + * Please Correspondences_bcc Ticketer of Batch Group & User Correspondences_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 Correspondences_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 Correspondences_bcc in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_correspondences_bcc` ( + * `id` mediumint(38) UNSIGNED NOT NULL AUTO_INCREMENT, + * `bcc-id` mediumint(30) UNSIGNED DEFAULT '0', + * `department-id` mediumint(6) UNSIGNED DEFAULT '0', + * `ticket-id` mediumint(30) UNSIGNED DEFAULT '0', + * `staff-id` mediumint(18) UNSIGNED DEFAULT '0', + * `sent` int(12) DEFAULT '0', + * `viewed` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences_bcc extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('bcc-id', XOBJ_DTYPE_INT, null, false); + self::initVar('department-id', XOBJ_DTYPE_INT, null, false); + self::initVar('ticket-id', XOBJ_DTYPE_INT, null, false); + self::initVar('staff-id', XOBJ_DTYPE_INT, null, false); + self::initVar('sent', XOBJ_DTYPE_INT, null, false); + self::initVar('viewed', XOBJ_DTYPE_INT, null, 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 Correspondences_bcc in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences_bccHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_correspondences_bcc'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseCorrespondences_bcc'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'viewed'; + + 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/correspondence_cc.php =================================================================== --- XoopsModules/please/trunk/class/correspondence_cc.php (rev 0) +++ XoopsModules/please/trunk/class/correspondence_cc.php 2016-11-06 00:33:21 UTC (rev 13217) @@ -0,0 +1,122 @@ +<?php +/** + * Please Correspondences_cc Ticketer of Batch Group & User Correspondences_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 Correspondences_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 Correspondences_cc in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_correspondences_cc` ( + * `id` mediumint(38) UNSIGNED NOT NULL AUTO_INCREMENT, + * `cc-id` mediumint(30) UNSIGNED DEFAULT '0', + * `department-id` mediumint(6) UNSIGNED DEFAULT '0', + * `ticket-id` mediumint(30) UNSIGNED DEFAULT '0', + * `staff-id` mediumint(18) UNSIGNED DEFAULT '0', + * `sent` int(12) DEFAULT '0', + * `viewed` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences_cc extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('cc-id', XOBJ_DTYPE_INT, null, false); + self::initVar('department-id', XOBJ_DTYPE_INT, null, false); + self::initVar('ticket-id', XOBJ_DTYPE_INT, null, false); + self::initVar('staff-id', XOBJ_DTYPE_INT, null, false); + self::initVar('sent', XOBJ_DTYPE_INT, null, false); + self::initVar('viewed', XOBJ_DTYPE_INT, null, 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 Correspondences_cc in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences_ccHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_correspondences_cc'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseCorrespondences_cc'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'cc-id'; + + 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/correspondence_contents.php =================================================================== --- XoopsModules/please/trunk/class/correspondence_contents.php (rev 0) +++ XoopsModules/please/trunk/class/correspondence_contents.php 2016-11-06 00:33:21 UTC (rev 13217) @@ -0,0 +1,122 @@ +<?php +/** + * Please Correspondences_contents Ticketer of Batch Group & User Correspondences_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 Correspondences_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 Correspondences_contents in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_correspondences_contents` ( + * `id` mediumint(38) UNSIGNED NOT NULL AUTO_INCREMENT, + * `correspondence-id` mediumint(38) UNSIGNED DEFAULT '0', + * `ticket-contents-id` mediumint(30) UNSIGNED DEFAULT '0', + * `ticket-id` mediumint(30) UNSIGNED DEFAULT '0', + * `staff-id` mediumint(18) UNSIGNED DEFAULT '0', + * `created` int(12) DEFAULT '0', + * `sent` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences_contents extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('correspondence-id', XOBJ_DTYPE_INT, null, false); + self::initVar('ticket-contents-id', XOBJ_DTYPE_INT, null, false); + self::initVar('ticket-id', XOBJ_DTYPE_INT, null, false); + self::initVar('staff-id', XOBJ_DTYPE_INT, null, false); + self::initVar('created', XOBJ_DTYPE_INT, null, false); + self::initVar('sent', XOBJ_DTYPE_INT, null, 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 Correspondences_contents in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences_contentsHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_correspondences_contents'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseCorrespondences_contents'; + + /** + * 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/correspondence_relayed.php =================================================================== --- XoopsModules/please/trunk/class/correspondence_relayed.php (rev 0) +++ XoopsModules/please/trunk/class/correspondence_relayed.php 2016-11-06 00:33:21 UTC (rev 13217) @@ -0,0 +1,122 @@ +<?php +/** + * Please Correspondences_relayed Ticketer of Batch Group & User Correspondences_relayeds + * + * 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_relayed 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_relayed in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_correspondences_relayed` ( + * `id` mediumint(38) UNSIGNED NOT NULL AUTO_INCREMENT, + * `relayed-id` mediumint(30) UNSIGNED DEFAULT '0', + * `department-id` mediumint(6) UNSIGNED DEFAULT '0', + * `ticket-id` mediumint(30) UNSIGNED DEFAULT '0', + * `staff-id` mediumint(18) UNSIGNED DEFAULT '0', + * `sent` int(12) DEFAULT '0', + * `viewed` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences_relayed extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('relayed-id', XOBJ_DTYPE_INT, null, false); + self::initVar('department-id', XOBJ_DTYPE_INT, null, false); + self::initVar('ticket-id', XOBJ_DTYPE_INT, null, false); + self::initVar('staff-id', XOBJ_DTYPE_INT, null, false); + self::initVar('sent', XOBJ_DTYPE_INT, null, false); + self::initVar('viewed', XOBJ_DTYPE_INT, null, 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 Correspondences_relayed in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences_relayedHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_correspondences_relayed'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseCorrespondences_relayed'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'sent'; + + 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/correspondence_to.php =================================================================== --- XoopsModules/please/trunk/class/correspondence_to.php (rev 0) +++ XoopsModules/please/trunk/class/correspondence_to.php 2016-11-06 00:33:21 UTC (rev 13217) @@ -0,0 +1,122 @@ +<?php +/** + * Please Correspondences_to Ticketer of Batch Group & User Correspondences_tos + * + * 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_to 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_to in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_correspondences_to` ( + * `id` mediumint(38) UNSIGNED NOT NULL AUTO_INCREMENT, + * `to-id` mediumint(30) UNSIGNED DEFAULT '0', + * `department-id` mediumint(6) UNSIGNED DEFAULT '0', + * `ticket-id` mediumint(30) UNSIGNED DEFAULT '0', + * `staff-id` mediumint(18) UNSIGNED DEFAULT '0', + * `sent` int(12) DEFAULT '0', + * `viewed` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences_to extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('to-id', XOBJ_DTYPE_INT, null, false); + self::initVar('department-id', XOBJ_DTYPE_INT, null, false); + self::initVar('ticket-id', XOBJ_DTYPE_INT, null, false); + self::initVar('staff-id', XOBJ_DTYPE_INT, null, false); + self::initVar('sent', XOBJ_DTYPE_INT, null, false); + self::initVar('viewed', XOBJ_DTYPE_INT, null, 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 Correspondences_to in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseCorrespondences_toHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_correspondences_to'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseCorrespondences_to'; + + /** + * Child Object Identity Key + * + * @var string + */ + var $identity = 'id'; + + /** + * Child Object Default Envaluing Costs + * + * @var string + */ + var $envalued = 'to-cc'; + + 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/departments.php =================================================================== --- XoopsModules/please/trunk/class/departments.php (rev 0) +++ XoopsModules/please/trunk/class/departments.php 2016-11-06 00:33:21 UTC (rev 13217) @@ -0,0 +1,152 @@ +<?php +/** + * Please Departments Ticketer of Batch Group & User Departmentss + * + * 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 Departments 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 Departments in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_departments` ( + * `id` int(6) UNSIGNED NOT NULL AUTO_INCREMENT, + * `code` varchar(3) DEFAULT 'ABC', + * `name` varchar(128) DEFAULT '', + * `description` tinytext, + * `mantis-uri` varchar(350) DEFAULT '', + * `mantis-username` varchar(45) DEFAULT '', + * `mantis-password` varchar(198) DEFAULT '', + * `mantis-project-id` int(11) UNSIGNED DEFAULT '0', + * `manager-uid` int(11) DEFAULT '0', + * `manager-bcc` enum('all-email','closed-email','all-pm','closed-pm','none') DEFAULT 'none', + * `manager-mantis-username` varchar(45) DEFAULT '', + * `manager-mantis-password` varchar(198) DEFAULT '', + * `mantis` enum('yes','no') DEFAULT 'no', + * `gid` int(8) DEFAULT '0', + * `tickets` int(12) DEFAULT '0', + * `staff` int(12) DEFAULT '0', + * `clients` int(12) DEFAULT '0', + * `raised` int(12) DEFAULT '0', + * `latest-id` mediumint(30) UNSIGNED DEFAULT '0', + * `closed-id` mediumint(30) UNSIGNED DEFAULT '0', + * `signature` varchar(300) DEFAULT '', + * `created` int(12) DEFAULT '0', + * PRIMARY KEY (`id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseDepartments extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('code', XOBJ_DTYPE_TXTBOX, 'AAB' + mt_rand(100, 100000), false); + self::initVar('name', XOBJ_DTYPE_TXTBOX, null, false, 128); + self::initVar('description', XOBJ_DTYPE_OTHER, null, false); + self::initVar('mantis-uri', XOBJ_DTYPE_TXTBOX, null, false, 350); + self::initVar('mantis-username', XOBJ_DTYPE_TXTBOX, null, false, 45); + self::initVar('mantis-password', XOBJ_DTYPE_TXTBOX, null, false, 198); + self::initVar('mantis-project-id', XOBJ_DTYPE_INT, null, false); + self::initVar('manager-uid', XOBJ_DTYPE_INT, null, false); + self::initVar('manager-bcc', XOBJ_DTYPE_ENUM, 'none', false, false, false, getEnumeratorValues(basename(__FILE__), 'manager-bcc')); + self::initVar('manager-mantis-username', XOBJ_DTYPE_TXTBOX, null, false, 45); + self::initVar('manager-mantis-password', XOBJ_DTYPE_TXTBOX, null, false, 198); + self::initVar('mantis', XOBJ_DTYPE_ENUM, 'none', false, false, false, getEnumeratorValues(basename(__FILE__), 'mantis')); + self::initVar('gid', XOBJ_DTYPE_INT, null, false); + self::initVar('tickets', XOBJ_DTYPE_INT, null, false); + self::initVar('staff', XOBJ_DTYPE_INT, null, false); + self::initVar('clients', XOBJ_DTYPE_INT, null, false); + self::initVar('raised', XOBJ_DTYPE_INT, null, false); + self::initVar('latest-id', XOBJ_DTYPE_INT, null, false); + self::initVar('closed-id', XOBJ_DTYPE_INT, null, false); + self::initVar('signature', XOBJ_DTYPE_TXTBOX, null, false, 300); + 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 Departments in Please email ticketer + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseDepartmentsHandler extends pleaseXoopsObjectHandler +{ + + + /** + * Table Name without prefix used + * + * @var string + */ + var $tbl = 'please_departments'; + + /** + * Child Object Handling Class + * + * @var string + */ + var $child = 'pleaseDepartments'; + + /** + * 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/departments_escalations.php =================================================================== --- XoopsModules/please/trunk/class/departments_escalations.php (rev 0) +++ XoopsModules/please/trunk/class/departments_escalations.php 2016-11-06 00:33:21 UTC (rev 13217) @@ -0,0 +1,121 @@ +<?php +/** + * Please Departments_escalations Ticketer of Batch Group & User Departments_escalationss + * + * 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 Departments_escalations 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 Departments_escalations in Please email ticketer + * + * For Table:- + * <code> + * CREATE TABLE `please_departments_escalations` ( + * `id` int(18) unsigned NOT NULL AUTO_INCREMENT, + * `mode` enum('direct','skipping','mantis','default') DEFAULT 'default', + * `department-id` int(6) unsigned NOT NULL DEFAULT '0', + * `escalation-id` int(6) unsigned NOT NULL DEFAULT '0', + * `weight` int(8) unsigned NOT NULL DEFAULT '1', + * `created` int(12) DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`mode`,`escalation-id`,`department-id`) + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + * </code> + * @author Simon Roberts (wis...@us...) + * @copyright copyright (c) 2015 labs.coop + */ +class pleaseDepartments_escalations extends pleaseXoopsObject +{ + + var $handler = ''; + + function __construct($id = null) + { + + self::initVar('id', XOBJ_DTYPE_INT, null, false); + self::initVar('mode', XOBJ_DTYPE_ENUM, 'unknown', false, false, false, getEnumeratorValues(basename(__FILE__), 'mode')); + self::initVar('department-id', XOBJ_DTYPE_INT, null, false); + self::initVar('escalation-id', XOBJ_DTYPE_INT, null, false); + self::initVar('weight', XOBJ_DTYPE_INT, 1, 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))); + } + + }... [truncated message content] |
From: <wis...@us...> - 2016-11-06 12:02:13
|
Revision: 13218 http://sourceforge.net/p/xoops/svn/13218 Author: wishcraft Date: 2016-11-06 12:02:11 +0000 (Sun, 06 Nov 2016) Log Message: ----------- please email ticketer alpha0 Modified Paths: -------------- XoopsModules/please/trunk/include/uninstall.php XoopsModules/please/trunk/language/english/modinfo.php Modified: XoopsModules/please/trunk/include/uninstall.php =================================================================== --- XoopsModules/please/trunk/include/uninstall.php 2016-11-06 00:33:21 UTC (rev 13217) +++ XoopsModules/please/trunk/include/uninstall.php 2016-11-06 12:02:11 UTC (rev 13218) @@ -26,13 +26,15 @@ require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'groups.php'; $sql = array(); - $sql[] = "DELETE FROM ".$GLOBALS['xoopsDB']->prefix('groups'). " WHERE `groupid` = ". PLEASE_GROUP_CLIENT; - $sql[] = "DELETE FROM ".$GLOBALS['xoopsDB']->prefix('groups'). " WHERE `groupid` = ". PLEASE_GROUP_STAFF; - $sql[] = "DELETE FROM ".$GLOBALS['xoopsDB']->prefix('groups'). " WHERE `groupid` = ". PLEASE_GROUP_MANAGER; - $sql[] = "DELETE FROM ".$GLOBALS['xoopsDB']->prefix('group_permission'). " WHERE `gperm_groupid` = ". PLEASE_GROUP_CLIENT; - $sql[] = "DELETE FROM ".$GLOBALS['xoopsDB']->prefix('group_permission'). " WHERE `gperm_groupid` = ". PLEASE_GROUP_STAFF; - $sql[] = "DELETE FROM ".$GLOBALS['xoopsDB']->prefix('group_permission'). " WHERE `gperm_groupid` = ". PLEASE_GROUP_MANAGER; - + $criteria = new Criteria('group_type', 'please%', 'LIKE'); + if ($results = $groups_handler->getObjects($criteria)) { + foreach($results as $group) + { + $sql[] = "DELETE FROM ".$GLOBALS['xoopsDB']->prefix('groups'). " WHERE `groupid` = ". $group->getVar('groupid'); + $sql[] = "DELETE FROM ".$GLOBALS['xoopsDB']->prefix('group_permission'). " WHERE `gperm_groupid` = ". $group->getVar('groupid'); + } + } + foreach($sql as $question) $GLOBALS['xoopsDB']->queryF($question); Modified: XoopsModules/please/trunk/language/english/modinfo.php =================================================================== --- XoopsModules/please/trunk/language/english/modinfo.php 2016-11-06 00:33:21 UTC (rev 13217) +++ XoopsModules/please/trunk/language/english/modinfo.php 2016-11-06 12:02:11 UTC (rev 13218) @@ -31,7 +31,11 @@ define('_MI_PLEASE_GROUP_TYPE_MANAGER','please-manage'); define('_MI_PLEASE_GROUP_NAME_MANAGER','Please Staff Manager'); define('_MI_PLEASE_GROUP_DESC_MANAGER','This group is for anyone managing staff responding to a ticket in please that needs a username!'); +define('_MI_PLEASE_GROUP_TYPE_DEPARTMENT','please-depart'); +define('_MI_PLEASE_GROUP_NAME_DEPARTMENT','%s'); +define('_MI_PLEASE_GROUP_DESC_DEPARTMENT','%s'); + // Module definition headers for xoops_version.php define('_MI_PLEASE_MODULE_NAME','Please Email'); define('_MI_PLEASE_MODULE_VERSION','1.05'); @@ -48,8 +52,8 @@ define('_MI_PLEASE_MODULE_ADMINMODDIR','/Frameworks/moduleclasses/moduleadmin'); define('_MI_PLEASE_MODULE_ADMINICON16','../../Frameworks/moduleclasses/icons/16'); define('_MI_PLEASE_MODULE_ADMINICON32','./../Frameworks/moduleclasses/icons/32'); -define('_MI_PLEASE_MODULE_RELEASEINFO',''); -define('_MI_PLEASE_MODULE_RELEASEFILE',''); +define('_MI_PLEASE_MODULE_RELEASEINFO',__DIR__ . DIRECTORY_SEPARATOR . 'release.nfo'); +define('_MI_PLEASE_MODULE_RELEASEFILE','https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/please/xoops2.5_please_1.05.7z'); define('_MI_PLEASE_MODULE_AUTHORREALNAME','Simon Antony Roberts'); define('_MI_PLEASE_MODULE_AUTHORWEBSITE','http://internetfounder.wordpress.com'); define('_MI_PLEASE_MODULE_AUTHORSITENAME','Exhumations from the desks of Chronographics'); @@ -80,8 +84,6 @@ define('_MI_PLEASE_CONFCAT_SYSTEMS_DESC',''); define('_MI_PLEASE_CONFCAT_REPORTS','Please System Reports Settings'); define('_MI_PLEASE_CONFCAT_REPORTS_DESC',''); -define('_MI_PLEASE_CONFCAT_OFFLINE','Offline Operations Settings'); -define('_MI_PLEASE_CONFCAT_OFFLINE_DESC',''); define('_MI_PLEASE_CONFCAT_SPAM','Spam Checking Settings'); define('_MI_PLEASE_CONFCAT_SPAM_DESC',''); |
From: <wis...@us...> - 2016-11-20 14:45:46
|
Revision: 13222 http://sourceforge.net/p/xoops/svn/13222 Author: wishcraft Date: 2016-11-20 14:45:43 +0000 (Sun, 20 Nov 2016) Log Message: ----------- please email ticketer a bit more coded\! Modified Paths: -------------- XoopsModules/please/trunk/class/departments.php XoopsModules/please/trunk/class/objects.php XoopsModules/please/trunk/class/tickets.php XoopsModules/please/trunk/include/install.php XoopsModules/please/trunk/include/uninstall.php XoopsModules/please/trunk/language/english/admin.php XoopsModules/please/trunk/language/english/errors.php XoopsModules/please/trunk/language/english/modinfo.php XoopsModules/please/trunk/language/english/release.nfo XoopsModules/please/trunk/templates/admin/index.html XoopsModules/please/trunk/templates/groups.php.tpl Added Paths: ----------- 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.php XoopsModules/please/trunk/admin/menu.php XoopsModules/please/trunk/admin/permissions.php XoopsModules/please/trunk/include/formloader.php XoopsModules/please/trunk/include/formselectenumerator.php 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 Added: XoopsModules/please/trunk/admin/about.php =================================================================== --- XoopsModules/please/trunk/admin/about.php (rev 0) +++ XoopsModules/please/trunk/admin/about.php 2016-11-20 14:45:43 UTC (rev 13222) @@ -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-11-20 14:45:43 UTC (rev 13222) @@ -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-11-20 14:45:43 UTC (rev 13222) @@ -0,0 +1,66 @@ +<?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-department.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); +} +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-11-20 14:45:43 UTC (rev 13222) @@ -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-11-20 14:45:43 UTC (rev 13222) @@ -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-11-20 14:45:43 UTC (rev 13222) @@ -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 $path . '/mainfile.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.php =================================================================== --- XoopsModules/please/trunk/admin/index.php (rev 0) +++ XoopsModules/please/trunk/admin/index.php 2016-11-20 14:45:43 UTC (rev 13222) @@ -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-11-20 14:45:43 UTC (rev 13222) @@ -0,0 +1,85 @@ +<?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_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-11-20 14:45:43 UTC (rev 13222) @@ -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(); Modified: XoopsModules/please/trunk/class/departments.php =================================================================== --- XoopsModules/please/trunk/class/departments.php 2016-11-06 13:54:03 UTC (rev 13221) +++ XoopsModules/please/trunk/class/departments.php 2016-11-20 14:45:43 UTC (rev 13222) @@ -4,21 +4,21 @@ * * 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. + * 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. + * 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...> + * @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) <wishcraft@users . sourceforge . net> * @subpackage please * @description Departments 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 + * @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')) { @@ -26,12 +26,12 @@ } //* -require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects.php'); +require_once (__DIR__ . DIRECTORY_SEPARATOR . 'objects . php'); /** * Class for Departments in Please email ticketer * - * For Table:- + * For Table : - * <code> * CREATE TABLE `please_departments` ( * `id` int(6) UNSIGNED NOT NULL AUTO_INCREMENT, @@ -59,8 +59,8 @@ * PRIMARY KEY (`id`) * ) ENGINE=InnoDB DEFAULT CHARSET=utf8; * </code> - * @author Simon Roberts (wis...@us...) - * @copyright copyright (c) 2015 labs.coop + * @author Simon Roberts (wishcraft@users . sourceforge . net) + * @copyright copyright (c) 2015 labs . coop */ class pleaseDepartments extends pleaseXoopsObject { @@ -71,7 +71,7 @@ { self::initVar('id', XOBJ_DTYPE_INT, null, false); - self::initVar('code', XOBJ_DTYPE_TXTBOX, 'AAB' + mt_rand(100, 100000), false); + self::initVar('code', XOBJ_DTYPE_TXTBOX, chr(mt_rand(ord("A"), ord("Z"))) . chr(mt_rand(ord("A"), ord("Z"))) . chr(mt_rand(ord("A"), ord("Z"))), false, 3); self::initVar('name', XOBJ_DTYPE_TXTBOX, null, false, 128); self::initVar('description', XOBJ_DTYPE_OTHER, null, false); self::initVar('mantis-uri', XOBJ_DTYPE_TXTBOX, null, false, 350); @@ -79,10 +79,10 @@ self::initVar('mantis-password', XOBJ_DTYPE_TXTBOX, null, false, 198); self::initVar('mantis-project-id', XOBJ_DTYPE_INT, null, false); self::initVar('manager-uid', XOBJ_DTYPE_INT, null, false); - self::initVar('manager-bcc', XOBJ_DTYPE_ENUM, 'none', false, false, false, getEnumeratorValues(basename(__FILE__), 'manager-bcc')); + self::initVar('manager-bcc', XOBJ_DTYPE_ENUM, 'no', false, false, false, getEnumeratorValues(basename(__FILE__), 'manager-bcc')); self::initVar('manager-mantis-username', XOBJ_DTYPE_TXTBOX, null, false, 45); self::initVar('manager-mantis-password', XOBJ_DTYPE_TXTBOX, null, false, 198); - self::initVar('mantis', XOBJ_DTYPE_ENUM, 'none', false, false, false, getEnumeratorValues(basename(__FILE__), 'mantis')); + self::initVar('mantis', XOBJ_DTYPE_ENUM, 'no', false, false, false, getEnumeratorValues(basename(__FILE__), 'mantis')); self::initVar('gid', XOBJ_DTYPE_INT, null, false); self::initVar('tickets', XOBJ_DTYPE_INT, null, false); self::initVar('staff', XOBJ_DTYPE_INT, null, false); @@ -94,12 +94,61 @@ self::initVar('created', XOBJ_DTYPE_INT, time(), false); $this->handler = __CLASS__ . 'Handler'; - if (!empty($id) && !is_null($id)) + if (!empty($id) && !is_null($id)) { $handler = new $this->handler; self::assignVars($handler->get($id)->getValues(array_keys($this->vars))); } + /** + * Gets the drill down items for the form being submitted on the admin + * control panel.. + * + * @return string + */ + function getAdminListFormItems() + { + require_once dirname(__DIR__) . DIRECTORY_SEPERATOR . 'include' . DIRECTORY_SEPERATOR . 'formloader.php'; + + $ret = array(); + $ret['id'] = (string)$this->getVar('id'); + $codetxt = new XoopsFormText('', 'code['.$ret['id'].']', 4, 3, (string)$this->getVar('code')); + $codehide = new XoopsFormHidden('old[code]['.$ret['id'].']', (string)$this->getVar('code')); + $ret['code'] = $codetxt->render() . $codehide->render(); + $nametxt = new XoopsFormText('', 'name['.$ret['id'].']', 26, 128, (string)$this->getVar('name')); + $namehide = new XoopsFormHidden('old[name]['.$ret['id'].']', (string)$this->getVar('name')); + $ret['name'] = $nametxt->render().$namehide->render(); + $mantisenum = new PleaseFormSelectEnumerator('', 'mantis['.$ret['id'].']', basename(__FILE__), 'mantis', (string)$this->getVar('name')); + $mantishide = new XoopsFormHidden('old[mantis]['.$ret['id'].']', (string)$this->getVar('mantis')); + $ret['mantis'] = $nametxt->render().$mantishide->render(); + $ret['tickets'] = (string)$this->getVar('tickets'); + $ret['staff'] = (string)$this->getVar('staff'); + $ret['clients'] = (string)$this->getVar('clients'); + $ret['raised'] = (string)$this->getVar('raised'); + $dirname = basename(dirname(__DIR__)); + $ticket_handler = xoops_getModuleHandler('tickets', $dirname); + if ($this->getVar('latest-id')>0) + { + $ticket = $ticket_handler->get($this->getVar('latest-id')); + $ret['latest'] = "<a href='" . $ticket->getAdminLink() . "' target='_blank'>" . $ticket->getVar('ticket-key') . "</a>"; + } else { + $ret['latest'] = " "; + } + if ($this->getVar('closed-id')>0) + { + $ticket = $ticket_handler->get($this->getVar('closed-id')); + $ret['closed'] = "<a href='" . $ticket->getAdminLink() . "' target='_blank'>" . $ticket->getVar('ticket-key') . "</a>"; + } else { + $ret['closed'] = " "; + } + + $module_handler = xoops_getHandler('module'); + $module = $module_handler->getByDirname($dirname); + $pathIcon16 = $module->getInfo('icons16'); + $ret['actions'] = "<a href='" . XOOPS_URL . "/modules/$dirname/admin/edit-department.php?id=" . $this->getMD5('id') . "' target='_blank'><img src='" . $pathIcon16 . "/edit.png' alt='" . sprintf(_AM_PLEASE_ADMIN_DEPARTMENTS_EDIT, $this->getVar('name')) . "' title='" . sprintf(_AM_PLEASE_ADMIN_DEPARTMENTS_EDIT, $this->getVar('name')) . "'/></a> "; + return $ret; + } + } } @@ -107,8 +156,8 @@ /** * Handler Class for Departments in Please email ticketer - * @author Simon Roberts (wis...@us...) - * @copyright copyright (c) 2015 labs.coop + * @author Simon Roberts (wishcraft@users . sourceforge . net) + * @copyright copyright (c) 2015 labs . coop */ class pleaseDepartmentsHandler extends pleaseXoopsObjectHandler { @@ -148,5 +197,131 @@ $db = $GLOBAL["xoopsDB"]; parent::__construct($db, self::$tbl, self::$child, self::$identity, self::$envalued); } + + /** + * Created the Add new Department form for the Admin Control Panel + * + * @return string + */ + function getAddFormAdmin() + { + $elements = array(); + $dirname = basename(dirname(__DIR__)); + require_once dirname(__DIR__) . DIRECTORY_SEPERATOR . 'include' . DIRECTORY_SEPERATOR . 'formloader.php'; + + $elements['code'] = new XoopsFormText(_AM_PLEASE_ADDFORM_DEPARTMENT_CODE_TITLE, 'code', 4, 3, chr(mt_rand(ord("A"), ord("Z"))) . chr(mt_rand(ord("A"), ord("Z"))) . chr(mt_rand(ord("A"), ord("Z")))); + $elements['code']->setDescription(_AM_PLEASE_ADDFORM_DEPARTMENT_CODE_DESC); + $elements['name'] = new XoopsFormText(_AM_PLEASE_ADDFORM_DEPARTMENT_NAME_TITLE, 'name', 28, 128, ''); + $elements['name']->setDescription(_AM_PLEASE_ADDFORM_DEPARTMENT_NAME_DESC); + $elements['description'] = new XoopsFormTextArea(_AM_PLEASE_ADDFORM_DEPARTMENT_DESCRIPTION_TITLE, 'description', '', 28, 8); + $elements['description']->setDescription(_AM_PLEASE_ADDFORM_DEPARTMENT_DESCRIPTION_DESC); + $elements['mantis'] = new PleaseFormSelectEnumerator(_AM_PLEASE_ADDFORM_DEPARTMENT_MANTIS_TITLE, 'mantis', basename(__FILE__), 'mantis', (string)$this->getVar('name')); + $elements['mantis']->setDescription(_AM_PLEASE_ADDFORM_DEPARTMENT_MANTIS_DESC); + $elements['mantis-uri'] = new XoopsFormText(_AM_PLEASE_ADDFORM_DEPARTMENT_MANTISURI_TITLE, 'mantis-uri', 28, 350, 'http://'); + $elements['mantis-uri']->setDescription(_AM_PLEASE_ADDFORM_DEPARTMENT_MANTISURI_DESC); + $elements['mantis-username'] = new XoopsFormText(_AM_PLEASE_ADDFORM_DEPARTMENT_MANTISUSERNAME_TITLE, 'mantis-username', 28, 45, ''); + $elements['mantis-username']->setDescription(_AM_PLEASE_ADDFORM_DEPARTMENT_MANTISUSERNAME_DESC); + $elements['mantis-password'] = new XoopsFormPassword(_AM_PLEASE_ADDFORM_DEPARTMENT_MANTISPASSWORD_TITLE, 'mantis-password', 28, 198, ''); + $elements['mantis-password']->setDescription(_AM_PLEASE_ADDFORM_DEPARTMENT_MANTISPASSWORD_DESC); + $elements['signature'] = new XoopsFormDhtmlTextArea(_AM_PLEASE_ADDFORM_DEPARTMENT_SIGNATURE_TITLE, 'signature', '', 28, 8); + $elements['signature']->setDescription(_AM_PLEASE_ADDFORM_DEPARTMENT_SIGNATURE_DESC); + $elements['manager-name'] = new XoopsFormText(_AM_PLEASE_ADDFORM_DEPARTMENT_MANAGERNAME_TITLE, 'name', 28, 128, ''); + $elements['manager-name']->setDescription(_AM_PLEASE_ADDFORM_DEPARTMENT_MANAGERNAME_DESC); + $elements['manager-email'] = new XoopsFormText(_AM_PLEASE_ADDFORM_DEPARTMENT_MANAGEREMAIL_TITLE, 'name', 28, 128, ''); + $elements['manager-email']->setDescription(_AM_PLEASE_ADDFORM_DEPARTMENT_MANAGEREMAIL_DESC); + $elements['submit'] = new XoopsFormButton('', 'submit', _SUBMIT); + + $form = new XoopsThemeForm(_AM_PLEASE_ADMIN_DEPARTMENTS_ADDFORM_TITLE, 'add-department', XOOPS_URL . '/modules/' . $dirname . '/admin/post.php?op=add-department', 'post', true); + foreach($elements as $key => $obj) + { + if (in_array($key, array('code', 'name', 'description', 'manager-name', 'manager-email'))) + $form->addElement($elements[$key], true); + else + $form->addElement($elements[$key], false); + } + + return $form->render(); + } + + /** + * Gets the admin header table constants for the admin drilldown items + * + * @return string + */ + function getAdminListFormHeader() + { + $dirname = basename(dirname(__DIR__)); + $ret = array(); + $ret['id']['name'] = _AM_PLEASE_ADMIN_DEPARTMENTS_ID; + $ret['id']['url'] = XOOPS_URL . '/modules/' . $dirname . '/admin/departments.php?start=' . $GLOBALS['start'] . '&limit=' . $GLOBALS['limit'] . (isset($GLOBALS['op']) && !empty($GLOBALS['op']) ? '&op=' . $GLOBALS['op'] : "") . '&sort=id' . (isset($GLOBALS['order']) && !empty($GLOBALS['order'] && $GLOBALS['sort'] == 'id' && $GLOBALS['order'] == 'ASC') ? '&order=DESC' : '&order=ASC'); + $ret['code']['name'] = _AM_PLEASE_ADMIN_DEPARTMENTS_CODE; + $ret['code']['url'] = XOOPS_URL . '/modules/' . $dirname . '/admin/departments.php?start=' . $GLOBALS['start'] . '&limit=' . $GLOBALS['limit'] . (isset($GLOBALS['op']) && !empty($GLOBALS['op']) ? '&op=' . $GLOBALS['op'] : "") . '&sort=code' . (isset($GLOBALS['order']) && !empty($GLOBALS['order'] && $GLOBALS['sort'] == 'code' && $GLOBALS['order'] == 'ASC') ? '&order=DESC' : '&order=ASC'); + $ret['name']['name'] = _AM_PLEASE_ADMIN_DEPARTMENTS_NAME; + $ret['name']['url'] = XOOPS_URL . '/modules/' . $dirname . '/admin/departments.php?start=' . $GLOBALS['start'] . '&limit=' . $GLOBALS['limit'] . (isset($GLOBALS['op']) && !empty($GLOBALS['op']) ? '&op=' . $GLOBALS['op'] : "") . '&sort=name' . (isset($GLOBALS['order']) && !empty($GLOBALS['order'] && $GLOBALS['sort'] == 'name' && $GLOBALS['order'] == 'ASC') ? '&order=DESC' : '&order=ASC'); + $ret['mantis']['name'] = _AM_PLEASE_ADMIN_DEPARTMENTS_MANTIS; + $ret['mantis']['url'] = XOOPS_URL . '/modules/' . $dirname . '/admin/departments.php?start=' . $GLOBALS['start'] . '&limit=' . $GLOBALS['limit'] . (isset($GLOBALS['op']) && !empty($GLOBALS['op']) ? '&op=' . $GLOBALS['op'] : "") . '&sort=mantis' . (isset($GLOBALS['order']) && !empty($GLOBALS['order'] && $GLOBALS['sort'] == 'mantis' && $GLOBALS['order'] == 'ASC') ? '&order=DESC' : '&order=ASC'); + $ret['tickets']['name'] = _AM_PLEASE_ADMIN_DEPARTMENTS_TICKETS; + $ret['tickets']['url'] = XOOPS_URL . '/modules/' . $dirname . '/admin/departments.php?start=' . $GLOBALS['start'] . '&limit=' . $GLOBALS['limit'] . (isset($GLOBALS['op']) && !empty($GLOBALS['op']) ? '&op=' . $GLOBALS['op'] : "") . '&sort=tickets' . (isset($GLOBALS['order']) && !empty($GLOBALS['order'] && $GLOBALS['sort'] == 'tickets' && $GLOBALS['order'] == 'ASC') ? '&order=DESC' : '&order=ASC'); + $ret['staff']['name'] = _AM_PLEASE_ADMIN_DEPARTMENTS_STAFF; + $ret['staff']['url'] = XOOPS_URL . '/modules/' . $dirname . '/admin/departments.php?start=' . $GLOBALS['start'] . '&limit=' . $GLOBALS['limit'] . (isset($GLOBALS['op']) && !empty($GLOBALS['op']) ? '&op=' . $GLOBALS['op'] : "") . '&sort=staff' . (isset($GLOBALS['order']) && !empty($GLOBALS['order'] && $GLOBALS['sort'] == 'staff' && $GLOBALS['order'] == 'ASC') ? '&order=DESC' : '&order=ASC'); + $ret['clients']['name'] = _AM_PLEASE_ADMIN_DEPARTMENTS_CLIENTS; + $ret['clients']['url'] = XOOPS_URL . '/modules/' . $dirname . '/admin/departments.php?start=' . $GLOBALS['start'] . '&limit=' . $GLOBALS['limit'] . (isset($GLOBALS['op']) && !empty($GLOBALS['op']) ? '&op=' . $GLOBALS['op'] : "") . '&sort=clients' . (isset($GLOBALS['order']) && !empty($GLOBALS['order'] && $GLOBALS['sort'] == 'clients' && $GLOBALS['order'] == 'ASC') ? '&order=DESC' : '&order=ASC'); + $ret['raised']['name'] = _AM_PLEASE_ADMIN_DEPARTMENTS_RAISED; + $ret['raised']['url'] = XOOPS_URL . '/modules/' . $dirname . '/admin/departments.php?start=' . $GLOBALS['start'] . '&limit=' . $GLOBALS['limit'] . (isset($GLOBALS['op']) && !empty($GLOBALS['op']) ? '&op=' . $GLOBALS['op'] : "") . '&sort=raised' . (isset($GLOBALS['order']) && !empty($GLOBALS['order'] && $GLOBALS['sort'] == 'raised' && $GLOBALS['order'] == 'ASC') ? '&order=DESC' : '&order=ASC'); + $ret['latest']['name'] = _AM_PLEASE_ADMIN_DEPARTMENTS_LATEST; + $ret['latest']['url'] = XOOPS_URL . '/modules/' . $dirname . '/admin/departments.php?start=' . $GLOBALS['start'] . '&limit=' . $GLOBALS['limit'] . (isset($GLOBALS['op']) && !empty($GLOBALS['op']) ? '&op=' . $GLOBALS['op'] : "") . '&sort=latest-id' . (isset($GLOBALS['order']) && !empty($GLOBALS['order'] && $GLOBALS['sort'] == 'latest-id' && $GLOBALS['order'] == 'ASC') ? '&order=DESC' : '&order=ASC'); + $ret['closed']['name'] = _AM_PLEASE_ADMIN_DEPARTMENTS_CLOSED; + $ret['closed']['url'] = XOOPS_URL . '/modules/' . $dirname . '/admin/departments.php?start=' . $GLOBALS['start'] . '&limit=' . $GLOBALS['limit'] . (isset($GLOBALS['op']) && !empty($GLOBALS['op']) ? '&op=' . $GLOBALS['op'] : "") . '&sort=closed-id' . (isset($GLOBALS['order']) && !empty($GLOBALS['order'] && $GLOBALS['sort'] == 'closed-id' && $GLOBALS['order'] == 'ASC') ? '&order=DESC' : '&order=ASC'); + $ret['actions']['name'] = _AM_PLEASE_ADMIN_DEPARTMENTS_ACTIONS; + $ret['actions']['url'] = ''; + + return $ret; + } + + + /** + * Get the default sort basis for criteria's + * + * @param string $location + * @return string + */ + function getDefaultSort($location = 'admin') + { + switch($location) + { + default: + case "admin": + return 'name'; + break; + case "tickets": + return 'code'; + break; + } + } + + /** + * Inserts Objects in the database + * + * {@inheritDoc} + * @see XoopsPersistableObjectHandler::insert() + */ + function insert($object = null, $force = true) + { + if (is_a($object, "pleaseDepartments")) + { + if ($object->isNew()) + { + $groups_handler =& xoops_gethandler('group'); + $group = $groups_handler->create(); + $group->setVar('name', substr(sprintf(_MI_PLEASE_GROUP_NAME_DEPARTMENT, $object->getVar('name')), 0, 99)); + $group->setVar('description', sprintf(_MI_PLEASE_GROUP_DESC_DEPARTMENT, $object->getVar('description'))); + $group->setVar('group_type', _MI_PLEASE_GROUP_TYPE_DEPARTMENT); + $object->setVar('gid', $groups_handler->insert($group, true)); + $object->setVar('created', time()); + } + return parent::insert($object, $force); + } + return false; + } } ?> \ No newline at end of file Modified: XoopsModules/please/trunk/class/objects.php =================================================================== --- XoopsModules/please/trunk/class/objects.php 2016-11-06 13:54:03 UTC (rev 13221) +++ XoopsModules/please/trunk/class/objects.php 2016-11-20 14:45:43 UTC (rev 13222) @@ -45,7 +45,7 @@ if ($this->vars[$key]['data_type'] == XOBJ_DTYPE_OTHER) { parent::assignVar($key, pleaseDecompressData($value)); } elseif (strpos($key, 'pass')||strpos($key, 'password')) { - parent::assignVar($key, pleaseDecryptPassword($value, _PLEASE_SALT_BLOWFISH . _PLEASE_SALT_WHENSET)); + parent::assignVar($key, pleaseDecryptPassword($value, PLEASE_SALT . PLEASE_SALT_WHENSET)); } else parent::assignVar($key, $value); } @@ -67,12 +67,23 @@ if ($object->vars[$field]['data_type'] == XOBJ_DTYPE_OTHER) { $object->vars[$field]['value'] = pleaseCompressData($object->vars[$field]['value']); } elseif (strpos($field, 'pass')||strpos($field, 'password')) { - $object->vars[$field]['value'] = pleaseEncryptPassword($object->vars[$field]['value'], _PLEASE_SALT_BLOWFISH . _PLEASE_SALT_WHENSET); + $object->vars[$field]['value'] = pleaseEncryptPassword($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); + } } /** @@ -83,7 +94,36 @@ class pleaseXoopsObjectHandler 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 @@ -91,10 +131,37 @@ * @param string $identity * @param string $envalued */ - function __construct(&$db, $tbl = '', $child = '', $identity = '', $envalued = '') + function __construct($db, $tbl = '', $child = '', $identity = '', $envalued = '') { if (!object($db)) - $db = $GLOBAL["xoopsDB"]; - return parent::__construct($db, $tbl, $child, $identity, $envalued); - } + $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); + } + + /** + * Returns either object or identity key based on md5 passed to function + * + * @param string $md5 + * @param string $asObject + * @return XoopsObject|unknown|boolean + */ + function getMD5($md5 = '', $asObject = true) + { + $key = NULL; + $sql = "SELECT `" . $this->identity . "` FROM `" . $this->db->prefix($this->tbl) . "` WHERE MD5(CONCAT(" . $this->db->quote(PLEASE_SALT) . ", `" . $this->identity . "`, " . $this->db->quote(PLEASE_SALT) . ")) LIKE '" . $md5 . "'"; + if ($result = $this->db->queryF($sql)) + { + list($key) = $this->db->fetchRow($result); + } + if (!empty($key) && !is_null($key) && $asObject == true) + return $this->get($key); + if (!empty($key) && !is_null($key) && $asObject == false) + return $key; + return false; + } + } \ No newline at end of file Modified: XoopsModules/please/trunk/class/tickets.php =================================================================== --- XoopsModules/please/trunk/class/tickets.php 2016-11-06 13:54:03 UTC (rev 13221) +++ XoopsModules/please/trunk/class/tickets.php 2016-11-20 14:45:43 UTC (rev 13222) @@ -84,6 +84,11 @@ } + function getAdminLink() + { + $dirname = basename(dirname(__DIR__)); + return XOOPS_URL . '/modules/'.$dirname."/admin/view-ticket.php?id=" . $this->getMD5('id'); + } } Added: XoopsModules/please/trunk/include/formloader.php =================================================================== --- XoopsModules/please/trunk/include/formloader.php (rev 0) +++ XoopsModules/please/trunk/include/formloader.php 2016-11-20 14:45:43 UTC (rev 13222) @@ -0,0 +1,19 @@ +<?php +/** + * XOOPS form class loader + * + * 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 (c) 2000-2016 XOOPS Project (www.xoops.org) + * @license GNU GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html) + * @package kernel + * @since 2.0.0 + */ + +xoops_load('XoopsFormLoader'); +require_once __DIR__ . DIRECTORY_SEPARATOR . 'formselectenumerator.php'; Added: XoopsModules/please/trunk/include/formselectenumerator.php =================================================================== --- XoopsModules/please/trunk/include/formselectenumerator.php (rev 0) +++ XoopsModules/please/trunk/include/formselectenumerator.php 2016-11-20 14:45:43 UTC (rev 13222) @@ -0,0 +1,52 @@ +<?php +/** + * XOOPS form element + * + * 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 (c) 2000-2016 XOOPS Project (www.xoops.org) + * @license GNU GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html) + * @package kernel + * @subpackage form + * @since 2.0.0 + * @author Kazumi Ono (AKA onokazu) http://www.myweb.ne.jp/, http://jp.xoops.org/ + */ + +defined('XOOPS_ROOT_PATH') || exit('Restricted access'); + +xoops_load('XoopsLists'); +xoops_load('XoopsFormSelect'); + +require_once __DIR__ . DIRECTORY_SEPERATOR . 'functions.php'; + +/** + * A select box with available themes + */ +class PleaseFormSelectEnumerator extends XoopsFormSelect +{ + /** + * Constructor + * + * @param string $caption + * @param string $name + * @param mixed $value Pre-selected value (or array of them). + * @param int $size Number or rows. "1" makes a drop-down-list + */ + public function __construct($caption, $name, $classfile = '', $field = '', $value = null, $size = 1) + { + parent::__construct($caption, $name, $value, $size); + if ($values = getEnumeratorValues($classfile, $field)) + { + $ret = array(); + foreach($values as $value) + $ret[$value] = ucwords(strtolower($value)); + $this->addOptionArray($ret); + } + + } +} Modified: XoopsModules/please/trunk/include/install.php =================================================================== --- XoopsModules/please/trunk/include/install.php 2016-11-06 13:54:03 UTC (rev 13221) +++ XoopsModules/please/trunk/include/install.php 2016-11-20 14:45:43 UTC (rev 13222) @@ -110,7 +110,7 @@ if (is_file(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'groups.php')) unlink(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'groups.php'); $php = file_get_contents(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR . 'groups.php.tpl'); - file_put_contents(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'groups.php', str_replace('%client%', $gc, str_replace('%staff%', $gs, str_replace('%manager%, $gm, $php')))); + file_put_contents(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'groups.php', str_replace('%whenset%', date("D, d M Y, H:i:s"), str_replace('%salt%', please_install_generate_salt(), str_replace('%client%', $gc, str_replace('%staff%', $gs, str_replace('%manager%, $gm, $php')))))); return true; } @@ -119,4 +119,32 @@ } +function please_install_generate_salt() +{ + $salt = ''; + mt_srand(mt_rand(-microtime(true), microtime(true))); + mt_srand(mt_rand(-microtime(true), microtime(true))); + mt_srand(mt_rand(-microtime(true), microtime(true))); + mt_srand(mt_rand(-microtime(true), microtime(true))); + while (strlen($salt)<mt_rand(128,512)) + { + mt_srand(mt_rand(-microtime(true), microtime(true))); + switch((string)mt_rand(0,3)) + { + default: + $salt .= chr(mt_rand(ord("-"), ord("|"))); + break; + case "1": + $salt .= chr(mt_rand(ord("A"), ord("Z"))); + break; + case "2": + $salt .= chr(mt_rand(ord("a"), ord("z"))); + break; + case "2": + $salt .= chr(mt_rand(ord("0"), ord("9"))); + break; + } + } + return $salt; +} ?> \ No newline at end of file Modified: XoopsModules/please/trunk/include/uninstall.php =================================================================== --- XoopsModules/please/trunk/include/uninstall.php 2016-11-06 13:54:03 UTC (rev 13221) +++ XoopsModules/please/trunk/include/uninstall.php 2016-11-20 14:45:43 UTC (rev 13222) @@ -24,7 +24,9 @@ function xoops_module_uninstall_please(&$module) { require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'groups.php'; - + $groups_handler = xoops_getHandler('groups'); + $users_handler = xoops_getHandler('users'); + $uids = array(); $sql = array(); $criteria = new Criteria('group_type', 'please%', 'LIKE'); if ($results = $groups_handler->getObjects($criteria)) { @@ -32,8 +34,19 @@ { $sql[] = "DELETE FROM ".$GLOBALS['xoopsDB']->prefix('groups'). " WHERE `groupid` = ". $group->getVar('groupid'); $sql[] = "DELETE FROM ".$GLOBALS['xoopsDB']->prefix('group_permission'). " WHERE `gperm_groupid` = ". $group->getVar('groupid'); + $ucriteria = new Criteria('gperm_groupid', $group->getVar('groupid'), '='); + if ($gresults = $groups_handler->getObjects($ucriteria)) { + foreach($gresults as $groupperm) + { + $user = $users_handler->get($groupperm->getVar('uid')); + if (!in_array(XOOPS_GROUP_ADMIN, $user->getGroups())) + $uids[$groupperm->getVar('uid')] = $groupperm->getVar('uid'); + } + } } } + if (count($uids)) + $sql[] = "DELETE FROM ".$GLOBALS['xoopsDB']->prefix('users'). " WHERE `uid` IN (". implode(", ", $uids) . ")"; foreach($sql as $question) $GLOBALS['xoopsDB']->queryF($question); Modified: XoopsModules/please/trunk/language/english/admin.php =================================================================== --- XoopsModules/please/trunk/language/english/admin.php 2016-11-06 13:54:03 UTC (rev 13221) +++ XoopsModules/please/trunk/language/english/admin.php 2016-11-20 14:45:43 UTC (rev 13222) @@ -1 +1,68 @@ <?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 ... [truncated message content] |
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] |
From: <wis...@us...> - 2017-01-14 17:57:54
|
Revision: 13230 http://sourceforge.net/p/xoops/svn/13230 Author: wishcraft Date: 2017-01-14 17:57:49 +0000 (Sat, 14 Jan 2017) Log Message: ----------- Email Ticketer Please! Still in intial build! Added Paths: ----------- XoopsModules/please/trunk/htdocs/ XoopsModules/please/trunk/htdocs/modules/ XoopsModules/please/trunk/htdocs/modules/please/ XoopsModules/please/trunk/htdocs/modules/please/admin/ XoopsModules/please/trunk/htdocs/modules/please/admin/about.php XoopsModules/please/trunk/htdocs/modules/please/admin/add-departments.php XoopsModules/please/trunk/htdocs/modules/please/admin/departments.php XoopsModules/please/trunk/htdocs/modules/please/admin/edit-departments.php XoopsModules/please/trunk/htdocs/modules/please/admin/footer.php XoopsModules/please/trunk/htdocs/modules/please/admin/header.php XoopsModules/please/trunk/htdocs/modules/please/admin/index.html XoopsModules/please/trunk/htdocs/modules/please/admin/index.php XoopsModules/please/trunk/htdocs/modules/please/admin/menu.php XoopsModules/please/trunk/htdocs/modules/please/admin/permissions.php XoopsModules/please/trunk/htdocs/modules/please/admin/post.php XoopsModules/please/trunk/htdocs/modules/please/blocks/ XoopsModules/please/trunk/htdocs/modules/please/blocks/index.html XoopsModules/please/trunk/htdocs/modules/please/class/ XoopsModules/please/trunk/htdocs/modules/please/class/addresses.php XoopsModules/please/trunk/htdocs/modules/please/class/bcc.php XoopsModules/please/trunk/htdocs/modules/please/class/cc.php XoopsModules/please/trunk/htdocs/modules/please/class/contents.php XoopsModules/please/trunk/htdocs/modules/please/class/correspondence.php XoopsModules/please/trunk/htdocs/modules/please/class/correspondence_bcc.php XoopsModules/please/trunk/htdocs/modules/please/class/correspondence_cc.php XoopsModules/please/trunk/htdocs/modules/please/class/correspondence_contents.php XoopsModules/please/trunk/htdocs/modules/please/class/correspondence_relayed.php XoopsModules/please/trunk/htdocs/modules/please/class/correspondence_to.php XoopsModules/please/trunk/htdocs/modules/please/class/departments.php XoopsModules/please/trunk/htdocs/modules/please/class/departments_escalations.php XoopsModules/please/trunk/htdocs/modules/please/class/departments_keywords.php XoopsModules/please/trunk/htdocs/modules/please/class/departments_mantis_projects.php XoopsModules/please/trunk/htdocs/modules/please/class/departments_staff.php XoopsModules/please/trunk/htdocs/modules/please/class/departments_staff_keywords.php XoopsModules/please/trunk/htdocs/modules/please/class/departments_staff_mantis_tickets.php XoopsModules/please/trunk/htdocs/modules/please/class/emails.php XoopsModules/please/trunk/htdocs/modules/please/class/emails_files.php XoopsModules/please/trunk/htdocs/modules/please/class/files.php XoopsModules/please/trunk/htdocs/modules/please/class/images.php XoopsModules/please/trunk/htdocs/modules/please/class/index.html XoopsModules/please/trunk/htdocs/modules/please/class/keywords.php XoopsModules/please/trunk/htdocs/modules/please/class/mailboxs/ XoopsModules/please/trunk/htdocs/modules/please/class/mailboxs/api.php XoopsModules/please/trunk/htdocs/modules/please/class/mailboxs/imap.php XoopsModules/please/trunk/htdocs/modules/please/class/mailboxs.php XoopsModules/please/trunk/htdocs/modules/please/class/messages.php XoopsModules/please/trunk/htdocs/modules/please/class/messages_cc.php XoopsModules/please/trunk/htdocs/modules/please/class/messages_files.php XoopsModules/please/trunk/htdocs/modules/please/class/messages_to.php XoopsModules/please/trunk/htdocs/modules/please/class/mimetypes.php XoopsModules/please/trunk/htdocs/modules/please/class/names.php XoopsModules/please/trunk/htdocs/modules/please/class/objects.php XoopsModules/please/trunk/htdocs/modules/please/class/phones.php XoopsModules/please/trunk/htdocs/modules/please/class/relayed.php XoopsModules/please/trunk/htdocs/modules/please/class/spam_addresses.php XoopsModules/please/trunk/htdocs/modules/please/class/spam_keywords.php XoopsModules/please/trunk/htdocs/modules/please/class/subjects.php XoopsModules/please/trunk/htdocs/modules/please/class/tickets.php XoopsModules/please/trunk/htdocs/modules/please/class/tickets_attachments.php XoopsModules/please/trunk/htdocs/modules/please/class/tickets_contents.php XoopsModules/please/trunk/htdocs/modules/please/class/tickets_departments.php XoopsModules/please/trunk/htdocs/modules/please/class/tickets_files.php XoopsModules/please/trunk/htdocs/modules/please/class/tickets_keywords.php XoopsModules/please/trunk/htdocs/modules/please/class/tickets_ownership.php XoopsModules/please/trunk/htdocs/modules/please/class/tickets_referees.php XoopsModules/please/trunk/htdocs/modules/please/class/to.php XoopsModules/please/trunk/htdocs/modules/please/class/wiki.php XoopsModules/please/trunk/htdocs/modules/please/class/wiki_keywords.php XoopsModules/please/trunk/htdocs/modules/please/class/wiki_staff.php XoopsModules/please/trunk/htdocs/modules/please/crons/ XoopsModules/please/trunk/htdocs/modules/please/crons/index.html XoopsModules/please/trunk/htdocs/modules/please/header.php XoopsModules/please/trunk/htdocs/modules/please/images/ XoopsModules/please/trunk/htdocs/modules/please/images/index.html XoopsModules/please/trunk/htdocs/modules/please/images/modicon.png XoopsModules/please/trunk/htdocs/modules/please/include/ XoopsModules/please/trunk/htdocs/modules/please/include/common.php XoopsModules/please/trunk/htdocs/modules/please/include/data/ XoopsModules/please/trunk/htdocs/modules/please/include/data/index.html XoopsModules/please/trunk/htdocs/modules/please/include/data/mimetypes-archives.diz XoopsModules/please/trunk/htdocs/modules/please/include/data/mimetypes-audio.diz XoopsModules/please/trunk/htdocs/modules/please/include/data/mimetypes-general.diz XoopsModules/please/trunk/htdocs/modules/please/include/data/mimetypes-images.diz XoopsModules/please/trunk/htdocs/modules/please/include/data/mimetypes-video.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/ XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/attachments__mailboxs.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/collect__mailboxs.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/images__mailboxs.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/index.html XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/manager_bcc__departments.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/mantis__departments.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/messaging__departments_staff.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/method__correspondence.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/method__mailboxs.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/mode__departments_escalations.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/mode__phones.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/mode__tickets.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/mode__tickets_referees.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/recieved__emails.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/sending__emails.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/signature__mailboxs.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/spam-checking__messages.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/spam-email__messages.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/spam-training__messages.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/ssl__mailboxs.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/state__departments_staff.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/state__keywords.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/state__tickets.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/state__tickets_attachments.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/state__tickets_contents.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/state__tickets_ownership.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/state__wiki.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/storage__files.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/storage__images.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/typal__files.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/typal__messages.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/typal__phones.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/typal__tickets_attachments.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/typal__where.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/wammy-typal__messages.diz XoopsModules/please/trunk/htdocs/modules/please/include/enumerators/wammy__mailboxs.diz XoopsModules/please/trunk/htdocs/modules/please/include/formloader.php XoopsModules/please/trunk/htdocs/modules/please/include/formselectenumerator.php XoopsModules/please/trunk/htdocs/modules/please/include/functions.php XoopsModules/please/trunk/htdocs/modules/please/include/index.html XoopsModules/please/trunk/htdocs/modules/please/include/install.php XoopsModules/please/trunk/htdocs/modules/please/include/onupdate.php XoopsModules/please/trunk/htdocs/modules/please/include/uninstall.php XoopsModules/please/trunk/htdocs/modules/please/index.php XoopsModules/please/trunk/htdocs/modules/please/language/ XoopsModules/please/trunk/htdocs/modules/please/language/english/ XoopsModules/please/trunk/htdocs/modules/please/language/english/admin.php XoopsModules/please/trunk/htdocs/modules/please/language/english/blocks.php XoopsModules/please/trunk/htdocs/modules/please/language/english/errors.php XoopsModules/please/trunk/htdocs/modules/please/language/english/index.html XoopsModules/please/trunk/htdocs/modules/please/language/english/mail_template/ XoopsModules/please/trunk/htdocs/modules/please/language/english/main.php XoopsModules/please/trunk/htdocs/modules/please/language/english/modinfo.php XoopsModules/please/trunk/htdocs/modules/please/language/english/release.nfo XoopsModules/please/trunk/htdocs/modules/please/language/english/release.xcode XoopsModules/please/trunk/htdocs/modules/please/language/index.html XoopsModules/please/trunk/htdocs/modules/please/mantis.php XoopsModules/please/trunk/htdocs/modules/please/preloads/ XoopsModules/please/trunk/htdocs/modules/please/preloads/index.html XoopsModules/please/trunk/htdocs/modules/please/preloads/sef.php XoopsModules/please/trunk/htdocs/modules/please/sql/ XoopsModules/please/trunk/htdocs/modules/please/sql/index.html XoopsModules/please/trunk/htdocs/modules/please/sql/mysqli.sql XoopsModules/please/trunk/htdocs/modules/please/sql/tables.diz XoopsModules/please/trunk/htdocs/modules/please/templates/ XoopsModules/please/trunk/htdocs/modules/please/templates/admin/ XoopsModules/please/trunk/htdocs/modules/please/templates/admin/about.html XoopsModules/please/trunk/htdocs/modules/please/templates/admin/add-departments.html XoopsModules/please/trunk/htdocs/modules/please/templates/admin/departments.html XoopsModules/please/trunk/htdocs/modules/please/templates/admin/edit-departments.html XoopsModules/please/trunk/htdocs/modules/please/templates/admin/index.html XoopsModules/please/trunk/htdocs/modules/please/templates/blocks/ XoopsModules/please/trunk/htdocs/modules/please/templates/blocks/index.html XoopsModules/please/trunk/htdocs/modules/please/templates/groups.php.tpl XoopsModules/please/trunk/htdocs/modules/please/templates/index.html XoopsModules/please/trunk/htdocs/modules/please/xoops_version.php Removed Paths: ------------- XoopsModules/please/trunk/admin/ XoopsModules/please/trunk/blocks/ XoopsModules/please/trunk/class/ XoopsModules/please/trunk/crons/ XoopsModules/please/trunk/header.php 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 Deleted: XoopsModules/please/trunk/header.php =================================================================== --- XoopsModules/please/trunk/header.php 2017-01-01 01:51:06 UTC (rev 13229) +++ XoopsModules/please/trunk/header.php 2017-01-14 17:57:49 UTC (rev 13230) @@ -1,74 +0,0 @@ -<?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 please - * @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 (dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'mainfile.php'); - - ini_set('display_errors', true); - ini_set('log_errors', true); - error_reporting(E_ERROR); - - if (!defined('_MI_PLEASE_MODULE_DIRNAME')) - define('_MI_PLEASE_MODULE_DIRNAME', basename(__DIR__)); - if (!defined('PLEASE_UPLOAD_PATH')) - define('PLEASE_UPLOAD_PATH', XOOPS_ROOT_PATH . DIRECTORY_SEPARATOR . 'uploads' . DIRECTORY_SEPARATOR . basename(__DIR__)); - if (!defined('PLEASE_DATA_PATH')) - define('PLEASE_DATA_PATH', XOOPS_VAR_PATH . DIRECTORY_SEPARATOR . basename(__DIR__)); - if (!defined('PLEASE_UPLOAD_URL')) - define('PLEASE_UPLOAD_URL', XOOPS_URL . DIRECTORY_SEPARATOR . 'uploads' . DIRECTORY_SEPARATOR . basename(__DIR__)); - if (!defined('PLEASE_DATA_URL')) - define('PLEASE_DATA_URL', XOOPS_URL . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR . basename(__DIR__) . DIRECTORY_SEPARATOR . 'data' ); - if (!is_dir(PLEASE_UPLOAD_PATH)) - mkdir(PLEASE_UPLOAD_PATH, 0777, true); - if (!is_dir(PLEASE_DATA_PATH)) - mkdir(PLEASE_DATA_PATH, 0777, true); - - xoops_loadLanguage('modinfo', _MI_PLEASE_MODULE_DIRNAME); - xoops_loadLanguage('errors', _MI_PLEASE_MODULE_DIRNAME); - - global $pleaseModule, $pleaseConfigsList, $pleaseConfigs, $pleaseConfigsOptions; - - if (empty($pleaseModule)) - { - if (is_a($pleaseModule = xoops_gethandler('module')->getByDirname(_MI_PLEASE_MODULE_DIRNAME), "XoopsModule")) - { - if (empty($pleaseConfigsList)) - { - $pleaseConfigsList = xoops_gethandler('config')->getConfigList($pleaseModule->getVar('mid')); - if (!defined('_MD_CONVERT_DEFAULT_TWITTER')) - define('_MD_CONVERT_DEFAULT_TWITTER',$pleaseConfigsList['username']); - } - if (empty($pleaseConfigs)) - { - $pleaseConfigs = xoops_gethandler('config')->getConfigs(new Criteria('conf_modid', $pleaseModule->getVar('mid'))); - } - if (empty($pleaseConfigsOptions) && !empty($pleaseConfigs)) - { - foreach($pleaseConfigs as $key => $config) - $pleaseConfigsOptions[$config->getVar('conf_name')] = $config->getConfOptions(); - } - } - } - - include_once (__DIR__ . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'functions.php'); - -?> \ No newline at end of file Added: XoopsModules/please/trunk/htdocs/modules/please/admin/about.php =================================================================== --- XoopsModules/please/trunk/htdocs/modules/please/admin/about.php (rev 0) +++ XoopsModules/please/trunk/htdocs/modules/please/admin/about.php 2017-01-14 17:57:49 UTC (rev 13230) @@ -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/htdocs/modules/please/admin/add-departments.php =================================================================== --- XoopsModules/please/trunk/htdocs/modules/please/admin/add-departments.php (rev 0) +++ XoopsModules/please/trunk/htdocs/modules/please/admin/add-departments.php 2017-01-14 17:57:49 UTC (rev 13230) @@ -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/htdocs/modules/please/admin/departments.php =================================================================== --- XoopsModules/please/trunk/htdocs/modules/please/admin/departments.php (rev 0) +++ XoopsModules/please/trunk/htdocs/modules/please/admin/departments.php 2017-01-14 17:57:49 UTC (rev 13230) @@ -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/htdocs/modules/please/admin/edit-departments.php =================================================================== --- XoopsModules/please/trunk/htdocs/modules/please/admin/edit-departments.php (rev 0) +++ XoopsModules/please/trunk/htdocs/modules/please/admin/edit-departments.php 2017-01-14 17:57:49 UTC (rev 13230) @@ -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/htdocs/modules/please/admin/footer.php =================================================================== --- XoopsModules/please/trunk/htdocs/modules/please/admin/footer.php (rev 0) +++ XoopsModules/please/trunk/htdocs/modules/please/admin/footer.php 2017-01-14 17:57:49 UTC (rev 13230) @@ -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/htdocs/modules/please/admin/header.php =================================================================== --- XoopsModules/please/trunk/htdocs/modules/please/admin/header.php (rev 0) +++ XoopsModules/please/trunk/htdocs/modules/please/admin/header.php 2017-01-14 17:57:49 UTC (rev 13230) @@ -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/htdocs/modules/please/admin/index.html =================================================================== --- XoopsModules/please/trunk/htdocs/modules/please/admin/index.html (rev 0) +++ XoopsModules/please/trunk/htdocs/modules/please/admin/index.html 2017-01-14 17:57:49 UTC (rev 13230) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/please/trunk/htdocs/modules/please/admin/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/please/trunk/htdocs/modules/please/admin/index.php =================================================================== --- XoopsModules/please/trunk/htdocs/modules/please/admin/index.php (rev 0) +++ XoopsModules/please/trunk/htdocs/modules/please/admin/index.php 2017-01-14 17:57:49 UTC (rev 13230) @@ -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/htdocs/modules/please/admin/menu.php =================================================================== --- XoopsModules/please/trunk/htdocs/modules/please/admin/menu.php (rev 0) +++ XoopsModules/please/trunk/htdocs/modules/please/admin/menu.php 2017-01-14 17:57:49 UTC (rev 13230) @@ -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/htdocs/modules/please/admin/permissions.php =================================================================== --- XoopsModules/please/trunk/htdocs/modules/please/admin/permissions.php (rev 0) +++ XoopsModules/please/trunk/htdocs/modules/please/admin/permissions.php 2017-01-14 17:57:49 UTC (rev 13230) @@ -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/htdocs/modules/please/admin/post.php =================================================================== --- XoopsModules/please/trunk/htdocs/modules/please/admin/post.php (rev 0) +++ XoopsModules/please/trunk/htdocs/modules/please/admin/post.php 2017-01-14 17:57:49 UTC (rev 13230) @@ -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/htdocs/modules/please/blocks/index.html =================================================================== --- XoopsModules/please/trunk/htdocs/modules/please/blocks/index.html (rev 0) +++ XoopsModules/please/trunk/htdocs/modules/please/blocks/index.html 2017-01-14 17:57:49 UTC (rev 13230) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/please/trunk/htdocs/modules/please/blocks/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/please/trunk/htdocs/modules/please/class/addresses.php =================================================================== --- XoopsModules/please/trunk/htdocs/modules/please/class/addresses.php (rev 0) +++ XoopsModules/please/trunk/htdocs/modules/please/class/addresses.php 2017-01-14 17:57:49 UTC (rev 13230) @@ -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/htdocs/modules/please/class/addresses.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/please/trunk/htdocs/modules/please/class/bcc.php =================================================================== --- XoopsModules/please/trunk/htdocs/modules/please/class/bcc.php (rev 0) +++ XoopsModules/please/trunk/htdocs/modules/please/class/bcc.php 2017-01-14 17:57:49 UTC (rev 13230) @@ -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/htdocs/modules/please/class/cc.php =================================================================== --- XoopsModules/please/trunk/htdocs/modules/please/class/cc.php (rev 0) +++ XoopsModules/please/trunk/htdocs/modules/please/class/cc.php 2017-01-14 17:57:49 UTC (rev 13230) @@ -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 + * @li... [truncated message content] |