From: <be...@us...> - 2014-03-16 00:49:51
|
Revision: 12378 http://sourceforge.net/p/xoops/svn/12378 Author: beckmi Date: 2014-03-16 00:49:49 +0000 (Sun, 16 Mar 2014) Log Message: ----------- Adding placeholder for gBook (Guestbook) module Added Paths: ----------- XoopsModules/gbook/ XoopsModules/gbook/branches/ XoopsModules/gbook/releases/ XoopsModules/gbook/trunk/ XoopsModules/gbook/trunk/gbook/ |
From: <be...@us...> - 2014-04-06 07:06:04
|
Revision: 12424 http://sourceforge.net/p/xoops/svn/12424 Author: beckmi Date: 2014-04-06 07:05:59 +0000 (Sun, 06 Apr 2014) Log Message: ----------- Adding DH-Info 2.6 Added Paths: ----------- XoopsModules/dh-info/ XoopsModules/dh-info/branches/ XoopsModules/dh-info/releases/ XoopsModules/dh-info/trunk/ XoopsModules/dh-info/trunk/info/ XoopsModules/dh-info/trunk/info/_htaccess XoopsModules/dh-info/trunk/info/admin/ XoopsModules/dh-info/trunk/info/admin/about.php XoopsModules/dh-info/trunk/info/admin/admin_categorie.php XoopsModules/dh-info/trunk/info/admin/admin_header.php XoopsModules/dh-info/trunk/info/admin/admin_permission.php XoopsModules/dh-info/trunk/info/admin/admin_seiten.php XoopsModules/dh-info/trunk/info/admin/index.html XoopsModules/dh-info/trunk/info/admin/index.php XoopsModules/dh-info/trunk/info/admin/menu.php XoopsModules/dh-info/trunk/info/blocks/ XoopsModules/dh-info/trunk/info/blocks/index.html XoopsModules/dh-info/trunk/info/blocks/info_freiblock.php XoopsModules/dh-info/trunk/info/blocks/info_navigation.php XoopsModules/dh-info/trunk/info/class/ XoopsModules/dh-info/trunk/info/class/category.php XoopsModules/dh-info/trunk/info/class/index.html XoopsModules/dh-info/trunk/info/class/info.php XoopsModules/dh-info/trunk/info/class/infotree.php XoopsModules/dh-info/trunk/info/comment_delete.php XoopsModules/dh-info/trunk/info/comment_edit.php XoopsModules/dh-info/trunk/info/comment_new.php XoopsModules/dh-info/trunk/info/comment_post.php XoopsModules/dh-info/trunk/info/comment_reply.php XoopsModules/dh-info/trunk/info/comment_view.php XoopsModules/dh-info/trunk/info/docs/ XoopsModules/dh-info/trunk/info/docs/changelog.txt XoopsModules/dh-info/trunk/info/docs/index.html XoopsModules/dh-info/trunk/info/docs/licence.txt XoopsModules/dh-info/trunk/info/docs/liesmich.txt XoopsModules/dh-info/trunk/info/images/ XoopsModules/dh-info/trunk/info/images/add.png XoopsModules/dh-info/trunk/info/images/content.gif XoopsModules/dh-info/trunk/info/images/delete.png XoopsModules/dh-info/trunk/info/images/edit.png XoopsModules/dh-info/trunk/info/images/email.png XoopsModules/dh-info/trunk/info/images/index.html XoopsModules/dh-info/trunk/info/images/logo.gif XoopsModules/dh-info/trunk/info/images/print.png XoopsModules/dh-info/trunk/info/images/top.png XoopsModules/dh-info/trunk/info/include/ XoopsModules/dh-info/trunk/info/include/constants.php XoopsModules/dh-info/trunk/info/include/form.php XoopsModules/dh-info/trunk/info/include/function.php XoopsModules/dh-info/trunk/info/include/index.html XoopsModules/dh-info/trunk/info/include/mimes.php XoopsModules/dh-info/trunk/info/include/plugin.tag.php XoopsModules/dh-info/trunk/info/include/search.inc.php XoopsModules/dh-info/trunk/info/index.php XoopsModules/dh-info/trunk/info/language/ XoopsModules/dh-info/trunk/info/language/english/ XoopsModules/dh-info/trunk/info/language/english/admin.php XoopsModules/dh-info/trunk/info/language/english/blocks.php XoopsModules/dh-info/trunk/info/language/english/help/ XoopsModules/dh-info/trunk/info/language/english/help/help.html XoopsModules/dh-info/trunk/info/language/english/help/index.html XoopsModules/dh-info/trunk/info/language/english/index.html XoopsModules/dh-info/trunk/info/language/english/main.php XoopsModules/dh-info/trunk/info/language/english/modinfo.php XoopsModules/dh-info/trunk/info/language/german/ XoopsModules/dh-info/trunk/info/language/german/admin.php XoopsModules/dh-info/trunk/info/language/german/blocks.php XoopsModules/dh-info/trunk/info/language/german/help/ XoopsModules/dh-info/trunk/info/language/german/help/help.html XoopsModules/dh-info/trunk/info/language/german/help/index.html XoopsModules/dh-info/trunk/info/language/german/index.html XoopsModules/dh-info/trunk/info/language/german/main.php XoopsModules/dh-info/trunk/info/language/german/modinfo.php XoopsModules/dh-info/trunk/info/language/index.html XoopsModules/dh-info/trunk/info/print.php XoopsModules/dh-info/trunk/info/sql/ XoopsModules/dh-info/trunk/info/sql/index.html XoopsModules/dh-info/trunk/info/sql/update.php XoopsModules/dh-info/trunk/info/submit.php XoopsModules/dh-info/trunk/info/templates/ XoopsModules/dh-info/trunk/info/templates/blocks/ XoopsModules/dh-info/trunk/info/templates/blocks/index.html XoopsModules/dh-info/trunk/info/templates/blocks/info_freiblock.html XoopsModules/dh-info/trunk/info/templates/blocks/info_nav_block.html XoopsModules/dh-info/trunk/info/templates/index.html XoopsModules/dh-info/trunk/info/templates/info_index.html XoopsModules/dh-info/trunk/info/xoops_version.php Added: XoopsModules/dh-info/trunk/info/_htaccess =================================================================== --- XoopsModules/dh-info/trunk/info/_htaccess (rev 0) +++ XoopsModules/dh-info/trunk/info/_htaccess 2014-04-06 07:05:59 UTC (rev 12424) @@ -0,0 +1,4 @@ +RewriteEngine on +# RewriteBase /modules/info/ +RewriteRule ^([0-9]*)\:([0-9]*)-(.*)\.html index.php?content=$1:$2 [L] +RewriteRule ^p([0-9]*)\:([0-9]*)-(.*)\.html index.php?pid=$2 [L] \ No newline at end of file Added: XoopsModules/dh-info/trunk/info/admin/about.php =================================================================== --- XoopsModules/dh-info/trunk/info/admin/about.php (rev 0) +++ XoopsModules/dh-info/trunk/info/admin/about.php 2014-04-06 07:05:59 UTC (rev 12424) @@ -0,0 +1,41 @@ +<?php +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 xoops.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// @package about.php +// @author Dirk Herrmann <al...@si...> +// @version $Id$ + +include '../../../include/cp_header.php'; +include( "admin_header.php" ); +xoops_cp_header(); + +$module_info = $module_handler->get($xoopsModule->getVar("mid")); +$aboutAdmin = new ModuleAdmin(); +echo $aboutAdmin->addNavigation('about.php'); +echo $aboutAdmin->renderabout('PBQZ7D6LT6UBC', true); + +xoops_cp_footer(); + +?> \ No newline at end of file Property changes on: XoopsModules/dh-info/trunk/info/admin/about.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/dh-info/trunk/info/admin/admin_categorie.php =================================================================== --- XoopsModules/dh-info/trunk/info/admin/admin_categorie.php (rev 0) +++ XoopsModules/dh-info/trunk/info/admin/admin_categorie.php 2014-04-06 07:05:59 UTC (rev 12424) @@ -0,0 +1,123 @@ +<?php +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 xoops.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// @package admin_categorie.php +// @author Dirk Herrmann <al...@si...> +// @version $Id$ + +include_once "admin_header.php"; + +$op = ( isset($_REQUEST['op']) ) ? $_REQUEST['op'] : 'list'; +if (!in_array( $op, array('list','blockcat','blockcat_insert') )) $op = 'list'; +//$id = ( isset($_REQUEST['id']) ) ? intval($_REQUEST['id']) : 0; +$cat = ( isset($_REQUEST['cat']) ) ? intval($_REQUEST['cat']) : 0; + +switch ($op) { + case "list": + default: + xoops_cp_header(); + echo $indexAdmin->addNavigation('admin_categorie.php'); + $catlist = $cat_handler->getObjects(null,true,false); + $cate = array(); + foreach ( $catlist as $cats => $catr ) + { + $cate[$catr['cat_id']] = $catr['title']; + } + $form = new XoopsThemeForm(_INFO_LISTBLOCKCAT, $xoopsModule->getVar('dirname')."_form_list", XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/admin/admin_categorie.php'); + $form->setExtra('enctype="multipart/form-data"'); + $form->addElement(new XoopsFormHidden('op', 'blockcat')); + $block_select = new XoopsFormSelect(_INFO_HOMEPAGE, "cat",0); + $block_select->addOptionArray($cate); + $form->addElement($block_select); + $submit = new XoopsFormElementTray("", ""); + $submit->addElement(new XoopsFormButton('', 'post', _DELETE, 'submit')); + $submit->addElement(new XoopsFormButton('', 'post', _EDIT, 'submit')); + $form->addElement($submit); + $form->display(); + makecat(); + xoops_cp_footer(); + break; + case "blockcat": + $cate = $cat_handler->get($cat); + if ($_REQUEST['post'] == _DELETE) { + xoops_cp_header(); + echo $indexAdmin->addNavigation('admin_categorie.php'); + if ($cat == 1) { + redirect_header('admin_categorie.php', 3, _INFO_ERROR_NODEFAULT); + } else { + $msg = _INFO_SETDELETE . "<br />".sprintf(_INFO_SETDELETE_FRAGE,$cate->getVar('title')); + $hiddens = array('op'=>'blockcat','cat'=>$cat,'post'=>'itsdelete'); + xoops_confirm($hiddens, 'admin_categorie.php', $msg); + } + xoops_cp_footer(); + } elseif ($_REQUEST['post'] == 'itsdelete') { + if ( $GLOBALS['xoopsSecurity']->check() ) { + if ($cat_handler->delete($cate)) { + redirect_header('admin_categorie.php', 2, _INFO_DBUPDATED); + } else { + redirect_header('admin_categorie.php', 3, _INFO_ERRORINSERT); + } + } else { + redirect_header('admin_categorie.php', 3, _AM_INFO_TOCKEN_MISSING); + } + } else { + xoops_cp_header(); + echo $indexAdmin->addNavigation('admin_categorie.php'); + makecat($cat); + xoops_cp_footer(); + } + break; + case "blockcat_insert": + if ( $GLOBALS['xoopsSecurity']->check() ) { + $cate = $cat_handler->get($cat); + $title = $myts->htmlSpecialChars(trim($_POST['title'])); + $cate->setVar('title',$title); + if ($cat_handler->insert($cate)) { + redirect_header('admin_categorie.php', 3, _INFO_DBUPDATED); + } else { + redirect_header('admin_categorie.php', 3, _INFO_ERRORINSERT); + } + } else { + redirect_header('admin_categorie.php', 3, _AM_INFO_TOCKEN_MISSING); + } + break; +} + +function makecat($cat=0) { + global $cat_handler,$xoopsModule; + + $cate = $cat_handler->get($cat); + $tueber = ($cat == 0) ? _INFO_ADDBLOCKCAT : _INFO_EDITBLOCKCAT; + $form = new XoopsThemeForm($tueber, $xoopsModule->getVar('dirname')."_form_edit", XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/admin/admin_categorie.php', 'post', true); + $form->setExtra('enctype="multipart/form-data"'); + $form->addElement(new XoopsFormHidden('cat', $cate->getVar('cat_id'))); + $form->addElement(new XoopsFormHidden('op', 'blockcat_insert')); + $form->addElement(new XoopsFormText(_INFO_HOMEPAGE, "title", 80, 255,$cate->getVar('title')),true); + $submit = new XoopsFormButton('', 'post', $tueber, 'submit'); + $form->addElement($submit); + $form->display(); +} + +?> \ No newline at end of file Property changes on: XoopsModules/dh-info/trunk/info/admin/admin_categorie.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/dh-info/trunk/info/admin/admin_header.php =================================================================== --- XoopsModules/dh-info/trunk/info/admin/admin_header.php (rev 0) +++ XoopsModules/dh-info/trunk/info/admin/admin_header.php 2014-04-06 07:05:59 UTC (rev 12424) @@ -0,0 +1,66 @@ +<?php +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 xoops.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// @package admin_header.php +// @author Dirk Herrmann <al...@si...> +// @version $Id$ + +require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php'; +require_once XOOPS_ROOT_PATH . '/include/cp_functions.php'; +require_once XOOPS_ROOT_PATH . '/include/cp_header.php'; + +global $module_handler, $xoopsModule; +$moduleInfo = $module_handler->get($xoopsModule->getVar('mid')); +$module_name = $xoopsModule->getVar("dirname"); +include_once XOOPS_ROOT_PATH.'/modules/'.$module_name.'/include/function.php'; + + +if ( Info_checkXoopsVersion("2.6.0") ) { + // XOOPS ab 2.6.0 + $xoops = Xoops::getInstance(); + XoopsLoad::load('system', 'system'); + $indexAdmin = new XoopsModuleAdmin(); +} else { + if ( !Info_checkModuleAdmin() ) { + redirect_header("../../../admin.php", 5, _AM_INFO_MODULEADMIN_MISSING, false); + } + $pathIcon16 = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16'); + $pathIcon32 = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32'); + $indexAdmin = new ModuleAdmin(); +} + +include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; +include_once XOOPS_ROOT_PATH.'/modules/'.$module_name.'/class/infotree.php'; +include_once XOOPS_ROOT_PATH.'/modules/'.$module_name.'/class/info.php'; +include_once XOOPS_ROOT_PATH.'/modules/'.$module_name.'/class/category.php'; + + +$info_handler = new InfoInfoHandler($xoopsDB,$module_name); +$infowait_handler = new InfoInfoHandler($xoopsDB,$module_name . "_bak"); +$cat_handler = new InfoCategoryHandler($xoopsDB,$module_name); +$info_tree = new InfoTree($xoopsDB->prefix($module_name), 'info_id', 'parent_id'); + +$myts = MyTextSanitizer::getInstance(); +?> \ No newline at end of file Property changes on: XoopsModules/dh-info/trunk/info/admin/admin_header.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/dh-info/trunk/info/admin/admin_permission.php =================================================================== --- XoopsModules/dh-info/trunk/info/admin/admin_permission.php (rev 0) +++ XoopsModules/dh-info/trunk/info/admin/admin_permission.php 2014-04-06 07:05:59 UTC (rev 12424) @@ -0,0 +1,58 @@ +<?php +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 xoops.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// @package admin_permission.php +// @author Dirk Herrmann <al...@si...> +// @version $Id$ + +include "admin_header.php"; + +include_once XOOPS_ROOT_PATH.'/class/xoopsform/grouppermform.php'; +xoops_cp_header(); +echo $indexAdmin->addNavigation('admin_permission.php'); + +$form = new XoopsGroupPermForm(_AM_INFO_PERMISSIONS, $xoopsModule->mid(), _CON_INFO_PERMNAME, '', '/admin/admin_permission.php', false); +$form->addItem(_CON_INFO_CANCREATE, _AM_INFO_CANCREATE, 0); +$form->addItem(_CON_INFO_CANUPDATE, _AM_INFO_CANUPDATE, 0); + +$form->addItem(_CON_INFO_ALLCANUPDATE_CAT, _AM_INFO_CANUPDATE_CAT, _CON_INFO_CANCREATE); +$form->addItem(_CON_INFO_ALLCANUPDATE_POSITION, _AM_INFO_CANUPDATE_POSITION, _CON_INFO_CANCREATE); +$form->addItem(_CON_INFO_ALLCANUPDATE_GROUPS, _AM_INFO_CANUPDATE_GROUPS, _CON_INFO_CANCREATE); +$form->addItem(_CON_INFO_ALLCANUPDATE_SITEART, _AM_INFO_CANUPDATE_SITEART, _CON_INFO_CANCREATE); +$form->addItem(_CON_INFO_ALLCANUPDATE_SITEFULL, _AM_INFO_CANUPDATE_SITEFULL, _CON_INFO_CANCREATE); +$form->addItem(_CON_INFO_ALLCANUPDATE_HTML, _AM_INFO_CANALLOWHTML, _CON_INFO_CANCREATE); + +$form->addItem(_CON_INFO_CANUPDATE_CAT, _AM_INFO_CANUPDATE_CAT, _CON_INFO_CANUPDATE); +$form->addItem(_CON_INFO_CANUPDATE_POSITION, _AM_INFO_CANUPDATE_POSITION, _CON_INFO_CANUPDATE); +$form->addItem(_CON_INFO_CANUPDATE_GROUPS, _AM_INFO_CANUPDATE_GROUPS, _CON_INFO_CANUPDATE); +$form->addItem(_CON_INFO_CANUPDATE_SITEART, _AM_INFO_CANUPDATE_SITEART, _CON_INFO_CANUPDATE); +$form->addItem(_CON_INFO_CANUPDATE_SITEFULL, _AM_INFO_CANUPDATE_SITEFULL, _CON_INFO_CANUPDATE); +$form->addItem(_CON_INFO_CANUPDATE_DELETE, _AM_INFO_CANDELETE, _CON_INFO_CANUPDATE); + + +echo $form->render(); +unset ($form); +xoops_cp_footer(); +?> \ No newline at end of file Property changes on: XoopsModules/dh-info/trunk/info/admin/admin_permission.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/dh-info/trunk/info/admin/admin_seiten.php =================================================================== --- XoopsModules/dh-info/trunk/info/admin/admin_seiten.php (rev 0) +++ XoopsModules/dh-info/trunk/info/admin/admin_seiten.php 2014-04-06 07:05:59 UTC (rev 12424) @@ -0,0 +1,387 @@ +<?php +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 xoops.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// @package admin_seiten.php +// @author Dirk Herrmann <al...@si...> +// @version $Id$ + +include_once "admin_header.php"; +include_once "../include/function.php"; + +global $xoopsUser, $indexAdmin; +$op = info_cleanVars( $_REQUEST, 'op', 'show', 'string'); +$id = info_cleanVars( $_REQUEST, 'id', 0, 'int'); +$cat = info_cleanVars( $_REQUEST, 'cat', 1, 'int'); +$groupid = info_cleanVars( $_REQUEST, 'groupid', 0, 'int'); +$mod_isAdmin = ($xoopsUser && $xoopsUser->isAdmin()) ? true : false; + +$infothisgroups = (is_object($xoopsUser)) ? $xoopsUser->getGroups() : array(XOOPS_GROUP_ANONYMOUS); +$infoperm_handler = xoops_gethandler('groupperm'); +$show_info_perm = $infoperm_handler->getItemIds('InfoPerm', $infothisgroups, $xoopsModule->getVar('mid')); + +xoops_load('XoopsCache'); + +switch ($op) { + case "appdel": + if ($id > 0) { + $content = $infowait_handler->get($id); + xoops_cp_header(); + echo $indexAdmin->addNavigation('admin_seiten.php'); + $msg = sprintf(_INFO_INFODELETE_AENDERUNG,$content->getVar('title')); + $hiddens = array('op'=>'appdelok','cat'=>$cat,'id'=>$id); + xoops_confirm($hiddens, 'admin_seiten.php', $msg); + xoops_cp_footer(); + } + break; + case "appdelok": + if ($id > 0) { + $content = $infowait_handler->get($id); + if ($infowait_handler->delete($content)) { + $key = $key = $xoopsModule->getVar('dirname') . "_" . "*"; + clearInfoCache($key); + redirect_header("admin_seiten.php?op=approved", 1, _INFO_DBUPDATED); + } else { + redirect_header("admin_seiten.php?op=approved", 3, _INFO_ERRORINSERT); + } + exit(); + } + break; + case "approved": + xoops_cp_header(); + echo $indexAdmin->addNavigation('admin_seiten.php'); + $infowait = $infowait_handler->getAll(null,array('info_id','title','edited_time','edited_user'),false,false); + $form = new XoopsThemeForm('', $xoopsModule->getVar('dirname')."_form_wait", XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/admin/admin_seiten.php?op=approved'); + $form->setExtra('enctype="multipart/form-data"'); + xoops_load('XoopsUserUtility'); + foreach ($infowait as $t => $tc) { + $dellink = "<a href='admin_seiten.php?op=appdel&cat=" . $cat . "&id=".$tc['info_id']."'><img src='".$pathIcon16."/delete.png' title='"._DELETE."' alt='"._DELETE."'></a>"; + $editlink = "<a href='admin_seiten.php?op=appedit&cat=" . $cat . "&id=".$tc['info_id']."'><img src='".$pathIcon16."/edit.png' title='"._EDIT."' alt='"._EDIT."'></a>"; + $edittime = formatTimestamp($tc['edited_time'], 'l'); + $form->addElement(new XoopsFormLabel($editlink . " | ".$dellink . " " . $tc['title'],_INFO_LAST_EDITED . ": ". sprintf(_INFO_LAST_EDITEDTEXT,XoopsUserUtility::getUnameFromId($tc['edited_user'], 0, false),$edittime))); + } + $form->display(); + xoops_cp_footer(); + break; + case "appedit": + $content = $infowait_handler->get($id); + if ( !empty($_POST['post']) ) { + $content = setPost($content,$_POST); + $oldstoryid = $content->getVar("info_id"); + $content->setVar( 'info_id',$content->getVar("old_id") ); + if ($content->getVar("info_id") == 0) $content->setNew(); + $content->setVar('edited_time',time()); + $content->setVar('edited_user',$xoopsUser->uid()); + if ($info_handler->insert($content)) { + $content->setVar( 'info_id',$oldstoryid ); + if ($infowait_handler->delete($content)) { + $key = $key = $xoopsModule->getVar('dirname') . "_" . "*"; + clearInfoCache($key); + redirect_header("admin_seiten.php?op=approved", 1, _INFO_DBUPDATED); + } else { + redirect_header("admin_seiten.php?op=approved", 3, _INFO_ERRORINSERT); + } + } else { + redirect_header("admin_seiten.php?op=approved", 3, _INFO_ERRORINSERT); + } + exit(); + } else { + xoops_cp_header(); + echo $indexAdmin->addNavigation('admin_seiten.php'); + $op = "appedit"; + include_once "../include/form.php"; + xoops_cp_footer(); + } + break; + case "delete": + if ($id > 0) { + $content = $info_handler->get($id); + xoops_cp_header(); + echo $indexAdmin->addNavigation('admin_seiten.php'); + $msg = _INFO_SETDELETE . "<br /><br />".sprintf(_INFO_INFODELETE_FRAGE,$content->getVar('title')); + $hiddens = array('op'=>'info_delete','cat'=>$cat,'id'=>$id); + xoops_confirm($hiddens, 'admin_seiten.php', $msg); + xoops_cp_footer(); + } + break; + case "info_delete": + if ($id > 0) { + $content = $info_handler->get($id); + if ($info_handler->delete($content)) { + $key = $key = $xoopsModule->getVar('dirname') . "_" . "*"; + clearInfoCache($key); + redirect_header("admin_seiten.php?cat=" . $cat, 1, _INFO_DBUPDATED); + } else { + redirect_header("admin_seiten.php?cat=" . $cat, 3, _INFO_ERRORINSERT); + } + exit(); + } + break; + case "delhp": + if ($id > 0) { + $content = $info_handler->get($id); + xoops_cp_header(); + echo $indexAdmin->addNavigation('admin_seiten.php'); + $msg = sprintf(_AM_INFO_SITEDEL_HP,$content->getVar('title')); + $hiddens = array('op'=>'info_delhp','cat'=>$cat,'id'=>$id); + xoops_confirm($hiddens, 'admin_seiten.php', $msg); + xoops_cp_footer(); + } + break; + case "info_delhp": + if ($id > 0) { + if ($info_handler->del_startpage($id)) { + $key = $key = $xoopsModule->getVar('dirname') . "_" . "*"; + clearInfoCache($key); + redirect_header("admin_seiten.php?cat=" . $cat, 1, _INFO_DBUPDATED); + } else { + redirect_header("admin_seiten.php?cat=" . $cat, 3, _INFO_ERRORINSERT); + } + exit(); + } + break; + case "edit": + $content = $info_handler->get($id); + if (isset($_POST['post'])) { + $content->setVar('edited_time',time()); + if (is_object($xoopsUser)) { + $content->setVar('edited_user',$xoopsUser->uid()); + } else { + $content->setVar('edited_user','0'); + } + if (!empty($_POST)) { + $content = setPost($content,$_POST); + } + + if ($info_handler->insert($content)) { + $key = $key = $xoopsModule->getVar('dirname') . "_" . "*"; + clearInfoCache($key); + redirect_header("admin_seiten.php?cat=" . $cat, 1, _INFO_DBUPDATED); + } else { + redirect_header("admin_seiten.php?cat=" . $cat, 3, _INFO_ERRORINSERT); + } + exit(); + } else { + xoops_cp_header(); + echo $indexAdmin->addNavigation('admin_seiten.php'); + $indexAdmin->addItemButton(_MI_INFO_VIEWSITE, 'admin_seiten.php?cat='.$cat, $icon = 'index'); + echo $indexAdmin->renderButton(); + $ret = 0; + include_once "../include/form.php"; + xoops_cp_footer(); + } + break; + case "update": + if (isset($_POST['id'])) { + $id = $_POST['id']; + $parent_id = isset($_POST['parent_id']) ? $_POST['parent_id'] : array(); + $blockid = $_POST['blockid']; + $visible = $_POST['visible']; + $title = $_POST['title']; + $hp = (isset($_POST['hp'][0])) ? intval($_POST['hp']) : 0; + $fp = (isset($_POST['fp'][0])) ? intval($_POST['fp'][0]) : 0; + $nocomments = $_POST['nocomments']; + $submenu = $_POST['submenu']; + foreach ($id as $storyid) { + if (intval($storyid) > 0) { + $fpp = ($storyid==$fp) ? 1:0; + if ($fpp==1) { + $sql="UPDATE ".$xoopsDB->prefix($xoopsModule->getVar('dirname'))." SET frontpage=0 WHERE frontpage>0"; + $result=$xoopsDB->query($sql); + $key = $xoopsModule->getVar("dirname") . "_" . "startpage"; + $data = array($storyid,$cat,$parent_id[$storyid],$title[$storyid]); + XoopsCache::write($key, $data); + } + if (!isset($parent_id[$storyid])) $parent_id[$storyid] = 0; + $sql="UPDATE ".$xoopsDB->prefix($xoopsModule->getVar('dirname'))." SET "; + $sql.="parent_id=" . intval($parent_id[$storyid]) . ","; + $sql.="blockid=".intval($blockid[$storyid]).","; + $sql.="visible=".intval($visible[$storyid]).","; + $sql.="cat=".$cat.","; + $sql.="nocomments=".intval($nocomments[$storyid]).","; + $sql.="submenu=".intval($submenu[$storyid]).","; + $sql.="frontpage=".$fpp.""; + $sql.=" WHERE info_id='".intval($storyid)."'"; + if ( !$result = $xoopsDB->queryF($sql) ) { + echo _INFO_ERRORINSERT."<br />[ ".$sql." ]<hr>"; + } + } + } + $key = $key = $xoopsModule->getVar('dirname') . "_" . "*"; + clearInfoCache($key); + redirect_header("admin_seiten.php?op=show&cat=$cat",1,_INFO_DBUPDATED); + exit(); + } else { + redirect_header("admin_seiten.php?cat=op=show&$cat",2,_TAKINGBACK); + exit(); + } + break; + default: + case "show": + xoops_cp_header(); + $content = $info_handler->get($id); + echo $indexAdmin->addNavigation('admin_seiten.php?op=show'); + $indexAdmin->addItemButton(_INFO_ADDCONTENT, 'admin_seiten.php?op=edit&cat='.$cat, $icon = 'add'); + echo $indexAdmin->renderButton(); + $sseite = _AM_HP_SEITE . " "; + $startpage = $info_handler->read_startpage(); + if (is_array($startpage)) { + $sseite .= "<a href=\"admin_seiten.php?op=delhp&cat=" . $cat . "&id=" . $startpage['0'] . "\">" . $startpage['1'] . "</a>"; + } else { + $sseite .= _AM_HP_SEITE_NODEF; + } + echo $sseite; + $form = new XoopsThemeForm('', $xoopsModule->getVar('dirname')."_form_groupcat", XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/admin/admin_seiten.php?op=show'); + $form->setExtra('enctype="multipart/form-data"'); + $option_tray = new XoopsFormElementTray('',''); + $sql="SELECT cat_id,title FROM ".$xoopsDB->prefix($xoopsModule->getVar('dirname')."_cat")." ORDER BY title ASC"; + $result=$xoopsDB->query($sql); + $blist=array(); + if ($result) { + while($myrow = $xoopsDB->fetcharray($result)) { + $blist[$myrow['cat_id']] = $myrow['title']; + } + } + $block_select = new XoopsFormSelect(_INFO_HOMEPAGE, "cat",$cat); + $block_select->addOptionArray($blist); + $block_select->setextra('onchange="document.forms.'.$xoopsModule->getVar('dirname')."_form_groupcat".'.submit()"'); + $option_tray->addElement($block_select); + $group_select = new XoopsFormSelectGroup(_INFO_AM_GROUP, 'groupid', true, $groupid, 1, false); + $group_select->addOptionArray(array(0=>_ALL)); + $group_select->setextra('onchange="document.forms.'.$xoopsModule->getVar('dirname')."_form_groupcat".'.submit()"'); + $option_tray->addElement($group_select); + $submit = new XoopsFormButton('', 'post', _SUBMIT, 'submit'); + $option_tray->addElement($submit); + $form->addElement($option_tray); + $form->display(); + echo "<form action='admin_seiten.php' method='post'>"; + echo "<input type='hidden' name='op' value='update'>"; + + echo "<table border='1' cellpadding='0' cellspacing='1' width='100%' class='outer'>"; + echo "<tr class='odd'>"; + echo "<td width=\"1%\" nowrap><b>"._INFO_FRONTPAGE."</b></td>"; + echo "<td width=\"1%\" nowrap><b>"._INFO_POSITION."</b></td>"; + echo "<td width=\"93%\" nowrap><b>"._INFO_LINKNAME."</b></td>"; + echo "<td width=\"1%\" nowrap><b>"._INFO_LINKID."</b></td>"; + echo "<td width=\"1%\" nowrap><b>"._INFO_VISIBLE."</b></td>"; + echo "<td width=\"1%\" nowrap><b>"._INFO_SUBMENU."</b></td>"; + echo "<td width=\"1%\" nowrap><b>"._COMMENTS."</b></td>"; + echo "<td width=\"1%\" nowrap><b>"._INFO_ACTION."</b></td></tr>"; + echo "</tr>"; + $info = show_list(0, $groupid, $cat, $id); + foreach ( $info as $z => $tcontent) + { + echo "<tr class='odd'>"; + echo "<td>"; + if (in_array($tcontent['link'],array(0,1,4,5))) { + $check = ($tcontent['frontpage'] == 1) ? "checked='checked'" : ""; + echo "<input type='radio' name='fp[]' value='".$tcontent['info_id']."' ".$check." />"; + } else { + echo " "; + } + + echo "</td><td>"; + $info_tree->makeMySelBox('title', "blockid", $tcontent['parent_id'], 1, "parent_id[".$tcontent['info_id']."]", '', ' AND cat='.$cat." AND info_id<>".$tcontent['info_id']); + echo "</td><td>"; + $title = $myts->displayTarea($tcontent['title'], 0, 0, 0); + echo "<input type='hidden' name='title[".$tcontent['info_id']."]' value='" . $title . "' />"; + if ($tcontent['st'] == 2 || $tcontent['st'] == 0) echo '<font color="red">'._MI_INFO_GESPERRT.'</font> '; + if ($tcontent['visible'] == 0 && $tcontent['submenu'] == 0) echo '<font color="red">'._AM_INFO_INAKTIVE.'</font> '; + if ($tcontent['link'] == 3) { //kategorie + echo "<b>".$title."</b>"; + } else { + echo "<a href='".XOOPS_URL."/modules/".$xoopsModule->dirname()."/index.php?content=".$tcontent['info_id']."'>".$title."</a>"; + } + echo "</td><td>"; + echo "<input type='hidden' name='id[".$tcontent['info_id']."]' value='".$tcontent['info_id']."' /><input type='text' name='blockid[".$tcontent['info_id']."]' size='5' maxlength='5' value='".$tcontent['blockid']."'/>"; + echo "</td>"; + $check1 = "selected='selected'"; + $check2 = ""; + if ($tcontent['visible'] == '1') { + $check1 = ""; + $check2 = "selected='selected'"; + } + if ($tcontent['nocomments'] == '1') { + $check4 = "selected='selected'"; + $check5 = ""; + } else { + $check4 = ""; + $check5 = "selected='selected'"; + } + if ($tcontent['submenu'] == '0') { + $check6 = "selected='selected'"; + $check7 = ""; + } else { + $check6 = ""; + $check7 = "selected='selected'"; + } + echo "<td width=\"1%\" nowrap><select name='visible[".$tcontent['info_id']."]'><option value='0' ".$check1." />"._NO."</option><option value='1' ".$check2." />"._YES."</option></select></td>"; + echo "<td width=\"1%\" nowrap> "; + if ($tcontent['link'] != 3) { + echo "<select name='submenu[".$tcontent['info_id']."]'><option value='0' ".$check5." />"._NO."</option><option value='1' ".$check7." />"._YES."</option></select>"; + } else { + echo "<input type=\"hidden\" name=\"submenu[".$tcontent['info_id']."]\" value=\"".$tcontent['submenu']."\">"; + } + echo "</td>"; + echo "<td width=\"1%\" nowrap> "; + if ($tcontent['link'] == 0 || $tcontent['link'] == 4 || $tcontent['link'] == 5) { + echo "<select name='nocomments[".$tcontent['info_id']."]'><option value='1' ".$check4." />"._NO."</option><option value='0' ".$check5." />"._YES."</option></select>"; + } else { + echo "<input type='hidden' name='nocomments[".$tcontent['info_id']."]' value='".$tcontent['nocomments']."'>"; + } + echo "</td>"; + echo "<td width=\"1%\" nowrap><a href='admin_seiten.php?op=edit&cat=$cat&id=".$tcontent['info_id']."'><img src='".$pathIcon16."/edit.png' title='"._EDIT."' alt='"._EDIT."'></a>"; + echo " | <a href='admin_seiten.php?op=delete&cat=$cat&id=".$tcontent['info_id']."'><img src='".$pathIcon16."/delete.png' title='"._DELETE."' alt='"._DELETE."'></a></td></tr>"; + unset($tcontent); + echo "</tr>"; + } + echo "</table>"; + echo " <input type='hidden' name='op' value='update' /> + <input type='hidden' name='cat' value='".$cat."' /> + <input type='submit' name='start' value="._SUBMIT." /> + "; + + echo "</form>"; + xoops_cp_footer(); + break; +} + +function show_list($cat=0, $groupid=0, $cat=0, $aktuell=0) +{ + global $info_tree; + $infolist = $info_tree->getAllChild(0, 'blockid', array(), " AND cat=".$cat." AND info_id<>".$aktuell); + + $info=array(); + foreach ( $infolist as $s => $t) + { + if ($t['cat'] != $cat) continue; + $groups = explode(",",$t['visible_group']); + if ( $groupid == 0 ) + $info[$s] = $t; + else if (in_array($groupid,$groups)) $info[$s] = $t; + } + return $info; +} + +?> Property changes on: XoopsModules/dh-info/trunk/info/admin/admin_seiten.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/dh-info/trunk/info/admin/index.html =================================================================== --- XoopsModules/dh-info/trunk/info/admin/index.html (rev 0) +++ XoopsModules/dh-info/trunk/info/admin/index.html 2014-04-06 07:05:59 UTC (rev 12424) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/dh-info/trunk/info/admin/index.php =================================================================== --- XoopsModules/dh-info/trunk/info/admin/index.php (rev 0) +++ XoopsModules/dh-info/trunk/info/admin/index.php 2014-04-06 07:05:59 UTC (rev 12424) @@ -0,0 +1,48 @@ +<?php +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 xoops.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// @package index.php +// @author Dirk Herrmann <al...@si...> +// @version $Id$ + +include_once "admin_header.php"; +xoops_cp_header(); + +$anz_cat = $cat_handler->getCount(); +$anz_site = $info_handler->getCount(); +$wait_site = $infowait_handler->getCount(); + +$indexAdmin->addInfoBox(_INFO_ADMINTITLE) ; + +$indexAdmin->addInfoBoxLine(_INFO_ADMINTITLE, "<infotext>" . sprintf(_AM_INFO_INFOBOX_CAT,$anz_cat) ."</infotext>") ; +$indexAdmin->addInfoBoxLine(_INFO_ADMINTITLE, "<infotext>" . sprintf(_AM_INFO_INFOBOX_SITE,$anz_site) ."</infotext>") ; +$indexAdmin->addInfoBoxLine(_INFO_ADMINTITLE, "<infotext></infotext>") ; +$indexAdmin->addInfoBoxLine(_INFO_ADMINTITLE, "<infotext>" . _AM_INFO_INFOBOX_WAITSITE ."</infotext>", $wait_site, 'Red') ; + +echo $indexAdmin->addNavigation('index.php'); +echo $indexAdmin->renderIndex(); + +xoops_cp_footer(); +?> Property changes on: XoopsModules/dh-info/trunk/info/admin/index.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/dh-info/trunk/info/admin/menu.php =================================================================== --- XoopsModules/dh-info/trunk/info/admin/menu.php (rev 0) +++ XoopsModules/dh-info/trunk/info/admin/menu.php 2014-04-06 07:05:59 UTC (rev 12424) @@ -0,0 +1,69 @@ +<?php +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 xoops.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// @package menu.php +// @author Dirk Herrmann <al...@si...> +// @version $Id$ + +$module_name = basename( dirname(dirname( __FILE__ ))) ; +$module_handler = xoops_gethandler('module'); +$xoopsModule = XoopsModule::getByDirname($module_name); +$moduleInfo = $module_handler->get($xoopsModule->getVar('mid')); +$pathIcon32 = $moduleInfo->getInfo('icons32'); + +include_once dirname(dirname(__FILE__))."/include/constants.php"; +include_once dirname(dirname(__FILE__))."/class/info.php"; +$infowait_handler = new InfoInfoHandler($GLOBALS["xoopsDB"],$module_name . "_bak"); +$wait_site = $infowait_handler->getCount(); + +$adminmenu = array(); +$i=0; +$adminmenu[$i]['title'] = _MI_INFO_INDEX; +$adminmenu[$i]['link'] = "admin/index.php"; +$adminmenu[$i++]['icon'] = '../../'.$pathIcon32.'/home.png' ; + + +$adminmenu[$i]['title'] = _MI_INFO_ADMENU2; +$adminmenu[$i]['link'] = "admin/admin_categorie.php"; +$adminmenu[$i++]['icon'] = '../../'.$pathIcon32.'/category.png'; + +$adminmenu[$i]['title'] = _MI_INFO_ADMENU3; +$adminmenu[$i]['link'] = "admin/admin_seiten.php"; +$adminmenu[$i++]['icon'] = '../../'.$pathIcon32.'/view_detailed.png'; + +$adminmenu[$i]['title'] = "(". $wait_site .") " . _MI_INFO_ADMENU5; +$adminmenu[$i]['link'] = "admin/admin_seiten.php?op=approved"; +$adminmenu[$i++]['icon'] = '../../'.$pathIcon32.'/manage.png'; + +$adminmenu[$i]['title'] = _MI_INFO_ADMENU4; +$adminmenu[$i]['link'] = "admin/admin_permission.php"; +$adminmenu[$i++]['icon'] = '../../'.$pathIcon32.'/permissions.png'; + +$adminmenu[$i]['title'] = _MI_INFO_ADMENU_ABOUT; +$adminmenu[$i]['link'] = "admin/about.php"; +$adminmenu[$i++]['icon'] = '../../'.$pathIcon32.'/about.png'; + +unset($i); +?> \ No newline at end of file Property changes on: XoopsModules/dh-info/trunk/info/admin/menu.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/dh-info/trunk/info/blocks/index.html =================================================================== --- XoopsModules/dh-info/trunk/info/blocks/index.html (rev 0) +++ XoopsModules/dh-info/trunk/info/blocks/index.html 2014-04-06 07:05:59 UTC (rev 12424) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/dh-info/trunk/info/blocks/info_freiblock.php =================================================================== --- XoopsModules/dh-info/trunk/info/blocks/info_freiblock.php (rev 0) +++ XoopsModules/dh-info/trunk/info/blocks/info_freiblock.php 2014-04-06 07:05:59 UTC (rev 12424) @@ -0,0 +1,117 @@ +<?php +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 xoops.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// @package info_freiblock.php +// @author Dirk Herrmann <al...@si...> +// @version $Id$ + + +if( ! defined( 'XOOPS_ROOT_PATH' ) ) die("XOOPS_ROOT_PATH not defined!"); + +if (!function_exists("info_freiblock_show")) +{ + + function info_freiblock_show($options) + { + global $xoopsDB,$xoopsUser; + $myts = MyTextSanitizer::getInstance(); + include_once XOOPS_ROOT_PATH."/modules/".$options[0]."/include/constants.php"; + $block = array(); + $result = $xoopsDB->query("SELECT * FROM ".$xoopsDB->prefix($options[0])." WHERE info_id=".$options[1]); + $row = $xoopsDB->fetchArray($result); + $text = trim($row['text']); + if (intval($row['info_id']) != 0) { + $xoopsOption['template_main'] = $options[0].'_startblock.html'; + if ($row['link'] == 6) { + ob_start(); + echo eval($text); + $text = ob_get_contents(); + ob_end_clean(); + $row['nohtml'] = 0; + } + $html = (intval($row['nohtml']) == 1) ? 0 : 1; + $smiley = (intval($row['nosmiley']) == 1) ? 0 : 1; + $breaks = ($html == 1) ? 0 : 1; + if (intval($row['link']) == 4) { + if (substr($row['address'],"/",0,1) || substr($row['address'],"\\",0,1)) $row['address']=substr($address,1); + $file = XOOPS_ROOT_PATH."/".$row['address']; + if (file_exists($file)) { + ob_start(); + include($file); + $file = ob_get_contents(); + ob_end_clean(); + $text=$file; + } + } elseif (intval($row['link']) == 5) { + $iframe=unserialize($row['frame']); + if (!isset($iframe['width']) || $iframe['width']<1 || $iframe['width']>100) $iframe['width']=100; + $text.= "<iframe width='".$iframe['width']."%' height='".$iframe['height']."px' align='".$iframe['align']."' name='".$row['title']."' scrolling='auto' frameborder='".$iframe['border']."' src='".$row['address']."'></iframe>"; + $html = 1; + $breaks = 0; + } + $text = str_replace('{X_XOOPSURL}', XOOPS_URL.'/', $text); + $text = str_replace('{X_SITEURL}', XOOPS_URL . '/', $text); + if (is_object($xoopsUser)) { + $text = str_replace('{X_XOOPSUSER}', $xoopsUser->getVar('uname'), $text); + $text = str_replace('{X_XOOPSUSERID}', $xoopsUser->getVar('uid'), $text); + } else { + $text = str_replace('{X_XOOPSUSER}',_GUESTS, $text); + $text = str_replace('{X_XOOPSUSERID}', '0', $text); + } + if ( trim($text) != '' ) { + $text = str_replace('<div style="page-break-after: always;"><span style="display: none;"> </span></div>','[pagebreak]',$text); + $infotext = explode("[pagebreak]", $text); + $info_pages = count($infotext); + if ($info_pages > 1) $text = $infotext[0]; + } + $text = $myts->displayTarea($text, $html, $smiley, 1, 1, $breaks); + $block['content'] = $text; + + $block['id'] = $options[1]; + } + return $block; + } +} + +if (!function_exists("info_freiblock_edit")) { + function info_freiblock_edit($options) { + global $xoopsDB; + $module_name = $options[0]; + $result=$xoopsDB->queryF("SELECT info_id,title FROM ".$xoopsDB->prefix($module_name)." WHERE link !=1 && link !=2 && link !=3 && link !=4"); + if ($result) { + $form = "" . _INFO_BL_OPTION . " "; + $form .= "<input type='hidden' name='options[0]' value='".$module_name."'>"; + $form .= "<select name='options[1]' size='1'>"; + while ($row=$xoopsDB->fetcharray($result)) { + $form .= "<option value='".$row['info_id']."'"; + if ($options[1] == $row['info_id']) $form .= " selected"; + $form .="> " . $row['title'] . " </option>"; + } + $form .= "</select>"; + return $form; + } + } +} +?> \ No newline at end of file Property changes on: XoopsModules/dh-info/trunk/info/blocks/info_freiblock.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/dh-info/trunk/info/blocks/info_navigation.php =================================================================== --- XoopsModules/dh-info/trunk/info/blocks/info_navigation.php (rev 0) +++ XoopsModules/dh-info/trunk/info/blocks/info_navigation.php 2014-04-06 07:05:59 UTC (rev 12424) @@ -0,0 +1,157 @@ +<?php +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 xoops.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// @package info_navigation.php +// @author Dirk Herrmann <al...@si...> +// @version $Id$ + +if( ! defined( 'XOOPS_ROOT_PATH' ) ) die(); + +include_once dirname(dirname(__FILE__))."/include/function.php"; + +if (!function_exists("info_navblock_edit")) { + function info_navblock_edit($options) { + global $xoopsDB; + $module_name = basename( dirname(dirname( __FILE__ ))) ; + $sql="SELECT cat_id,title FROM ".$xoopsDB->prefix($module_name.'_cat')." ORDER BY title"; + $result=$xoopsDB->query($sql); + if ($result && $xoopsDB->getRowsNum($result)>0) { + $form = "" . _INFO_BL_OPTION . " "; + $form .= "<input type='hidden' name='options[0]' value='".$module_name."'>"; + $form .= "<select name='options[1]' size='1'>"; + while ($row... [truncated message content] |
From: <be...@us...> - 2014-04-15 09:16:15
|
Revision: 12448 http://sourceforge.net/p/xoops/svn/12448 Author: beckmi Date: 2014-04-15 09:16:07 +0000 (Tue, 15 Apr 2014) Log Message: ----------- adding xoAlbum Added Paths: ----------- XoopsModules/xoalbum/ XoopsModules/xoalbum/branches/ XoopsModules/xoalbum/releases/ XoopsModules/xoalbum/trunk/ XoopsModules/xoalbum/trunk/xoalbum/ XoopsModules/xoalbum/trunk/xoalbum/action.php XoopsModules/xoalbum/trunk/xoalbum/admin/ XoopsModules/xoalbum/trunk/xoalbum/admin/action.album.php XoopsModules/xoalbum/trunk/xoalbum/admin/action.category.php XoopsModules/xoalbum/trunk/xoalbum/admin/action.picture.php XoopsModules/xoalbum/trunk/xoalbum/admin/album.php XoopsModules/xoalbum/trunk/xoalbum/admin/category.php XoopsModules/xoalbum/trunk/xoalbum/admin/comments.php XoopsModules/xoalbum/trunk/xoalbum/admin/footer.php XoopsModules/xoalbum/trunk/xoalbum/admin/header.php XoopsModules/xoalbum/trunk/xoalbum/admin/index.php XoopsModules/xoalbum/trunk/xoalbum/admin/menu.php XoopsModules/xoalbum/trunk/xoalbum/admin/picture.php XoopsModules/xoalbum/trunk/xoalbum/ajax.php XoopsModules/xoalbum/trunk/xoalbum/album.php XoopsModules/xoalbum/trunk/xoalbum/blocks/ XoopsModules/xoalbum/trunk/xoalbum/blocks/block.php XoopsModules/xoalbum/trunk/xoalbum/blocks/index.html XoopsModules/xoalbum/trunk/xoalbum/category.php XoopsModules/xoalbum/trunk/xoalbum/class/ XoopsModules/xoalbum/trunk/xoalbum/class/album.php XoopsModules/xoalbum/trunk/xoalbum/class/category.php XoopsModules/xoalbum/trunk/xoalbum/class/grid.php XoopsModules/xoalbum/trunk/xoalbum/class/index.html XoopsModules/xoalbum/trunk/xoalbum/class/picture.php XoopsModules/xoalbum/trunk/xoalbum/footer.php XoopsModules/xoalbum/trunk/xoalbum/header.php XoopsModules/xoalbum/trunk/xoalbum/images/ XoopsModules/xoalbum/trunk/xoalbum/images/album.gif XoopsModules/xoalbum/trunk/xoalbum/images/index.html XoopsModules/xoalbum/trunk/xoalbum/images/loading.gif XoopsModules/xoalbum/trunk/xoalbum/images/loadingAnimation.gif XoopsModules/xoalbum/trunk/xoalbum/images/logo.png XoopsModules/xoalbum/trunk/xoalbum/images/nopicture.gif XoopsModules/xoalbum/trunk/xoalbum/images/xoalbum.jpg XoopsModules/xoalbum/trunk/xoalbum/include/ XoopsModules/xoalbum/trunk/xoalbum/include/action.album.php XoopsModules/xoalbum/trunk/xoalbum/include/action.category.php XoopsModules/xoalbum/trunk/xoalbum/include/action.module.php XoopsModules/xoalbum/trunk/xoalbum/include/action.picture.php XoopsModules/xoalbum/trunk/xoalbum/include/ajax.album.php XoopsModules/xoalbum/trunk/xoalbum/include/configs.php XoopsModules/xoalbum/trunk/xoalbum/include/form.album.php XoopsModules/xoalbum/trunk/xoalbum/include/form.category.php XoopsModules/xoalbum/trunk/xoalbum/include/form.grid.php XoopsModules/xoalbum/trunk/xoalbum/include/form.picture.php XoopsModules/xoalbum/trunk/xoalbum/include/index.html XoopsModules/xoalbum/trunk/xoalbum/include/search.inc.php XoopsModules/xoalbum/trunk/xoalbum/include/xoalbum.php XoopsModules/xoalbum/trunk/xoalbum/index.php XoopsModules/xoalbum/trunk/xoalbum/language/ XoopsModules/xoalbum/trunk/xoalbum/language/english/ XoopsModules/xoalbum/trunk/xoalbum/language/english/admin.php XoopsModules/xoalbum/trunk/xoalbum/language/english/blocks.php XoopsModules/xoalbum/trunk/xoalbum/language/english/index.html XoopsModules/xoalbum/trunk/xoalbum/language/english/main.php XoopsModules/xoalbum/trunk/xoalbum/language/english/modinfo.php XoopsModules/xoalbum/trunk/xoalbum/language/index.html XoopsModules/xoalbum/trunk/xoalbum/language/schinese_utf8/ XoopsModules/xoalbum/trunk/xoalbum/language/schinese_utf8/admin.php XoopsModules/xoalbum/trunk/xoalbum/language/schinese_utf8/blocks.php XoopsModules/xoalbum/trunk/xoalbum/language/schinese_utf8/index.html XoopsModules/xoalbum/trunk/xoalbum/language/schinese_utf8/main.php XoopsModules/xoalbum/trunk/xoalbum/language/schinese_utf8/modinfo.php XoopsModules/xoalbum/trunk/xoalbum/readme.txt XoopsModules/xoalbum/trunk/xoalbum/script/ XoopsModules/xoalbum/trunk/xoalbum/script/jquery/ XoopsModules/xoalbum/trunk/xoalbum/script/jquery/imgareaselect/ XoopsModules/xoalbum/trunk/xoalbum/script/jquery/imgareaselect/border-anim-h.gif XoopsModules/xoalbum/trunk/xoalbum/script/jquery/imgareaselect/border-anim-v.gif XoopsModules/xoalbum/trunk/xoalbum/script/jquery/imgareaselect/border-h.gif XoopsModules/xoalbum/trunk/xoalbum/script/jquery/imgareaselect/border-v.gif XoopsModules/xoalbum/trunk/xoalbum/script/jquery/imgareaselect/imgareaselect-animated.css XoopsModules/xoalbum/trunk/xoalbum/script/jquery/imgareaselect/imgareaselect-default.css XoopsModules/xoalbum/trunk/xoalbum/script/jquery/imgareaselect/imgareaselect-deprecated.css XoopsModules/xoalbum/trunk/xoalbum/script/jquery/jquery-1.3.2.min.js XoopsModules/xoalbum/trunk/xoalbum/script/jquery/jquery-menu.js XoopsModules/xoalbum/trunk/xoalbum/script/jquery/jquery-ui-1.7.2.custom.min.js XoopsModules/xoalbum/trunk/xoalbum/script/jquery/jquery.form.js XoopsModules/xoalbum/trunk/xoalbum/script/jquery/jquery.imgareaselect.min.js XoopsModules/xoalbum/trunk/xoalbum/script/jquery/scripts/ XoopsModules/xoalbum/trunk/xoalbum/script/jquery/scripts/jquery.imgareaselect.js XoopsModules/xoalbum/trunk/xoalbum/script/jquery/scripts/jquery.imgareaselect.min.js XoopsModules/xoalbum/trunk/xoalbum/script/jquery/scripts/jquery.imgareaselect.pack.js XoopsModules/xoalbum/trunk/xoalbum/script/jquery/scripts/jquery.min.js XoopsModules/xoalbum/trunk/xoalbum/script/style/ XoopsModules/xoalbum/trunk/xoalbum/script/style/imgareaselect/ XoopsModules/xoalbum/trunk/xoalbum/script/style/imgareaselect/border-anim-h.gif XoopsModules/xoalbum/trunk/xoalbum/script/style/imgareaselect/border-anim-v.gif XoopsModules/xoalbum/trunk/xoalbum/script/style/imgareaselect/border-h.gif XoopsModules/xoalbum/trunk/xoalbum/script/style/imgareaselect/border-v.gif XoopsModules/xoalbum/trunk/xoalbum/script/style/imgareaselect/imgareaselect-animated.css XoopsModules/xoalbum/trunk/xoalbum/script/style/imgareaselect/imgareaselect-default.css XoopsModules/xoalbum/trunk/xoalbum/script/style/imgareaselect/imgareaselect-deprecated.css XoopsModules/xoalbum/trunk/xoalbum/script/style/nophoto.gif XoopsModules/xoalbum/trunk/xoalbum/script/style/nophoto.jpg XoopsModules/xoalbum/trunk/xoalbum/script/style/style.css XoopsModules/xoalbum/trunk/xoalbum/script/style/ui-bg_inset-soft_25_000000_1x100.png XoopsModules/xoalbum/trunk/xoalbum/script/style/ui-darkness/ XoopsModules/xoalbum/trunk/xoalbum/script/style/ui-darkness/images/ XoopsModules/xoalbum/trunk/xoalbum/script/style/ui-darkness/images/ui-bg_flat_30_cccccc_40x100.png XoopsModules/xoalbum/trunk/xoalbum/script/style/ui-darkness/images/ui-bg_flat_50_5c5c5c_40x100.png XoopsModules/xoalbum/trunk/xoalbum/script/style/ui-darkness/images/ui-bg_glass_20_555555_1x400.png XoopsModules/xoalbum/trunk/xoalbum/script/style/ui-darkness/images/ui-bg_glass_40_0078a3_1x400.png XoopsModules/xoalbum/trunk/xoalbum/script/style/ui-darkness/images/ui-bg_glass_40_ffc73d_1x400.png XoopsModules/xoalbum/trunk/xoalbum/script/style/ui-darkness/images/ui-bg_gloss-wave_25_333333_500x100.png XoopsModules/xoalbum/trunk/xoalbum/script/style/ui-darkness/images/ui-bg_highlight-soft_80_eeeeee_1x100.png XoopsModules/xoalbum/trunk/xoalbum/script/style/ui-darkness/images/ui-bg_inset-soft_25_000000_1x100.png XoopsModules/xoalbum/trunk/xoalbum/script/style/ui-darkness/images/ui-bg_inset-soft_30_f58400_1x100.png XoopsModules/xoalbum/trunk/xoalbum/script/style/ui-darkness/images/ui-icons_222222_256x240.png XoopsModules/xoalbum/trunk/xoalbum/script/style/ui-darkness/images/ui-icons_4b8e0b_256x240.png XoopsModules/xoalbum/trunk/xoalbum/script/style/ui-darkness/images/ui-icons_a83300_256x240.png XoopsModules/xoalbum/trunk/xoalbum/script/style/ui-darkness/images/ui-icons_cccccc_256x240.png XoopsModules/xoalbum/trunk/xoalbum/script/style/ui-darkness/images/ui-icons_ffffff_256x240.png XoopsModules/xoalbum/trunk/xoalbum/script/style/ui-darkness/jquery-ui-1.7.2.custom.css XoopsModules/xoalbum/trunk/xoalbum/script/style/upload_bg.jpg XoopsModules/xoalbum/trunk/xoalbum/script/swfupload/ XoopsModules/xoalbum/trunk/xoalbum/script/swfupload/handlers.js XoopsModules/xoalbum/trunk/xoalbum/script/swfupload/swfupload.js XoopsModules/xoalbum/trunk/xoalbum/script/swfupload/swfupload.swf XoopsModules/xoalbum/trunk/xoalbum/script/swfupload/swfupload_f8.swf XoopsModules/xoalbum/trunk/xoalbum/script/swfupload/swfuploadbutton.swf XoopsModules/xoalbum/trunk/xoalbum/script/swfupload/upload_bg.jpg XoopsModules/xoalbum/trunk/xoalbum/script/xoalbum.js XoopsModules/xoalbum/trunk/xoalbum/sql/ XoopsModules/xoalbum/trunk/xoalbum/sql/index.html XoopsModules/xoalbum/trunk/xoalbum/sql/mysql.default.category.sql XoopsModules/xoalbum/trunk/xoalbum/sql/mysql.sql XoopsModules/xoalbum/trunk/xoalbum/templates/ XoopsModules/xoalbum/trunk/xoalbum/templates/album_album.html XoopsModules/xoalbum/trunk/xoalbum/templates/album_category.html XoopsModules/xoalbum/trunk/xoalbum/templates/album_cp_album.html XoopsModules/xoalbum/trunk/xoalbum/templates/album_cp_category.html XoopsModules/xoalbum/trunk/xoalbum/templates/album_cp_index.html XoopsModules/xoalbum/trunk/xoalbum/templates/album_cp_picture.html XoopsModules/xoalbum/trunk/xoalbum/templates/album_detail.html XoopsModules/xoalbum/trunk/xoalbum/templates/album_form.html XoopsModules/xoalbum/trunk/xoalbum/templates/album_header.html XoopsModules/xoalbum/trunk/xoalbum/templates/album_index.html XoopsModules/xoalbum/trunk/xoalbum/templates/album_upload.html XoopsModules/xoalbum/trunk/xoalbum/templates/blocks/ XoopsModules/xoalbum/trunk/xoalbum/templates/blocks/album_blocks_newpicture.html XoopsModules/xoalbum/trunk/xoalbum/templates/blocks/index.html XoopsModules/xoalbum/trunk/xoalbum/templates/index.html XoopsModules/xoalbum/trunk/xoalbum/upload.php XoopsModules/xoalbum/trunk/xoalbum/xoops_version.php Added: XoopsModules/xoalbum/trunk/xoalbum/action.php =================================================================== --- XoopsModules/xoalbum/trunk/xoalbum/action.php (rev 0) +++ XoopsModules/xoalbum/trunk/xoalbum/action.php 2014-04-15 09:16:07 UTC (rev 12448) @@ -0,0 +1,182 @@ +<?php +/** + * XOOPS xoAlbum management module + * demo http://www.xoyoke.com/modules/xoalbum/ + * + * @copyright The XOOPS project http://code.google.com/p/xoalbum/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 2.0.0 + * @author Xiao Hui <xh...@gm...> + * @version $Id$ + * @package xoAlbum + */ +include "header.php"; +$xoopsLogger->activated = false; +$ts = MyTextSanitizer::getInstance(); +$op = isset($_REQUEST["op"]) ? trim($_REQUEST["op"]) : ""; +$ac = isset($_POST["ac"]) ? trim($_POST["ac"]) : ""; +$redirect_url = isset($_POST["redirect_url"]) ? $ts->stripSlashesGPC($redirect_url) : "index.php"; + +switch ($op){ + case "grid": + $info = array(); + if ( isset($_SERVER["HTTP_X_REQUESTED_WITH"]) && + $_SERVER["HTTP_X_REQUESTED_WITH"] == "XMLHttpRequest" ) { + + } else { + if (!$GLOBALS["xoopsSecurity"]->check()) { + redirect_header($redirect_url, 3, implode("<br />", + $GLOBALS["xoopsSecurity"]->getErrors())); + } + } + if ( empty($xoopsUser) || !is_object($xoopsUser) ) { + $info[] = "需要登陆,才能使用这个功能!"; + } + extract($_POST); + if ( !$x1 || !$y1 || !$x2 || !$y2 || !$w || !$h || !$grid_title || !$pic_id ) { + $info[] = "选择有误,请重新选择!"; + } + + if ( $info ) { + $ret = array("status"=>"100","message"=>implode("<br />", $info)); + echo json_encode($ret); + exit; + } + $params = array( + "grid_title"=> $grid_title, + "grid_data"=> array("x1"=>$x1,"y1"=>$y1,"x2"=>$x2,"y2"=>$y2,"w"=>$w,"h"=>$h), + "uid"=>(int)$xoopsUser->uid(), + "pic_id"=>(int)$pic_id + ); + $grid_handler = xoops_getmodulehandler("grid"); + if ( $id = $grid_handler->setGrid($params) ) { + $ret = array("status"=>"200","message"=>"保存成功!"); + echo json_encode($ret); + exit; + } + break; + case "album": + $album_handler = xoops_getmodulehandler("album"); + $cat_handler = xoops_getmodulehandler("category"); + $params = $_POST; + include(dirname(__FILE__)."/include/action.album.php"); + if ( isset($_SERVER["HTTP_X_REQUESTED_WITH"]) && + $_SERVER["HTTP_X_REQUESTED_WITH"] == "XMLHttpRequest" ) { + if ( $msg ) { + $str = implode("<br />", $msg); + $status = "100"; + } else { + $str = _ALBUM_SUCCEED; + $status = "200"; + } + $json = array("status"=>$status,"message"=>$str); + echo json_encode($json); + exit; + } else { + if ( $msg ) { + redirect_header($redirect_url, 3, implode("<br />", $msg)); + } + redirect_header("album.php?albumId={$album_id}", 3, _ALBUM_SUCCEED); + } + break; + case "category": + include(dirname(__FILE__)."/include/action.category.php"); + break; + case "picture": + $album_handler = xoops_getmodulehandler("album"); + $picture_handler = xoops_getmodulehandler("picture"); + switch ($ac) { + case "delete": + $album_id = isset($_POST["album_id"]) ? intval($_POST["album_id"]) : 0; + $pic_id = isset($_POST["pic_id"]) ? intval($_POST["pic_id"]) : 0; + $album_obj = $album_handler->get($album_id); + $info = array("status"=>"100"); + if ( !is_object($album_obj) && $album_obj->uid() != $xoopsUser->uid() ) { + $info["message"] = _NOPERM; + } + if ( empty($info["message"]) ) { + $pic_obj = $picture_handler->get($pic_id); + if ( !is_object($pic_obj) ) { + $info["message"] = "图片不存在或是被删除!"; + } + } + if ( $picture_handler->delete($pic_obj) ) { + $album_handler->updateAlbumTotal($album_id,-1); + $info["status"] = "200"; + $info["picid"] = $pic_id; + $info["message"] = "图片删除成功!"; + } else { + $info["message"] = "图片删除失败!"; + } + if ( isset($_SERVER["HTTP_X_REQUESTED_WITH"]) && + $_SERVER["HTTP_X_REQUESTED_WITH"] == "XMLHttpRequest" ) { + echo json_encode($info); + exit; + } else { + if ( $info["status"] == "200" ) { + redirect_header($redirect_url, 3, implode("<br />", $info["message"])); + } + redirect_header("album.php?albumId={$album_id}", 3, _ALBUM_SUCCEED); + } + break; + case "edit": + $err = xoAlbum::checkSubmitFields("picture",$_POST,false); + $info = array(); + if ( true === $err ) { + if ( $picture_handler->setPicture($_POST) ) { + $info["status"] = "200"; + $info["message"] = "图片编辑成功!"; + } else { + $info["status"] = "300"; + $info["message"] = "图片编辑失败!"; + } + } else { + $info["status"] = "100"; + $info["message"] = $err; + } + if ( isset($_SERVER["HTTP_X_REQUESTED_WITH"]) && + $_SERVER["HTTP_X_REQUESTED_WITH"] == "XMLHttpRequest" ) { + echo json_encode($info); + exit; + } else { + if ( $info["status"] == "200" ) { + redirect_header($redirect_url, 3, implode("<br />", $info["message"])); + } + redirect_header("album.php?albumId={$album_id}", 3, _ALBUM_SUCCEED); + } + break; + default: + die("no params"); + } + break; + + case "upload": + $album_handler = xoops_getmodulehandler("album"); + $picture_handler = xoops_getmodulehandler("picture"); + if (isset($_POST["PHPSESSID"])) { + session_id($_POST["PHPSESSID"]); + } + session_start(); + + $album_id = isset($_POST["albumId"]) ? intval($_POST["albumId"]) : 0; + $uid = isset($_POST["uid"]) ? intval($_POST["uid"]) : 0; + $sign = isset($_POST["sign"]) ? $_POST["sign"] : 0; + $sess_id = isset($_POST["PHPSESSID"]) ? $_POST["PHPSESSID"] : 0; + // prem error + $str = $album_id.$uid.$sess_id; + $error = array(); + + if ( false == xoAlbum::checkSign($str,$sign) ) { + $error[] = "签名错误"; + } + $album_obj = $album_handler->get($album_id); + + if ( !is_object($album_obj) || $album_obj->isNew() || + $album_obj->uid() != $uid ) { + $error[] = "抱歉,这个相册不是您的"; + } + include(dirname(__FILE__)."/include/action.picture.php"); + break; + default: + die("no params"); +} \ No newline at end of file Property changes on: XoopsModules/xoalbum/trunk/xoalbum/action.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/xoalbum/trunk/xoalbum/admin/action.album.php =================================================================== --- XoopsModules/xoalbum/trunk/xoalbum/admin/action.album.php (rev 0) +++ XoopsModules/xoalbum/trunk/xoalbum/admin/action.album.php 2014-04-15 09:16:07 UTC (rev 12448) @@ -0,0 +1,56 @@ +<?php +/** + * XOOPS photo management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Xiao Hui <xh...@gm...> + * @version $Id$ + * @package xoAlbum + */ +include "header.php"; +$op = isset($_POST["op"]) ? trim($_POST["op"]) : ""; +$ac = isset($_POST["ac"]) ? trim($_POST["ac"]) : ""; + +$album_handler = xoops_getmodulehandler("album"); + +switch ($op) { + case "album": + if ( !$GLOBALS['xoopsSecurity']->check() ) { + redirect_header("category.php", 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + } + $cat_id = isset($_POST["cat_id"]) ? intval($_POST["cat_id"]) : 0; + $album_name = isset($_POST["album_name"]) ? trim($_POST["album_name"]) : ""; + $album_desc = isset($_POST["album_desc"]) ? trim($_POST["album_desc"]) : ""; + $album_state = isset($_POST["album_state"]) ? intval($_POST["album_state"]) : 0; + if ( empty($cat_id) || empty($album_name) ) { + redirect_header("album.php", 5, _AM_ERROR_FORM_ALBUM); + } + switch ($ac) { + case "edit": + $album_id = isset($_POST["album_id"]) ? trim($_POST["album_id"]) : 0; + if ( $album_id = $album_handler->setAlbum($album_id, $cat_id, $xoopsUser->getVar("uid"), $album_name, $album_desc, $album_state) ) { + redirect_header("album.php", 5, _AM_SUCCEED); + } + redirect_header("album.php", 5, _AM_FAILED); + break; + + default: + case "create": + $album_id = 0; + if ( $album_id = $album_handler->setAlbum($album_id, $cat_id, $xoopsUser->getVar("uid"), $album_name, $album_desc, $album_state) ) { + $cat_handler = xoops_getmodulehandler("category"); + $cat_handler->setCatAmount($cat_id,1); + redirect_header("album.php", 5, _AM_SUCCEED); + } + redirect_header("album.php", 5, _AM_FAILED); + break; + } + break; + + default: + redirect_header("index.php"); + break; +} +?> \ No newline at end of file Property changes on: XoopsModules/xoalbum/trunk/xoalbum/admin/action.album.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/xoalbum/trunk/xoalbum/admin/action.category.php =================================================================== --- XoopsModules/xoalbum/trunk/xoalbum/admin/action.category.php (rev 0) +++ XoopsModules/xoalbum/trunk/xoalbum/admin/action.category.php 2014-04-15 09:16:07 UTC (rev 12448) @@ -0,0 +1,61 @@ +<?php +/** + * XOOPS photo management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Xiao Hui <xh...@gm...> + * @version $Id$ + * @package xoAlbum + */ +include "header.php"; +$op = isset($_REQUEST["op"]) ? trim($_REQUEST["op"]) : ""; +$ac = isset($_REQUEST["ac"]) ? trim($_REQUEST["ac"]) : ""; +$cat_handler = xoops_getmodulehandler("category"); +$cat_id = isset($_REQUEST["cat_id"]) ? intval($_REQUEST["cat_id"]) : ""; +switch ($op) { + case "delete": + $obj = $cat_handler->get($cat_id); + if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) { + if($cat_handler->delCategory($cat_id)) { + redirect_header('category.php', 3, _AM_ABOUT_DELETESUCCESS); + }else{ + echo $obj->getHtmlErrors(); + } + }else{ + xoops_confirm(array('ok' => 1, 'id' => $obj->getVar('cat_id'), 'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_AM_RUSUREDEL, $obj->getVar('car_name'))); + } + break; + case "category": + if ( !$GLOBALS['xoopsSecurity']->check() ) { + redirect_header("category.php", 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + } + $cat_name = isset($_POST["cat_name"]) ? trim($_POST["cat_name"]) : ""; + $cat_order = isset($_POST["cat_order"]) ? intval($_POST["cat_order"]) : 0; + if ( empty($cat_name) ) { + redirect_header("category.php", 5, _AM_ERROR_NOCATNAME); + } + switch ($ac) { + case "edit": + $cat_id = isset($_POST["cat_id"]) ? trim($_POST["cat_id"]) : 0; + if ( $cat_handler->setCategory($cat_id, $cat_name, $cat_order) ) { + redirect_header("category.php", 5, _AM_SUCCEED); + } + redirect_header("category.php", 5, _AM_FAILED); + break; + + default: + case "create": + $cat_id = 0; + if ( $cat_handler->setCategory($cat_id, $cat_name, $cat_order) ) { + redirect_header("category.php", 5, _AM_SUCCEED); + } + redirect_header("category.php", 5, _AM_FAILED); + break; + } + break; + + +} +?> \ No newline at end of file Property changes on: XoopsModules/xoalbum/trunk/xoalbum/admin/action.category.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/xoalbum/trunk/xoalbum/admin/action.picture.php =================================================================== --- XoopsModules/xoalbum/trunk/xoalbum/admin/action.picture.php (rev 0) +++ XoopsModules/xoalbum/trunk/xoalbum/admin/action.picture.php 2014-04-15 09:16:07 UTC (rev 12448) @@ -0,0 +1,52 @@ +<?php +/** + * XOOPS photo management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Xiao Hui <xh...@gm...> + * @version $Id$ + * @package xoAlbum + */ +include "header.php"; +$op = isset($_POST["op"]) ? trim($_POST["op"]) : ""; +$ac = isset($_POST["ac"]) ? trim($_POST["ac"]) : ""; +$album_handler = xoops_getmodulehandler("album"); +switch ($op) { + case "album": + if ( !$GLOBALS['xoopsSecurity']->check() ) { + redirect_header("category.php", 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + } + $cat_id = isset($_POST["cat_id"]) ? intval($_POST["cat_id"]) : 0; + $album_name = isset($_POST["album_name"]) ? trim($_POST["album_name"]) : ""; + $album_desc = isset($_POST["album_desc"]) ? trim($_POST["album_desc"]) : ""; + $album_state = isset($_POST["album_state"]) ? intval($_POST["album_state"]) : 0; + if ( empty($cat_id) || empty($album_name) ) { + redirect_header("album.php", 5, _AM_ERROR_FORM_ALBUM); + } + switch ($ac) { + case "edit": + $album_id = isset($_POST["album_id"]) ? trim($_POST["album_id"]) : 0; + if ( $album_id = $album_handler->setAlbum($album_id, $cat_id, $xoopsUser->getVar("uid"), $album_name, $album_desc, $album_state) ) { + redirect_header("album.php", 5, _AM_SUCCEED); + } + redirect_header("album.php", 5, _AM_FAILED); + break; + + default: + case "create": + $album_id = 0; + if ( $album_id = $album_handler->setAlbum($album_id, $cat_id, $xoopsUser->getVar("uid"), $album_name, $album_desc, $album_state) ) { + redirect_header("album.php", 5, _AM_SUCCEED); + } + redirect_header("album.php", 5, _AM_FAILED); + break; + } + break; + + default: + redirect_header("index.php"); + break; +} +?> \ No newline at end of file Property changes on: XoopsModules/xoalbum/trunk/xoalbum/admin/action.picture.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/xoalbum/trunk/xoalbum/admin/album.php =================================================================== --- XoopsModules/xoalbum/trunk/xoalbum/admin/album.php (rev 0) +++ XoopsModules/xoalbum/trunk/xoalbum/admin/album.php 2014-04-15 09:16:07 UTC (rev 12448) @@ -0,0 +1,40 @@ +<?php +/** + * XOOPS photo management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Xiao Hui <xh...@gm...> + * @version $Id$ + * @package xoAlbum + */ +include "header.php"; +loadModuleAdminMenu(2, ""); +$start = isset($_GET["start"]) ? intval($_GET["start"]) : 0; +$album_id = isset($_GET["albumId"]) ? intval($_GET["albumId"]) : 0; +$cat_id = isset($_GET["catId"]) ? intval($_GET["catId"]) : 0; +$limit = 10; + +$album_handler = xoops_getmodulehandler("album"); +$list = $album_handler->getAlbumList( $cat_id, 0, 0, $start, $limit); + +if ( !empty($album_id) ) { + $album_obj = $album_handler->get($album_id); +} +if ( empty($album_obj) || !is_object($album_obj) ) { + $album_obj = $album_handler->get(); +} +$isNew = $album_obj->isNew(); +$album_rows = $album_obj->getValues(); + +$cat_handler = xoops_getmodulehandler("category"); +$_cat_list = $cat_handler->getCatSelect(1); +$formurl = "action.album.php"; +include_once(dirname(__FILE__)."../../include/form.album.php"); + +$xoopsTpl->assign("categories",$_cat_list); +$xoopsTpl->assign(array("albums"=>$list["list"],"pagenav"=>$list["pagenav"])); +$xoopsTpl->display("db:album_cp_album.html"); +include "footer.php"; +?> \ No newline at end of file Property changes on: XoopsModules/xoalbum/trunk/xoalbum/admin/album.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/xoalbum/trunk/xoalbum/admin/category.php =================================================================== --- XoopsModules/xoalbum/trunk/xoalbum/admin/category.php (rev 0) +++ XoopsModules/xoalbum/trunk/xoalbum/admin/category.php 2014-04-15 09:16:07 UTC (rev 12448) @@ -0,0 +1,28 @@ +<?php +/** + * XOOPS photo management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Xiao Hui <xh...@gm...> + * @version $Id$ + * @package xoAlbum + */ +include "header.php"; +loadModuleAdminMenu(1, ""); +$cat_handler = xoops_getmodulehandler("category"); +$cat_id = isset($_GET["cat_id"]) ? intval($_GET["cat_id"]) : 0; +if ( !empty($cat_id) ) { + $cat_obj = $cat_handler->get($cat_id); +} +if ( empty($cat_obj) || !is_object($cat_obj) ) { + $cat_obj = $cat_handler->get(); +} +$isNew = $cat_obj->isNew(); +$cat_rows = $cat_obj->getValues(); +include_once(dirname(__FILE__)."../../include/form.category.php"); +$xoopsTpl->assign("categories",$cat_handler->getCatList()); +$xoopsTpl->display("db:album_cp_category.html"); +include "footer.php"; +?> \ No newline at end of file Property changes on: XoopsModules/xoalbum/trunk/xoalbum/admin/category.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/xoalbum/trunk/xoalbum/admin/comments.php =================================================================== --- XoopsModules/xoalbum/trunk/xoalbum/admin/comments.php (rev 0) +++ XoopsModules/xoalbum/trunk/xoalbum/admin/comments.php 2014-04-15 09:16:07 UTC (rev 12448) @@ -0,0 +1,22 @@ +<?php +/** + * XOOPS photo management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Xiao Hui <xh...@gm...> + * @version $Id$ + * @package xoAlbum + */ +include "header.php"; +loadModuleAdminMenu(3, ""); +$start = isset($_GET["start"]) ? intval($_GET["start"]) : 0; +$pic_id = isset($_GET["picId"]) ? intval($_GET["picId"]) : 0; +$limit = 20; +$comment_handler = xoops_getmodulehandler("comment"); +$list = $comment_handler->getCommentsList($pic_id, 0, $start, $limit); +$xoopsTpl->assign(array("pagenav"=>$list["pagenav"],"comments"=>$list["list"])); +$xoopsTpl->display("db:album_cp_comments.html"); +include "footer.php"; +?> \ No newline at end of file Property changes on: XoopsModules/xoalbum/trunk/xoalbum/admin/comments.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/xoalbum/trunk/xoalbum/admin/footer.php =================================================================== --- XoopsModules/xoalbum/trunk/xoalbum/admin/footer.php (rev 0) +++ XoopsModules/xoalbum/trunk/xoalbum/admin/footer.php 2014-04-15 09:16:07 UTC (rev 12448) @@ -0,0 +1,14 @@ +<?php +/** + * XOOPS photo management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Xiao Hui <xh...@gm...> + * @version $Id$ + * @package xoAlbum + */ + +xoops_cp_footer(); +?> \ No newline at end of file Property changes on: XoopsModules/xoalbum/trunk/xoalbum/admin/footer.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/xoalbum/trunk/xoalbum/admin/header.php =================================================================== --- XoopsModules/xoalbum/trunk/xoalbum/admin/header.php (rev 0) +++ XoopsModules/xoalbum/trunk/xoalbum/admin/header.php 2014-04-15 09:16:07 UTC (rev 12448) @@ -0,0 +1,85 @@ +<?php +/** + * XOOPS photo management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Xiao Hui <xh...@gm...> + * @author Susheng yang <ezs...@gm...> + * @version $Id$ + * @package xoAlbum + */ +include '../../../include/cp_header.php'; + +if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { + include_once XOOPS_ROOT_PATH . "/class/template.php"; + $xoopsTpl = new XoopsTpl(); +} + +IF (!@ include_once XOOPS_ROOT_PATH . "/Frameworks/art/functions.admin.php"): + + +function loadModuleAdminMenu($currentoption, $breadcrumb = "") +{ + if (!$adminmenu = $GLOBALS["xoopsModule"]->getAdminMenu()) { + return false; + } + + $breadcrumb = empty($breadcrumb) ? $adminmenu[$currentoption]["title"] : $breadcrumb; + $module_link = XOOPS_URL . "/modules/" . $GLOBALS["xoopsModule"]->getVar("dirname") . "/"; + $image_link = XOOPS_URL . "/modules/" . $GLOBALS["xoopsModule"]->getVar("dirname") . "/images"; + + $adminmenu_text =' + <style type="text/css"> + <!-- + #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0;} + #buttonbar { float:left; width:100%; background: #e7e7e7 url("'.$image_link.'/modadminbg.gif") repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px;} + #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } + #buttonbar li { display:inline; margin:0; padding:0; } + #buttonbar a { float:left; background:url("'.$image_link.'/left_both.gif") no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; } + #buttonbar a span { float:left; display:block; background:url("'.$image_link.'/right_both.gif") no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } + /* Commented Backslash Hack hides rule from IE5-Mac \*/ + #buttonbar a span {float:none;} + /* End IE5-Mac hack */ + #buttonbar a:hover span { color:#333; } + #buttonbar .current a { background-position:0 -150px; border-width:0; } + #buttonbar .current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } + #buttonbar a:hover { background-position:0% -150px; } + #buttonbar a:hover span { background-position:100% -150px; } + //--> + </style> + <div id="buttontop"> + <table style="width: 100%; padding: 0; " cellspacing="0"> + <tr> + <td style="width: 70%; font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;"> + <a href="../index.php">' . $GLOBALS["xoopsModule"]->getVar("name") . '</a> + </td> + <td style="width: 30%; font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;"> + <strong>' . $GLOBALS["xoopsModule"]->getVar("name") . '</strong> ' . $breadcrumb . ' + </td> + </tr> + </table> + </div> + <div id="buttonbar"> + <ul> + '; + foreach (array_keys($adminmenu) as $key) { + $adminmenu_text .= (($currentoption == $key) ? '<li class="current">' : '<li>') . '<a href="' . $module_link . $adminmenu[$key]["link"] . '"><span>' . $adminmenu[$key]["title"] . '</span></a></li>'; + } + $adminmenu_text .= '<li><a href="' . XOOPS_URL . '/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $GLOBALS["xoopsModule"]->getVar("mid") . '"><span>' . _PREFERENCES . '</span></a></li>'; + $adminmenu_text .= ' + </ul> + </div> + <br style="clear:both;" />'; + + echo $adminmenu_text; +} + +ENDIF; +xoops_cp_header(); + +$xoopsOption['xoops_module_header'] = '<script type="text/javascript" src="../include/jquery/jquery-1.2.3.js"></script>'; +$xoopsOption['xoops_module_header'] = '<script type="text/javascript" src="../include/jquery/jquery.form.js"></script>'; +include XOOPS_ROOT_PATH."/class/xoopsformloader.php"; +?> \ No newline at end of file Property changes on: XoopsModules/xoalbum/trunk/xoalbum/admin/header.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/xoalbum/trunk/xoalbum/admin/index.php =================================================================== --- XoopsModules/xoalbum/trunk/xoalbum/admin/index.php (rev 0) +++ XoopsModules/xoalbum/trunk/xoalbum/admin/index.php 2014-04-15 09:16:07 UTC (rev 12448) @@ -0,0 +1,25 @@ +<?php +/** + * XOOPS photo management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Xiao Hui <xh...@gm...> + * @version $Id$ + * @package xoAlbum + */ +include "header.php"; +loadModuleAdminMenu(0, ""); +$cat_handler = xoops_getmodulehandler("category"); +$album_handler = xoops_getmodulehandler("album"); +$picture_handler = xoops_getmodulehandler("picture"); +// get new pictures +$new_pictures = $picture_handler->getPictureNew(20); +// get category list +$categories = $cat_handler->getCatList(); +$xoopsTpl->assign("categories",$categories); +$xoopsTpl->assign("new_pictures",$new_pictures); +$xoopsTpl->display("db:album_cp_index.html"); +include "footer.php"; +?> \ No newline at end of file Property changes on: XoopsModules/xoalbum/trunk/xoalbum/admin/index.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/xoalbum/trunk/xoalbum/admin/menu.php =================================================================== --- XoopsModules/xoalbum/trunk/xoalbum/admin/menu.php (rev 0) +++ XoopsModules/xoalbum/trunk/xoalbum/admin/menu.php 2014-04-15 09:16:07 UTC (rev 12448) @@ -0,0 +1,29 @@ +<?php +/** + * XOOPS photo management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Xiao Hui <xh...@gm...> + * @version $Id$ + * @package xoAlbum + */ +$adminmenu = array(); +$adminmenu[] = array( + 'title' => _AM_HOME, + 'link' => 'admin/index.php' +); +$adminmenu[] = array( + 'title' => _AM_CATEGORY, + 'link' => 'admin/category.php' +); +$adminmenu[] = array( + 'title' => _AM_ALBUM, + 'link' => 'admin/album.php' +); +$adminmenu[] = array( + 'title' => _AM_COMMENTS, + 'link' => 'admin/comments.php' +); +?> \ No newline at end of file Property changes on: XoopsModules/xoalbum/trunk/xoalbum/admin/menu.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/xoalbum/trunk/xoalbum/admin/picture.php =================================================================== --- XoopsModules/xoalbum/trunk/xoalbum/admin/picture.php (rev 0) +++ XoopsModules/xoalbum/trunk/xoalbum/admin/picture.php 2014-04-15 09:16:07 UTC (rev 12448) @@ -0,0 +1,39 @@ +<?php +/** + * XOOPS photo management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Xiao Hui <xh...@gm...> + * @version $Id$ + * @package xoAlbum + */ +include "header.php"; +$start = isset($_GET["start"]) ? intval($_GET["start"]) : 0; +$album_id = isset($_GET["albumId"]) ? intval($_GET["albumId"]) : 0; +if ( empty($album_id) ) redirect_header("album.php"); +$limit = 10; + +$picture_handler = xoops_getmodulehandler("picture"); +$album_handler = xoops_getmodulehandler("album"); + +$album_obj = $album_handler->get($album_id); +$album = $album_obj->getValues(); +$album["album_dateline"] = formatTimestamp($album["album_dateline"]); +$cat_handler = xoops_getmodulehandler("category"); +$cat_obj = $cat_handler->get($album_obj->getVar("cat_id")); +$album["cat_name"] = $cat_obj->getVar("cat_name","n"); +$album["state"] = $album_obj->getVar("album_state") ? _AM_ALBUM_STATE1 : _AM_ALBUM_STATE0 ; +$album["cover"] = !empty($album["album_cover"]) ? "<img src=\"".XOOPS_UPLOAD_URL."/{$album["album_cover"]}\" alt=\"\" />" : "<img src=\"".XOOPS_UPLOAD_URL."/album.gif\" alt=\"\" />" ; + +$list = $picture_handler->getPictureList($album_id, $start, $limit ); +$albums = $album_handler->getOtherAlbums($album_id); + +$cat_handler = xoops_getmodulehandler("category"); +$_cat_list = $cat_handler->getCatSelect(); + +$xoopsTpl->assign(array("pictures"=>$list["list"],"pagenav"=>$list["pagenav"],"album"=>$album,"albums"=>$albums,"categories"=>$_cat_list)); +$xoopsTpl->display("db:album_cp_picture.html"); +include "footer.php"; +?> \ No newline at end of file Property changes on: XoopsModules/xoalbum/trunk/xoalbum/admin/picture.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/xoalbum/trunk/xoalbum/ajax.php =================================================================== --- XoopsModules/xoalbum/trunk/xoalbum/ajax.php (rev 0) +++ XoopsModules/xoalbum/trunk/xoalbum/ajax.php 2014-04-15 09:16:07 UTC (rev 12448) @@ -0,0 +1,130 @@ +<?php +/** + * XOOPS xoAlbum management module + * demo http://www.xoyoke.com/modules/xoalbum/ + * + * @copyright The XOOPS project http://code.google.com/p/xoalbum/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 2.0.0 + * @author Xiao Hui <xh...@gm...> + * @version $Id$ + * @package xoAlbum + */ +include "header.php"; +include XOOPS_ROOT_PATH."/class/template.php"; +$xoopsLogger->activated = false; +$op = isset($_REQUEST["op"]) ? trim($_REQUEST["op"]) : ""; +$ac = isset($_REQUEST["ac"]) ? trim($_REQUEST["ac"]) : ""; +if ( empty($xoopsUser) || !is_object($xoopsUser) ) { + echo _NOPERM; + exit; +} +switch ($op){ + case "album": + $xoopsTpl = new XoopsTpl(); + xoops_loadLanguage("admin","xoalbum"); + $album_handler = xoops_getmodulehandler("album"); + $cat_handler = xoops_getmodulehandler("category"); + switch ($ac){ + case "delete": + $album_id = isset($_GET["albumId"]) ? intval($_GET["albumId"]) : 0; + $album_obj = $album_handler->get($album_id); + if ( !is_object($album_obj) && $album_obj->uid() != $xoopsUser->uid() ) { + echo _NOPERM; + exit(); + } + $form = new XoopsForm("", "form", "action.php", "post",true); + $form->addElement( new XoopsFormLabel("","确定删除 [{$album_obj->name()}] 这个相册 !")); + $form->addElement( new XoopsFormHidden("album_id",$album_id)); + $form->addElement( new XoopsFormHidden("op","album")); + $form->addElement( new XoopsFormHidden("ac","delete")); + if ( isset($_SERVER["HTTP_X_REQUESTED_WITH"]) && + $_SERVER["HTTP_X_REQUESTED_WITH"] == "XMLHttpRequest" ) { + } else { + $form->addElement( new XoopsFormButton("","submit",_DELETE,"submit")); + } + $form->assign($xoopsTpl); + break; + case "edit": + case "create": + $album_id = isset($_GET["albumId"]) ? intval($_GET["albumId"]) : 0; + $album_obj = empty($album_id) ? $album_handler->get() : $album_handler->get($album_id); + if ( !is_object($album_obj) ) { + echo _NOPERM; + exit(); + } + $isnew = $album_obj->isNew(); + $album = $album_obj->getValues(); + $categories = $cat_handler->getCatList(); + + $formurl = "action.php"; + include(dirname(__FILE__)."/include/form.album.php"); + break; + default: + echo "not params"; + } + $xoopsTpl->display("db:album_form.html"); + break; + case "category": + include(dirname(__FILE__)."/include/ajax.category.php"); + break; + case "picture": + $xoopsTpl = new XoopsTpl(); + $album_handler = xoops_getmodulehandler("album"); + $picture_handler = xoops_getmodulehandler("picture"); + $album_id = isset($_GET["albumId"]) ? intval($_GET["albumId"]) : 0; + $pic_id = isset($_GET["picId"]) ? intval($_GET["picId"]) : 0; + $album_obj = $album_handler->get($album_id); + if ( !is_object($album_obj) && $album_obj->uid() != $xoopsUser->uid() ) { + echo _NOPERM; + exit(); + } + switch ($ac){ + case "delete": + $pic_obj = $picture_handler->get($pic_id); + if ( !is_object($pic_obj) || $pic_obj->isNew() ) { + echo "不存在的图片"; + exit(); + } + $form = new XoopsForm("", "form", "action.php", "post",true); + $form->addElement( new XoopsFormLabel("","确定删除 [{$pic_obj->name()}] 这张图片 !")); + $form->addElement( new XoopsFormHidden("pic_id",$pic_id)); + $form->addElement( new XoopsFormHidden("album_id",$album_id)); + $form->addElement( new XoopsFormHidden("op","picture")); + $form->addElement( new XoopsFormHidden("ac","delete")); + if ( isset($_SERVER["HTTP_X_REQUESTED_WITH"]) && + $_SERVER["HTTP_X_REQUESTED_WITH"] == "XMLHttpRequest" ) { + } else { + $form->addElement( new XoopsFormButton("","submit",_DELETE,"submit")); + } + $form->assign($xoopsTpl); + break; + case "edit": + $pic_obj = $picture_handler->get($pic_id); + if ( !is_object($pic_obj) ) { + echo "不存在的图片"; + exit(); + } + $form = new XoopsForm("", "form", "action.php", "post",true); + $form->addElement( new XoopsFormText("名称","pic_name",24,32,$pic_obj->name())); + $form->addElement( new XoopsFormTextArea("描述","pic_desc",$pic_obj->getVar("pic_desc"),4,32)); + $form->addElement( new XoopsFormHidden("pic_id",$pic_id)); + $form->addElement( new XoopsFormHidden("album_id",$album_id)); + $form->addElement( new XoopsFormHidden("op","picture")); + $form->addElement( new XoopsFormHidden("ac","edit")); + if ( isset($_SERVER["HTTP_X_REQUESTED_WITH"]) && + $_SERVER["HTTP_X_REQUESTED_WITH"] == "XMLHttpRequest" ) { + } else { + $form->addElement( new XoopsFormButton("","submit",_DELETE,"submit")); + } + $form->assign($xoopsTpl); + break; + default: + echo "no params"; + } + $xoopsTpl->display("db:album_form.html"); +// include(dirname(__FILE__)."/include/ajax.picture.php"); + break; + default: + die("no params"); +} \ No newline at end of file Property changes on: XoopsModules/xoalbum/trunk/xoalbum/ajax.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/xoalbum/trunk/xoalbum/album.php =================================================================== --- XoopsModules/xoalbum/trunk/xoalbum/album.php (rev 0) +++ XoopsModules/xoalbum/trunk/xoalbum/album.php 2014-04-15 09:16:07 UTC (rev 12448) @@ -0,0 +1,206 @@ +<?php +/** + * XOOPS xoAlbum management module + * demo http://www.xoyoke.com/modules/xoalbum/ + * + * @copyright The XOOPS project http://code.google.com/p/xoalbum/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 2.0.0 + * @author Xiao Hui <xh...@gm...> + * @version $Id$ + * @package xoAlbum + */ +include "header.php"; + +$album_id = isset($_GET["albumId"]) ? intval($_GET["albumId"]) : 0; +$pic_id = isset($_GET["picId"]) ? intval($_GET["picId"]) : 0; +$start = isset($_GET["start"]) ? intval($_GET["start"]) : 0; + +$album_handler = xoops_getmodulehandler("album"); +$picture_handler = xoops_getmodulehandler("picture"); +$cat_handler = xoops_getmodulehandler("category"); + +$album_obj = $album_handler->get($album_id); +if ( empty($album_obj) || $album_obj->isNew() ) { + redirect_header("category.php",5,"抱歉,您访问的相册不存在或是被删除!"); +} +$accessperm = true; +if ( false == $album_obj->accessPerm() ) { + if ( !empty($pic_id) ) { + redirect_header("index.php",5,_ALBUM_NOPERM_ACCESS); + } + $accessperm = false; +} + +$album = $album_obj->getValues(); +$album["album_dateline"] = $album_obj->dateline(); +$album["cat_name"] = $cat_handler->get($album_obj->getVar("cat_id"))->name(); +$album["cover"] = $album_obj->coverurl(); + +$modulenav[] = array( + "navlink"=>"category.php?catId=".$album_obj->getVar("cat_id"), + "navtitle"=>$album["cat_name"] +); + +$modulenav[] = array( + "navlink"=>"album.php?albumId={$album_id}", + "navtitle"=>$album_obj->name() +); + +$xoopsOption["xoops_pagetitle"] = _ALBUM_NAME ." - {$album["cat_name"]} - {$album_obj->name()}"; +$xoopsOption["template_main"] = "album_album.html"; +include_once XOOPS_ROOT_PATH."/header.php"; + +$extra = "albumId={$album_id}"; +$limit = 30; +$pagenav = ""; +$op = false; +if ( !empty($pic_id) ) { + $pic_obj = $picture_handler->get($pic_id); + if ( empty($pic_obj) || $pic_obj->isNew() + || $pic_obj->getVar("album_id") != $album_id ) { + redirect_header("album.php?albumId={$album_id}",_NOPERM); + } + $op = true; + $picture = array(); + $grid_handler = xoops_getmodulehandler("grid"); + if ( $pic_obj ) { + $picture = $pic_obj->getValues(); + $picture["pic_dateline"] = $pic_obj->dateline(); + $picture["pic_size"] = $pic_obj->size(); + $picture["picture"] = $pic_obj->thumburl(1); + $picture["grids"] = $grid_handler->getGridList($pic_id); + } +// $limit = 8; +// $start = $picture_handler->getInPageStart($pic_id,$album_id,$limit); + $limit = 120; + $start = 0; + include(dirname(__FILE__)."/include/form.grid.php"); + $xoopsTpl->assign(array( + "picture"=>$picture, + )); +} + +$params = array( + "criteria" => array( + "album_id" => $album_id + ), + "fields"=> array("album_id","pic_name","pic_thumbsecond"), + "start" => $start, + "limit" => $limit, + "sort" => "pic_dateline", + "order" => "DESC", + "extra" => $extra +); + +if ( empty($pic_id) ) { + $pagenav = $picture_handler->getPageNav($params); +} +$pic_objs = $picture_handler->getPictures($params); +$pictures = array(); +if ( $pic_objs ) { + foreach ( $pic_objs as $k=>$obj ) { + $pictures[$k] = $obj->getValues(); + $pictures[$k]["pic_dateline"] = $obj->dateline(); + $pictures[$k]["pic_size"] = $obj->size(); + $pictures[$k]["thumb"] = $obj->thumb(2); + } + $form = new XoopsForm("", "coverfrm", "action.php", "post",true); + $form->addElement( new XoopsFormHidden("op","album")); + $form->addElement( new XoopsFormHidden("ac","cover")); + $form->addElement( new XoopsFormHidden("album_id",$album_id)); + $form->assign($xoopsTpl); +} + +$albums_cat = $albums_user = array(); +if ( empty($pic_id) ) { + unset($params); + // 同分类相册 + $params = array( + "criteria" => array( + "cat_id" => $album_obj->getVar("cat_id") + ), + "fields"=> array("album_name","album_total","album_status","album_cover"), + "limit" => 10, + "sort" => "album_total", + "order" => "DESC" + ); + $album_cat_objs = $album_handler->getAlbums($params); + if ( isset($album_cat_objs[$album_id]) ) { + unset($album_cat_objs[$album_id]); + } + if ( $album_cat_objs ) { + foreach ( $album_cat_objs as $k=>$obj ) { + $albums_cat[$k]["album_id"] = $obj->id(); + $albums_cat[$k]["album_name"] = $obj->name(); + $albums_cat[$k]["album_cover"] = $obj->cover(); + $albums_cat[$k]["album_status"] = $obj->state(); + $albums_cat[$k]["album_total"] = $obj->getVar("album_total"); + } + + } + unset($params); + // 同分类相册 + $params = array( + "criteria" => array( + "uid" => $album_obj->uid() + ), + "fields"=> array("album_name","album_total","album_status","album_cover"), + "limit" => 10, + "sort" => "album_total", + "order" => "DESC" + ); + $album_user_objs = $album_handler->getAlbums($params); + if ( isset($album_user_objs[$album_id]) ) { + unset($album_user_objs[$album_id]); + } + if ( $album_user_objs ) { + foreach ( $album_user_objs as $k=>$obj ) { + $albums_user[$k]["album_id"] = $obj->id(); + $albums_user[$k]["album_name"] = $obj->name(); + $albums_user[$k]["album_cover"] = $obj->cover(); + $albums_user[$k]["album_status"] = $obj->state(); + $albums_user[$k]["album_total"] = $obj->getVar("album_total"); + } + } +} + +$my_albums = array(); +if ( is_object($xoopsUser) ) { + $params = array( + "criteria" => array( + "uid" => (int)$xoopsUser->uid() + ), + "fields"=>array("album_name","album_total","album_cover"), + "limit" => 10, + "sort" => "album_dateline", + "order" => "DESC" + ); + $album_my_objs = $album_handler->getAlbums($params); + if ( $album_my_objs ) { + foreach ( $album_my_objs as $k=>$obj ) { + $my_albums[$k]["album_name"] = $obj->name(); + $my_albums[$k]["album_total"] = $obj->getVar('album_total'); + $my_albums[$k]["cover"] = $obj->cover(); + $my_albums[$k]["album_id"] = $obj->id(); + } + } +} + +// smarty values +$xoopsTpl->assign(array( + "op"=>$op, + "album"=>$album, + "albums_cat"=>$albums_cat, + "albums_user"=>$albums_user, + "modulenav"=>$modulenav, + "pictures"=>$pictures, + "my_albums"=>$my_albums, + "accessperm"=>$accessperm, + "pagenav"=>$pagenav +)); + +// loads page must js and css +xoAlbum::addModConf($script_arg); +include "footer.php"; +?> \ No newline at end of file Property changes on: XoopsModules/xoalbum/trunk/xoalbum/album.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/xoalbum/trunk/xoalbum/blocks/block.php =================================================================== --- XoopsModules/xoalbum/trunk/xoalbum/blocks/block.php (rev 0) +++ XoopsModules/xoalbum/trunk/xoalbum/blocks/block.php 2014-04-15 09:16:07 UTC (rev 12448) @@ -0,0 +1,26 @@ +<?php +/** + * XOOPS photo management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Xiao Hui <xh...@gm...> + * @author Susheng Yang <ezs...@gm...> + * @version $Id$ + * @package xoAlbum + */ +if (false === defined("XOOPS_ROOT_PATH")) {exit();} + +function album_block_newpicture_show($options) { + // get new pictures +$picture_handler = xoops_getmodulehandler("picture",'xoalbum'); +$block = $new_pictures = $picture_handler->getPictureNew($options[0]); +return $block; +} + +function album_block_newpicture_edit($options) { + $form = ALBUM_MI_BLOCK_NEWPICTURE_NUM . ": <input type=\"text\" name=\"options[0]\" value=\"" . $options[0] . "\" />"; + return $form; +} +?> \ No newline at end of file Property changes on: XoopsModules/xoalbum/trunk/xoalbum/blocks/block.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/xoalbum/trunk/xoalbum/blocks/index.html =================================================================== --- XoopsModules/xoalbum/trunk/xoalbum/blocks/index.html (rev 0) +++ XoopsModules/xoalbum/trunk/xoalbum/blocks/index.html 2014-04-15 09:16:07 UTC (rev 12448) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/xoalbum/trunk/xoalbum/category.php =================================================================== --- XoopsModules/xoalbum/trunk/xoalbum/category.php (rev 0) +++ XoopsModules/xoalbum/trunk/xoalbum/category.php 2014-04-15 09:16:07 UTC (rev 12448) @@ -0,0 +1,156 @@ +<?php +/** + * XOOPS xoAlbum management module + * demo http://www.xoyoke.com/modules/xoalbum/ + * + * @copyright The XOOPS project http://code.google.com/p/xoalbum/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 2.0.0 + * @author Xiao Hui <xh...@gm...> + * @version $Id$ + * @package xoAlbum + */ +include "header.php"; +/** + * 初使化请求的参数 + */ +$cat_id = isset($_GET["catId"]) ? intval($_GET["catId"]) : 0; +$uid = isset($_GET["uid"]) ? intval($_GET["uid"]) : 0; +$start = isset($_GET["start"]) ? intval($_GET["start"]) : 0; +$extra = ""; + +/** + * 加载页面所需要的类文件 ... [truncated message content] |
From: <be...@us...> - 2014-05-13 09:47:37
|
Revision: 12529 http://sourceforge.net/p/xoops/svn/12529 Author: beckmi Date: 2014-05-13 09:47:33 +0000 (Tue, 13 May 2014) Log Message: ----------- removing "default" for text fields Modified Paths: -------------- XoopsModules/dms/releases/1.91/sql/mysql.sql XoopsModules/mediawiki/trunk/mediawiki/maintenance/archives/patch-restructure.sql XoopsModules/mediawiki/trunk/mediawiki/maintenance/archives/patch-searchindex.sql XoopsModules/mediawiki/trunk/mediawiki/maintenance/mysql5/tables.sql XoopsModules/mediawiki/trunk/mediawiki/maintenance/tables.sql XoopsModules/modulepacks/basicmodulepack/trunk/modules/xoopsheadline/sql/mysql.sql XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/xoopsheadline/sql/mysql.sql XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/xoopspoll/sql/mysql.sql XoopsModules/mytube/releases/1.04/mytube/sql/xoopstube.sql XoopsModules/umfrage/trunk/umfrage/sql/mysql.sql XoopsModules/wfdownloads/branches/luciorota/wfdownloads/sql/wfdownloads.sql XoopsModules/wfdownloads/branches/mamba/wfdownloads/sql/mysql.sql XoopsModules/wfdownloads/trunk/wfdownloads/sql/mysql.sql XoopsModules/wflink/trunk/htdocs/modules/wflinks/sql/wflinks.sql XoopsModules/xoalbum/trunk/xoalbum/sql/mysql.sql XoopsModules/xoopsheadline/branches/ZySpec/xoopsheadline/sql/mysql.sql XoopsModules/xoopsheadline/trunk/xoopsheadline/sql/mysql.sql XoopsModules/xoopspoll/branches/zyspec/sql/mysql.sql XoopsModules/xoopstube/trunk/xoopstube/sql/xoopstube.sql Modified: XoopsModules/dms/releases/1.91/sql/mysql.sql =================================================================== --- XoopsModules/dms/releases/1.91/sql/mysql.sql 2014-05-12 14:20:13 UTC (rev 12528) +++ XoopsModules/dms/releases/1.91/sql/mysql.sql 2014-05-13 09:47:33 UTC (rev 12529) @@ -247,7 +247,7 @@ CREATE TABLE dms_object_version_comments ( row_id bigint(14) unsigned NOT NULL auto_increment, dov_row_id bigint(14) unsigned NOT NULL default '0', - comment text NOT NULL default '', + comment text NOT NULL, PRIMARY KEY (row_id) ) TYPE=MyISAM; @@ -373,7 +373,7 @@ CREATE TABLE dms_groups ( group_id bigint(14) unsigned NOT NULL auto_increment, group_name varchar(50) NOT NULL default '', - group_description text NOT NULL default '', + group_description text NOT NULL, group_type varchar(10) NOT NULL default 'PERMS', PRIMARY KEY (group_id) ) TYPE=MyISAM; Modified: XoopsModules/mediawiki/trunk/mediawiki/maintenance/archives/patch-restructure.sql =================================================================== --- XoopsModules/mediawiki/trunk/mediawiki/maintenance/archives/patch-restructure.sql 2014-05-12 14:20:13 UTC (rev 12528) +++ XoopsModules/mediawiki/trunk/mediawiki/maintenance/archives/patch-restructure.sql 2014-05-13 09:47:33 UTC (rev 12529) @@ -51,7 +51,7 @@ -- -- CREATE TABLE /*$wgDBprefix*/text ( -- old_id int(8) unsigned NOT NULL auto_increment, --- old_text mediumtext NOT NULL default '', +-- old_text mediumtext NOT NULL, -- old_flags tinyblob NOT NULL default '', -- -- PRIMARY KEY old_id (old_id) Modified: XoopsModules/mediawiki/trunk/mediawiki/maintenance/archives/patch-searchindex.sql =================================================================== --- XoopsModules/mediawiki/trunk/mediawiki/maintenance/archives/patch-searchindex.sql 2014-05-12 14:20:13 UTC (rev 12528) +++ XoopsModules/mediawiki/trunk/mediawiki/maintenance/archives/patch-searchindex.sql 2014-05-13 09:47:33 UTC (rev 12529) @@ -15,7 +15,7 @@ si_title varchar(255) NOT NULL default '', -- Munged version of body text - si_text mediumtext NOT NULL default '', + si_text mediumtext NOT NULL, UNIQUE KEY (si_page) Modified: XoopsModules/mediawiki/trunk/mediawiki/maintenance/mysql5/tables.sql =================================================================== --- XoopsModules/mediawiki/trunk/mediawiki/maintenance/mysql5/tables.sql 2014-05-12 14:20:13 UTC (rev 12528) +++ XoopsModules/mediawiki/trunk/mediawiki/maintenance/mysql5/tables.sql 2014-05-13 09:47:33 UTC (rev 12529) @@ -89,7 +89,7 @@ -- Note: email should be restricted, not public info. -- Same with passwords. - user_email tinytext NOT NULL default '', + user_email tinytext NOT NULL, -- Newline-separated list of name=value defining the user -- preferences @@ -862,7 +862,7 @@ si_title varchar(255) NOT NULL default '', -- Munged version of body text - si_text mediumtext NOT NULL default '', + si_text mediumtext NOT NULL, UNIQUE KEY (si_page), FULLTEXT si_title (si_title), Modified: XoopsModules/mediawiki/trunk/mediawiki/maintenance/tables.sql =================================================================== --- XoopsModules/mediawiki/trunk/mediawiki/maintenance/tables.sql 2014-05-12 14:20:13 UTC (rev 12528) +++ XoopsModules/mediawiki/trunk/mediawiki/maintenance/tables.sql 2014-05-13 09:47:33 UTC (rev 12529) @@ -76,7 +76,7 @@ -- Note: email should be restricted, not public info. -- Same with passwords. - user_email tinytext NOT NULL default '', + user_email tinytext NOT NULL, -- Newline-separated list of name=value defining the user -- preferences @@ -848,7 +848,7 @@ si_title varchar(255) NOT NULL default '', -- Munged version of body text - si_text mediumtext NOT NULL default '', + si_text mediumtext NOT NULL, UNIQUE KEY (si_page), FULLTEXT si_title (si_title), Modified: XoopsModules/modulepacks/basicmodulepack/trunk/modules/xoopsheadline/sql/mysql.sql =================================================================== --- XoopsModules/modulepacks/basicmodulepack/trunk/modules/xoopsheadline/sql/mysql.sql 2014-05-12 14:20:13 UTC (rev 12528) +++ XoopsModules/modulepacks/basicmodulepack/trunk/modules/xoopsheadline/sql/mysql.sql 2014-05-13 09:47:33 UTC (rev 12529) @@ -13,7 +13,7 @@ headline_mainmax tinyint(2) unsigned NOT NULL default '10', headline_blockimg tinyint(1) unsigned NOT NULL default '0', headline_blockmax tinyint(2) unsigned NOT NULL default '10', - headline_xml text NOT NULL default '', + headline_xml text NOT NULL, headline_updated int(10) NOT NULL default'0', PRIMARY KEY (headline_id) ) ENGINE=MyISAM; Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/xoopsheadline/sql/mysql.sql =================================================================== --- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/xoopsheadline/sql/mysql.sql 2014-05-12 14:20:13 UTC (rev 12528) +++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/xoopsheadline/sql/mysql.sql 2014-05-13 09:47:33 UTC (rev 12529) @@ -13,7 +13,7 @@ headline_mainmax tinyint(2) unsigned NOT NULL default '10', headline_blockimg tinyint(1) unsigned NOT NULL default '0', headline_blockmax tinyint(2) unsigned NOT NULL default '10', - headline_xml text NOT NULL default '', + headline_xml text NOT NULL, headline_updated int(10) NOT NULL default'0', PRIMARY KEY (headline_id) ) ENGINE=MyISAM; Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/xoopspoll/sql/mysql.sql =================================================================== --- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/xoopspoll/sql/mysql.sql 2014-05-12 14:20:13 UTC (rev 12528) +++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/xoopspoll/sql/mysql.sql 2014-05-13 09:47:33 UTC (rev 12529) @@ -21,7 +21,7 @@ CREATE TABLE mod_xoopspoll_desc ( poll_id mediumint(8) unsigned NOT null auto_increment, question varchar(255) NOT null default '', - description tinytext NOT null default '', + description tinytext NOT NULL, user_id int(5) unsigned NOT null default '0', start_time int(10) unsigned NOT null default '0', end_time int(10) unsigned NOT null default '0', Modified: XoopsModules/mytube/releases/1.04/mytube/sql/xoopstube.sql =================================================================== --- XoopsModules/mytube/releases/1.04/mytube/sql/xoopstube.sql 2014-05-12 14:20:13 UTC (rev 12528) +++ XoopsModules/mytube/releases/1.04/mytube/sql/xoopstube.sql 2014-05-13 09:47:33 UTC (rev 12529) @@ -114,8 +114,8 @@ `vidrating` tinyint(1) NOT NULL default '0', `time` varchar(7) NOT NULL default '0:00:00', `keywords` varchar(255) NOT NULL default '', - `item_tag` text NOT NULL default '', - `picurl` text NOT NULL default '', + `item_tag` text NOT NULL, + `picurl` text NOT NULL, PRIMARY KEY (`requestid`) ) ENGINE=MyISAM COMMENT='MyTube by McDonald' AUTO_INCREMENT=1 ; @@ -149,8 +149,8 @@ `vidrating` tinyint(1) NOT NULL default '0', `time` varchar(7) NOT NULL default '0:00:00', `keywords` varchar(255) NOT NULL default '', - `item_tag` text NOT NULL default '', - `picurl` text NOT NULL default '', + `item_tag` text NOT NULL, + `picurl` text NOT NULL, PRIMARY KEY (`lid`), KEY `cid` (`cid`), KEY `status` (`status`), Modified: XoopsModules/umfrage/trunk/umfrage/sql/mysql.sql =================================================================== --- XoopsModules/umfrage/trunk/umfrage/sql/mysql.sql 2014-05-12 14:20:13 UTC (rev 12528) +++ XoopsModules/umfrage/trunk/umfrage/sql/mysql.sql 2014-05-13 09:47:33 UTC (rev 12529) @@ -27,7 +27,7 @@ CREATE TABLE umfrage_desc ( poll_id mediumint(8) unsigned NOT NULL auto_increment, question varchar(255) NOT NULL default '', - description tinytext NOT NULL default '', + description tinytext NOT NULL, user_id int(5) unsigned NOT NULL default '0', start_time int(10) unsigned NOT NULL default '0', end_time int(10) unsigned NOT NULL default '0', Modified: XoopsModules/wfdownloads/branches/luciorota/wfdownloads/sql/wfdownloads.sql =================================================================== --- XoopsModules/wfdownloads/branches/luciorota/wfdownloads/sql/wfdownloads.sql 2014-05-12 14:20:13 UTC (rev 12528) +++ XoopsModules/wfdownloads/branches/luciorota/wfdownloads/sql/wfdownloads.sql 2014-05-13 09:47:33 UTC (rev 12529) @@ -32,7 +32,7 @@ pid int(5) unsigned NOT NULL default '0', title varchar(255) NOT NULL default '', imgurl varchar(255) NOT NULL default '', - description text NOT NULL default '', + description text NOT NULL, total int(11) NOT NULL default '0', summary text NOT NULL, spotlighttop int(11) NOT NULL default '0', Modified: XoopsModules/wfdownloads/branches/mamba/wfdownloads/sql/mysql.sql =================================================================== --- XoopsModules/wfdownloads/branches/mamba/wfdownloads/sql/mysql.sql 2014-05-12 14:20:13 UTC (rev 12528) +++ XoopsModules/wfdownloads/branches/mamba/wfdownloads/sql/mysql.sql 2014-05-13 09:47:33 UTC (rev 12529) @@ -32,7 +32,7 @@ pid int(5) unsigned NOT NULL default '0', title varchar(255) NOT NULL default '', imgurl varchar(255) NOT NULL default '', - description text NOT NULL default '', + description text NOT NULL, total int(11) NOT NULL default '0', summary text NOT NULL, spotlighttop int(11) NOT NULL default '0', @@ -101,7 +101,7 @@ ipaddress varchar(120) NOT NULL default '0', notifypub int(1) NOT NULL default '0', formulize_idreq int(5) NOT NULL default '0', - screenshots text NOT NULL default '', + screenshots text NOT NULL, dohtml tinyint(1) NOT NULL default '0', dosmiley tinyint(1) NOT NULL default '1', doxcode tinyint(1) NOT NULL default '1', Modified: XoopsModules/wfdownloads/trunk/wfdownloads/sql/mysql.sql =================================================================== --- XoopsModules/wfdownloads/trunk/wfdownloads/sql/mysql.sql 2014-05-12 14:20:13 UTC (rev 12528) +++ XoopsModules/wfdownloads/trunk/wfdownloads/sql/mysql.sql 2014-05-13 09:47:33 UTC (rev 12529) @@ -32,7 +32,7 @@ pid int(5) unsigned NOT NULL default '0', title varchar(255) NOT NULL default '', imgurl varchar(255) NOT NULL default '', - description text NOT NULL default '', + description text NOT NULL, total int(11) NOT NULL default '0', summary text NOT NULL, spotlighttop int(11) NOT NULL default '0', @@ -101,7 +101,7 @@ ipaddress varchar(120) NOT NULL default '0', notifypub int(1) NOT NULL default '0', formulize_idreq int(5) NOT NULL default '0', - screenshots text NOT NULL default '', + screenshots text NOT NULL, dohtml tinyint(1) NOT NULL default '0', dosmiley tinyint(1) NOT NULL default '1', doxcode tinyint(1) NOT NULL default '1', Modified: XoopsModules/wflink/trunk/htdocs/modules/wflinks/sql/wflinks.sql =================================================================== --- XoopsModules/wflink/trunk/htdocs/modules/wflinks/sql/wflinks.sql 2014-05-12 14:20:13 UTC (rev 12528) +++ XoopsModules/wflink/trunk/htdocs/modules/wflinks/sql/wflinks.sql 2014-05-13 09:47:33 UTC (rev 12529) @@ -167,7 +167,7 @@ `requestdate` int(11) NOT NULL default '0', `urlrating` tinyint(1) NOT NULL default '0', `country` varchar(5) NOT NULL default '', - `keywords` text NOT NULL default '', + `keywords` text NOT NULL, `item_tag` text NOT NULL, `googlemap` text NOT NULL, `yahoomap` text NOT NULL, Modified: XoopsModules/xoalbum/trunk/xoalbum/sql/mysql.sql =================================================================== --- XoopsModules/xoalbum/trunk/xoalbum/sql/mysql.sql 2014-05-12 14:20:13 UTC (rev 12528) +++ XoopsModules/xoalbum/trunk/xoalbum/sql/mysql.sql 2014-05-13 09:47:33 UTC (rev 12529) @@ -1,54 +1,58 @@ -CREATE TABLE `album_album` ( - `album_id` int(8) NOT NULL auto_increment, - `cat_id` smallint(6) NOT NULL, - `uid` int(8) NOT NULL, - `album_name` varchar(64) NOT NULL, - `album_desc` varchar(255) NOT NULL, - `album_total` smallint(6) NOT NULL, - `album_cover` varchar(255) NOT NULL, - `album_views` smallint(6) NOT NULL, - `album_status` tinyint(1) NOT NULL, - `album_dateline` int(10) NOT NULL, - PRIMARY KEY (`album_id`), +CREATE TABLE `album` ( + `album_id` INT(8) NOT NULL AUTO_INCREMENT, + `cat_id` SMALLINT(6) NOT NULL, + `uid` INT(8) NOT NULL, + `album_name` VARCHAR(64) NOT NULL, + `album_desc` VARCHAR(255) NOT NULL, + `album_total` SMALLINT(6) NOT NULL, + `album_cover` VARCHAR(255) NOT NULL, + `album_views` SMALLINT(6) NOT NULL, + `album_status` TINYINT(1) NOT NULL, + `album_dateline` INT(10) NOT NULL, + PRIMARY KEY (`album_id`), KEY `cat_id` (`cat_id`), KEY `uid` (`uid`) -) ENGINE=MyISAM ; +) + ENGINE =MyISAM; -CREATE TABLE `album_category` ( - `cat_id` smallint(6) NOT NULL auto_increment, - `cat_name` varchar(32) NOT NULL, - `cat_total` int(8) NOT NULL, - `cat_order` smallint(6) NOT NULL, - `cat_dateline` int(10) NOT NULL, - PRIMARY KEY (`cat_id`) -) ENGINE=MyISAM ; +CREATE TABLE `category` ( + `cat_id` SMALLINT(6) NOT NULL AUTO_INCREMENT, + `cat_name` VARCHAR(32) NOT NULL, + `cat_total` INT(8) NOT NULL, + `cat_order` SMALLINT(6) NOT NULL, + `cat_dateline` INT(10) NOT NULL, + PRIMARY KEY (`cat_id`) +) + ENGINE =MyISAM; -CREATE TABLE `album_grid` ( - `grid_id` int(8) NOT NULL auto_increment, - `uid` int(8) NOT NULL, - `pic_id` int(8) NOT NULL, - `grid_title` varchar(120) NOT NULL, - `grid_data` varchar(255) NOT NULL, - `grid_date` int(10) NOT NULL, - PRIMARY KEY (`grid_id`), - KEY `uid` (`uid`,`pic_id`) -) ENGINE=MyISAM ; +CREATE TABLE `grid` ( + `grid_id` INT(8) NOT NULL AUTO_INCREMENT, + `uid` INT(8) NOT NULL, + `pic_id` INT(8) NOT NULL, + `grid_title` VARCHAR(120) NOT NULL, + `grid_data` VARCHAR(255) NOT NULL, + `grid_date` INT(10) NOT NULL, + PRIMARY KEY (`grid_id`), + KEY `uid` (`uid`, `pic_id`) +) + ENGINE =MyISAM; -CREATE TABLE `album_picture` ( - `pic_id` int(8) NOT NULL auto_increment, - `uid` int(8) NOT NULL, - `album_id` int(8) NOT NULL, - `pic_name` varchar(32) NOT NULL, - `pic_desc` varchar(255) NOT NULL, - `pic_filename` varchar(255) NOT NULL, - `pic_filetype` varchar(64) NOT NULL, - `pic_thumbfirst` varchar(255) NOT NULL, - `pic_thumbsecond` varchar(255) NOT NULL, - `pic_size` int(8) NOT NULL, - `pic_dateline` int(10) NOT NULL, - `pic_comments` smallint(6) NOT NULL, - `pic_downloads` smallint(6) NOT NULL, - PRIMARY KEY (`pic_id`), +CREATE TABLE `picture` ( + `pic_id` INT(8) NOT NULL AUTO_INCREMENT, + `uid` INT(8) NOT NULL, + `album_id` INT(8) NOT NULL, + `pic_name` VARCHAR(32) NOT NULL, + `pic_desc` VARCHAR(255) NOT NULL, + `pic_filename` VARCHAR(255) NOT NULL, + `pic_filetype` VARCHAR(64) NOT NULL, + `pic_thumbfirst` VARCHAR(255) NOT NULL, + `pic_thumbsecond` VARCHAR(255) NOT NULL, + `pic_size` INT(8) NOT NULL, + `pic_dateline` INT(10) NOT NULL, + `pic_comments` SMALLINT(6) NOT NULL, + `pic_downloads` SMALLINT(6) NOT NULL, + PRIMARY KEY (`pic_id`), KEY `album_id` (`album_id`), KEY `uid` (`uid`) -) ENGINE=MyISAM; \ No newline at end of file +) + ENGINE =MyISAM; Modified: XoopsModules/xoopsheadline/branches/ZySpec/xoopsheadline/sql/mysql.sql =================================================================== --- XoopsModules/xoopsheadline/branches/ZySpec/xoopsheadline/sql/mysql.sql 2014-05-12 14:20:13 UTC (rev 12528) +++ XoopsModules/xoopsheadline/branches/ZySpec/xoopsheadline/sql/mysql.sql 2014-05-13 09:47:33 UTC (rev 12529) @@ -13,7 +13,7 @@ headline_mainmax tinyint(2) unsigned NOT NULL default '10', headline_blockimg tinyint(1) unsigned NOT NULL default '0', headline_blockmax tinyint(2) unsigned NOT NULL default '10', - headline_xml text NOT NULL default '', + headline_xml text NOT NULL, headline_updated int(10) NOT NULL default'0', PRIMARY KEY (headline_id) ) ENGINE=MyISAM; Modified: XoopsModules/xoopsheadline/trunk/xoopsheadline/sql/mysql.sql =================================================================== --- XoopsModules/xoopsheadline/trunk/xoopsheadline/sql/mysql.sql 2014-05-12 14:20:13 UTC (rev 12528) +++ XoopsModules/xoopsheadline/trunk/xoopsheadline/sql/mysql.sql 2014-05-13 09:47:33 UTC (rev 12529) @@ -13,7 +13,7 @@ headline_mainmax tinyint(2) unsigned NOT NULL default '10', headline_blockimg tinyint(1) unsigned NOT NULL default '0', headline_blockmax tinyint(2) unsigned NOT NULL default '10', - headline_xml text NOT NULL default '', + headline_xml text NOT NULL, headline_updated int(10) NOT NULL default'0', PRIMARY KEY (headline_id) ) ENGINE=MyISAM; Modified: XoopsModules/xoopspoll/branches/zyspec/sql/mysql.sql =================================================================== --- XoopsModules/xoopspoll/branches/zyspec/sql/mysql.sql 2014-05-12 14:20:13 UTC (rev 12528) +++ XoopsModules/xoopspoll/branches/zyspec/sql/mysql.sql 2014-05-13 09:47:33 UTC (rev 12529) @@ -21,7 +21,7 @@ CREATE TABLE mod_xoopspoll_desc ( poll_id mediumint(8) unsigned NOT null auto_increment, question varchar(255) NOT null default '', - description tinytext NOT null default '', + description tinytext NOT NULL, user_id int(5) unsigned NOT null default '0', start_time int(10) unsigned NOT null default '0', end_time int(10) unsigned NOT null default '0', Modified: XoopsModules/xoopstube/trunk/xoopstube/sql/xoopstube.sql =================================================================== --- XoopsModules/xoopstube/trunk/xoopstube/sql/xoopstube.sql 2014-05-12 14:20:13 UTC (rev 12528) +++ XoopsModules/xoopstube/trunk/xoopstube/sql/xoopstube.sql 2014-05-13 09:47:33 UTC (rev 12529) @@ -114,8 +114,8 @@ `vidrating` tinyint(1) NOT NULL default '0', `time` varchar(7) NOT NULL default '0:00:00', `keywords` varchar(255) NOT NULL default '', - `item_tag` text NOT NULL default '', - `picurl` text NOT NULL default '', + `item_tag` text NOT NULL, + `picurl` text NOT NULL, PRIMARY KEY (`requestid`) ) ENGINE=MyISAM COMMENT='XoopsTube by McDonald' AUTO_INCREMENT=1 ; @@ -149,8 +149,8 @@ `vidrating` tinyint(1) NOT NULL default '0', `time` varchar(7) NOT NULL default '0:00:00', `keywords` varchar(255) NOT NULL default '', - `item_tag` text NOT NULL default '', - `picurl` text NOT NULL default '', + `item_tag` text NOT NULL, + `picurl` text NOT NULL, PRIMARY KEY (`lid`), KEY `cid` (`cid`), KEY `status` (`status`), |
From: <wis...@us...> - 2014-10-13 19:10:50
|
Revision: 12815 http://sourceforge.net/p/xoops/svn/12815 Author: wishcraft Date: 2014-10-13 19:09:46 +0000 (Mon, 13 Oct 2014) Log Message: ----------- Update Releases from labs.coop ~ Chronolabs Cooperative Added Paths: ----------- XoopsModules/signed/ XoopsModules/signed/releases/ XoopsModules/signed/releases/1.11/ XoopsModules/signed/releases/1.11/modules/ XoopsModules/signed/releases/1.11/modules/index.html XoopsModules/signed/releases/1.11/modules/signed/ XoopsModules/signed/releases/1.11/modules/signed/.htaccess XoopsModules/signed/releases/1.11/modules/signed/admin/ XoopsModules/signed/releases/1.11/modules/signed/admin/about.php XoopsModules/signed/releases/1.11/modules/signed/admin/admin.php XoopsModules/signed/releases/1.11/modules/signed/admin/admin_footer.php XoopsModules/signed/releases/1.11/modules/signed/admin/admin_header.php XoopsModules/signed/releases/1.11/modules/signed/admin/events.php XoopsModules/signed/releases/1.11/modules/signed/admin/index.html XoopsModules/signed/releases/1.11/modules/signed/admin/menu.php XoopsModules/signed/releases/1.11/modules/signed/admin/signatures.php XoopsModules/signed/releases/1.11/modules/signed/api/ XoopsModules/signed/releases/1.11/modules/signed/api/banned/ XoopsModules/signed/releases/1.11/modules/signed/api/banned/.htaccess XoopsModules/signed/releases/1.11/modules/signed/api/banned/index.php XoopsModules/signed/releases/1.11/modules/signed/api/classes/ XoopsModules/signed/releases/1.11/modules/signed/api/classes/.htaccess XoopsModules/signed/releases/1.11/modules/signed/api/classes/index.php XoopsModules/signed/releases/1.11/modules/signed/api/descriptions/ XoopsModules/signed/releases/1.11/modules/signed/api/descriptions/.htaccess XoopsModules/signed/releases/1.11/modules/signed/api/descriptions/index.php XoopsModules/signed/releases/1.11/modules/signed/api/enumerators/ XoopsModules/signed/releases/1.11/modules/signed/api/enumerators/.htaccess XoopsModules/signed/releases/1.11/modules/signed/api/enumerators/index.php XoopsModules/signed/releases/1.11/modules/signed/api/fields/ XoopsModules/signed/releases/1.11/modules/signed/api/fields/.htaccess XoopsModules/signed/releases/1.11/modules/signed/api/fields/index.php XoopsModules/signed/releases/1.11/modules/signed/api/fieldtypes/ XoopsModules/signed/releases/1.11/modules/signed/api/fieldtypes/.htaccess XoopsModules/signed/releases/1.11/modules/signed/api/fieldtypes/index.php XoopsModules/signed/releases/1.11/modules/signed/api/identifications/ XoopsModules/signed/releases/1.11/modules/signed/api/identifications/.htaccess XoopsModules/signed/releases/1.11/modules/signed/api/identifications/index.php XoopsModules/signed/releases/1.11/modules/signed/api/index.php XoopsModules/signed/releases/1.11/modules/signed/api/language/ XoopsModules/signed/releases/1.11/modules/signed/api/language/.htaccess XoopsModules/signed/releases/1.11/modules/signed/api/language/index.php XoopsModules/signed/releases/1.11/modules/signed/api/languages/ XoopsModules/signed/releases/1.11/modules/signed/api/languages/.htaccess XoopsModules/signed/releases/1.11/modules/signed/api/languages/index.php XoopsModules/signed/releases/1.11/modules/signed/api/processes/ XoopsModules/signed/releases/1.11/modules/signed/api/processes/.htaccess XoopsModules/signed/releases/1.11/modules/signed/api/processes/index.php XoopsModules/signed/releases/1.11/modules/signed/api/prompts/ XoopsModules/signed/releases/1.11/modules/signed/api/prompts/.htaccess XoopsModules/signed/releases/1.11/modules/signed/api/prompts/index.php XoopsModules/signed/releases/1.11/modules/signed/api/providers/ XoopsModules/signed/releases/1.11/modules/signed/api/providers/.htaccess XoopsModules/signed/releases/1.11/modules/signed/api/providers/index.php XoopsModules/signed/releases/1.11/modules/signed/api/request/ XoopsModules/signed/releases/1.11/modules/signed/api/request/.htaccess XoopsModules/signed/releases/1.11/modules/signed/api/request/index.php XoopsModules/signed/releases/1.11/modules/signed/api/sign/ XoopsModules/signed/releases/1.11/modules/signed/api/sign/.htaccess XoopsModules/signed/releases/1.11/modules/signed/api/sign/index.php XoopsModules/signed/releases/1.11/modules/signed/api/signatures/ XoopsModules/signed/releases/1.11/modules/signed/api/signatures/.htaccess XoopsModules/signed/releases/1.11/modules/signed/api/signatures/index.php XoopsModules/signed/releases/1.11/modules/signed/api/sites/ XoopsModules/signed/releases/1.11/modules/signed/api/sites/.htaccess XoopsModules/signed/releases/1.11/modules/signed/api/sites/index.php XoopsModules/signed/releases/1.11/modules/signed/api/states/ XoopsModules/signed/releases/1.11/modules/signed/api/states/.htaccess XoopsModules/signed/releases/1.11/modules/signed/api/states/index.php XoopsModules/signed/releases/1.11/modules/signed/api/validate.php XoopsModules/signed/releases/1.11/modules/signed/api/validations/ XoopsModules/signed/releases/1.11/modules/signed/api/validations/.htaccess XoopsModules/signed/releases/1.11/modules/signed/api/validations/index.php XoopsModules/signed/releases/1.11/modules/signed/api/verification/ XoopsModules/signed/releases/1.11/modules/signed/api/verification/.htaccess XoopsModules/signed/releases/1.11/modules/signed/api/verification/index.php XoopsModules/signed/releases/1.11/modules/signed/api/verify/ XoopsModules/signed/releases/1.11/modules/signed/api/verify/.htaccess XoopsModules/signed/releases/1.11/modules/signed/api/verify/index.php XoopsModules/signed/releases/1.11/modules/signed/class/ XoopsModules/signed/releases/1.11/modules/signed/class/cache/ XoopsModules/signed/releases/1.11/modules/signed/class/cache/apc.php XoopsModules/signed/releases/1.11/modules/signed/class/cache/file.php XoopsModules/signed/releases/1.11/modules/signed/class/cache/index.html XoopsModules/signed/releases/1.11/modules/signed/class/cache/memcache.php XoopsModules/signed/releases/1.11/modules/signed/class/cache/model.php XoopsModules/signed/releases/1.11/modules/signed/class/cache/signedcache.php XoopsModules/signed/releases/1.11/modules/signed/class/cache/xcache.php XoopsModules/signed/releases/1.11/modules/signed/class/captcha/ XoopsModules/signed/releases/1.11/modules/signed/class/captcha/config.image.php XoopsModules/signed/releases/1.11/modules/signed/class/captcha/config.php XoopsModules/signed/releases/1.11/modules/signed/class/captcha/config.recaptcha.php XoopsModules/signed/releases/1.11/modules/signed/class/captcha/config.text.php XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/ XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/backgrounds/ XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/backgrounds/background00.png XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/backgrounds/background01.png XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/backgrounds/background02.png XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/backgrounds/background03.png XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/backgrounds/background04.png XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/backgrounds/background05.png XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/backgrounds/background06.png XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/backgrounds/background07.png XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/backgrounds/background08.png XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/backgrounds/background09.png XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/backgrounds/background10.png XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/backgrounds/index.html XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/fonts/ XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/fonts/Vera.ttf XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/fonts/VeraBI.ttf XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/fonts/VeraBd.ttf XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/fonts/VeraIt.ttf XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/fonts/VeraMoBI.ttf XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/fonts/VeraMoBd.ttf XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/fonts/VeraMoIt.ttf XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/fonts/VeraMono.ttf XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/fonts/VeraSe.ttf XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/fonts/index.html XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/fonts/verasebd.ttf XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/index.html XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/scripts/ XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/scripts/image.php XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image/scripts/index.html XoopsModules/signed/releases/1.11/modules/signed/class/captcha/image.php XoopsModules/signed/releases/1.11/modules/signed/class/captcha/index.html XoopsModules/signed/releases/1.11/modules/signed/class/captcha/recaptcha/ XoopsModules/signed/releases/1.11/modules/signed/class/captcha/recaptcha/index.html XoopsModules/signed/releases/1.11/modules/signed/class/captcha/recaptcha/recaptchalib.php XoopsModules/signed/releases/1.11/modules/signed/class/captcha/recaptcha.php XoopsModules/signed/releases/1.11/modules/signed/class/captcha/signedcaptcha.php XoopsModules/signed/releases/1.11/modules/signed/class/captcha/text.php XoopsModules/signed/releases/1.11/modules/signed/class/event_links.php XoopsModules/signed/releases/1.11/modules/signed/class/events.php XoopsModules/signed/releases/1.11/modules/signed/class/file/ XoopsModules/signed/releases/1.11/modules/signed/class/file/file.php XoopsModules/signed/releases/1.11/modules/signed/class/file/folder.php XoopsModules/signed/releases/1.11/modules/signed/class/file/index.html XoopsModules/signed/releases/1.11/modules/signed/class/file/signedfile.php XoopsModules/signed/releases/1.11/modules/signed/class/index.html XoopsModules/signed/releases/1.11/modules/signed/class/mail/ XoopsModules/signed/releases/1.11/modules/signed/class/mail/index.html XoopsModules/signed/releases/1.11/modules/signed/class/mail/phpmailer/ XoopsModules/signed/releases/1.11/modules/signed/class/mail/phpmailer/ChangeLog.txt XoopsModules/signed/releases/1.11/modules/signed/class/mail/phpmailer/LICENSE XoopsModules/signed/releases/1.11/modules/signed/class/mail/phpmailer/README XoopsModules/signed/releases/1.11/modules/signed/class/mail/phpmailer/class.phpmailer.php XoopsModules/signed/releases/1.11/modules/signed/class/mail/phpmailer/class.pop3.php XoopsModules/signed/releases/1.11/modules/signed/class/mail/phpmailer/class.smtp.php XoopsModules/signed/releases/1.11/modules/signed/class/mail/phpmailer/docs.ini XoopsModules/signed/releases/1.11/modules/signed/class/mail/phpmailer/index.html XoopsModules/signed/releases/1.11/modules/signed/class/mail/phpmailer/language/ XoopsModules/signed/releases/1.11/modules/signed/class/mail/phpmailer/language/index.html XoopsModules/signed/releases/1.11/modules/signed/class/mail/phpmailer/language/phpmailer.lang-en.php XoopsModules/signed/releases/1.11/modules/signed/class/mail/signedmultimailer.php XoopsModules/signed/releases/1.11/modules/signed/class/mobile/ XoopsModules/signed/releases/1.11/modules/signed/class/mobile/handlers/ XoopsModules/signed/releases/1.11/modules/signed/class/mobile/handlers/index.html XoopsModules/signed/releases/1.11/modules/signed/class/mobile/handlers/sms.cardboardfish.php XoopsModules/signed/releases/1.11/modules/signed/class/mobile/index.html XoopsModules/signed/releases/1.11/modules/signed/class/mobile/plugin/ XoopsModules/signed/releases/1.11/modules/signed/class/mobile/plugin/index.html XoopsModules/signed/releases/1.11/modules/signed/class/mobile/signedsmscontroller.php XoopsModules/signed/releases/1.11/modules/signed/class/mobile/signedsmsmobile.php XoopsModules/signed/releases/1.11/modules/signed/class/qcp/ XoopsModules/signed/releases/1.11/modules/signed/class/qcp/index.html XoopsModules/signed/releases/1.11/modules/signed/class/qcp/qcp.base.php XoopsModules/signed/releases/1.11/modules/signed/class/qcp/qcp.class.php XoopsModules/signed/releases/1.11/modules/signed/class/qcp/qcp.enumerator.php XoopsModules/signed/releases/1.11/modules/signed/class/qcp/qcp.leaver-beaver.php XoopsModules/signed/releases/1.11/modules/signed/class/signatures.php XoopsModules/signed/releases/1.11/modules/signed/class/signedapi.php XoopsModules/signed/releases/1.11/modules/signed/class/signedarrays.php XoopsModules/signed/releases/1.11/modules/signed/class/signedcanvas.php XoopsModules/signed/releases/1.11/modules/signed/class/signedciphers.php XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/dhtmltextarea/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/dhtmltextarea/dhtmltextarea.php XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/dhtmltextarea/editor_registry.php XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/dhtmltextarea/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/dhtmltextarea/language/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/dhtmltextarea/language/english.php XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/dhtmltextarea/language/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/readme.txt XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/sampleform.inc.php XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/signededitor.inc.php XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/signededitor.php XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/textarea/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/textarea/editor_registry.php XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/textarea/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/textarea/language/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/textarea/language/english.php XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/textarea/language/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/textarea/textarea.php XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/editor_registry.php XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/formtinymce.php XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/include/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/include/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/include/xoopscode.php XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/include/xoopsemotions.php XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/include/xoopsimagemanager.php XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/include/xoopsmlcontent.php XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/include/xoopsquote.php XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/language/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/language/english.php XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/language/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/settings.php XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/style.css XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/changelog.txt XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/langs/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/langs/en.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/langs/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/license.txt XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advhr/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advhr/css/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advhr/css/advhr.css XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advhr/css/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advhr/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advhr/js/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advhr/js/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advhr/js/rule.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advhr/langs/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advhr/langs/en_dlg.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advhr/langs/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advhr/rule.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advimage/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advimage/css/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advimage/css/advimage.css XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advimage/css/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advimage/img/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advimage/img/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advimage/img/sample.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advimage/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advimage/js/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advimage/js/image.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advimage/js/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advimage/langs/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advimage/langs/en_dlg.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advimage/langs/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advlink/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advlink/css/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advlink/css/advlink.css XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advlink/css/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advlink/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advlink/js/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advlink/js/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advlink/langs/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advlink/langs/en_dlg.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advlink/langs/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advlist/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advlist/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/advlist/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/autolink/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/autolink/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/autolink/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/autoresize/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/autoresize/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/autoresize/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/autosave/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/autosave/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/bbcode/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/bbcode/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/contextmenu/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/contextmenu/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/directionality/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/directionality/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/emotions.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/img/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/img/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cry.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-frown.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-smile.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-wink.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-yell.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/js/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/js/emotions.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/js/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/langs/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/langs/en_dlg.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/langs/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/example/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/example/dialog.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/example/img/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/example/img/example.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/example/img/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/example/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/example/js/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/example/js/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/example/langs/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/example/langs/en.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/example/langs/en_dlg.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/example/langs/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/example_dependency/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/example_dependency/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/example_dependency/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/fullpage/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/fullpage/css/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/fullpage/css/fullpage.css XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/fullpage/css/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/fullpage/fullpage.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/fullpage/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/fullpage/js/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/fullpage/js/fullpage.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/fullpage/js/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/fullpage/langs/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/fullpage/langs/en_dlg.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/fullpage/langs/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/fullscreen/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/fullscreen/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/fullscreen/fullscreen.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/fullscreen/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/iespell/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/iespell/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/iespell/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/inlinepopups/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/inlinepopups/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/inlinepopups/template.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/insertdatetime/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/insertdatetime/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/layer/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/layer/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/layer/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/legacyoutput/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/legacyoutput/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/legacyoutput/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/lists/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/lists/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/lists/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/css/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/css/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/css/media.css XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/js/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/js/embed.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/js/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/js/media.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/langs/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/langs/en_dlg.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/langs/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/media.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/moxieplayer.swf XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/nonbreaking/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/nonbreaking/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/noneditable/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/noneditable/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/pagebreak/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/pagebreak/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/pagebreak/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/paste/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/paste/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/paste/js/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/paste/js/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/paste/js/pastetext.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/paste/js/pasteword.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/paste/langs/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/paste/langs/en_dlg.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/paste/langs/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/paste/pastetext.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/paste/pasteword.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/preview/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/preview/example.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/preview/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/preview/jscripts/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/preview/jscripts/embed.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/preview/jscripts/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/preview/preview.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/print/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/print/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/print/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/save/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/save/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/save/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/searchreplace/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/searchreplace/css/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/searchreplace/css/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/searchreplace/css/searchreplace.css XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/searchreplace/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/searchreplace/js/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/searchreplace/js/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/searchreplace/js/searchreplace.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/searchreplace/langs/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/searchreplace/langs/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/searchreplace/searchreplace.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/spellchecker/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/spellchecker/css/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/spellchecker/css/content.css XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/spellchecker/css/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/spellchecker/img/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/spellchecker/img/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/spellchecker/img/wline.gif XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/spellchecker/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/css/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/css/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/css/props.css XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/js/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/js/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/js/props.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/langs/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/langs/en_dlg.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/langs/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/props.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/readme.txt XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/tabfocus/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/tabfocus/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/tabfocus/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/cell.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/css/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/css/cell.css XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/css/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/css/row.css XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/css/table.css XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/js/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/js/cell.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/js/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/js/merge_cells.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/js/row.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/js/table.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/langs/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/langs/en_dlg.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/langs/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/merge_cells.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/row.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/table.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/template/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/template/blank.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/template/css/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/template/css/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/template/css/template.css XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/template/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/template/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/template/js/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/template/js/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/template/js/template.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/template/langs/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/template/langs/en_dlg.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/template/langs/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/template/template.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/visualblocks/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/visualblocks/css/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/visualblocks/css/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/visualblocks/css/visualblocks.css XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/visualblocks/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/visualblocks/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/visualchars/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/visualchars/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/visualchars/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/wordcount/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/wordcount/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/wordcount/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/abbr.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/acronym.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/attributes.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/cite.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/popup.css XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/del.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/index.html XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ins.htm XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/ XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js XoopsModules/signed/releases/1.11/modules/signed/class/signededitor/tinymce/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js XoopsModules/signed/releases/1.11/modules/signed/cla... [truncated message content] |
From: <wis...@us...> - 2014-10-19 21:17:59
|
Revision: 12817 http://sourceforge.net/p/xoops/svn/12817 Author: wishcraft Date: 2014-10-19 21:17:38 +0000 (Sun, 19 Oct 2014) Log Message: ----------- XOOPS Rooms Chatting IRC Style Chat all in PHP Added Paths: ----------- XoopsModules/xalky/ XoopsModules/xalky/branches/ XoopsModules/xalky/releases/ XoopsModules/xalky/tags/ XoopsModules/xalky/trunk/ XoopsModules/xalky/trunk/modules/ XoopsModules/xalky/trunk/modules/index.html XoopsModules/xalky/trunk/modules/xalky/ XoopsModules/xalky/trunk/modules/xalky/.htaccess XoopsModules/xalky/trunk/modules/xalky/.htaccess_500 XoopsModules/xalky/trunk/modules/xalky/.htaccess_501 XoopsModules/xalky/trunk/modules/xalky/admin/ XoopsModules/xalky/trunk/modules/xalky/admin/index.html XoopsModules/xalky/trunk/modules/xalky/class/ XoopsModules/xalky/trunk/modules/xalky/class/bans.php XoopsModules/xalky/trunk/modules/xalky/class/index.html XoopsModules/xalky/trunk/modules/xalky/class/invitations.php XoopsModules/xalky/trunk/modules/xalky/class/messages.php XoopsModules/xalky/trunk/modules/xalky/class/online.php XoopsModules/xalky/trunk/modules/xalky/css/ XoopsModules/xalky/trunk/modules/xalky/css/Cobalt.css XoopsModules/xalky/trunk/modules/xalky/css/Core.css XoopsModules/xalky/trunk/modules/xalky/css/Lithium.css XoopsModules/xalky/trunk/modules/xalky/css/Mercury.css XoopsModules/xalky/trunk/modules/xalky/css/MyBB.css XoopsModules/xalky/trunk/modules/xalky/css/Oxygen.css XoopsModules/xalky/trunk/modules/xalky/css/Radium.css XoopsModules/xalky/trunk/modules/xalky/css/Sulfur.css XoopsModules/xalky/trunk/modules/xalky/css/beige.css XoopsModules/xalky/trunk/modules/xalky/css/black.css XoopsModules/xalky/trunk/modules/xalky/css/borders.css XoopsModules/xalky/trunk/modules/xalky/css/fonts.css XoopsModules/xalky/trunk/modules/xalky/css/grey.css XoopsModules/xalky/trunk/modules/xalky/css/ie5-6.css XoopsModules/xalky/trunk/modules/xalky/css/index.html XoopsModules/xalky/trunk/modules/xalky/css/misc.css XoopsModules/xalky/trunk/modules/xalky/css/positions.css XoopsModules/xalky/trunk/modules/xalky/css/print.css XoopsModules/xalky/trunk/modules/xalky/css/prosilver.css XoopsModules/xalky/trunk/modules/xalky/css/subSilver.css XoopsModules/xalky/trunk/modules/xalky/css/subblack2.css XoopsModules/xalky/trunk/modules/xalky/css/subsilver2.css XoopsModules/xalky/trunk/modules/xalky/css/vBulletin.css XoopsModules/xalky/trunk/modules/xalky/docs/ XoopsModules/xalky/trunk/modules/xalky/flash/ XoopsModules/xalky/trunk/modules/xalky/flash/FABridge.swf XoopsModules/xalky/trunk/modules/xalky/flash/index.html XoopsModules/xalky/trunk/modules/xalky/images/ XoopsModules/xalky/trunk/modules/xalky/images/audio-off.png XoopsModules/xalky/trunk/modules/xalky/images/audio.png XoopsModules/xalky/trunk/modules/xalky/images/autoscroll-off.png XoopsModules/xalky/trunk/modules/xalky/images/autoscroll.png XoopsModules/xalky/trunk/modules/xalky/images/delete.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/ XoopsModules/xalky/trunk/modules/xalky/images/emoticons/angel.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/confused.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/cool.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/crying.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/devilish.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/eek.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/error.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/favorite.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/glasses.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/grin.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/help.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/idea.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/important.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/index.html XoopsModules/xalky/trunk/modules/xalky/images/emoticons/kiss.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/monkey.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/plain.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/razz.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/sad.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/smile-big.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/smile.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/surprise.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/warning.png XoopsModules/xalky/trunk/modules/xalky/images/emoticons/wink.png XoopsModules/xalky/trunk/modules/xalky/images/help.png XoopsModules/xalky/trunk/modules/xalky/images/index.html XoopsModules/xalky/trunk/modules/xalky/images/license.txt XoopsModules/xalky/trunk/modules/xalky/images/loading-done.png XoopsModules/xalky/trunk/modules/xalky/images/loading-trouble.png XoopsModules/xalky/trunk/modules/xalky/images/loading.png XoopsModules/xalky/trunk/modules/xalky/images/pixel.gif XoopsModules/xalky/trunk/modules/xalky/images/playback.png XoopsModules/xalky/trunk/modules/xalky/images/settings.png XoopsModules/xalky/trunk/modules/xalky/images/users.png XoopsModules/xalky/trunk/modules/xalky/include/ XoopsModules/xalky/trunk/modules/xalky/include/.htaccess XoopsModules/xalky/trunk/modules/xalky/include/classes.php XoopsModules/xalky/trunk/modules/xalky/include/config.php XoopsModules/xalky/trunk/modules/xalky/include/custom.php XoopsModules/xalky/trunk/modules/xalky/include/index.html XoopsModules/xalky/trunk/modules/xalky/include/paths.php XoopsModules/xalky/trunk/modules/xalky/index.php XoopsModules/xalky/trunk/modules/xalky/js/ XoopsModules/xalky/trunk/modules/xalky/js/FABridge.js XoopsModules/xalky/trunk/modules/xalky/js/chat.js XoopsModules/xalky/trunk/modules/xalky/js/config.js XoopsModules/xalky/trunk/modules/xalky/js/custom.js XoopsModules/xalky/trunk/modules/xalky/js/index.html XoopsModules/xalky/trunk/modules/xalky/js/lang/ XoopsModules/xalky/trunk/modules/xalky/js/lang/ar.js XoopsModules/xalky/trunk/modules/xalky/js/lang/bg.js XoopsModules/xalky/trunk/modules/xalky/js/lang/bp.js XoopsModules/xalky/trunk/modules/xalky/js/lang/ca.js XoopsModules/xalky/trunk/modules/xalky/js/lang/cy.js XoopsModules/xalky/trunk/modules/xalky/js/lang/cz.js XoopsModules/xalky/trunk/modules/xalky/js/lang/de.js XoopsModules/xalky/trunk/modules/xalky/js/lang/dk.js XoopsModules/xalky/trunk/modules/xalky/js/lang/el.js XoopsModules/xalky/trunk/modules/xalky/js/lang/en.js XoopsModules/xalky/trunk/modules/xalky/js/lang/es.js XoopsModules/xalky/trunk/modules/xalky/js/lang/fi.js XoopsModules/xalky/trunk/modules/xalky/js/lang/fr.js XoopsModules/xalky/trunk/modules/xalky/js/lang/gl.js XoopsModules/xalky/trunk/modules/xalky/js/lang/he.js XoopsModules/xalky/trunk/modules/xalky/js/lang/hr.js XoopsModules/xalky/trunk/modules/xalky/js/lang/hu.js XoopsModules/xalky/trunk/modules/xalky/js/lang/in.js XoopsModules/xalky/trunk/modules/xalky/js/lang/index.html XoopsModules/xalky/trunk/modules/xalky/js/lang/it.js XoopsModules/xalky/trunk/modules/xalky/js/lang/ja.js XoopsModules/xalky/trunk/modules/xalky/js/lang/ka.js XoopsModules/xalky/trunk/modules/xalky/js/lang/kr.js XoopsModules/xalky/trunk/modules/xalky/js/lang/nl.js XoopsModules/xalky/trunk/modules/xalky/js/lang/no.js XoopsModules/xalky/trunk/modules/xalky/js/lang/pl.js XoopsModules/xalky/trunk/modules/xalky/js/lang/ro.js XoopsModules/xalky/trunk/modules/xalky/js/lang/ru.js XoopsModules/xalky/trunk/modules/xalky/js/lang/sk.js XoopsModules/xalky/trunk/modules/xalky/js/lang/sl.js XoopsModules/xalky/trunk/modules/xalky/js/lang/sr.js XoopsModules/xalky/trunk/modules/xalky/js/lang/sv.js XoopsModules/xalky/trunk/modules/xalky/js/lang/tr.js XoopsModules/xalky/trunk/modules/xalky/js/lang/uk.js XoopsModules/xalky/trunk/modules/xalky/js/lang/zh-tw.js XoopsModules/xalky/trunk/modules/xalky/js/lang/zh.js XoopsModules/xalky/trunk/modules/xalky/js/modal.js XoopsModules/xalky/trunk/modules/xalky/language/ XoopsModules/xalky/trunk/modules/xalky/language/english/ XoopsModules/xalky/trunk/modules/xalky/language/english/admin.php XoopsModules/xalky/trunk/modules/xalky/language/english/index.html XoopsModules/xalky/trunk/modules/xalky/language/english/main.php XoopsModules/xalky/trunk/modules/xalky/language/english/modinfo.php XoopsModules/xalky/trunk/modules/xalky/language/english/style.css XoopsModules/xalky/trunk/modules/xalky/language/index.html XoopsModules/xalky/trunk/modules/xalky/socket/ XoopsModules/xalky/trunk/modules/xalky/socket/.htaccess XoopsModules/xalky/trunk/modules/xalky/socket/server XoopsModules/xalky/trunk/modules/xalky/socket/server.conf XoopsModules/xalky/trunk/modules/xalky/socket/server.rb XoopsModules/xalky/trunk/modules/xalky/sounds/ XoopsModules/xalky/trunk/modules/xalky/sounds/index.html XoopsModules/xalky/trunk/modules/xalky/sounds/license.txt XoopsModules/xalky/trunk/modules/xalky/sounds/sound_1.mp3 XoopsModules/xalky/trunk/modules/xalky/sounds/sound_2.mp3 XoopsModules/xalky/trunk/modules/xalky/sounds/sound_3.mp3 XoopsModules/xalky/trunk/modules/xalky/sounds/sound_4.mp3 XoopsModules/xalky/trunk/modules/xalky/sounds/sound_5.mp3 XoopsModules/xalky/trunk/modules/xalky/sounds/sound_6.mp3 XoopsModules/xalky/trunk/modules/xalky/sql/ XoopsModules/xalky/trunk/modules/xalky/sql/chat.sql XoopsModules/xalky/trunk/modules/xalky/src/ XoopsModules/xalky/trunk/modules/xalky/src/EmptySwf.as XoopsModules/xalky/trunk/modules/xalky/src/FABridge.as XoopsModules/xalky/trunk/modules/xalky/src/index.html XoopsModules/xalky/trunk/modules/xalky/templates/ XoopsModules/xalky/trunk/modules/xalky/templates/xalky_loggedin.html XoopsModules/xalky/trunk/modules/xalky/templates/xalky_loggedout.html XoopsModules/xalky/trunk/modules/xalky/xoops_version.php XoopsModules/xalky/trunk/xoops_data/ XoopsModules/xalky/trunk/xoops_data/.htaccess XoopsModules/xalky/trunk/xoops_data/readme.txt XoopsModules/xalky/trunk/xoops_data/xalky/ XoopsModules/xalky/trunk/xoops_lib/ XoopsModules/xalky/trunk/xoops_lib/.htaccess XoopsModules/xalky/trunk/xoops_lib/index.html XoopsModules/xalky/trunk/xoops_lib/modules/ XoopsModules/xalky/trunk/xoops_lib/modules/index.html XoopsModules/xalky/trunk/xoops_lib/modules/xalky/ XoopsModules/xalky/trunk/xoops_lib/modules/xalky/class/ XoopsModules/xalky/trunk/xoops_lib/modules/xalky/class/Xalky.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/class/XalkyEncoding.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/class/XalkyFileSystem.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/class/XalkyHTTPHeader.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/class/XalkyLanguage.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/class/XalkyString.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/class/XalkyTemplate.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/class/Xoops.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/class/XoopsInterface.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/class/index.html XoopsModules/xalky/trunk/xoops_lib/modules/xalky/data/ XoopsModules/xalky/trunk/xoops_lib/modules/xalky/data/channels.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/data/index.html XoopsModules/xalky/trunk/xoops_lib/modules/xalky/data/users.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/index.html XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/ XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/ar.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/bg.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/bp.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/ca.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/cy.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/cz.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/de.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/dk.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/el.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/en.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/es.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/fi.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/fr.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/gl.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/he.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/hr.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/hu.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/in.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/index.html XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/it.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/ja.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/ka.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/kr.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/nl.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/no.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/pl.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/ro.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/ru.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/sk.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/sl.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/sr.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/sv.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/tr.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/uk.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/zh-tw.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/lang/zh.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/templates/ XoopsModules/xalky/trunk/xoops_lib/modules/xalky/templates/index.html XoopsModules/xalky/trunk/xoops_lib/modules/xalky/templates/xalky_loggedin.php XoopsModules/xalky/trunk/xoops_lib/modules/xalky/templates/xalky_loggedout.php XoopsModules/xalky/trunk/xoops_lib/readme.txt Added: XoopsModules/xalky/trunk/modules/index.html =================================================================== --- XoopsModules/xalky/trunk/modules/index.html (rev 0) +++ XoopsModules/xalky/trunk/modules/index.html 2014-10-19 21:17:38 UTC (rev 12817) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/xalky/trunk/modules/xalky/.htaccess =================================================================== --- XoopsModules/xalky/trunk/modules/xalky/.htaccess (rev 0) +++ XoopsModules/xalky/trunk/modules/xalky/.htaccess 2014-10-19 21:17:38 UTC (rev 12817) @@ -0,0 +1,10 @@ +RewriteEngine On +RewriteCond %{SERVER_PORT} !^80$ +RewriteRule .http://%{SERVER_NAME}%{REQUEST_URI} [R,L=301] + +<Files ~ "^.(htaccess|htpasswd)$"> +deny from all +</Files> +AddCharset UTF-8 .utf8 +AddDefaultCharset UTF-8 +DirectoryIndex home.php index.php home.html index.html home.htm index.htm Added: XoopsModules/xalky/trunk/modules/xalky/.htaccess_500 =================================================================== --- XoopsModules/xalky/trunk/modules/xalky/.htaccess_500 (rev 0) +++ XoopsModules/xalky/trunk/modules/xalky/.htaccess_500 2014-10-19 21:17:38 UTC (rev 12817) @@ -0,0 +1,7 @@ +<Files ~ "^.(htaccess|htpasswd)$"> +deny from all +</Files> +AddCharset UTF-8 .utf8 +AddDefaultCharset UTF-8 +AddHandler application/x-httpd-php .php3 .php .shtml .html .htm +DirectoryIndex home.php index.php home.html index.html home.htm index.htm \ No newline at end of file Added: XoopsModules/xalky/trunk/modules/xalky/.htaccess_501 =================================================================== --- XoopsModules/xalky/trunk/modules/xalky/.htaccess_501 (rev 0) +++ XoopsModules/xalky/trunk/modules/xalky/.htaccess_501 2014-10-19 21:17:38 UTC (rev 12817) @@ -0,0 +1,15 @@ +<Files ~ "^.(htaccess|htpasswd)$"> +deny from all +</Files> +AddCharset UTF-8 .utf8 +AddDefaultCharset UTF-8 +AddHandler application/x-httpd-php .php3 .php .shtml .html .htm +DirectoryIndex home.php index.php home.html index.html home.htm index.htm +php_value allow_url_include on +php_value allow_url_fopen on +php_value register_long_arrays 1 +php_flag session.bug_compat_42 0 +php_flag session.bug_compat_warn 0 +php_flag session.use_trans_sid 1 +php_flag session.use_cookies 1 +php_flag display_errors 0 \ No newline at end of file Added: XoopsModules/xalky/trunk/modules/xalky/admin/index.html =================================================================== --- XoopsModules/xalky/trunk/modules/xalky/admin/index.html (rev 0) +++ XoopsModules/xalky/trunk/modules/xalky/admin/index.html 2014-10-19 21:17:38 UTC (rev 12817) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/xalky/trunk/modules/xalky/class/bans.php =================================================================== --- XoopsModules/xalky/trunk/modules/xalky/class/bans.php (rev 0) +++ XoopsModules/xalky/trunk/modules/xalky/class/bans.php 2014-10-19 21:17:38 UTC (rev 12817) @@ -0,0 +1,45 @@ +<?php +/* + * Chronolabs XOOPS Chat Module - xALKY + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + * @copyright Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package xalky + * @since 1.111 + * @author Antony Cipher <ci...@la...> + * @author Simon Roberts <me...@la...> + * @subpackage classes + * @description Chronolabs XOOPS Module for Chat and Walky Talky Services + * + */ + +class XalkyBans extends XoopsObject +{ + + function __construct() + { + $this->initVar('id', XOBJ_DTYPE_INT, null, true); + $this->initVar('userID', XOBJ_DTYPE_INT, null, false); + $this->initVar('userName', XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar('time', XOBJ_DTYPE_INT, 0, false); + $this->initVar('ip', XOBJ_DTYPE_OTHER, null); + } + +} + +class XalkyBansHandler extends XoopsPersistableObjectHandler +{ + + function __construct(&$db) + { + parent::__construct($db, "xalky_bans", "XalkyBans", "id"); + } + +} Added: XoopsModules/xalky/trunk/modules/xalky/class/index.html =================================================================== --- XoopsModules/xalky/trunk/modules/xalky/class/index.html (rev 0) +++ XoopsModules/xalky/trunk/modules/xalky/class/index.html 2014-10-19 21:17:38 UTC (rev 12817) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/xalky/trunk/modules/xalky/class/invitations.php =================================================================== --- XoopsModules/xalky/trunk/modules/xalky/class/invitations.php (rev 0) +++ XoopsModules/xalky/trunk/modules/xalky/class/invitations.php 2014-10-19 21:17:38 UTC (rev 12817) @@ -0,0 +1,44 @@ +<?php +/* + * Chronolabs XOOPS Chat Module - xALKY + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + * @copyright Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package xalky + * @since 1.111 + * @author Antony Cipher <ci...@la...> + * @author Simon Roberts <me...@la...> + * @subpackage classes + * @description Chronolabs XOOPS Module for Chat and Walky Talky Services + * + */ + +class XalkyInvitations extends XoopsObject +{ + + function __construct() + { + $this->initVar('id', XOBJ_DTYPE_INT, null, true); + $this->initVar('userID', XOBJ_DTYPE_INT, null, false); + $this->initVar('channel', XOBJ_DTYPE_INT, 0, false); + $this->initVar('time', XOBJ_DTYPE_INT, 0, false); + } + +} + +class XalkyInvitationsHandler extends XoopsPersistableObjectHandler +{ + + function __construct(&$db) + { + parent::__construct($db, "xalky_invitations", "XalkyInvitations", "id"); + } + +} Added: XoopsModules/xalky/trunk/modules/xalky/class/messages.php =================================================================== --- XoopsModules/xalky/trunk/modules/xalky/class/messages.php (rev 0) +++ XoopsModules/xalky/trunk/modules/xalky/class/messages.php 2014-10-19 21:17:38 UTC (rev 12817) @@ -0,0 +1,49 @@ +<?php +/* + * Chronolabs XOOPS Chat Module - xALKY + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + * @copyright Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package xalky + * @since 1.111 + * @author Antony Cipher <ci...@la...> + * @author Simon Roberts <me...@la...> + * @subpackage classes + * @description Chronolabs XOOPS Module for Chat and Walky Talky Services + * + */ + +class XalkyMessages extends XoopsObject +{ + + function __construct() + { + $this->initVar('id', XOBJ_DTYPE_INT, null, true); + $this->initVar('userID', XOBJ_DTYPE_INT, null, false); + $this->initVar('userName', XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar('userID', XOBJ_DTYPE_INT, 0, false); + $this->initVar('userRole', XOBJ_DTYPE_INT, 0, false); + $this->initVar('channel', XOBJ_DTYPE_INT, 0, false); + $this->initVar('time', XOBJ_DTYPE_INT, 0, false); + $this->initVar('ip', XOBJ_DTYPE_OTHER, null); + $this->initVar('text', XOBJ_DTYPE_OTHER, null); + } + +} + +class XalkyMessagesHandler extends XoopsPersistableObjectHandler +{ + + function __construct(&$db) + { + parent::__construct($db, "xalky_messages", "XalkyMessages", "id"); + } + +} \ No newline at end of file Added: XoopsModules/xalky/trunk/modules/xalky/class/online.php =================================================================== --- XoopsModules/xalky/trunk/modules/xalky/class/online.php (rev 0) +++ XoopsModules/xalky/trunk/modules/xalky/class/online.php 2014-10-19 21:17:38 UTC (rev 12817) @@ -0,0 +1,64 @@ +<?php +/* + * Chronolabs XOOPS Chat Module - xALKY + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + * @copyright Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package xalky + * @since 1.111 + * @author Antony Cipher <ci...@la...> + * @author Simon Roberts <me...@la...> + * @subpackage classes + * @description Chronolabs XOOPS Module for Chat and Walky Talky Services + * + */ + +class XalkyOnline extends XoopsObject +{ + + function __construct() + { + $this->initVar('id', XOBJ_DTYPE_INT, null, true); + $this->initVar('userID', XOBJ_DTYPE_INT, null, false); + $this->initVar('userName', XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar('userID', XOBJ_DTYPE_INT, 0, false); + $this->initVar('userRole', XOBJ_DTYPE_INT, 0, false); + $this->initVar('channel', XOBJ_DTYPE_INT, 0, false); + $this->initVar('time', XOBJ_DTYPE_INT, 0, false); + $this->initVar('ip', XOBJ_DTYPE_OTHER, null); + } + +} + +class XalkyOnlineHandler extends XoopsPersistableObjectHandler +{ + + function __construct(&$db) + { + parent::__construct($db, "xalky_online", "XalkyOnline", "id"); + } + + function setUserInactive($userId = 0, $username = '', $inactiveTimeout = 0) + { + $condition = 'userID='.$this->db->makeSafe($userID); + if($userName !== null) { + $condition .= ' OR userName='.$this->db->makeSafe($userName); + } + $sql = 'UPDATE + `'.$this->prefix($this->table).'` + SET + `time` = `time` + ' . ($inactiveTimeout * 60) . ' + WHERE + '.$condition.';'; + + // Create a new SQL query: + return $this->db->queryF($sql); + } +} Added: XoopsModules/xalky/trunk/modules/xalky/css/Cobalt.css =================================================================== --- XoopsModules/xalky/trunk/modules/xalky/css/Cobalt.css (rev 0) +++ XoopsModules/xalky/trunk/modules/xalky/css/Cobalt.css 2014-10-19 21:17:38 UTC (rev 12817) @@ -0,0 +1,152 @@ +/* + * Chronolabs XOOPS Chat Module - xALKY + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + * @copyright Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package xalky + * @since 1.111 + * @author Antony Cipher <ci...@la...> + * @author Simon Roberts <me...@la...> + * @subpackage stylesheets + * @description Chronolabs XOOPS Module for Chat and Walky Talky Services + * + */ + +@import url('positions.css'); +@import url('borders.css'); +@import url('fonts.css'); +@import url('misc.css'); +@import url('print.css'); + + +@media screen,projection,handheld { + + #loginContent { + background-color:#2A2A2A; + color:#D4D4D4; + } + #loginContent h1 { + color:#D4D4D4; + } + #loginContent a { + color:#60A0DC; + } + #loginContent input, #loginContent select { + background-color:#424242; + color:#D4D4D4; + } + #loginContent #loginFormContainer #loginButton { + background-color:#424242; + color:#D4D4D4; + } + #loginContent #errorContainer { + color:red; + } + + #xalky { + background-color:#2A2A2A; + color:#D4D4D4; + } + #xalky h1 { + color:#D4D4D4; + } + #xalky a { + color:#60A0DC; + } + #xalky input, #xalky select, #xalky textarea { + background-color:#383838; + color:#D4D4D4; + } + #xalky #xalkyList, #xalky #onlineListContainer, #xalky #helpContainer, #xalky #settingsContainer, #xalky #bbCodeContainer, #xalky #colorCodesContainer, #xalky #emoticonsContainer { + border-color:#565656; + background-color:#383838; + } + .statusContainerOn { + background-image: url('../images/loading.png'); + } + .statusContainerOff { + background-image: url('../images/loading-done.png'); + } + .statusContainerAlert { + background-image: url('../images/loading-trouble.png'); + } + #xalky #bbCodeContainer input, #xalky #logoutButton, #xalky #submitButton { + background-color:#383838; + color:#D4D4D4; + } + #xalky #colorCodesContainer a { + border-color:black; + } + #xalky #optionsContainer input { + background-color:transparent; + } + #xalky #optionsContainer #helpButton { + background:url('../images/help.png') no-repeat; + } + #xalky #optionsContainer #settingsButton { + background:url('../images/settings.png') no-repeat; + } + #xalky #optionsContainer #onlineListButton { + background:url('../images/users.png') no-repeat; + } + #xalky #optionsContainer #audioButton { + background:url('../images/audio.png') no-repeat; + } + #xalky #optionsContainer #audioButton.off { + background:url('../images/audio-off.png') no-repeat; + } + #xalky #optionsContainer #autoScrollButton { + background:url('../images/autoscroll.png') no-repeat; + } + #xalky #optionsContainer #autoScrollButton.off { + background:url('../images/autoscroll-off.png') no-repeat; + } + #xalky .rowEven { + background-color:#565656; + } + #xalky .rowOdd { + background-color:#484848; + } + #xalky .guest { + color:gray; + } + #xalky .user { + color:#D4D4D4; + } + #xalky .moderator { + color:#00AA00; + } + #xalky .admin { + color:red; + } + #xalky .xalkyBot { + color:#60A0DC; + } + #xalky #xalkyList .xalkyBotErrorMessage { + color:red; + } + #xalky #xalkyList a { + color:#60A0DC; + } + #xalky #xalkyList .delete { + background:url('../images/delete.png') no-repeat right; + } + #xalky #xalkyList .deleteSelected { + border-color:red; + } + #xalky #onlineListContainer h3, #xalky #helpContainer h3, #xalky #settingsContainer h3 { + background-color:#383838; + color:#D4D4D4; + } + #xalky #settingsContainer #settingsList input.playback { + background:url('../images/playback.png') no-repeat; + } + +} \ No newline at end of file Added: XoopsModules/xalky/trunk/modules/xalky/css/Core.css =================================================================== --- XoopsModules/xalky/trunk/modules/xalky/css/Core.css (rev 0) +++ XoopsModules/xalky/trunk/modules/xalky/css/Core.css 2014-10-19 21:17:38 UTC (rev 12817) @@ -0,0 +1,152 @@ +/* + * Chronolabs XOOPS Chat Module - xALKY + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + * @copyright Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package xalky + * @since 1.111 + * @author Antony Cipher <ci...@la...> + * @author Simon Roberts <me...@la...> + * @subpackage stylesheets + * @description Chronolabs XOOPS Module for Chat and Walky Talky Services + * + */ + +@import url('positions.css'); +@import url('borders.css'); +@import url('fonts.css'); +@import url('misc.css'); +@import url('print.css'); + + +@media screen,projection,handheld { + + #loginContent { + background-color:#E5E5E8; + color:#000; + } + #loginContent h1 { + color:#000; + } + #loginContent a { + color:#000; + } + #loginContent input, #loginContent select { + background-color:#FFF; + color:#000; + } + #loginContent #loginFormContainer #loginButton { + background-color:#F7F5F1; + color:#000; + } + #loginContent #errorContainer { + color:red; + } + + #xalky { + background-color:#E5E5E8; + color:#000; + } + #xalky h1 { + color:#000; + } + #xalky a { + color:#000; + } + #xalky input, #xalky select, #xalky textarea { + background-color:#FFF; + color:#000; + } + #xalky #xalkyList, #xalky #onlineListContainer, #xalky #helpContainer, #xalky #settingsContainer, #xalky #bbCodeContainer, #xalky #colorCodesContainer, #xalky #emoticonsContainer { + border-color:#ADADAD; + background-color:#FFF; + } + .statusContainerOn { + background-image: url('../images/loading.png'); + } + .statusContainerOff { + background-image: url('../images/loading-done.png'); + } + .statusContainerAlert { + background-image: url('../images/loading-trouble.png'); + } + #xalky #bbCodeContainer input, #xalky #logoutButton, #xalky #submitButton { + background-color:#F7F5F1; + color:#000; + } + #xalky #colorCodesContainer a { + border-color:black; + } + #xalky #optionsContainer input { + background-color:transparent; + } + #xalky #optionsContainer #helpButton { + background:url('../images/help.png') no-repeat; + } + #xalky #optionsContainer #settingsButton { + background:url('../images/settings.png') no-repeat; + } + #xalky #optionsContainer #onlineListButton { + background:url('../images/users.png') no-repeat; + } + #xalky #optionsContainer #audioButton { + background:url('../images/audio.png') no-repeat; + } + #xalky #optionsContainer #audioButton.off { + background:url('../images/audio-off.png') no-repeat; + } + #xalky #optionsContainer #autoScrollButton { + background:url('../images/autoscroll.png') no-repeat; + } + #xalky #optionsContainer #autoScrollButton.off { + background:url('../images/autoscroll-off.png') no-repeat; + } + #xalky .rowEven { + background-color:#ECEDF3; + } + #xalky .rowOdd { + background-color:#F6F6F6; + } + #xalky .guest { + color:gray; + } + #xalky .user { + color:#000; + } + #xalky .moderator { + color:#0000FF; + } + #xalky .admin { + color:#FF0000; + } + #xalky .xalkyBot { + color:#476C8E; + } + #xalky #xalkyList .xalkyBotErrorMessage { + color:red; + } + #xalky #xalkyList a { + color:#476C8E; + } + #xalky #xalkyList .delete { + background:url('../images/delete.png') no-repeat right; + } + #xalky #xalkyList .deleteSelected { + border-color:red; + } + #xalky #onlineListContainer h3, #xalky #helpContainer h3, #xalky #settingsContainer h3 { + background-color:#88A6C0; + color:#FFF; + } + #xalky #settingsContainer #settingsList input.playback { + background:url('../images/playback.png') no-repeat; + } + +} \ No newline at end of file Added: XoopsModules/xalky/trunk/modules/xalky/css/Lithium.css =================================================================== --- XoopsModules/xalky/trunk/modules/xalky/css/Lithium.css (rev 0) +++ XoopsModules/xalky/trunk/modules/xalky/css/Lithium.css 2014-10-19 21:17:38 UTC (rev 12817) @@ -0,0 +1,151 @@ +/* + * Chronolabs XOOPS Chat Module - xALKY + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + * @copyright Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package xalky + * @since 1.111 + * @author Antony Cipher <ci...@la...> + * @author Simon Roberts <me...@la...> + * @subpackage stylesheets + * @description Chronolabs XOOPS Module for Chat and Walky Talky Services + * + */ + +@import url('positions.css'); +@import url('borders.css'); +@import url('fonts.css'); +@import url('misc.css'); +@import url('print.css'); + +@media screen,projection,handheld { + + #loginContent { + background-color:#F1F1F1; + color:#333333; + } + #loginContent h1 { + color:#333333; + } + #loginContent a { + color:#638137; + } + #loginContent input, #loginContent select { + background-color:#FFF; + color:#333333; + } + #loginContent #loginFormContainer #loginButton { + background-color:#F7F5F1; + color:#333333; + } + #loginContent #errorContainer { + color:red; + } + + #xalky { + background-color:#F1F1F1; + color:#333333; + } + #xalky h1 { + color:#333333; + } + #xalky a { + color:#638137; + } + #xalky input, #xalky select, #xalky textarea { + background-color:#FFF; + color:#333333; + } + #xalky #xalkyList, #xalky #onlineListContainer, #xalky #helpContainer, #xalky #settingsContainer, #xalky #bbCodeContainer, #xalky #colorCodesContainer, #xalky #emoticonsContainer { + border-color:#6C8A3F; + background-color:#FFF; + } + .statusContainerOn { + background-image: url('../images/loading.png'); + } + .statusContainerOff { + background-image: url('../images/loading-done.png'); + } + .statusContainerAlert { + background-image: url('../images/loading-trouble.png'); + } + #xalky #bbCodeContainer input, #xalky #logoutButton, #xalky #submitButton { + background-color:#F7F5F1; + color:#333333; + } + #xalky #colorCodesContainer a { + border-color:black; + } + #xalky #optionsContainer input { + background-color:transparent; + } + #xalky #optionsContainer #helpButton { + background:url('../images/help.png') no-repeat; + } + #xalky #optionsContainer #settingsButton { + background:url('../images/settings.png') no-repeat; + } + #xalky #optionsContainer #onlineListButton { + background:url('../images/users.png') no-repeat; + } + #xalky #optionsContainer #audioButton { + background:url('../images/audio.png') no-repeat; + } + #xalky #optionsContainer #audioButton.off { + background:url('../images/audio-off.png') no-repeat; + } + #xalky #optionsContainer #autoScrollButton { + background:url('../images/autoscroll.png') no-repeat; + } + #xalky #optionsContainer #autoScrollButton.off { + background:url('../images/autoscroll-off.png') no-repeat; + } + #xalky .rowEven { + background-color:#F1F1F1; + } + #xalky .rowOdd { + background-color:#DEDFDF; + } + #xalky .guest { + color:gray; + } + #xalky .user { + color:#000; + } + #xalky .moderator { + color:#00AA00; + } + #xalky .admin { + color:red; + } + #xalky .xalkyBot { + color:#638137; + } + #xalky #xalkyList .xalkyBotErrorMessage { + color:red; + } + #xalky #xalkyList a { + color:#638137; + } + #xalky #xalkyList .delete { + background:url('../images/delete.png') no-repeat right; + } + #xalky #xalkyList .deleteSelected { + border-color:red; + } + #xalky #onlineListContainer h3, #xalky #helpContainer h3, #xalky #settingsContainer h3 { + background-color:#6C8A3F; + color:#FFF; + } + #xalky #settingsContainer #settingsList input.playback { + background:url('../images/playback.png') no-repeat; + } + +} \ No newline at end of file Added: XoopsModules/xalky/trunk/modules/xalky/css/Mercury.css =================================================================== --- XoopsModules/xalky/trunk/modules/xalky/css/Mercury.css (rev 0) +++ XoopsModules/xalky/trunk/modules/xalky/css/Mercury.css 2014-10-19 21:17:38 UTC (rev 12817) @@ -0,0 +1,152 @@ +/* + * Chronolabs XOOPS Chat Module - xALKY + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + * @copyright Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package xalky + * @since 1.111 + * @author Antony Cipher <ci...@la...> + * @author Simon Roberts <me...@la...> + * @subpackage stylesheets + * @description Chronolabs XOOPS Module for Chat and Walky Talky Services + * + */ + + +@import url('positions.css'); +@import url('borders.css'); +@import url('fonts.css'); +@import url('misc.css'); +@import url('print.css'); + +@media screen,projection,handheld { + + #loginContent { + background-color:#2A2A2A; + color:#D4D4D4; + } + #loginContent h1 { + color:#D4D4D4; + } + #loginContent a { + color:#F6B620; + } + #loginContent input, #loginContent select { + background-color:#424242; + color:#D4D4D4; + } + #loginContent #loginFormContainer #loginButton { + background-color:#424242; + color:#D4D4D4; + } + #loginContent #errorContainer { + color:red; + } + + #xalky { + background-color:#2A2A2A; + color:#D4D4D4; + } + #xalky h1 { + color:#D4D4D4; + } + #xalky a { + color:#F6B620; + } + #xalky input, #xalky select, #xalky textarea { + background-color:#383838; + color:#D4D4D4; + } + #xalky #xalkyList, #xalky #onlineListContainer, #xalky #helpContainer, #xalky #settingsContainer, #xalky #bbCodeContainer, #xalky #colorCodesContainer, #xalky #emoticonsContainer { + border-color:#565656; + background-color:#383838; + } + .statusContainerOn { + background-image: url('../images/loading.png'); + } + .statusContainerOff { + background-image: url('../images/loading-done.png'); + } + .statusContainerAlert { + background-image: url('../images/loading-trouble.png'); + } + #xalky #bbCodeContainer input, #xalky #logoutButton, #xalky #submitButton { + background-color:#383838; + color:#D4D4D4; + } + #xalky #colorCodesContainer a { + border-color:black; + } + #xalky #optionsContainer input { + background-color:transparent; + } + #xalky #optionsContainer #helpButton { + background:url('../images/help.png') no-repeat; + } + #xalky #optionsContainer #settingsButton { + background:url('../images/settings.png') no-repeat; + } + #xalky #optionsContainer #onlineListButton { + background:url('../images/users.png') no-repeat; + } + #xalky #optionsContainer #audioButton { + background:url('../images/audio.png') no-repeat; + } + #xalky #optionsContainer #audioButton.off { + background:url('../images/audio-off.png') no-repeat; + } + #xalky #optionsContainer #autoScrollButton { + background:url('../images/autoscroll.png') no-repeat; + } + #xalky #optionsContainer #autoScrollButton.off { + background:url('../images/autoscroll-off.png') no-repeat; + } + #xalky .rowEven { + background-color:#565656; + } + #xalky .rowOdd { + background-color:#484848; + } + #xalky .guest { + color:gray; + } + #xalky .user { + color:#D4D4D4; + } + #xalky .moderator { + color:#00AA00; + } + #xalky .admin { + color:red; + } + #xalky .xalkyBot { + color:#F6B620; + } + #xalky #xalkyList .xalkyBotErrorMessage { + color:red; + } + #xalky #xalkyList a { + color:#F6B620; + } + #xalky #xalkyList .delete { + background:url('../images/delete.png') no-repeat right; + } + #xalky #xalkyList .deleteSelected { + border-color:red; + } + #xalky #onlineListContainer h3, #xalky #helpContainer h3, #xalky #settingsContainer h3 { + background-color:#383838; + color:#D4D4D4; + } + #xalky #settingsContainer #settingsList input.playback { + background:url('../images/playback.png') no-repeat; + } + +} \ No newline at end of file Added: XoopsModules/xalky/trunk/modules/xalky/css/MyBB.css =================================================================== --- XoopsModules/xalky/trunk/modules/xalky/css/MyBB.css (rev 0) +++ XoopsModules/xalky/trunk/modules/xalky/css/MyBB.css 2014-10-19 21:17:38 UTC (rev 12817) @@ -0,0 +1,152 @@ +/* + * Chronolabs XOOPS Chat Module - xALKY + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + * @copyright Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package xalky + * @since 1.111 + * @author Antony Cipher <ci...@la...> + * @author Simon Roberts <me...@la...> + * @subpackage stylesheets + * @description Chronolabs XOOPS Module for Chat and Walky Talky Services + * + */ + +@import url('positions.css'); +@import url('borders.css'); +@import url('fonts.css'); +@import url('misc.css'); +@import url('print.css'); + + +@media screen,projection,handheld { + + #loginContent { + background-color:#FFF; + color:#000; + } + #loginContent h1 { + color:#0F5C8E; + } + #loginContent a { + color:#026CB1; + } + #loginContent input, #loginContent select { + background-color:#EFEFEF; + color:#000; + } + #loginContent #loginFormContainer #loginButton { + background-color:#F7F5F1; + color:#000; + } + #loginContent #errorContainer { + color:red; + } + + #xalky { + background-color:#FFF; + color:#000; + } + #xalky h1 { + color:#0F5C8E; + } + #xalky a { + color:#026CB1; + } + #xalky input, #xalky select, #xalky textarea { + background-color:#EFEFEF; + color:#000; + } + #xalky #xalkyList, #xalky #onlineListContainer, #xalky #helpContainer, #xalky #settingsContainer, #xalky #bbCodeContainer, #xalky #colorCodesContainer, #xalky #emoticonsContainer { + border-color:#0F5C8E; + background-color:#EFEFEF; + } + .statusContainerOn { + background-image: url('../images/loading.png'); + } + .statusContainerOff { + background-image: url('../images/loading-done.png'); + } + .statusContainerAlert { + background-image: url('../images/loading-trouble.png'); + } + #xalky #bbCodeContainer input, #xalky #logoutButton, #xalky #submitButton { + background-color:#F7F5F1; + color:#000; + } + #xalky #colorCodesContainer a { + border-color:black; + } + #xalky #optionsContainer input { + background-color:transparent; + } + #xalky #optionsContainer #helpButton { + background:url('../images/help.png') no-repeat; + } + #xalky #optionsContainer #settingsButton { + background:url('../images/settings.png') no-repeat; + } + #xalky #optionsContainer #onlineListButton { + background:url('../images/users.png') no-repeat; + } + #xalky #optionsContainer #audioButton { + background:url('../images/audio.png') no-repeat; + } + #xalky #optionsContainer #audioButton.off { + background:url('../images/audio-off.png') no-repeat; + } + #xalky #optionsContainer #autoScrollButton { + background:url('../images/autoscroll.png') no-repeat; + } + #xalky #optionsContainer #autoScrollButton.off { + background:url('../images/autoscroll-off.png') no-repeat; + } + #xalky .rowEven { + background-color:#EFEFEF; + } + #xalky .rowOdd { + background-color:#F5F5F5; + } + #xalky .guest { + color:gray; + } + #xalky .user { + color:#000; + } + #xalky .moderator { + color:#CC00CC; + } + #xalky .admin { + color:#008000; + } + #xalky .xalkyBot { + color:#026CB1; + } + #xalky #xalkyList .xalkyBotErrorMessage { + color:red; + } + #xalky #xalkyList a { + color:#026CB1; + } + #xalky #xalkyList .delete { + background:url('../images/delete.png') no-repeat right; + } + #xalky #xalkyList .deleteSelected { + border-color:red; + } + #xalky #onlineListContainer h3, #xalky #helpContainer h3, #xalky #settingsContainer h3 { + background-color:#ADCBE7; + color:#000; + } + #xalky #settingsContainer #settingsList input.playback { + background:url('../images/playback.png') no-repeat; + } + +} \ No newline at end of file Added: XoopsModules/xalky/trunk/modules/xalky/css/Oxygen.css =================================================================== --- XoopsModules/xalky/trunk/modules/xalky/css/Oxygen.css (rev 0) +++ XoopsModules/xalky/trunk/modules/xalky/css/Oxygen.css 2014-10-19 21:17:38 UTC (rev 12817) @@ -0,0 +1,154 @@ +/* + * Chronolabs XOOPS Chat Module - xALKY + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + * @copyright Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package xalky + * @since 1.111 + * @author Antony Cipher <ci...@la...> + * @author Simon Roberts <me...@la...> + * @subpackage stylesheets + * @description Chronolabs XOOPS Module for Chat and Walky Talky Services + * + */ + + +@import url('positions.css'); +@import url('borders.css'); +@import url('fonts.css'); +@import url('misc.css'); +@import url('print.css'); + + + +@media screen,projection,handheld { + + #loginContent { + background-color:#F1F1F1; + color:#333333; + } + #loginContent h1 { + color:#333333; + } + #loginContent a { + color:#005CB1; + } + #loginContent input, #loginContent select { + background-color:#FFF; + color:#333333; + } + #loginContent #loginFormContainer #loginButton { + background-color:#F7F5F1; + color:#333333; + } + #loginContent #errorContainer { + color:red; + } + + #xalky { + background-color:#F1F1F1; + color:#333333; + } + #xalky h1 { + color:#333333; + } + #xalky a { + color:#005CB1; + } + #xalky input, #xalky select, #xalky textarea { + background-color:#FFF; + color:#333333; + } + #xalky #xalkyList, #xalky #onlineListContainer, #xalky #helpContainer, #xalky #settingsContainer, #xalky #bbCodeContainer, #xalky #colorCodesContainer, #xalky #emoticonsContainer { + border-color:#0066B9; + background-color:#FFF; + } + .statusContainerOn { + background-image: url('../images/loading.png'); + } + .statusContainerOff { + background-image: url('../images/loading-done.png'); + } + .statusContainerAlert { + background-image: url('../images/loading-trouble.png'); + } + #xalky #bbCodeContainer input, #xalky #logoutButton, #xalky #submitButton { + background-color:#F7F5F1; + color:#333333; + } + #xalky #colorCodesContainer a { + border-color:black; + } + #xalky #optionsContainer input { + background-color:transparent; + } + #xalky #optionsContainer #helpButton { + background:url('../images/help.png') no-repeat; + } + #xalky #optionsContainer #settingsButton { + background:url('../images/settings.png') no-repeat; + } + #xalky #optionsContainer #onlineListButton { + background:url('../images/users.png') no-repeat; + } + #xalky #optionsContainer #audioButton { + background:url('../images/audio.png') no-repeat; + } + #xalky #optionsContainer #audioButton.off { + background:url('../images/audio-off.png') no-repeat; + } + #xalky #optionsContainer #autoScrollButton { + background:url('../images/autoscroll.png') no-repeat; + } + #xalky #optionsContainer #autoScrollButton.off { + background:url('../images/autoscroll-off.png') no-repeat; + } + #xalky .rowEven { + background-color:#F1F1F1; + } + #xalky .rowOdd { + background-color:#DEDFDF; + } + #xalky .guest { + color:gray; + } + #xalky .user { + color:#000; + } + #xalky .moderator { + color:#00AA00; + } + #xalky .admin { + color:red; + } + #xalky .xalkyBot { + color:#005CB1; + } + #xalky #xalkyList .xalkyBotErrorMessage { + color:red; + } + #xalky #xalkyList a { + color:#005CB1; + } + #xalky #xalkyList .delete { + background:url('../images/delete.png') no-repeat right; + } + #xalky #xalkyList .deleteSelected { + border-color:red; + } + #xalky #onlineListContainer h3, #xalky #helpContainer h3, #xalky #settingsContainer h3 { + background-color:#0066B9; + color:#FFF; + } + #xalky #settingsContainer #settingsList input.playback { + background:url('../images/playback.png') no-repeat; + } + +} \ No newline at end of file Added: XoopsModules/xalky/trunk/modules/xalky/css/Radium.css =================================================================== --- XoopsModules/xalky/trunk/modules/xalky/css/Radium.css (rev 0) +++ XoopsModules/xalky/trunk/modules/xalky/css/Radium.css 2014-10-19 21:17:38 UTC (rev 12817) @@ -0,0 +1,152 @@ +/* + * Chronolabs XOOPS Chat Module - xALKY + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + * @copyright Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package xalky + * @since 1.111 + * @author Antony Cipher <ci...@la...> + * @author Simon Roberts <me...@la...> + * @subpackage stylesheets + * @description Chronolabs XOOPS Module for Chat and Walky Talky Services + * + */ + +@import url('positions.css'); +@import url('borders.css'); +@import url('fonts.css'); +@import url('misc.css'); +@import url('print.css'); + + +@media screen,projection,handheld { + + #loginContent { + background-color:#2A2A2A; + color:#D4D4D4; + } + #loginContent h1 { + color:#D4D4D4; + } + #loginContent a { + color:#60C860; + } + #loginContent input, #loginContent select { + background-color:#424242; + color:#D4D4D4; + } + #loginContent #loginFormContainer #loginButton { + background-color:#424242; + color:#D4D4D4; + } + #loginContent #errorContainer { + color:red; + } + + #xalky { + background-color:#2A2A2A; + color:#D4D4D4; + } + #xalky h1 { + color:#D4D4D4; + } + #xalky a { + color:#60C860; + } + #xalky input, #xalky select, #xalky textarea { + background-color:#383838; + color:#D4D4D4; + } + #xalky #xalkyList, #xalky #onlineListContainer, #xalky #helpContainer, #xalky #settingsContainer, #xalky #bbCodeContainer, #xalky #colorCodesContainer, #xalky #emoticonsContainer { + border-color:#565656; + background-color:#383838; + } + .statusContainerOn { + background-image: url('../images/loading.png'); + } + .statusContainerOff { + background-image: url('../images/loading-done.png'); + } + .statusContainerAlert { + background-image: url('../images/loading-trouble.png'); + } + #xalky #bbCodeContainer input, #xalky #logoutButton, #xalky #submitButton { + background-color:#383838; + color:#D4D4D4; + } + #xalky #colorCodesContainer a { + border-color:black; + } + #xalky #optionsContainer input { + background-color:transparent; + } + #xalky #optionsContainer #helpButton { + background:url('../images/help.png') no-repeat; + } + #xalky #optionsContainer #settingsButton { + background:url('../images/settings.png') no-repeat; + } + #xalky #optionsContainer #onlineListButton { + background:url('../images/users.png') no-repeat; + } + #xalky #optionsContainer #audioButton { + background:url('../images/audio.png') no-repeat; + } + #xalky #optionsContainer #audioButton.off { + background:url('../images/audio-off.png') no-repeat; + } + #xalky #optionsContainer #autoScrollButton { + background:url('../images/autoscroll.png') no-repeat; + } + #xalky #optionsContainer #autoScrollButton.off { + background:url('../images/autoscroll-off.png') no-repeat; + } + #xalky .rowEven { + background-color:#565656; + } + #xalky .rowOdd { + background-color:#484848; + } + #xalky .guest { + color:gray; + } + #xalky .user { + color:#D4D4D4; + } + #xalky .moderator { + color:#00AA00; + } + #xalky .admin { + color:red; + } + #xalky .xalkyBot { + color:#60C860; + } + #xalky #xalkyList .xalkyBotErrorMessage { + color:red; + } + #xalky #xalkyList a { + color:#60C860; + } + #xalky #xalkyList .delete { + background:url('../images/delete.png') no-repeat right; + } + #xalky #xalkyList .deleteSelected { + border-color:red; + } + #xalky #onlineListContainer h3, #xalky #helpContainer h3, #xalky #settingsContainer h3 { + background-color:#383838; + color:#D4D4D4; + } + #xalky #settingsContainer #settingsList input.playback { + background:url('../images/playback.png') no-repeat; + } + +} \ No newline at end of file Added: XoopsModules/xalky/trunk/modules/xalky/css/Sulfur.css =================================================================== --- XoopsModules/xalky/trunk/modules/xalky/css/Sulfur.css (rev 0) +++ XoopsModules/xalky/trunk/modules/xalky/css/Sulfur.css 2014-10-19 21:17:38 UTC (rev 12817) @@ -0,0 +1,153 @@ +/* + * Chronolabs XOOPS Chat Module - xALKY + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + * @copyright Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package xalky + * @since 1.111 + * @author Antony Cipher <ci...@la...> + * @author Simon Roberts <me...@la...> + * @subpackage stylesheets + * @description Chronolabs XOOPS Module for Chat and Walky Talky Services + * + */ + + +@import url('positions.css'); +@import url('borders.css'); +@import url('fonts.css'); +@import url('misc.css'); +@import url('print.css'); + + +@media screen,projection,handheld { + + #loginContent { + background-color:#F1F1F1; + color:#333333; + } + #loginContent h1 { + color:#333333; + } + #loginContent a { + color:#822100; + } + #loginContent input, #loginContent select { + background-color:#FFF; + color:#333333; + } + #loginContent #loginFormContainer #loginButton { + background-color:#F7F5F1; + color:#333333; + } + #loginContent #errorContainer { + color:red; + } + + #xalky { + background-color:#F1F1F1; + color:#333333; + } + #xalky h1 { + color:#333333; + } + #xalky a { + color:#822100; + } + #xalky input, #xalky select, #xalky textarea { + background-color:#FFF; + color:#333333; + } + #xalky #xalkyList, #xalky #onlineListContainer, #xalky #helpContainer, #xalky #settingsContainer, #xalky #bbCodeContainer, #xalky #colorCodesContainer, #xalky #emoticonsContainer { + border-color:#B84623; + background-color:#FFF; + } + .statusContainerOn { + background-image: url('../images/loading.png'); + } + .statusContainerOff { + background-image: url('../images/loading-done.png'); + } + .statusContainerAlert { + background-image: url('../images/loading-trouble.png'); + } + #xalky #bbCodeContainer input, #xalky #logoutButton, #xalky #submitButton { + background-color:#F7F5F1; + color:#333333; + } + #xalky #colorCodesContainer a { + border-color:black; + } + #xalky #optionsContainer input { + background-color:transparent; + } + #xalky #optionsContainer #helpButton { + background:url('../images/help.png') no-repeat; + } + #xalky #optionsContainer #settingsButton { + background:url('../images/settings.png') no-repeat; + } + #xalky #optionsContainer #onlineListButton { + background:url('../images/users.png') no-repeat; + } + #xalky #optionsContainer #audioButton { + background:url('../images/audio.png') no-repeat; + } + #xalky #optionsContainer #audioButton.off { + background:url('../images/audio-off.png') no-repeat; + } + #xalky #optionsContainer #autoScrollButton { + background:url('../images/autoscroll.png') no-repeat; + } + #xalky #optionsContainer #autoScrollButton.off { + background:url('../images/autoscroll-off.png') no-repeat; + } + #xalky .rowEven { + background-color:#F1F1F1; + } + #xalky .rowOdd { + background-color:#DEDFDF; + } + #xalky .guest { + color:gray; + } + #xalky .user { + color:#000; + } + #xalky .moderator ... [truncated message content] |
From: <wis...@us...> - 2014-10-28 20:58:12
|
Revision: 12822 http://sourceforge.net/p/xoops/svn/12822 Author: wishcraft Date: 2014-10-28 20:58:03 +0000 (Tue, 28 Oct 2014) Log Message: ----------- Prelimiary still in developer too you Harold! Added Paths: ----------- XoopsModules/radioo/ XoopsModules/radioo/trunk/ XoopsModules/radioo/trunk/modules/ XoopsModules/radioo/trunk/modules/radioo/ XoopsModules/radioo/trunk/modules/radioo/.htaccess XoopsModules/radioo/trunk/modules/radioo/admin/ XoopsModules/radioo/trunk/modules/radioo/admin/RadiooAbout.php XoopsModules/radioo/trunk/modules/radioo/admin/RadiooDashboard.php XoopsModules/radioo/trunk/modules/radioo/admin/RadiooFooter.php XoopsModules/radioo/trunk/modules/radioo/admin/RadiooHeader.php XoopsModules/radioo/trunk/modules/radioo/admin/RadiooMenu.php XoopsModules/radioo/trunk/modules/radioo/admin/RadiooRights.php XoopsModules/radioo/trunk/modules/radioo/admin/index.html XoopsModules/radioo/trunk/modules/radioo/blocks/ XoopsModules/radioo/trunk/modules/radioo/blocks/index.html XoopsModules/radioo/trunk/modules/radioo/class/ XoopsModules/radioo/trunk/modules/radioo/class/index.html XoopsModules/radioo/trunk/modules/radioo/class/io.php XoopsModules/radioo/trunk/modules/radioo/css/ XoopsModules/radioo/trunk/modules/radioo/css/fonts.css XoopsModules/radioo/trunk/modules/radioo/css/index.html XoopsModules/radioo/trunk/modules/radioo/css/jplayer.css XoopsModules/radioo/trunk/modules/radioo/css/style.css XoopsModules/radioo/trunk/modules/radioo/docs/ XoopsModules/radioo/trunk/modules/radioo/docs/index.html XoopsModules/radioo/trunk/modules/radioo/flash/ XoopsModules/radioo/trunk/modules/radioo/flash/Jplayer.swf XoopsModules/radioo/trunk/modules/radioo/flash/index.html XoopsModules/radioo/trunk/modules/radioo/fonts/ XoopsModules/radioo/trunk/modules/radioo/fonts/diavlo_black_ii_37.css XoopsModules/radioo/trunk/modules/radioo/fonts/diavlo_black_ii_37.eot XoopsModules/radioo/trunk/modules/radioo/fonts/diavlo_black_ii_37.svg XoopsModules/radioo/trunk/modules/radioo/fonts/diavlo_black_ii_37.ttf XoopsModules/radioo/trunk/modules/radioo/fonts/diavlo_black_ii_37.woff XoopsModules/radioo/trunk/modules/radioo/fonts/diavlo_black_ii_37.woff2 XoopsModules/radioo/trunk/modules/radioo/fonts/diavlo_book_ii_37.css XoopsModules/radioo/trunk/modules/radioo/fonts/diavlo_book_ii_37.eot XoopsModules/radioo/trunk/modules/radioo/fonts/diavlo_book_ii_37.svg XoopsModules/radioo/trunk/modules/radioo/fonts/diavlo_book_ii_37.ttf XoopsModules/radioo/trunk/modules/radioo/fonts/diavlo_book_ii_37.woff XoopsModules/radioo/trunk/modules/radioo/fonts/diavlo_book_ii_37.woff2 XoopsModules/radioo/trunk/modules/radioo/fonts/diavlo_medium_ii_37.css XoopsModules/radioo/trunk/modules/radioo/fonts/diavlo_medium_ii_37.eot XoopsModules/radioo/trunk/modules/radioo/fonts/diavlo_medium_ii_37.svg XoopsModules/radioo/trunk/modules/radioo/fonts/diavlo_medium_ii_37.ttf XoopsModules/radioo/trunk/modules/radioo/fonts/diavlo_medium_ii_37.woff XoopsModules/radioo/trunk/modules/radioo/fonts/diavlo_medium_ii_37.woff2 XoopsModules/radioo/trunk/modules/radioo/fonts/index.html XoopsModules/radioo/trunk/modules/radioo/footer.php XoopsModules/radioo/trunk/modules/radioo/header.php XoopsModules/radioo/trunk/modules/radioo/images/ XoopsModules/radioo/trunk/modules/radioo/images/index.html XoopsModules/radioo/trunk/modules/radioo/images/mlogo_radioo.png XoopsModules/radioo/trunk/modules/radioo/images/monday.jpg XoopsModules/radioo/trunk/modules/radioo/images/monday.seeking.gif XoopsModules/radioo/trunk/modules/radioo/images/monday.video.play.png XoopsModules/radioo/trunk/modules/radioo/include/ XoopsModules/radioo/trunk/modules/radioo/include/RadiooCommon.php XoopsModules/radioo/trunk/modules/radioo/include/RadiooCrypt.php XoopsModules/radioo/trunk/modules/radioo/include/RadiooFileSystem.php XoopsModules/radioo/trunk/modules/radioo/include/RadiooFunctions.php XoopsModules/radioo/trunk/modules/radioo/include/RadiooInstall.php XoopsModules/radioo/trunk/modules/radioo/include/RadiooPaths.php XoopsModules/radioo/trunk/modules/radioo/include/RadiooUpdate.php XoopsModules/radioo/trunk/modules/radioo/include/RadiooXMLArray.php XoopsModules/radioo/trunk/modules/radioo/include/RadiooXMLWrapper.php XoopsModules/radioo/trunk/modules/radioo/include/index.html XoopsModules/radioo/trunk/modules/radioo/js/ XoopsModules/radioo/trunk/modules/radioo/js/index.html XoopsModules/radioo/trunk/modules/radioo/js/jquery.jplayer.min.js XoopsModules/radioo/trunk/modules/radioo/js/popcorn.jplayer.js XoopsModules/radioo/trunk/modules/radioo/language/ XoopsModules/radioo/trunk/modules/radioo/language/english/ XoopsModules/radioo/trunk/modules/radioo/language/english/admin.php XoopsModules/radioo/trunk/modules/radioo/language/english/errors.php XoopsModules/radioo/trunk/modules/radioo/language/english/index.html XoopsModules/radioo/trunk/modules/radioo/language/english/main.php XoopsModules/radioo/trunk/modules/radioo/language/english/modinfo.php XoopsModules/radioo/trunk/modules/radioo/language/english/playlists.php XoopsModules/radioo/trunk/modules/radioo/language/english/style.css XoopsModules/radioo/trunk/modules/radioo/language/index.html XoopsModules/radioo/trunk/modules/radioo/players.php XoopsModules/radioo/trunk/modules/radioo/preloads/ XoopsModules/radioo/trunk/modules/radioo/preloads/index.html XoopsModules/radioo/trunk/modules/radioo/preloads/radioo.php XoopsModules/radioo/trunk/modules/radioo/sql/ XoopsModules/radioo/trunk/modules/radioo/sql/RadiooMySQL.sql XoopsModules/radioo/trunk/modules/radioo/sql/index.html XoopsModules/radioo/trunk/modules/radioo/templates/ XoopsModules/radioo/trunk/modules/radioo/templates/admin/ XoopsModules/radioo/trunk/modules/radioo/templates/admin/index.html XoopsModules/radioo/trunk/modules/radioo/templates/blocks/ XoopsModules/radioo/trunk/modules/radioo/templates/blocks/index.html XoopsModules/radioo/trunk/modules/radioo/templates/index.html XoopsModules/radioo/trunk/modules/radioo/templates/radioo.php.html XoopsModules/radioo/trunk/modules/radioo/templates/radioo_jplayer.html XoopsModules/radioo/trunk/modules/radioo/templates/radioo_playlist_asx.html XoopsModules/radioo/trunk/modules/radioo/templates/radioo_playlist_b4s.html XoopsModules/radioo/trunk/modules/radioo/templates/radioo_playlist_kapsule.html XoopsModules/radioo/trunk/modules/radioo/templates/radioo_playlist_kpl.html XoopsModules/radioo/trunk/modules/radioo/templates/radioo_playlist_m3u.html XoopsModules/radioo/trunk/modules/radioo/templates/radioo_playlist_magma.html XoopsModules/radioo/trunk/modules/radioo/templates/radioo_playlist_pls.html XoopsModules/radioo/trunk/modules/radioo/templates/radioo_playlist_ram.html XoopsModules/radioo/trunk/modules/radioo/templates/radioo_playlist_rdf.html XoopsModules/radioo/trunk/modules/radioo/templates/radioo_playlist_smil.html XoopsModules/radioo/trunk/modules/radioo/templates/radioo_playlist_xspf.html XoopsModules/radioo/trunk/modules/radioo/xoops_version.php Added: XoopsModules/radioo/trunk/modules/radioo/.htaccess =================================================================== --- XoopsModules/radioo/trunk/modules/radioo/.htaccess (rev 0) +++ XoopsModules/radioo/trunk/modules/radioo/.htaccess 2014-10-28 20:58:03 UTC (rev 12822) @@ -0,0 +1,7 @@ +<IfModule mod_rewrite.c> + + RewriteEngine On + RewriteRule ^(*.?)/(*.?).(pls|m3u|asx|xspf|b4s|rdf|kapsule|kpl|magma|ram|smil)$ players.php?authkey=$1&key=$2&format=$3 + RewriteRule ^(*.?).(pls|m3u|asx|xspf|b4s|rdf|kapsule|kpl|magma|ram|smil)$ players.php?key=$1&format=$2 + +</IfModule> Property changes on: XoopsModules/radioo/trunk/modules/radioo/.htaccess ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/radioo/trunk/modules/radioo/admin/RadiooAbout.php =================================================================== --- XoopsModules/radioo/trunk/modules/radioo/admin/RadiooAbout.php (rev 0) +++ XoopsModules/radioo/trunk/modules/radioo/admin/RadiooAbout.php 2014-10-28 20:58:03 UTC (rev 12822) @@ -0,0 +1,31 @@ +<?php +/** + * XOOPS Profile module + * + * 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://www.xoops.org) + * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/) + * @package xoopsPoll + * @since 2.5.0 + * @author Mage, Mamba + * @version $Id $ + **/ + +include_once dirname(__FILE__) . '/../../../include/cp_header.php'; +include_once dirname(__FILE__) . '/admin_header.php'; +xoops_cp_header(); + +$module_info =& $module_handler->get($xoopsModule->getVar("mid")); + +$aboutAdmin = new ModuleAdmin(); + +echo $aboutAdmin->addNavigation('about.php'); +echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false); + +include_once dirname(__FILE__) . '/admin_footer.php'; Added: XoopsModules/radioo/trunk/modules/radioo/admin/RadiooDashboard.php =================================================================== --- XoopsModules/radioo/trunk/modules/radioo/admin/RadiooDashboard.php (rev 0) +++ XoopsModules/radioo/trunk/modules/radioo/admin/RadiooDashboard.php 2014-10-28 20:58:03 UTC (rev 12822) @@ -0,0 +1,53 @@ +<?php +// $Id: index.php 12593 2014-06-14 16:04:02Z beckmi $ +// ------------------------------------------------------------------------ // +// XOOPS - PHP Content Management System // +// Copyright (c) 2000 XOOPS.org // +// <http://www.xoops.org/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// 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. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Raul Recio (AKA UNFOR) // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + +include_once dirname(__FILE__) . '/admin_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>"); +//---------------------------- + +echo $indexAdmin->addNavigation('index.php'); +echo $indexAdmin->renderIndex(); + +include_once dirname(__FILE__) . '/admin_footer.php'; +//xoops_cp_footer(); Added: XoopsModules/radioo/trunk/modules/radioo/admin/RadiooFooter.php =================================================================== --- XoopsModules/radioo/trunk/modules/radioo/admin/RadiooFooter.php (rev 0) +++ XoopsModules/radioo/trunk/modules/radioo/admin/RadiooFooter.php 2014-10-28 20:58:03 UTC (rev 12822) @@ -0,0 +1,26 @@ +<?php +/** + * xSitemMap module + * + * 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 http://www.fsf.org/copyleft/gpl.html GNU public license + * @package xSitemMap + * @since 2.5.0 + * @author XOOPS Module Team + * @version $Id $ +**/ +echo "<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_MODULEADMIN_ADMIN_FOOTER . "\n" + ."</div>"; + +xoops_cp_footer(); Added: XoopsModules/radioo/trunk/modules/radioo/admin/RadiooHeader.php =================================================================== --- XoopsModules/radioo/trunk/modules/radioo/admin/RadiooHeader.php (rev 0) +++ XoopsModules/radioo/trunk/modules/radioo/admin/RadiooHeader.php 2014-10-28 20:58:03 UTC (rev 12822) @@ -0,0 +1,54 @@ +<?php +/** + * Extended User Profile + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package profile + * @since 2.3.0 + * @author Taiwen Jiang <ph...@us...> + * @version $Id: admin_header.php 12363 2014-03-08 10:39:06Z beckmi $ + */ + +$path = dirname(dirname(dirname(dirname(__FILE__)))); +include_once $path . '/mainfile.php'; +include_once $path . '/include/cp_functions.php'; +require_once $path . '/include/cp_header.php'; + +global $xoopsModule; + +$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname'); + +//if functions.php file exist +//require_once dirname(dirname(__FILE__)) . '/include/functions.php'; + +// Load language files +xoops_loadLanguage('admin', $thisModuleDir); +xoops_loadLanguage('modinfo', $thisModuleDir); +xoops_loadLanguage('main', $thisModuleDir); + +$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(); +} Added: XoopsModules/radioo/trunk/modules/radioo/admin/RadiooMenu.php =================================================================== --- XoopsModules/radioo/trunk/modules/radioo/admin/RadiooMenu.php (rev 0) +++ XoopsModules/radioo/trunk/modules/radioo/admin/RadiooMenu.php 2014-10-28 20:58:03 UTC (rev 12822) @@ -0,0 +1,68 @@ +<?php +/** + * Extended User Profile + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package profile + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: menu.php 12549 2014-05-25 10:52:42Z beckmi $ + */ + +// defined("XOOPS_ROOT_PATH") || die("XOOPS root path not defined"); + +$path = dirname(dirname(dirname(dirname(__FILE__)))); +include_once $path . '/mainfile.php'; + +$dirname = basename(dirname(dirname(__FILE__))); +$module_handler = xoops_gethandler('module'); +$module = $module_handler->getByDirname($dirname); +$pathIcon32 = $module->getInfo('icons32'); +$pathModuleAdmin = $module->getInfo('dirmoduleadmin'); +$pathLanguage = $path . $pathModuleAdmin; + +if (!file_exists($fileinc = $pathLanguage . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/' . 'main.php')) { + $fileinc = $pathLanguage . '/language/english/main.php'; +} + +include_once $fileinc; + +$adminmenu = array(); + +$i = 1; +$adminmenu[$i]['title'] = _PROFILE_MI_HOME; +$adminmenu[$i]['link'] = "admin/index.php"; +$adminmenu[$i]['icon'] = $pathIcon32.'/home.png' ; +++$i; +$adminmenu[$i]['title'] = _PROFILE_MI_USERS; +$adminmenu[$i]['link'] = "admin/user.php"; +$adminmenu[$i]['icon'] = $pathIcon32.'/users.png' ; +++$i; +$adminmenu[$i]['title'] = _PROFILE_MI_CATEGORIES; +$adminmenu[$i]['link'] = "admin/category.php"; +$adminmenu[$i]['icon'] = $pathIcon32.'/category.png' ; +++$i; +$adminmenu[$i]['title'] = _PROFILE_MI_FIELDS; +$adminmenu[$i]['link'] = "admin/field.php"; +$adminmenu[$i]['icon'] = $pathIcon32.'/index.png' ; +++$i; +$adminmenu[$i]['title'] = _PROFILE_MI_STEPS; +$adminmenu[$i]['link'] = "admin/step.php"; +$adminmenu[$i]['icon'] = $pathIcon32.'/stats.png' ; +++$i; +$adminmenu[$i]['title'] = _PROFILE_MI_PERMISSIONS; +$adminmenu[$i]['link'] = "admin/permissions.php"; +$adminmenu[$i]['icon'] = $pathIcon32.'/permissions.png' ; +++$i; +$adminmenu[$i]['title'] = _PROFILE_MI_ABOUT; +$adminmenu[$i]['link'] = 'admin/about.php'; +$adminmenu[$i]['icon'] = $pathIcon32.'/about.png'; Added: XoopsModules/radioo/trunk/modules/radioo/admin/RadiooRights.php =================================================================== --- XoopsModules/radioo/trunk/modules/radioo/admin/RadiooRights.php (rev 0) +++ XoopsModules/radioo/trunk/modules/radioo/admin/RadiooRights.php 2014-10-28 20:58:03 UTC (rev 12822) @@ -0,0 +1,109 @@ +<?php +/** + * Extended User Profile + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package profile + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: permissions.php 12593 2014-06-14 16:04:02Z beckmi $ + */ +include_once dirname(__FILE__) . '/admin_header.php'; +xoops_cp_header(); +$indexAdmin = new ModuleAdmin(); +echo $indexAdmin->addNavigation('permissions.php'); + +$op = isset($_REQUEST['op']) ? $_REQUEST['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', $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 dirname(__FILE__) . '/admin_footer.php'; +//xoops_cp_footer(); Added: XoopsModules/radioo/trunk/modules/radioo/admin/index.html =================================================================== --- XoopsModules/radioo/trunk/modules/radioo/admin/index.html (rev 0) +++ XoopsModules/radioo/trunk/modules/radioo/admin/index.html 2014-10-28 20:58:03 UTC (rev 12822) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/radioo/trunk/modules/radioo/blocks/index.html =================================================================== --- XoopsModules/radioo/trunk/modules/radioo/blocks/index.html (rev 0) +++ XoopsModules/radioo/trunk/modules/radioo/blocks/index.html 2014-10-28 20:58:03 UTC (rev 12822) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/radioo/trunk/modules/radioo/class/index.html =================================================================== --- XoopsModules/radioo/trunk/modules/radioo/class/index.html (rev 0) +++ XoopsModules/radioo/trunk/modules/radioo/class/index.html 2014-10-28 20:58:03 UTC (rev 12822) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/radioo/trunk/modules/radioo/class/io.php =================================================================== --- XoopsModules/radioo/trunk/modules/radioo/class/io.php (rev 0) +++ XoopsModules/radioo/trunk/modules/radioo/class/io.php 2014-10-28 20:58:03 UTC (rev 12822) @@ -0,0 +1,700 @@ +<?php +/* + * Chronolabs XOOPS Life Streaming Radio Module - Radioo + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + * @copyright Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package radioo + * @since 1.02 + * @author Antony Cipher <ci...@la...> + * @author Simon Roberts <me...@la...> + * @subpackage classes + * @description Chronolabs XOOPS Module for Chat and Walky Talky Services + * + */ +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +/** + * Library Dependencies + */ +include_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'RadiooFileSystem.php'; +include_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'RadiooCrypt.php'; +include_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'RadiooXMLArray.php'; +include_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'RadiooXMLWrapper.php'; + + +class RadiooStore extends XoopsObject +{ + + /** + * + * @var unknown + */ + var $_root = 'RadiooDataStore'; + + /** + * + * @var array + */ + var $__data = array(); + + /** + * + * @var unknown + */ + var $_method = ''; + + /** + * + * @var unknown + */ + var $_extensions = array(); + + /** + * + * @param unknown $method + */ + function __construct() + { + $this->_method = (!definef('_RADIOO_IO_STORE_METHOD')?'json':constant("_RADIOO_IO_STORE_METHOD")); + $this->_extensions = RadiooIOHandler::getFileSuffix(); + + // File store database headers + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, true); + $this->initVar('saved', XOBJ_DTYPE_INT, 0, false); + $this->initVar('read', XOBJ_DTYPE_INT, 0, false); + $this->initVar('dropped', XOBJ_DTYPE_INT, 0, false); + $this->initVar('deleted', XOBJ_DTYPE_INT, 0, false); + $this->initVar('bytes_data', XOBJ_DTYPE_INT, 0, true); + $this->initVar('bytes_store', XOBJ_DTYPE_INT, 0, true); + $this->initVar('md5_data', XOBJ_DTYPE_OTHER, '', true, 32); + $this->initVar('md5_store', XOBJ_DTYPE_OTHER, '', true, 32); + $this->initVar('method', XOBJ_DTYPE_ENUM, (!definef('_RADIOO_DATA_STORE_METHOD')?'json':constant("_RADIOO_DATA_STORE_METHOD")), true, false, false, array('json', 'xml', 'serial')); + $this->initVar('filename', XOBJ_DTYPE_OTHER, '', true, 128); + $this->initVar('path', XOBJ_DTYPE_OTHER, '', true, 255); + $this->initVar('token', XOBJ_DTYPE_OTHER, '', true, 44); + $this->initVar('salt', XOBJ_DTYPE_OTHER, substr(sha1(microtime(true).XOOPS_ROOT_PATH.XOOPS_DB_PASS.XOOPS_DB_NAME.XOOPS_DB_UNAME.$_SERVER['REMOTE_ADDR']), mt_rand(0, 31), 11), true, 11); + } + + /** + * (non-PHPdoc) + * @see XoopsObject::setVar() + */ + public function setVar($key, $value, $not_gpc) + { + if ($key == 'salt') + return false; + elseif ($key == 'method') + $this->_method = $value; + return parent::setVar($key, $value, $not_gpc); + } + + /** + * (non-PHPdoc) + * @see XoopsObject::assignVar() + */ + public function assignVar($key, $value, $not_gpc) + { + if ($key == 'method') + $this->_method = $value; + return parent::assignVar($key, $value, $not_gpc); + } + + /** + * (non-PHPdoc) + * @see XoopsObject::assignVar() + */ + public function assignVars($var_array = array()) + { + foreach($var_array as $key => $value) + { + $this->assignVar($key, $value); + } + $this->load(); + } + + /** + * + * @return boolean + */ + public function hasCryptingSalt() + { + if (strlen($this->getVar('salt')) != 0 && defined('_RADIOO_CRYPT_SALT')) + return true; + return false; + } + + /** + * + * @return boolean + */ + public function getCryptingSalt() + { + if (!$this->hasCryptingSalt()) + return false; + return md5($this->getVar('salt') . _RADIOO_CRYPT_SALT); + } + + /** + * + * @param string $this->getVar('path') + * @param string $this->getVar('filename') + * @return multitype: + */ + public function save() + { + if (!in_array($this->getVar('method'), array_keys(RadiooIOHandler::getMethods()))||strlen($this->getVar('method'))==0) + $this->setVar('method', $this->_method); + $data = $this->parse($this->__data, $this->_root, $this->getVar('method')); + $this->deleteDataStore($this->getVar('path'), $this->getVar('filename')); + return $this->saveDataStore($this->_getData(), $this->getVar('path') . DIRECTORY_SEPARATOR . $this->getVar('filename') . '.' . $this->_extensions[$this->getVar('method')]); + } + + /** + * + * @param string $this->getVar('path') + * @param string $this->getVar('filename') + * @return multitype: + */ + public function load() + { + $this->__data = array(); + if ($filename = $this->file_exists($this->getVar('path'), $this->getVar('filename'))) { + return $this->_assignData($this->convert($this->readDataStore($filename, $this->getVar('md5_store')),$this->_root, $this->_getFunction($this->getVar('method'))), $this->getVar('md5_data')); + } + return false; + } + + /** + * + * @param string $path + * @param string $filename + * @return string|boolean + */ + public function file_exists($path = '', $filename = '') + { + foreach(RadiooIOHandler::getMethods() as $extension => $function) + { + if (file_exists($file = $path . DIRECTORY_SEPARATOR . $filename . '.' . $extension)) + return $file; + + } + return false; + } + + /** + * + * @param unknown $data + * @param string $md5 + * @return boolean + */ + public function _assignData($data = array(), $md5 = '') + { + if ($md5 == $this->_calcMD5($data)) + { + $this->setVar('md5_data', $md5); + $this->setVar('bytes_data', $this->_calcBytes($data)); + if ($this->__data = $data) + return true; + } + return false; + } + + /** + * + * @return multitype: + */ + public function _getData() + { + return $this->__data; + } + + /** + * + * @param unknown $data + * @return string + */ + public function _calcMD5($data) + { + $hash = md5(NULL); + if (is_array($data)) + foreach($data as $key => $valuing) + { + if (is_array($valuing)) + $hash = md5($key . $this->_calcMD5($valuing) . $hash); + else + $hash = md5($key . $valuing . $hash); + } + else + $hash = md5($data . $hash); + return $hash; + } + + /** + * + * @param unknown $data + * @return string + */ + public function _calcBytes($data) + { + $bytes = 0; + if (is_array($data)) + foreach($data as $key => $valuing) + { + if (is_array($valuing)) + $bytes = $bytes + strlen($key) + $this->_calcBytes($valuing); + else + $bytes = $bytes + strlen($key) + strlen($valuing); + } + else + $bytes = $bytes + strlen($data); + return $bytes; + } + + /** + * + * @param string $method + * @return Ambigous <> + */ + public function _getFunction($method = 'json') + { + $_methods = RadiooIOHandler::getMethods(); + if (!in_array($method, array_keys($_methods))) + $method = 'json'; + if (isset($_methods[$method])) + return $_methods[$method]; + } + + /** + * + */ + private function modifyNumericKeys($array = '', $convert = false, $spatial = '___') + { + if (!$convert) { + $changed = false; + $values = array(); + foreach(array_reverse(array_keys($array)) as $key) + { + if (is_numeric($key)) + { + $changed = true; + $newkey = $spatial . $key . $spatial; + if (is_array($values[$key])) + $values[$newkey] = $this->modifyNumericKeys($array[$key], $convert); + else + $values[$newkey] = $array[$key]; + unset($array[$key]); + } + } + if ($changed == true) { + foreach(array_reverse(array_keys($values)) as $key) + { + $array[$key] = $values[$key]; + } + } + } else { + $changed = false; + $values = array(); + foreach(array_reverse(array_keys($array)) as $key) + { + if (substr($key, 0, strlen($spatial)) == $spatial && substr($key, strlen($key) - strlen($spatial), strlen($spatial)) == $spatial ) + { + $changed = true; + $newkey = substr($key, strlen($spatial), strlen($key) - strlen($spatial) - strlen($spatial)); + if (is_array($values[$key])) + $values[$newkey] = $this->modifyNumericKeys($array[$key], $convert); + else + $values[$newkey] = $array[$key]; + unset($array[$key]); + } + } + if ($changed == true) { + foreach(array_reverse(array_keys($values)) as $key) + { + $array[$key] = $values[$key]; + } + } + } + return $array; + } + + /** + * + */ + private function generateToken() + { + return sha1($this->getVar('filename').$this->getVar('path').$this->getCryptingSalt().microtime(true)); + } + + /** + * + * @param string $filename + * @return boolean|string + */ + private function parse($array = array()) + { + if (!in_array($this->getVar('method'), array_keys(RadiooIOHandler::getMethods()))) + $this->setVar('method', $this->_method); + $function = $this->_getFunction($this->getVar('method')); + return $this->$function((!empty($this->_root)?array($this->_root => $array):$array)); + } + + /** + * + * @param string $filename + * @return boolean|string + */ + private function convert($data = '') + { + if (!in_array($this->getVar('method'), array_keys(RadiooIOHandler::getMethods()))) + $this->setVar('method', $this->_method); + $function = $this->_getFunction($this->getVar('method')); + $ret = $this->$function($data); + return (isset($ret[$this->_root])?$ret[$this->_root]:$ret); + } + + /** + * + * @param string $mixed + * @param string $directive + * @return string|mixed|boolean + */ + private function parseXML($mixed = '', $directive = '') + { + if (empty($directive)) + { + if (is_array($mixed)) + $directive = 'pack'; + else + $directive = 'unpack'; + } + switch ($directive) + { + case "pack": + $dom = new RadiooXMLObjectivity('1.0', 'utf-8'); + $dom->fromMixed($this->modifyNumericKeys($array, false)); + return $dom->saveXML(); + break; + case "unpack": + return $this->modifyNumericKeys(RadiooXMLtoArray::createArray($mixed), true); + break; + } + return false; + } + + /** + * + * @param string $mixed + * @param string $directive + * @return string|mixed|boolean + */ + private function parseJSON($mixed = '', $directive = '') + { + if (empty($directive)) + { + if (is_array($mixed)) + $directive = 'pack'; + else + $directive = 'unpack'; + } + switch ($directive) + { + case "pack": + return json_encode($mixed); + break; + case "unpack": + return json_decode($mixed, true); + break; + } + return false; + } + + /** + * + * @param string $mixed + * @param string $directive + * @return string|mixed|boolean + */ + private function parseSerialisation($mixed = '', $directive = '') + { + if (empty($directive)) + { + if (is_array($mixed)) + $directive = 'pack'; + else + $directive = 'unpack'; + } + switch ($directive) + { + case "pack": + return serialize($mixed); + break; + case "unpack": + return unserialize($mixed); + break; + } + return false; + } + + /** + * + * @param string $filename + * @return boolean|string + */ + private function deleteDataStore() + { + foreach(RadiooIOHandler::getMethods() as $extension => $function) + { + if ($file = $this->file_exists($this->getVar('path'), $this->getVar('filename'))) + if (unlink($file)) + $this->setVar('deleted', time(true)); + + } + return true; + } + + + /** + * + * @param string $filename + * @return boolean|string + */ + private function readDataStore($filename = '', $md5 = '') + { + $store = array(); + if ($store = $this->decryptDataStore(RadiooFileSystem::getFileContents($filename))) + $this->setVar('read', time(true)); + if ($md5 == $this->_calcMD5($store)) + return $store; + return array(); + } + + /** + * + * @param string $data + * @param string $filename + * @return boolean + */ + private function saveDataStore($data = '', $filename = '') + { + if (file_exists($filename)) + unlink($filename); + + if (empty($data)) + return false; + + if (RadiooFileSystem::saveFileContent($filename, $this->encryptDataStore($data))) + { + $this->setVar('saved', time(true)); + $this->setVar('md5_store', md5_file($filename)); + $this->setVar('bytes_store', filesize($filename)); + if (strlen($this->getVar('token'))) + $this->setVar('token', $this->generateToken()); + } + + } + + /** + * + * @param string $data + * @return Ambigous <s, string>|string + */ + private function encryptDataStore($data = '') + { + if ($this->hasCryptingSalt() && class_exists('RadiooCrypt')) + { + $crypt = new RadiooCrypt($this->getCryptingSalt()); + return $crypt->encrypt($data); + } + return $data; + } + + /** + * + * @param string $data + * @return Ambigous <s, string>|string + */ + private function decryptDataStore($data = '') + { + if ($this->hasCryptingSalt() && class_exists('RadiooCrypt')) + { + $crypt = new RadiooCrypt($this->getCryptingSalt()); + return $crypt->decrypt($data); + } + return $data; + } +} + +/** + * + * @author Simon Roberts <si...@la...> + * + */ +class RadiooIOHandler extends XoopsPersistableObjectHandler +{ + + /** + * + * @var array() + */ + static protected $__methods = array('json' => 'parseJSON', 'xml' => 'parseXML', 'serial' => 'parseSerialisation'); + + /** + * + * @var array() + */ + static protected $__suffix = array('json' => 'json', 'xml' => 'xml', 'serial' => 'serial'); + + /** + * + * @param string $method + */ + function __construct(&$db) + { + parent::__construct($db, "radioo_iostores", "RadiooStore", "id"); + } + + /** + * + * @return multitype:string + */ + static function getMethods() + { + return self::$__methods; + } + + /** + * + * @return multitype:string + */ + static function getFileSuffix() + { + return self::$__suffix; + } + + /** + * (non-PHPdoc) + * @see XoopsPersistableObjectHandler::insert() + */ + public function insert($object, $force = true) + { + $object->save(); + return parent::insert($object, $force); + } + + + /** + * + * @param string $filename + * @param string $path + * @param unknown $data + * @return mixed + */ + public function saveByFileSystem($filename = '', $path = '', $data = array()) + { + $object = $this->getObjectByFileSystem($filename, $path); + $object->_assignData($data, $object->_calcMD5($data)); + $object->setVar('filename', $filename); + $object->setVar('path', $path); + return $this->insert($object); + } + + /** + * + * @param string $token + * @param unknown $data + * @return mixed + */ + public function saveByToken($token = '', $data = array()) + { + $object = $this->getObjectByToken($token); + if (!$object->isNew()) + { + $object->_assignData($data, $object->_calcMD5($data)); + $object->setVar('filename', $filename); + $object->setVar('path', $path); + return $this->insert($object); + } + } + + /** + * + * @param string $filename + * @param string $path + * @return Ambigous <> + */ + public function getObjectByFileSystem($filename = '', $path = '') + { + $criteria = new CriteriaCompo(new Criteria('filename', $filename)); + $criteria->add(new Criteria('path', $path)); + if ($this->getCount($citeria)==1) + { + $objects = $this->getObjects($criteria, false); + if (is_a($objects[0], "RadiooIO")) + return $objects[0]; + } + return $this->create(); + } + + /** + * + * @param string $filename + * @param string $path + * @return multitype: + */ + public function getDataByFileSystem($filename = '', $path = '') + { + if (is_a($object = $this->getObjectByFileSystem($filename, $path), "RadiooIO")) + return $object->_getData(); + return array(); + } + + /** + * + * @param string $token + * @return unknown + */ + public function getObjectByToken($token = '') + { + $criteria = new CriteriaCompo(new Criteria('token', $token)); + if ($this->getCount($citeria)==1) + { + $objects = $this->getObjects($criteria, false); + if (is_a($objects[0], "RadiooIO")) + return $objects[0]; + } + return $this->create(); + } + + /** + * + * @param string $token + * @return multitype: + */ + public function getDataByToken($token = '') + { + if (is_a($object = $this->getObjectByToken($token), "RadiooIO")) + return $object->_getData(); + return array(); + } + + /** + * + * @param number $ioid + * @return multitype: + */ + public function getDataByID($ioid = 0) + { + if (is_a($object = $this->get($ioid), "RadiooIO")) + return $object->_getData(); + return array(); + } +} \ No newline at end of file Property changes on: XoopsModules/radioo/trunk/modules/radioo/class/io.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/radioo/trunk/modules/radioo/css/fonts.css =================================================================== --- XoopsModules/radioo/trunk/modules/radioo/css/fonts.css (rev 0) +++ XoopsModules/radioo/trunk/modules/radioo/css/fonts.css 2014-10-28 20:58:03 UTC (rev 12822) @@ -0,0 +1,26 @@ +/* + * Chronolabs XOOPS Chat Module - xALKY + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + * @copyright Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package radioo + * @since 1.111 + * @author Antony Cipher <ci...@la...> + * @author Simon Roberts <me...@la...> + * @subpackage kernel + * @description Chronolabs XOOPS Module for Chat and Walky Talky Services + * + */ + +/* Put your @font-face include, in first for IE and after others browsers */ + +@import url('../fonts/diavlo_black_ii_37.css'); +@import url('../fonts/diavlo_book_ii_37.css'); +@import url('../fonts/diavlo_medium_ii_37.css'); \ No newline at end of file Added: XoopsModules/radioo/trunk/modules/radioo/css/index.html =================================================================== --- XoopsModules/radioo/trunk/modules/radioo/css/index.html (rev 0) +++ XoopsModules/radioo/trunk/modules/radioo/css/index.html 2014-10-28 20:58:03 UTC (rev 12822) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/radioo/trunk/modules/radioo/css/jplayer.css =================================================================== --- XoopsModules/radioo/trunk/modules/radioo/css/jplayer.css (rev 0) +++ XoopsModules/radioo/trunk/modules/radioo/css/jplayer.css 2014-10-28 20:58:03 UTC (rev 12822) @@ -0,0 +1,654 @@ +/* + * Chronolabs XOOPS Chat Module - xALKY + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + * @copyright Chronolabs Cooperative http://labs.coop + * @license General Software Licence (https://web.labs.coop/public/legal/general-software-license/10,3.html) + * @package radioo + * @since 1.111 + * @author Antony Cipher <ci...@la...> + * @author Simon Roberts <me...@la...> + * @subpackage kernel + * @description Chronolabs XOOPS Module for Chat and Walky Talky Services + * + */ + + /* + * Skin for jPlayer Plugin (jQuery JavaScript Library) + * http://www.jplayer.org + * + * Skin Name: Blue Monday + * + * Copyright (c) 2010-2014 Happyworm Ltd + * Licensed under the MIT license. + * - http://www.opensource.org/licenses/mit-license.php + * + * Author: Silvia Benvenuti + * Skin Version: 4.4 (jPlayer 2.6.0) + * Date: 1st April 2014 + */ + +div.jp-audio, +div.jp-audio-stream, +div.jp-video { + font-size:1.25em; /* 1.25em for testing in site pages */ /* No parent CSS that can effect the size in the demos ZIP */ + font-family:'DiavloMedium',Verdana, Arial, sans-serif; + line-height:1.6; + color: #666; + border:1px solid #009be3; + background-color:#eee; +} +div.jp-audio { + width:420px; +} +div.jp-audio-stream { + width:182px; +} +div.jp-video-270p { + width:480px; +} +div.jp-video-360p { + width:640px; +} +div.jp-video-full { + /* Rules for IE6 (full-screen) */ + width:480px; + height:270px; + /* Rules for IE7 (full-screen) - Otherwise the relative container causes other page items that are not position:static (default) to appear over the video/gui. */ + position:static !important; position:relative; +} + +/* The z-index rule is defined in this manner to enable Popcorn plugins that add overlays to video area. EG. Subtitles. */ +div.jp-video-full div div { + z-index:1000; +} + +div.jp-video-full div.jp-jplayer { + top: 0; + left: 0; + position: fixed !important; position: relative; /* Rules for IE6 (full-screen) */ + overflow: hidden; +} + +div.jp-video-full div.jp-gui { + position: fixed !important; position: static; /* Rules for IE6 (full-screen) */ + top: 0; + left: 0; + width:100%; + height:100%; + z-index:1001; /* 1 layer above the others. */ +} + +div.jp-video-full div.jp-interface { + position: absolute !important; position: relative; /* Rules for IE6 (full-screen) */ + bottom: 0; + left: 0; +} + +div.jp-interface { + position: relative; + background-color:#eee; + width:100%; +} + +div.jp-audio div.jp-type-single div.jp-interface { + height:80px; +} +div.jp-audio div.jp-type-playlist div.jp-interface { + height:80px; +} + +div.jp-audio-stream div.jp-type-single div.jp-interface { + height:80px; +} + +div.jp-video div.jp-interface { + border-top:1px solid #009be3; +} + +/* @group CONTROLS */ + +div.jp-controls-holder { + clear: both; + width:440px; + margin:0 auto; + position: relative; + overflow:hidden; + top:-8px; /* This negative value depends on the size of the text in jp-currentTime and jp-duration */ +} + +div.jp-interface ul.jp-controls { + list-style-type:none; + margin:0; + padding: 0; + overflow:hidden; +} + +div.jp-audio ul.jp-controls { + width: 380px; + padding:20px 20px 0 20px; +} + +div.jp-audio-stream ul.jp-controls { + width: 142px; + padding:20px 20px 0 20px; +} + +div.jp-video div.jp-type-single ul.jp-controls { + width: 78px; + margin-left: 200px; +} + +div.jp-video div.jp-type-playlist ul.jp-controls { + width: 134px; + margin-left: 172px; +} +div.jp-video ul.jp-controls, +div.jp-interface ul.jp-controls li { + display:inline; + float: left; +} + +div.jp-interface ul.jp-controls a { + display:block; + overflow:hidden; + text-indent:-9999px; +} +a.jp-play, +a.jp-pause { + width:40px; + height:40px; +} + +a.jp-play { + background: url("../images/monday.jpg") 0 0 no-repeat; +} +a.jp-play:hover { + background: url("../images/monday.jpg") -41px 0 no-repeat; +} +a.jp-pause { + background: url("../images/monday.jpg") 0 -42px no-repeat; + display: none; +} +a.jp-pause:hover { + background: url("../images/monday.jpg") -41px -42px no-repeat; +} + +a.jp-stop, a.jp-previous, a.jp-next { + width:28px; + height:28px; + margin-top:6px; +} + +a.jp-stop { + background: url("../images/monday.jpg") 0 -83px no-repeat; + margin-left:10px; +} + +a.jp-stop:hover { + background: url("../images/monday.jpg") -29px -83px no-repeat; +} + +a.jp-previous { + background: url("../images/monday.jpg") 0 -112px no-repeat; +} +a.jp-previous:hover { + background: url("../images/monday.jpg") -29px -112px no-repeat; +} + +a.jp-next { + background: url("../images/monday.jpg") 0 -141px no-repeat; +} +a.jp-next:hover { + background: url("../images/monday.jpg") -29px -141px no-repeat; +} + +/* @end */ + +/* @group progress bar */ + +div.jp-progress { + overflow:hidden; + background-color: #ddd; +} +div.jp-audio div.jp-progress { + position: absolute; + top:32px; + height:15px; +} +div.jp-audio div.jp-type-single div.jp-progress { + left:110px; + width:186px; +} +div.jp-audio div.jp-type-playlist div.jp-progress { + left:166px; + width:130px; +} +div.jp-video div.jp-progress { + top:0px; + left:0px; + width:100%; + height:10px; +} +div.jp-seek-bar { + background: url("../images/monday.jpg") 0 -202px repeat-x; + width:0px; + height:100%; + cursor: pointer; +} +div.jp-play-bar { + background: url("../images/monday.jpg") 0 -218px repeat-x ; + width:0px; + height:100%; +} + +/* The seeking class is added/removed inside jPlayer */ +div.jp-seeking-bg { + background: url("../images/monday.seeking.gif"); +} + +/* @end */ + +/* @group volume controls */ + + +a.jp-mute, +a.jp-unmute, +a.jp-volume-max { + width:18px; + height:15px; + margin-top:12px; +} + +div.jp-audio div.jp-type-single a.jp-mute, +div.jp-audio div.jp-type-single a.jp-unmute { + margin-left: 210px; +} +div.jp-audio div.jp-type-playlist a.jp-mute, +div.jp-audio div.jp-type-playlist a.jp-unmute { + margin-left: 154px; +} + +div.jp-audio-stream div.jp-type-single a.jp-mute, +div.jp-audio-stream div.jp-type-single a.jp-unmute { + margin-left:10px; +} + +div.jp-audio a.jp-volume-max, +div.jp-audio-stream a.jp-volume-max { + margin-left: 56px; +} + +div.jp-video a.jp-mute, +div.jp-video a.jp-unmute, +div.jp-video a.jp-volume-max { + position: absolute; + top:12px; + margin-top:0; +} + +div.jp-video a.jp-mute, +div.jp-video a.jp-unmute { + left: 50px; +} + +div.jp-video a.jp-volume-max { + left: 134px; +} + +a.jp-mute { + background: url("../images/monday.jpg") 0 -170px no-repeat; +} +a.jp-mute:hover { + background: url("../images/monday.jpg") -19px -170px no-repeat; +} +a.jp-unmute { + background: url("../images/monday.jpg") -60px -170px no-repeat; + display: none; +} +a.jp-unmute:hover { + background: url("../images/monday.jpg") -79px -170px no-repeat; +} +a.jp-volume-max { + background: url("../images/monday.jpg") 0 -186px no-repeat; +} +a.jp-volume-max:hover { + background: url("../images/monday.jpg") -19px -186px no-repeat; +} + +div.jp-volume-bar { + position: absolute; + overflow:hidden; + background: url("../images/monday.jpg") 0 -250px repeat-x; + width:46px; + height:5px; + cursor: pointer; +} +div.jp-audio div.jp-volume-bar { + top:37px; + left:330px; +} +div.jp-audio-stream div.jp-volume-bar { + top:37px; + left:92px; +} +div.jp-video div.jp-volume-bar { + top:17px; + left:72px; +} +div.jp-volume-bar-value { + background: url("../images/monday.jpg") 0 -256px repeat-x; + width:0px; + height:5px; +} + +/* @end */ + +/* @group current time and duration */ + +div.jp-audio div.jp-time-holder { + position:absolute; + top:50px; +} +div.jp-audio div.jp-type-single div.jp-time-holder { + left:110px; + width:186px; +} +div.jp-audio div.jp-type-playlist div.jp-time-holder { + left:166px; + width:130px; +} + +div.jp-current-time, +div.jp-duration { + width:60px; + font-size:.64em; + font-style:oblique; +} +div.jp-current-time { + float: left; + display:inline; +} +div.jp-duration { + float: right; + display:inline; + text-align: right; +} + +div.jp-video div.jp-current-time { + margin-left:20px; +} +div.jp-video div.jp-duration { + margin-right:20px; +} + +/* @end */ + +/* @group playlist */ + +div.jp-details { + font-weight:bold; + text-align:center; +} + +div.jp-details, +div.jp-playlist { + width:100%; + background-color:#ccc; + border-top:1px solid #009be3; +} +div.jp-type-single div.jp-details, +div.jp-type-playlist div.jp-details, +div.jp-type-single div.jp-playlist { + border-top:none; +} +div.jp-details ul, +div.jp-playlist ul { + list-style-type:none; + margin:0; + padding:0 20px; + font-size:.72em; +} + +div.jp-details li { + padding:5px 0; + font-weight:bold; +} +div.jp-playlist li { + padding:5px 0 4px 20px; + border-bottom:1px solid #eee; +} + +div.jp-playlist li div { + display:inline; +} + +/* Note that the first-child (IE6) and last-child (IE6/7/8) selectors do not work on IE */ + +div.jp-type-playlist div.jp-playlist li:last-child { + padding:5px 0 5px 20px; + border-bottom:none; +} +div.jp-type-playlist div.jp-playlist li.jp-playlist-current { + list-style-type:square; + list-style-position:inside; + padding-left:7px; +} +div.jp-type-playlist div.jp-playlist a { + color: #333; + text-decoration: none; +} +div.jp-type-playlist div.jp-playlist a:hover { + color:#0d88c1; +} +div.jp-type-playlist div.jp-playlist a.jp-playlist-current { + color:#0d88c1; +} + +div.jp-type-playlist div.jp-playlist a.jp-playlist-item-remove { + float:right; + display:inline; + text-align:right; + margin-right:10px; + font-weight:bold; + color:#666; +} +div.jp-type-playlist div.jp-playlist a.jp-playlist-item-remove:hover { + color:#0d88c1; +} +div.jp-type-playlist div.jp-playlist span.jp-free-media { + float:right; + display:inline; + text-align:right; + margin-right:10px; +} +div.jp-type-playlist div.jp-playlist span.jp-free-media a{ + color:#666; +} +div.jp-type-playlist div.jp-playlist span.jp-free-media a:hover{ + color:#0d88c1; +} +span.jp-artist { + font-size:.8em; + color:#666; +} + +/* @end */ + +div.jp-video-play { + width:100%; + overflow:hidden; /* Important for nested negative margins to work in modern browsers */ + cursor:pointer; + background-color:rgba(0,0,0,0); /* Makes IE9 work with the active area over the whole video area. IE6/7/8 only have the button as active area. */ +} +div.jp-video-270p div.jp-video-play { + margin-top:-270px; + height:270px; +} +div.jp-video-360p div.jp-video-play { + margin-top:-360px; + height:360px; +} +div.jp-video-full div.jp-video-play { + height:100%; +} +a.jp-video-play-icon { + position:relative; + display:block; + width: 112px; + height: 100px; + + margin-left:-56px; + margin-top:-50px; + left:50%; + top:50%; + + background: url("../images/monday.video.play.png") 0 0 no-repeat; + text-indent:-9999px; +} +div.jp-video-play:hover a.jp-video-play-icon { + background: url("../images/monday.video.play.png") 0 -100px no-repeat; +} + + + + + +div.jp-jplayer audio, +div.jp-jplayer { + width:0px; + height:0px; +} + +div.jp-jplayer { + background-color: #000000; +} + + + + + +/* @group TOGGLES */ + +/* The audio toggles are nested inside jp-time-holder */ + +ul.jp-toggles { + list-style-type:none; + padding:0; + margin:0 auto; + overflow:hidden; +} + +div.jp-audio .jp-type-single ul.jp-toggles { + width:25px; +} +div.jp-audio .jp-type-playlist ul.jp-toggles { + width:55px; + margin: 0; + position: absolute; + left: 325px; + top: 50px; +} + +div.jp-video ul.jp-toggles { + margin-top:10px; + width:100px; +} + +ul.jp-toggles li { + display:block; + float:right; +} + +ul.jp-toggles li a { + display:block; + width:25px; + height:18px; + text-indent:-9999px; + line-height:100%; /* need this for IE6 */ +} + +a.jp-full-screen { + background: url("../images/monday.jpg") 0 -310px no-repeat; + margin-left: 20px; +} + +a.jp-full-screen:hover { + background: url("../images/monday.jpg") -30px -310px no-repeat; +} + +a.jp-restore-screen { + background: url("../images/monday.jpg") -60px -310px no-repeat; + margin-left: 20px; +} + +a.jp-restore-screen:hover { + background: url("../images/monday.jpg") -90px -310px no-repeat; +} + +a.jp-repeat { + background: url("../images/monday.jpg") 0 -290px no-repeat; +} + +a.jp-repeat:hover { + background: url("../images/monday.jpg") -30px -290px no-repeat; +} + +a.jp-repeat-off { + background: url("../images/monday.jpg") -60px -290px no-repeat; +} + +a.jp-repeat-off:hover { + background: url("../images/monday.jpg") -90px -290px no-repeat; +} + +a.jp-shuffle { + background: url("../images/monday.jpg") 0 -270px no-repeat; + margin-left: 5px; +} + +a.jp-shuffle:hover { + background: url("../images/monday.jpg") -30px -270px no-repeat; +} + +a.jp-shuffle-off { + background: url("../images/monday.jpg") -60px -270px no-repeat; + margin-left: 5px; +} + +a.jp-shuffle-off:hover { + background: url("../images/monday.jpg") -90px -270px no-repeat; +} + + +/* @end */ + +/* @group NO SOLUTION error feedback */ + +.jp-no-solution { + padding:5px; + font-size:.8em; + background-color:#eee; + border:2px solid #009be3; + color:#000; + display:none; +} + +.jp-no-solution a { + color:#000; +} + +.jp-no-solution span { + font-size:1em; + display:block; + text-align:center; + font-weight:bold; +} + +/* @end */ Added: XoopsModules/radioo/trunk/modules/radioo/css/style.css =================================================================== --- XoopsModules/radioo/trunk/modules/radioo/css/style.css (rev 0) +++ XoopsModules/radioo/trunk/modules/radioo/css/style.css 2014-10-28 20:58:03 UTC (rev 12822) @@ -0,0 +1,9 @@ +@CHARSET "UTF-8"; + +.radioo, #radioo, .radioo-block, #radioo-block +{ + font-size: 1.1392em; + font-family: 'DiavloBook',Verdana, Arial, sans-serif; + line-height: 1.6; + text-shadow: 2px 2px 4px rgb(12, 13, 29); +} \ No newline at end of file Added: XoopsModules/radioo/trunk/modules/radioo/docs/index.html =================================================================== --- XoopsModules/radioo/trunk/modules/radioo/docs/index.html (rev 0) +++ XoopsModules/radioo/trunk/modules/radioo/docs/index.html 2014-10-28 20:58:03 UTC (rev 12822) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/radioo/trunk/modules/radioo/flash/Jplayer.swf =====... [truncated message content] |
From: <be...@us...> - 2014-11-12 12:20:19
|
Revision: 12838 http://sourceforge.net/p/xoops/svn/12838 Author: beckmi Date: 2014-11-12 12:20:01 +0000 (Wed, 12 Nov 2014) Log Message: ----------- Adding eGuide module Added Paths: ----------- XoopsModules/eguide/ XoopsModules/eguide/branches/ XoopsModules/eguide/releases/ XoopsModules/eguide/trunk/ XoopsModules/eguide/trunk/eguide/ XoopsModules/eguide/trunk/eguide/README.txt XoopsModules/eguide/trunk/eguide/admin/ XoopsModules/eguide/trunk/eguide/admin/admin_header.php XoopsModules/eguide/trunk/eguide/admin/conv230.php XoopsModules/eguide/trunk/eguide/admin/help.php XoopsModules/eguide/trunk/eguide/admin/index.php XoopsModules/eguide/trunk/eguide/admin/menu.php XoopsModules/eguide/trunk/eguide/admin/mymenu.php XoopsModules/eguide/trunk/eguide/admin.php XoopsModules/eguide/trunk/eguide/blocks/ XoopsModules/eguide/trunk/eguide/blocks/ev_cat.php XoopsModules/eguide/trunk/eguide/blocks/ev_top.php XoopsModules/eguide/trunk/eguide/blocks/index.html XoopsModules/eguide/trunk/eguide/collect.php XoopsModules/eguide/trunk/eguide/comment_delete.php XoopsModules/eguide/trunk/eguide/comment_edit.php XoopsModules/eguide/trunk/eguide/comment_new.php XoopsModules/eguide/trunk/eguide/comment_post.php XoopsModules/eguide/trunk/eguide/comment_reply.php XoopsModules/eguide/trunk/eguide/const.php XoopsModules/eguide/trunk/eguide/duplicate.php XoopsModules/eguide/trunk/eguide/editdate.php XoopsModules/eguide/trunk/eguide/entry.php XoopsModules/eguide/trunk/eguide/event.php XoopsModules/eguide/trunk/eguide/export.php XoopsModules/eguide/trunk/eguide/functions.php XoopsModules/eguide/trunk/eguide/header.php XoopsModules/eguide/trunk/eguide/images/ XoopsModules/eguide/trunk/eguide/images/calendar.png XoopsModules/eguide/trunk/eguide/images/eguide_slogo2.png XoopsModules/eguide/trunk/eguide/images/printer.png XoopsModules/eguide/trunk/eguide/include/ XoopsModules/eguide/trunk/eguide/include/index.html XoopsModules/eguide/trunk/eguide/include/notification.inc.php XoopsModules/eguide/trunk/eguide/include/search.inc.php XoopsModules/eguide/trunk/eguide/index.php XoopsModules/eguide/trunk/eguide/language/ XoopsModules/eguide/trunk/eguide/language/english/ XoopsModules/eguide/trunk/eguide/language/english/admin.php XoopsModules/eguide/trunk/eguide/language/english/blocks.php XoopsModules/eguide/trunk/eguide/language/english/changes.html XoopsModules/eguide/trunk/eguide/language/english/common.php XoopsModules/eguide/trunk/eguide/language/english/help.html XoopsModules/eguide/trunk/eguide/language/english/index.html XoopsModules/eguide/trunk/eguide/language/english/mail_template/ XoopsModules/eguide/trunk/eguide/language/english/mail_template/accept.tpl XoopsModules/eguide/trunk/eguide/language/english/mail_template/cancel.tpl XoopsModules/eguide/trunk/eguide/language/english/mail_template/confirm.tpl XoopsModules/eguide/trunk/eguide/language/english/mail_template/notify.tpl XoopsModules/eguide/trunk/eguide/language/english/mail_template/notify_admin_change.tpl XoopsModules/eguide/trunk/eguide/language/english/mail_template/notify_admin_new.tpl XoopsModules/eguide/trunk/eguide/language/english/mail_template/notify_user_new.tpl XoopsModules/eguide/trunk/eguide/language/english/mail_template/order.tpl XoopsModules/eguide/trunk/eguide/language/english/main.php XoopsModules/eguide/trunk/eguide/language/english/modinfo.php XoopsModules/eguide/trunk/eguide/language/index.html XoopsModules/eguide/trunk/eguide/module_icon.php XoopsModules/eguide/trunk/eguide/mydirname.php XoopsModules/eguide/trunk/eguide/mylist.php XoopsModules/eguide/trunk/eguide/notification_update.php XoopsModules/eguide/trunk/eguide/notify.inc.php XoopsModules/eguide/trunk/eguide/onupdate.php XoopsModules/eguide/trunk/eguide/perm.php XoopsModules/eguide/trunk/eguide/plugins/ XoopsModules/eguide/trunk/eguide/plugins/dlimit.php XoopsModules/eguide/trunk/eguide/plugins/language/ XoopsModules/eguide/trunk/eguide/plugins/language/english/ XoopsModules/eguide/trunk/eguide/plugins/language/english/dlimit.php XoopsModules/eguide/trunk/eguide/plugins/language/ja_utf8/ XoopsModules/eguide/trunk/eguide/plugins/language/ja_utf8/dlimit.php XoopsModules/eguide/trunk/eguide/plugins.php XoopsModules/eguide/trunk/eguide/print.css XoopsModules/eguide/trunk/eguide/receipt.php XoopsModules/eguide/trunk/eguide/reserv.php XoopsModules/eguide/trunk/eguide/reserv_func.php XoopsModules/eguide/trunk/eguide/sendinfo.php XoopsModules/eguide/trunk/eguide/sql/ XoopsModules/eguide/trunk/eguide/sql/mysql.sql XoopsModules/eguide/trunk/eguide/style.css XoopsModules/eguide/trunk/eguide/templates/ XoopsModules/eguide/trunk/eguide/templates/blocks/ XoopsModules/eguide/trunk/eguide/templates/blocks/eguide_block_category.html XoopsModules/eguide/trunk/eguide/templates/blocks/eguide_block_post.html XoopsModules/eguide/trunk/eguide/templates/blocks/eguide_block_top.html XoopsModules/eguide/trunk/eguide/templates/eguide_admin.html XoopsModules/eguide/trunk/eguide/templates/eguide_collect.html XoopsModules/eguide/trunk/eguide/templates/eguide_confirm.html XoopsModules/eguide/trunk/eguide/templates/eguide_editdate.html XoopsModules/eguide/trunk/eguide/templates/eguide_entry.html XoopsModules/eguide/trunk/eguide/templates/eguide_event.html XoopsModules/eguide/trunk/eguide/templates/eguide_event_print.html XoopsModules/eguide/trunk/eguide/templates/eguide_excel.xml XoopsModules/eguide/trunk/eguide/templates/eguide_index.html XoopsModules/eguide/trunk/eguide/templates/eguide_item.html XoopsModules/eguide/trunk/eguide/templates/eguide_mylist.html XoopsModules/eguide/trunk/eguide/templates/eguide_receipt.html XoopsModules/eguide/trunk/eguide/templates/eguide_receipt_print.html XoopsModules/eguide/trunk/eguide/templates/eguide_userssel.html XoopsModules/eguide/trunk/eguide/templates/index.html XoopsModules/eguide/trunk/eguide/xoops_version.php Added: XoopsModules/eguide/trunk/eguide/README.txt =================================================================== --- XoopsModules/eguide/trunk/eguide/README.txt (rev 0) +++ XoopsModules/eguide/trunk/eguide/README.txt 2014-11-12 12:20:01 UTC (rev 12838) @@ -0,0 +1 @@ +Please See, language/*/help.html Added: XoopsModules/eguide/trunk/eguide/admin/admin_header.php =================================================================== --- XoopsModules/eguide/trunk/eguide/admin/admin_header.php (rev 0) +++ XoopsModules/eguide/trunk/eguide/admin/admin_header.php 2014-11-12 12:20:01 UTC (rev 12838) @@ -0,0 +1,19 @@ +<?php +include '../../../include/cp_header.php'; + +$modbase = dirname(dirname(__FILE__)); +if (!defined("_MD_ORDER_DATE")) { + if (class_exists("XCube_Root")) { + $root =& XCube_Root::getSingleton(); + + $root->mLanguageManager->_loadLanguage($xoopsModule->getVar('dirname'), 'common'); + } else { + $modres = $modbase."/language"; + $lang = $xoopsConfig['language']; + if (file_exists("$modres/$lang/common.php")) include_once "$modres/$lang/common.php"; + else include_once "$modres/english/common.php"; + } +} +include "$modbase/const.php"; +include "$modbase/functions.php"; +?> \ No newline at end of file Property changes on: XoopsModules/eguide/trunk/eguide/admin/admin_header.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/eguide/trunk/eguide/admin/conv230.php =================================================================== --- XoopsModules/eguide/trunk/eguide/admin/conv230.php (rev 0) +++ XoopsModules/eguide/trunk/eguide/admin/conv230.php 2014-11-12 12:20:01 UTC (rev 12838) @@ -0,0 +1,71 @@ +<?php +// convert text serialize before 2.30 +// $Id$ + +include "admin_header.php"; + +// note: search text fields special string as ": \"+"\n" +$res = $xoopsDB->query("SELECT rvid,eid,info FROM ".RVTBL." WHERE info LIKE ".$xoopsDB->quoteString("%: \\\\\n%")); + +$count = $xoopsDB->getRowsNum($res); + +if (isset($_POST['convert'])) { + if ($count) { + $opts = array(); + while (list($rvid, $eid, $info) = $xoopsDB->fetchRow($res)) { + if (!isset($opts[$eid])) { + $ost = $xoopsDB->query("SELECT optfield FROM ".OPTBL." WHERE eid=".$eid); + list($opts[$eid]) = $xoopsDB->fetchRow($ost); + } + $item = $opts[$eid]; + $info = serialize_text(explodeinfo($info, $item)); + $xoopsDB->query("UPDATE ".RVTBL." SET info=".$xoopsDB->quoteString($info)." WHERE rvid=".$rvid); + } + } + redirect_header('index.php', 1, _AM_DBUPDATED); + exit; +} + +xoops_cp_header(); + +echo "<h2>Convert Format before eguide 2.30</h2>"; +echo "<div>"._AM_COUNT.": $count</div>"; +if ($count) { + echo "<form method='post'><input type='submit' name='convert'/></form>"; +} + +xoops_cp_footer(); + +// exploding addional informations. +// older CSV serialize +function explodeinfo($info, $item) { + if (!is_array($item)) $item = explodeopts($item); + $ln = explode("\n", preg_replace('/\r/','',$info)); + $n = 0; + $result = array(); + while ($a = array_shift($ln)) { + $lab = $item[$n]; + if (preg_match("/^".str_replace("/", '\/', quotemeta($lab)).": (.*)$/", $a, $m)) { + $v = isset($m[1])?$m[1]:""; + if ($m[1] == "\\") { + $v = ""; + $x = "/^".(isset($item[$n+1])?quotemeta($item[$n+1]):"\n").": /"; + while (count($ln) && !preg_match($x, $ln[0])) { + $a=array_shift($ln); + $v .= $v?"\n$a":$a; + } + } + $result[$lab] = "$v"; + } else { + global $xoopsConfig; + if (isset($xoopsConfig['debug']) && $xoopsConfig['debug']) { + echo "<span class='error'>".$item[$n].",$a</span>"; + } + break; + } + $n++; + } + return $result; +} + +?> Property changes on: XoopsModules/eguide/trunk/eguide/admin/conv230.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/eguide/trunk/eguide/admin/help.php =================================================================== --- XoopsModules/eguide/trunk/eguide/admin/help.php (rev 0) +++ XoopsModules/eguide/trunk/eguide/admin/help.php 2014-11-12 12:20:01 UTC (rev 12838) @@ -0,0 +1,82 @@ +<?php +# show language help.html +# $Id$ + +include '../../../include/cp_header.php'; +global $mydirpath, $mydirname; +$mydirpath = dirname(dirname(__FILE__)); +$mydirname = basename($mydirpath); + +// for compat older PHP 4.x +if(!function_exists("file_get_contents")) { + function file_get_contents($filename) { + $fp = fopen($filename, "rb"); + if (!$fp) return false; + $contents = ""; + while (! feof($fp)) { + $contents .= fread($fp, 4096); + } + return $contents; + } +} + +xoops_cp_header(); +include 'mymenu.php'; +if (function_exists('Legacy_function_stylesheet')) { + echo "<link href=\"".XOOPS_URL."/modules/legacyRender/admin/css.php?file=module.css&dirname=legacy\" media=\"all\" type=\"text/css\" rel=\"stylesheet\" />\n"; +} + +$myts =& MyTextSanitizer::getInstance(); +$file = isset($_GET['file'])? + $myts->stripSlashesGPC($_GET['file']):"help.html"; +display_lang_file($file); +xoops_cp_footer(); +exit; + +// show under language/XX/$file only <body> part. +function display_lang_file($file, $link='') { + global $xoopsConfig, $xoopsModule; + if (empty($link)) { + $link = preg_replace('/[&\?]?file=[^&]*|\?$/', '', $_SERVER['REQUEST_URI']); + $link .= preg_match('/\?/', $link)?'&':'?'; + $link .= 'file='; + } + $file = preg_replace('/^\/+/','',preg_replace('/\/?\\.\\.?\/|\/+/', '/', $file)); + $lang = "language/".$xoopsConfig['language']; + $help = "../$lang/$file"; + if (!file_exists($help)) { + $lang = 'language/english'; + $help = "../$lang/$file"; + } + $content = file_get_contents($help); + list($h, $b) = preg_split('/<\/?body>/', $content); + if (empty($b)) $b =& $content; + $murl = XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname'); + + if (preg_match('/<link[^>]*>/', $b, $match)) { + foreach ($match as $item) { + if (preg_match('/href=[\"\']?([^\"\']+)/', $item, $d)) { + $x = preg_replace('/'.preg_quote($d[1],'/').'/', "../$lang/".$d[1], $item); + $b = preg_replace('/'.preg_quote($item, '/').'/', $x, $b); + } + } + } + // link image + // need quote! (sence has protocol) + // follow only 1 level depth folder + $pat = array('/\ssrc=\'([^#][^\':]*)\'/', + '/\ssrc="([^#][^":]*)"/', + '/\shref=\'([^#\\.][^\':]*)\'/', + '/\shref="([^#\\.][^\':]*)"/', + '/\shref=([\'"]?)\\.\\.\\/\\.\\.\\//', + ); + $rep = array(" src='../$lang/\$1'", + " src=\"../$lang/\$1\"", + " href='$link\$1'", + " href=\"$link\$1\"", + " href=$1$murl/", + ); + echo '<div class="help">'.preg_replace($pat, $rep, $b).'</div>'; +} + +?> \ No newline at end of file Property changes on: XoopsModules/eguide/trunk/eguide/admin/help.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/eguide/trunk/eguide/admin/index.php =================================================================== --- XoopsModules/eguide/trunk/eguide/admin/index.php (rev 0) +++ XoopsModules/eguide/trunk/eguide/admin/index.php 2014-11-12 12:20:01 UTC (rev 12838) @@ -0,0 +1,491 @@ +<?php +// Event Guide global administration +// $Id$ + +include 'admin_header.php'; +include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; +include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; + +$op = param('op', 'events'); +$eid = param('eid'); + +function css_tags() { return array("even","odd"); } +if ($op == 'summary_csv') summary_csv(); + +global $mydirpath, $mydirname; +$mydirpath = dirname(dirname(__FILE__)); +$mydirname = basename($mydirpath); +if( ! empty( $_GET['lib'] ) ) { + // common libs (eg. altsys) + $lib = preg_replace( '/[^a-zA-Z0-9_-]/' , '' , $_GET['lib'] ) ; + $page = preg_replace( '/[^a-zA-Z0-9_-]/' , '' , @$_GET['page'] ) ; + + if( file_exists( XOOPS_TRUST_PATH.'/libs/'.$lib.'/'.$page.'.php' ) ) { + include XOOPS_TRUST_PATH.'/libs/'.$lib.'/'.$page.'.php' ; + } else if( file_exists( XOOPS_TRUST_PATH.'/libs/'.$lib.'/index.php' ) ) { + include XOOPS_TRUST_PATH.'/libs/'.$lib.'/index.php' ; + } else { + die( 'wrong request' ) ; + } + exit; +} + +switch ($op) { +case 'catsave': + $catid=intval($_POST['catid']); + $vals = array(); + foreach (array('catname', 'catdesc', 'catpri', 'weight', 'catimg') as $k) { + $vals[$k] = $xoopsDB->quoteString(param($k,'')); + } + if ($catid) { + foreach ($vals as $k=>$v) { + $vals[$k] = "$k=$v"; + } + $xoopsDB->query("UPDATE ".CATBL." SET ".join(',', $vals)." WHERE catid=$catid"); + } else { + $xoopsDB->query("INSERT INTO ".CATBL."(".join(',', array_keys($vals)).") VALUES (".join(',', $vals).")"); + } + redirect_header("?op=category",1,_AM_DBUPDATED); + exit; + +case 'save': + $status = param('status'); + $uid = param('uid'); + $result = $xoopsDB->query("UPDATE ".EGTBL." SET uid=$uid, status=$status WHERE eid=$eid"); + redirect_header("?op=events",1,_AM_DBUPDATED); + exit; +case 'delnotify': + $dels = array(); + foreach ($_POST['rm'] as $v) { + $dels[] = intval($v); + } + $result = $xoopsDB->queryF($sql = "DELETE FROM ".RVTBL." WHERE eid=0 AND rvid IN (".join(',', $dels).")"); + redirect_header("?op=notifies",1,_AM_DBUPDATED); + exit; + +case 'catdel': + $dels = $_POST['dels']; + foreach (array_keys($dels) as $i) { + $dels[$i] = intval($i); + } + $res = $xoopsDB->query("DELETE FROM ".CATBL." WHERE catid IN (".join(",",$dels).")"); + redirect_header("?op=category",1,_AM_DBUPDATED); + exit; + +case 'impsave': + $mid = param('mid'); + $res = $xoopsDB->query('SELECT * FROM '.$xoopsDB->prefix('newblocks')." WHERE mid=$mid AND func_num=1"); + if (!$res || $xoopsDB->getRowsNum($res)!=1) { + redirect_header('?op=category', 3, _NOPERM); + exit; + } + $block = $xoopsDB->fetchArray($res); + $prefix = preg_replace('/_block_top\.html$/', '', $block['template']); + $xoopsDB->query('DELETE FROM '.CATBL); + function dbquote($x) { + global $xoopsDB; + return $xoopsDB->quoteString($x); + } + $res = $xoopsDB->query('SELECT * FROM '.$xoopsDB->prefix($prefix.'_category')); + while ($data = $xoopsDB->fetchArray($res)) { + if (!$xoopsDB->query('INSERT INTO '.CATBL.' VALUES ('.join(',', array_map('dbquote',$data)).')')) die('DB ERROR'); + } + redirect_header("?op=category", 1, _AM_DBUPDATED); + exit; +case 'resvCtrl': + $rv = isset($_POST['rv'])?$_POST['rv']:array(); + $ck = isset($_POST['ck'])?$_POST['ck']:array(); + $off = $on = ""; + foreach (array_keys($rv) as $k) { + if (isset($ck[$k])) { + if ($on!="") $on .= " OR "; + $on .= "eid=".intval($k); + } else { + if ($off!="") $off .= " OR "; + $off .= "eid=".intval($k); + } + } + if ($on != "") { + $result = $xoopsDB->query("UPDATE ".OPTBL." SET reservation=1 WHERE $on"); + } + if ($off != "") { + $result = $xoopsDB->query("UPDATE ".OPTBL." SET reservation=0 WHERE $off"); + } + redirect_header("?op=events",1,_AM_DBUPDATED); + exit; + +} + +xoops_cp_header(); +include 'mymenu.php'; + +$myts =& MyTextSanitizer::getInstance(); +$tags = css_tags(); + +switch ($op) { +case 'events': + echo "<h3>"._MI_EGUIDE_EVENTS."</h3>"; + echo '<hr /><br />'; + echo "<ul class=\"toptab\"><li class=\"add\"><a href=\"../admin.php\">"._MI_EGUIDE_SUBMIT."</a> </li></ul>\n"; + $result = $xoopsDB->query('SELECT count(eid) FROM '.EGTBL); + list($count) = $xoopsDB->fetchRow($result); + $max = $xoopsModuleConfig['max_list']; + $start = isset($_GET['start'])?intval($_GET['start']):0; + $nav = new XoopsPageNav($count, $max, $start, "start", 'op=events'); + + $result = $xoopsDB->query('SELECT o.*,edate,title,uid,status FROM '.EGTBL. + ' e LEFT JOIN '.OPTBL." o ON e.eid=o.eid ORDER BY e.eid DESC",$max,$start); + $n = 0; + echo "<form method='post'>\n"; + if ($count>$max) echo "<div>".$nav->renderNav()."</div>"; + echo "<table class='outer'>\n"; + echo "<tr><th>"._AM_RESERVATION."</th><th>". + _AM_EVENT_DAY."</th><th>"._AM_TITLE."</th>"; + echo "<th>"._AM_POSTER."</th><th>"._AM_DISP_STATUS."</th>"; + echo "<th>"._AM_OPERATION."</th></tr>\n"; + while ($data = $xoopsDB->fetchArray($result)) { + $bg = $tags[$n++%2]; + $eid = $data['eid']; + $date = eventdate($data['edate']); + $title = "<a href='../event.php?eid=$eid'>".$data['title']."</a>"; + $poster = new XoopsUser($data['uid']); + $u = "<a href='".XOOPS_URL."/userinfo.php?uid=".$poster->uid()."'>".$poster->uname()."</a>"; + $s = $data['status']; + $sn = $ev_stats[$data['status']]; + if ($s == STAT_DELETED) { + $sn = "<a href='../admin.php?op=delete&eid=$eid' class='deleted'>$sn</a>"; + } elseif ($s == STAT_POST) { + $sn = "<strong>$sn</strong>"; + } + $ors = $xoopsDB->query("SELECT reservation FROM ".OPTBL." WHERE eid=$eid"); + if ($xoopsDB->getRowsNum($ors)) { + list($resv) = $xoopsDB->fetchRow($ors); + $mk = "<input type='hidden' name='rv[$eid]' value='on' />"; + $mk .= "<input type='checkbox' name='ck[$eid]' ".($resv?" checked":"")." />"; + } else { + $mk = " "; + } + + $edit = "<a href='../admin.php?eid=$eid' class='edit'>"._EDIT."</a>". + " <a href='?op=edit&eid=$eid' class='status'>"._AM_EDIT."</a>". + " <a href='../admin.php?op=delete&eid=$eid' class='delete'>"._DELETE."</a>"; + echo "<tr class='$bg'><td align='center'>$mk</td><td>$date</td><td>$title</td>"; + echo "<td>$u</td><td>$sn</td><td class='operate'>$edit</td></tr>\n"; + } + echo "<tr><td colspan=\"6\" class=\"foot\">\n"; + echo "<input type='hidden' name='op' value='resvCtrl' />\n"; + echo "<input type='submit' value='"._AM_UPDATE."' />\n"; + echo "</td></tr></table></form>\n"; + $result = $xoopsDB->query("SELECT count(rvid) FROM ".RVTBL." WHERE eid=0"); + if ($result) { + list($n) = $xoopsDB->fetchRow($result); + echo "<ul class=\"toptab\"><li class=\"add\"><a href='?op=notifies'>"._MD_INFO_REQUEST."</a> ".sprintf(_MD_INFO_COUNT, $n)."</li></ul>\n"; + } + CloseTable(); + break; + +case 'notifies': + echo "<h3>"._MD_INFO_REQUEST."</h3>"; + echo '<hr /><br />'; + $cond = "eid=0"; + if (isset($_GET['q'])) { + $q = $_GET['q']; + $cond .= " AND email like '%$q%'"; + } + $result = $xoopsDB->query("SELECT * FROM ".RVTBL." WHERE $cond ORDER BY rdate"); + $n = 0; + $nc = $xoopsDB->getRowsNum($result); + echo "<form method='get'>\n". + _AM_INFO_SEARCH." <input name='q' />". + " <input type='hidden' name='op' value='notifies' />\n". + " <input type='submit' value='"._SUBMIT."' />\n". + "</form>\n"; + echo "<ul class=\"toptab\"><li class=\"add\"><a href='../reserv.php?op=register'>"._MI_EGUIDE_REG."</a></li></ul>\n"; + echo sprintf(_MD_INFO_COUNT, $nc); + if ($nc) { + echo "<form method='post'>\n". + "<input type='hidden' name='op' value='delnotify' />\n". + "<table class='outer'>\n". + "<tr><th></th><th>"._MD_ORDER_DATE."</th>". + "<th>"._AM_EMAIL."</th></tr>\n"; + while ($data = $xoopsDB->fetchArray($result)) { + $bg = $tags[$n++%2]; + $rvid = $data['rvid']; + $date = formatTimestamp($data['rdate'], _AM_POST_FMT); + $email = $data['email']; + if (isset($data['uid'])) { + $uid = $data['uid']; + $uinfo = " (<a href='".XOOPS_URL."/userinfo.php?uid=$uid'>".XoopsUser::getUnameFromId($uid)."</a>)"; + } else { + $uinfo = ""; + } + echo "<tr class='$bg'><td align='center'><input type='checkbox' name='rm[]' value='$rvid' /></td>". + "<td>$date</td><td>$email $uinfo</td></tr>\n"; + } + echo "<tr><td colspan=\"3\" class=\"foot\"><input type='submit' value='"._DELETE."' /> </td></tr>\n"; + echo "</table>"; + } else { + echo "<div class='error'>"._AM_NODATA."</div>"; + } + CloseTable(); + break; + +case 'edit': + $result = $xoopsDB->query("SELECT eid,edate,cdate,title,uid,status FROM ".EGTBL." WHERE eid=$eid"); + $data = $xoopsDB->fetchArray($result); + $date = eventdate($data['edate']); + $title = "<a href='../event.php?eid=$eid'>".$data['title']."</a>"; + $uid = $data['uid']; + $poster = new XoopsUser($uid); + $post = formatTimestamp($data['cdate'], _AM_POST_FMT); + + echo "<h3>"._MI_EGUIDE_EVENTS." >> "._AM_DISP_STATUS."</h3>"; + echo "<hr /><br />"; + echo "<form method='post'>\n"; + echo "<table class='outer'>\n"; + echo "<tr><th colspan=\"2\">"._AM_TITLE." : $title</th></tr>"; + echo "<tr><td class='head'>"._AM_EVENT_DAY."</td><td class='even'>$date</td></tr>\n"; + echo "<tr><td class='head'>"._AM_TITLE."</td><td class='odd'>$title</td></tr>\n"; + echo "<tr><td class='head'>"._AM_POSTER."</td><td class='even'>"; + $result = $xoopsDB->query("SELECT u.uid,groupid,uname". + " FROM ".$xoopsDB->prefix("groups_users_link")." l, ". + $xoopsDB->prefix("users")." u WHERE l.uid=u.uid AND ". + "(groupid=1 OR groupid=".$xoopsModuleConfig['group'].") GROUP BY u.uid ORDER BY uname"); + echo "<select name='uid'>\n"; + while($p=$xoopsDB->fetchArray($result)) { + $ck = ($uid==$p['uid'])?" selected":""; + printf("<option value='%d'$ck>%s</>\n", $p['uid'], $p['uname']); + } + echo "</select></td></tr>\n"; + echo "<tr><td class='head'>"._AM_POSTED."</td><td class='odd'>$post</td></tr>\n"; + echo "<tr><td class='head'>"._AM_DISP_STATUS."</td><td class='even'>\n"; + echo "<select name='status'>\n"; + $status=$data['status']; + foreach ($ev_stats as $i =>$v) { + $ck = ($status == $i)?" selected":""; + echo "<option value='$i'$ck>$v</option>\n"; + } + echo "</select>\n"; + echo "</td></tr>\n"; + echo "<tr><td colspan=\"2\" class=\"foot\"><input type='hidden' name='op' value='save' />"; + echo "<input type='hidden' name='eid' value='$eid' />"; + echo "<input type='submit' value='"._AM_UPDATE."' />"; + echo " <input type='button' value='"._AM_CANCEL."' onclick='javascript:history.go(-1)' />"; + echo "</td></tr></table>\n"; + echo "</form>"; + CloseTable(); + break; + +case 'category': + echo "<h3>"._AM_CATEGORY."</h3>\n"; + echo "<hr /><br />"; + + if (isset($_GET['catid'])) { + edit_category(intval($_GET['catid'])); + } else { + show_categories(); + } + break; + +case 'catimp': + echo "<h3>"._AM_CATEGORY."</h3>\n"; + echo "<hr /><br />"; + + import_category(); + break; + +case 'summary': + echo "<h3>"._AM_SUMMARY."</h3>\n"; + echo "<hr /><br />"; + + $now = time(); + $result = $xoopsDB->query('SELECT count(eid) FROM '.EGTBL.' LEFT JOIN '.EXTBL." ON eid=eidref"); + list($count) = $xoopsDB->fetchRow($result); + $max = $xoopsModuleConfig['max_list']; + $start = isset($_GET['start'])?intval($_GET['start']):0; + $nav = new XoopsPageNav($count, $max, $start, "start", 'op=summary'); + $show = XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/event.php'; + $receipt = XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/receipt.php'; + $result = $xoopsDB->query('SELECT e.eid,if(x.exid,x.exid,0) exid, IF(exdate,exdate,edate) exdate,title,uid,status,persons,IF(x.reserved,x.reserved,o.reserved) reserved FROM '.EGTBL.' e LEFT JOIN '.OPTBL.' o ON e.eid=o.eid LEFT JOIN '.EXTBL." x ON e.eid=eidref ORDER BY exdate DESC,e.eid DESC", $max, $start); + + if ($count>$max) echo $nav->renderNav(); + echo "<ul class=\"toptab\"><li class=\"save\"><a href='index.php?op=summary_csv'>"._MD_CSV_OUT."</a></li></ul>\n"; + + echo "<p>".sprintf(_MD_INFO_COUNT,$start+1)."/$count</p>"; + + echo "<table class='outer'>"; + $n = 0; + echo "<tr><th>ID</th><th>"._MD_EXTENT_DATE."</th><th>"._AM_TITLE."</th>". + "<th>"._AM_POSTER."</th><th>"._MD_RESERV_PERSONS."</th><th>"._AM_RESERVATION."</th></tr>\n"; + while ($data=$xoopsDB->fetchArray($result)) { + $bg = $tags[$n++%2]; + $eid = $data['eid']; + $exid = $data['exid']; + $id = $eid; + if ($exid) $id .= '-'.$exid; + $param = 'eid='.$eid; + if ($exid) $param .= '&sub='.$exid; + $date = eventdate($data['exdate']); + $title = "<a href='$show?$param'>".$myts->makeTboxData4Show($data['title'])."</a>"; + $uname = xoops_getLinkedUnameFromId($data['uid']); + $reserved = $data['reserved']; + if ($reserved) $reserved = "<a href='$receipt?$param'>$reserved</a>"; + echo "<tr class='$bg'><td>$id<td>$date</td><td>$title</td>". + "<td>$uname</td><td align='right'>".$data['persons']. + "</td><td align='right'>$reserved</td></tr>\n"; + } + echo "</table>"; + break; +} + +xoops_cp_footer(); + +function show_categories() { + global $xoopsDB; + $myts =& MyTextSanitizer::getInstance(); + $res = $xoopsDB->query('SELECT c.*,count(topicid) count, if (p.weight, p.weight, c.weight) ord1, if(p.weight IS NULL, -1, c.weight) ord2 FROM '.CATBL.' c LEFT JOIN '.CATBL.' p ON c.catpri=p.catid LEFT JOIN '.EGTBL.' ON c.catid=topicid GROUP BY c.catid ORDER BY ord1,ord2,c.catid'); + + // display entries + $showlist = array('catname'=>_AM_CAT_NAME, 'weight'=>_AM_WEIGHT, + 'catimg' =>_AM_CAT_IMG, 'catdesc'=>_AM_CAT_DESC, + 'count' =>_AM_COUNT, 'op'=>_AM_OPERATION); + + echo " + <ul class=\"toptab\"> + <li class=\"addDir\"> + <a href='index.php?op=category&catid=0'>"._AM_CATEGORY_NEW."</a> + </li> + <li class=\"import\"> + <a href='index.php?op=catimp'>"._AM_CATEGORY_IMPORT."</a> + </li> + </ul>\n"; + + echo "<p class='evnavi'>"._AM_COUNT.' '.$xoopsDB->getRowsNum($res)."</p>"; + + echo "<form action='index.php?op=catdel' method='post'>\n"; + echo "<table class=\"outer\">\n"; + echo "<tr><th>"._DELETE."</th><th>".join('</th><th>', $showlist)."</th></tr>\n"; + $ndel = $n = 0; + while ($data = $xoopsDB->fetchArray($res)) { + $name = $myts->htmlSpecialChars($data['catname']); + $haschild = $data['count']; + if ($data['catpri']) { + $data['catname'] = " -- ".$name; + } else { + if ($haschild==0) { + $sub = $xoopsDB->query("SELECT count(catid) FROM ".CATBL." WHERE catpri=".$data['catid']); + list($haschild) = $xoopsDB->fetchRow($sub); + } + } + $id = $data['catid']; + $desc = $myts->htmlSpecialChars($data['catdesc']); + $img = $data['catimg']; + if (preg_match('/^\//', $img)) $img = XOOPS_URL.$img; + elseif (!empty($img) && !preg_match('/^https?:/', $img)) { + $img = EGUIDE_URL."/$img"; + } else { + $img = ""; + } + if (!empty($img)) $img = "<img src='$img' alt='$name' width='32' />"; + $data['catimg'] = $img; + $data['op'] = "<a href='index.php?op=category&catid=$id'>"._EDIT."</a>"; + if ($haschild) { + $del="-"; + } else { + $del="<input type='checkbox' name='dels[$id] value='$id'/>"; + $ndel++; + } + echo '<tr class="'.($n++%2?'even':'odd')."\"><td align='center'>$del</td>"; + foreach (array_keys($showlist) as $key) { + echo "<td>".$data[$key]."</td>"; + } + echo "</tr>\n"; + } + if ($ndel) echo "<tr><td colspan=\"7\" class=\"foot\"><input type='submit' value='"._DELETE."'/></td></tr>"; + echo "</table></form>\n"; +} + +function edit_category($catid) { + global $xoopsDB; + + $myts =& MyTextSanitizer::getInstance(); + if ($catid) { + $res = $xoopsDB->query('SELECT * FROM '.CATBL." WHERE catid=$catid"); + $data = $xoopsDB->fetchArray($res); + } else { + $data = array('catid'=>0, 'catname'=>'', 'catimg'=>'','catdesc'=>'', + 'catpri'=>0, 'weight'=>0); + } + $form = new XoopsThemeForm($catid?_AM_CATEGORY_EDIT:_AM_CATEGORY_NEW, 'myform', 'index.php'); + $form->addElement(new XoopsFormHidden('catid', $catid)); + $form->addElement(new XoopsFormHidden('op', 'catsave')); + $form->addElement(new XoopsFormText(_AM_CAT_NAME, 'catname', 40, 40, $data['catname']), true); + $form->addElement(new XoopsFormText(_AM_CAT_IMG, 'catimg', 60, 255, $data['catimg'])); + $form->addElement(new XoopsFormDhtmlTextArea(_AM_CAT_DESC, 'catdesc', $data['catdesc'])); + $catpri = new XoopsFormSelect(_AM_CAT_PRIMARY, 'catpri', $data['catpri']); + $catpri->addOption(0, _NONE); + foreach (get_eguide_category(false) as $cat) { + if ($catid != $cat['catid']) { + $catpri->addOption($cat['catid'], $cat['name']); + } + } + $form->addElement($catpri); + $form->addElement(new XoopsFormText(_AM_WEIGHT, 'weight', 4, 4, $data['weight'])); + $form->addElement(new XoopsFormButton('' , 'catsave', _SUBMIT, 'submit')); + $form->display(); +} + +function import_category() { + global $xoopsDB, $xoopsModule; + $mid = $xoopsModule->getVar('mid'); + $res = $xoopsDB->query('SELECT m.mid,m.name,template FROM '.$xoopsDB->prefix('newblocks')." n, ".$xoopsDB->prefix('modules')." m WHERE edit_func='b_event_top_edit' AND func_num=1 AND n.mid<>$mid AND n.mid=m.mid ORDER BY m.weight"); + $mods = array(); + while (list($mid, $name, $temp)=$xoopsDB->fetchRow($res)) { + $mods[] = array('mid'=>$mid, + 'name'=>htmlspecialchars($name), + 'prefix'=>preg_replace('/_block_top\.html$/', '', $temp)); + } + $selmod = new XoopsFormSelect(_AM_CAT_IMPORTFROM, 'mid'); + $selmod->addOption(0, _NONE); + foreach ($mods as $i => $mod) { + $res = $xoopsDB->query('SELECT count(catid) FROM '.$xoopsDB->prefix($mod['prefix'].'_category')); + list($n) = $xoopsDB->fetchRow($res); + $selmod->addOption($mod['mid'], $mod['name']." ("._AM_COUNT."$n)"); + } + $form = new XoopsThemeForm(_AM_CATEGORY_IMPORT, 'myform', 'index.php'); + $form->addElement(new XoopsFormHidden('op', 'impsave')); + $form->addElement($selmod); + $selmod->setDescription(_AM_CAT_IMPORTDESC); + $form->addElement(new XoopsFormButton('' , 'impsave', _SUBMIT, 'submit')); + $form->display(); +} + +function summary_csv() { + global $xoopsDB; + function _q($x) { return '"'.preg_replace('/"/', '""', $x).'"'; } + $file = "eguide_summary_".formatTimestamp(time(),"Ymd").".csv"; + $charset = eguide_form_options('export_charset', _MD_EXPORT_CHARSET); + header("Content-Type: text/plain; Charset=".$charset); + header('Content-Disposition:attachment;filename="'.$file.'"'); + + $result = $xoopsDB->query('SELECT e.eid,if(x.exid,x.exid,0) exid, IF(exdate,exdate,edate) exdate,title,uid,status,persons,IF(x.reserved,x.reserved,o.reserved) reserved FROM '.EGTBL.' e LEFT JOIN '.OPTBL.' o ON e.eid=o.eid LEFT JOIN '.EXTBL." x ON e.eid=eidref ORDER BY exdate DESC,e.eid DESC"); + $out = '"'.join('","',array("ID","",_MD_EXTENT_DATE,_AM_TITLE,_AM_POSTER,_MD_RESERV_PERSONS,_AM_RESERVATION))."\"\n"; + while ($data=$xoopsDB->fetchArray($result)) { + $date = eventdate($data['exdate']); + $poster = XoopsUser::getUnameFromId($data['uid']); + $exid = $data['exid']?$data['exid']:''; + $out .= join(',',array($data['eid'],$exid,_q($date), + _q($data['title']),_q($poster), + $data['persons'],$data['reserved']))."\n"; + } + if ($charset != _CHARSET) { + if (function_exists("mb_convert_encoding")) { + $out = mb_convert_encoding($out, $charset, _CHARSET); + } elseif (function_exists("iconv")) { + $out = iconv($charset, _CHARSET, $out); + } + } + echo $out; + exit; +} +?> \ No newline at end of file Property changes on: XoopsModules/eguide/trunk/eguide/admin/index.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/eguide/trunk/eguide/admin/menu.php =================================================================== --- XoopsModules/eguide/trunk/eguide/admin/menu.php (rev 0) +++ XoopsModules/eguide/trunk/eguide/admin/menu.php 2014-11-12 12:20:01 UTC (rev 12838) @@ -0,0 +1,32 @@ +<?php +// $Id$ + +$adminmenu[]=array('title' => _MI_EGUIDE_ABOUT, + 'link' => "admin/help.php"); +$adminmenu[]=array('title' => _MI_EGUIDE_EVENTS, + 'link' => "admin/index.php?op=events"); +$adminmenu[]=array('title' => _MI_EGUIDE_NOTIFIES, + 'link' => "admin/index.php?op=notifies"); +$adminmenu[]=array('title' => _MI_EGUIDE_CATEGORY, + 'link' => "admin/index.php?op=category"); +$adminmenu[]=array('title' => _MI_EGUIDE_SUMMARY, + 'link' => "admin/index.php?op=summary"); + + +$path = dirname(dirname(__FILE__)).'/options/menu.php'; + +if (file_exists($path)) include $path; + +$adminmenu4altsys[]= + array('title' => _MD_A_MYMENU_MYTPLSADMIN, + 'link' => 'admin/index.php?mode=admin&lib=altsys&page=mytplsadmin'); +$adminmenu4altsys[]= + array('title' => _MD_A_MYMENU_MYBLOCKSADMIN, + 'link' => 'admin/index.php?mode=admin&lib=altsys&page=myblocksadmin'); +$adminmenu4altsys[]= + array('title' => _MD_A_MYMENU_MYLANGADMIN, + 'link' => 'admin/index.php?mode=admin&lib=altsys&page=mylangadmin'); +$adminmenu4altsys[]= + array('title' => _MD_A_MYMENU_MYPREFERENCES, + 'link' => 'admin/index.php?mode=admin&lib=altsys&page=mypreferences'); +?> Property changes on: XoopsModules/eguide/trunk/eguide/admin/menu.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/eguide/trunk/eguide/admin/mymenu.php =================================================================== --- XoopsModules/eguide/trunk/eguide/admin/mymenu.php (rev 0) +++ XoopsModules/eguide/trunk/eguide/admin/mymenu.php 2014-11-12 12:20:01 UTC (rev 12838) @@ -0,0 +1,110 @@ +<?php + +// Skip for ORETEKI XOOPS +if( defined( 'XOOPS_ORETEKI' ) ) return ; + +global $xoopsModule ; +if( ! is_object( $xoopsModule ) ) die( '$xoopsModule is not set' ) ; + +// language files (modinfo.php) +$language = empty( $xoopsConfig['language'] ) ? 'english' : $xoopsConfig['language'] ; +$mydirpath = dirname(dirname(__FILE__)); +$mydirname = basename($mydirpath); +if( file_exists( "$mydirpath/language/$language/modinfo.php" ) ) { + // user customized language file + include_once "$mydirpath/language/$language/modinfo.php" ; +} else { + // fallback english + include_once "$mydirpath/language/english/modinfo.php" ; +} + +include dirname(__FILE__).'/menu.php' ; + +$use_altsys = file_exists( XOOPS_TRUST_PATH.'/libs/altsys/mytplsadmin.php' ) ; +if( $use_altsys ) { + // mytplsadmin (TODO check if this module has tplfile) + $title = defined( '_MD_A_MYMENU_MYTPLSADMIN' ) ? _MD_A_MYMENU_MYTPLSADMIN : 'tplsadmin' ; + array_push( $adminmenu , array( 'title' => $title , 'link' => 'admin/index.php?mode=admin&lib=altsys&page=mytplsadmin' ) ) ; +} + +if( file_exists( XOOPS_TRUST_PATH.'/libs/altsys/myblocksadmin.php' ) ) { + // myblocksadmin + $title = defined( '_MD_A_MYMENU_MYBLOCKSADMIN' ) ? _MD_A_MYMENU_MYBLOCKSADMIN : 'blocksadmin' ; + array_push( $adminmenu , array( 'title' => $title , 'link' => 'admin/index.php?mode=admin&lib=altsys&page=myblocksadmin' ) ) ; +} + +if( file_exists( XOOPS_TRUST_PATH.'/libs/altsys/mylangadmin.php' ) ) { + // myblocksadmin + $title = defined( '_MD_A_MYMENU_MYLANGADMIN' ) ? _MD_A_MYMENU_MYLANGADMIN : 'langadmin' ; + array_push( $adminmenu , array( 'title' => $title , 'link' => 'admin/index.php?mode=admin&lib=altsys&page=mylangadmin' ) ) ; +} + +// preferences +$config_handler =& xoops_gethandler('config'); +if( count( $config_handler->getConfigs( new Criteria( 'conf_modid' , $xoopsModule->mid() ) ) ) > 0 ) { + if( file_exists( XOOPS_TRUST_PATH.'/libs/altsys/mypreferences.php' ) ) { + // mypreferences + $title = defined( '_MD_A_MYMENU_MYPREFERENCES' ) ? _MD_A_MYMENU_MYPREFERENCES : _PREFERENCES ; + array_push( $adminmenu , array( 'title' => $title , 'link' => 'admin/index.php?mode=admin&lib=altsys&page=mypreferences' ) ) ; + } elseif (defined('XOOPS_CUBE_LEGACY')) { + // system->preferences + array_push( $adminmenu , array( 'title' => _PREFERENCES , 'link' => XOOPS_URL.'/modules/legacy/admin/index.php?action=PreferenceEdit&confmod_id='.$xoopsModule->mid() ) ) ; + } else { + array_push( $adminmenu , array( 'title' => _PREFERENCES , 'link' => XOOPS_URL.'/modules/system/admin.php?fct=preferences&op=showmod&mod='.$xoopsModule->mid() ) ) ; + } +} + +$mymenu_uri = empty( $mymenu_fake_uri ) ? $_SERVER['REQUEST_URI'] : $mymenu_fake_uri ; +$mymenu_link = substr( strstr( $mymenu_uri , '/admin/' ) , 1 ) ; + + + +// highlight +foreach( array_keys( $adminmenu ) as $i ) { + if( $mymenu_link == $adminmenu[$i]['link'] ) { + $adminmenu[$i]['selected'] = true ; + $adminmenu_hilighted = true ; + $GLOBALS['altsysAdminPageTitle'] = $adminmenu[$i]['title'] ; + } else { + $adminmenu[$i]['selected'] = false ; + } +} +if( empty( $adminmenu_hilighted ) ) { + $maxlen = 0; + foreach( array_keys( $adminmenu ) as $i ) { + $link = $adminmenu[$i]['link']; + if( $maxlen < strlen($link) && stristr( $mymenu_uri , $link )) { + if ($maxlen) $last = false; + $maxlen = strlen($link); + $adminmenu[$i]['selected'] = true; + $last = &$adminmenu[$i]['selected']; + $GLOBALS['altsysAdminPageTitle'] = $adminmenu[$i]['title'] ; + } + } +} + +// link conversion from relative to absolute +foreach( array_keys( $adminmenu ) as $i ) { + if( stristr( $adminmenu[$i]['link'] , XOOPS_URL ) === false ) { + $adminmenu[$i]['link'] = XOOPS_URL."/modules/$mydirname/" . $adminmenu[$i]['link'] ; + } +} + +if ( $use_altsys ) { + // display + require_once XOOPS_ROOT_PATH.'/class/template.php' ; + $tpl =& new XoopsTpl() ; + $tpl->assign( array( + 'adminmenu' => $adminmenu , + ) ) ; + $tpl->display( 'db:altsys_inc_mymenu.html' ) ; + } else { + // display (you can customize htmls) + echo "<div style='text-align:left;width:98%;'>" ; + foreach( $adminmenu as $menuitem ) { + echo "<div style='float:left;height:1.5em;'><nobr><a href='".htmlspecialchars($menuitem['link'],ENT_QUOTES)."' style='background-color:".($menuitem['selected']?"#FFCCCC":"#DDDDDD").";font:normal normal bold 9pt/12pt;'>".htmlspecialchars($menuitem['title'],ENT_QUOTES)."</a> | </nobr></div>\n" ; + } + echo "</div>\n<hr style='clear:left;display:block;' />\n" ; + } + +?> \ No newline at end of file Property changes on: XoopsModules/eguide/trunk/eguide/admin/mymenu.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/eguide/trunk/eguide/admin.php =================================================================== --- XoopsModules/eguide/trunk/eguide/admin.php (rev 0) +++ XoopsModules/eguide/trunk/eguide/admin.php 2014-11-12 12:20:01 UTC (rev 12838) @@ -0,0 +1,510 @@ +<?php +// Event Administration by Poster +// $Id$ + +include 'header.php'; +include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; +include_once 'notify.inc.php'; + +require 'perm.php'; + +$eid = param('eid'); +$op = param('op', $eid?'edit':'new'); + +if (isset($_POST['save'])) $op = 'save'; +elseif (isset($_POST['preview'])) $op = 'preview'; +elseif (isset($_POST['editdate'])) $op = 'date'; +elseif (empty($op)) $op = 'new'; + +// store in database +$adm = $xoopsUser->isAdmin($xoopsModule->mid()); +$uid = $xoopsUser->getVar('uid'); + +// set form data +$iargs = array('reservation', 'strict', 'autoaccept', 'notify', + 'persons', 'style'); // integer value default '0' +$targs = array('title', 'summary', 'body', 'optfield', 'before'); +define("_EG_OPTDEFS", "redirect="._MD_RESERV_REDIRECT.",text\n"); + +$myts =& MyTextSanitizer::getInstance(); +$xoopsOption['template_main'] = EGPREFIX.'_admin.html'; + +if ($op=='new') { + // default value in post form + $data = array('lang_event_edit'=>_MD_NEWTITLE, + 'reservation' => 1, // reservation: 0=disable, 1=enable + 'style' => 1, // edit text: 0=html, 1=CRLF, 2=plain + 'autoaccept' => 1, // order to: 0=confirm, 1=accepted + 'notify' => 1, // notify to poster: 0=nothing, 1=send + 'strict' => 1, // order when full: 0=continue, 1=stop + 'persons' => $xoopsModuleConfig['default_persons'], + // how many persons/sheet in room + 'optfield' => + $xoopsModuleConfig['member_only']? + _MD_RESERV_DEFAULT_MEMBER:_MD_RESERV_DEFAULT_ITEM, + 'title' => '', // contents + 'summary' => '', + 'body' => '', + 'counter' => 0, + 'reserved' => 0, + 'edate' => time()+3600*24, // now + a day + 'event' => '', + 'expire' => $xoopsModuleConfig['expire_after']*60, + 'closetime' => $xoopsModuleConfig['close_before']*60, + 'optvars' => '', + 'topicid' => 1); +} else { + if ($eid) { + $result = $xoopsDB->query('SELECT * FROM '.EGTBL.' e LEFT JOIN '.OPTBL.' o ON e.eid=o.eid LEFT JOIN '.CATBL." ON topicid=catid WHERE e.eid=$eid"); + $data = $xoopsDB->fetchArray($result); + $edate = $data['edate']; + } else { + $data = array(); + } + $data['lang_event_edit'] = _MD_EDITARTICLE; + if ($op == 'preview' || $op == 'save' || $op == 'date') { + $edate = getDateField("edate"); + if (isset($_POST['expire'])) { + $expire = empty($_POST['expire'])?time_to_sec($_POST['expire_text']):intval($_POST['expire']); + } else { + $expire = getDateField('expire'); + } + $data['ldate'] = $data['edate'] = $edate; + $data['expire'] = $expire; + $data['topicid'] = param('topicid', 1); + foreach ($iargs as $name) { + $data[$name] = param($name); + } + foreach ($targs as $name) { + $data[$name] = param($name, ""); + } + $data['ldate'] = 0; + $data['closetime'] = time_to_sec($data['before']); + if ($adm) $data['status'] = param('status'); + $data['optvars'] = post_optvars(_EG_OPTDEFS); + } +} +if (!isset($data['status'])) { + $data['status']=$xoopsModuleConfig['auth']?STAT_POST:STAT_NORMAL; +} + +$extent_sets = array(); +if (isset($_POST['extent_sets'])) { + $init = false; + $sets = $_POST['extent_sets']; +} else { + $init = true; +} +$input_extent = ''; +if ($eid) { // already exists extents + $result = $xoopsDB->query('SELECT rvid FROM '.RVTBL." WHERE eid=$eid AND exid=0", 1); + if ($xoopsDB->getRowsNum($result)==0) { + $save = _MD_EDIT_EXTENT."("._MD_SAVE.")"; + $input_extent = "<input type='submit' name='editdate' value='$save'/> + <a href='editdate.php?eid=$eid'>"._MD_EDIT_EXTENT."</a>"; + } + $result = $xoopsDB->query('SELECT * FROM '.EXTBL.' WHERE eidref='.$eid.' ORDER BY exdate'); + while ($ext = $xoopsDB->fetchArray($result)) { + $n = $ext['exid']; + $ext['date'] = eventdate($ext['exdate']); + $ext['no'] = $n; + $ext['disable'] = true; + $extent_sets[] = $ext; + } +} else { + $extents = param('extents',"none"); + $repeat = param('repeat',1); + $input_extent = select_list('extents', $ev_extents, $extents); + $input_extent .= ' '._MD_EXTENT_REPEAT." <input size='2' value='$repeat' name='repeat'/>"; + $step = 86400; // sec/day + switch ($extents) { + case 'weekly': + $step = $step * 7; + case 'daily': + for ($n=0, $i=$edate; $n<$repeat; $n++, $i += $step) { + $v = $init?true:isset($sets[$n]); + $extent_sets[] = + array('exdate'=>$i, 'no'=>$n, + 'date'=>eventdate($i), 'checked'=>$v); + $sets[$n]=$v?$i:0; + } + break; + case 'monthly': + list($y, $m, $d, $h, $mi) = split(' ', formatTimestamp($edate, "Y m j G i")); + for ($n=0; $n<$repeat; $n++) { + $i = userTimeToServerTime(mktime($h,$mi, 0, $m+$n, $d, $y)); + $v = $init?true:isset($sets[$n]); + $extent_sets[] = + array('exdate'=>$i, 'no'=>$n, + 'date'=>eventdate($i), 'checked'=>$v); + $sets[$n]=$v?$i:0; + } + default: + break; + } +} + +$now = time(); + +if ($op=='save' || $op=='date') { + // database field names + $updated = ""; + $fields = array('title'=>_MD_TITLE, 'edate'=>_MD_EVENT_DATE, + 'expire'=>_MD_EVENT_EXPIRE, 'summary'=>_MD_INTROTEXT, + 'body'=>_MD_EXTEXT, 'style'=>_MD_EVENT_STYLE, + 'status'=>$ev_stats[STAT_NORMAL], 'topicid'=>_MD_EVENT_CATEGORY); + if ($eid) { + $cond = $adm?"":" AND uid=$uid"; // condition update by poster + $result = $xoopsDB->query('SELECT * FROM '.EGTBL." WHERE eid=$eid"); + $pdata = $xoopsDB->fetchArray($result); + $buf = "mdate=$now"; + foreach ($fields as $name=>$label) { + if ($pdata[$name] != $data[$name]) { + $buf .= ", $name=".$xoopsDB->quoteString($data[$name]); + if ($name=='edate') { + $label .= " ".formatTimestamp($pdata[$name], _MD_POSTED_FMT)." -> ".formatTimestamp($data[$name], _MD_POSTED_FMT); + } + $updated .= " ".$label."\n"; + } + } + $xoopsDB->query('UPDATE '.EGTBL.' SET '.$buf." WHERE eid=$eid $cond"); + $delta = $edate - $pdata['edate']; + if ($delta) { + $xoopsDB->query('UPDATE '.EXTBL." SET exdate=exdate+'$delta' WHERE eidref=$eid AND exdate>$now"); + } + } else { + $pdata = array('status'=>STAT_POST); + $flist = "uid, cdate, mdate"; + $buf = "$uid, $now, $now"; + foreach (array_keys($fields) as $name) { + $flist .= ", $name"; + $buf .= ', '.$xoopsDB->quoteString($data[$name]); + } + $xoopsDB->query('INSERT INTO '.EGTBL."($flist) VALUES($buf)"); + $data['eid'] = $eid = $xoopsDB->getInsertId(); + $data['uid'] = $uid; + if (!empty($sets)) { + foreach ($sets as $v) { + if ($v) $xoopsDB->query('INSERT INTO '.EXTBL."(eidref, exdate) VALUES($eid, $v)"); + } + } + event_notify('new', $data); + } + if (empty($eid)) { + echo "<div class='error'>Internal Error: eguide/admin.php</div>\n"; + exit(); + } + if ($pdata['status']!=$data['status']) user_notify($eid); + $result = $xoopsDB->query("SELECT * FROM ".OPTBL." WHERE eid=$eid"); + + $ofields = array('reservation'=>_MD_RESERV_DESC, + 'strict'=>_MD_RESERV_STOPFULL, + 'autoaccept'=>_MD_RESERV_AUTO, + 'notify'=>_MD_RESERV_NOTIFYPOSTER, + 'persons'=>_MD_RESERV_PERSONS, + 'optfield'=>_MD_RESERV_ITEM, + 'closetime'=>_MD_CLOSEDATE, + 'optvars'=>_MD_OPTION_VARS); + if ($xoopsDB->getRowsNum($result)) { + $pdata = $xoopsDB->fetchArray($result); + $buf = ""; + foreach ($ofields as $name=>$label) { + if ($pdata[$name]!=$data[$name]) { + $buf .= (empty($buf)?'':', ').$name.'='.$xoopsDB->quoteString($data[$name]); + switch ($name) { + case 'persons': + $label .= ' '.$pdata[$name].' -> '.$data[$name]; + break; + case 'closetime': + $label .= ' '.time_to_str($pdata[$name]).' -> '.time_to_str($data[$name]); + case 'reservation': + case 'strict': + case 'autoaccept': + case 'notify': + $label .= ' '.($data[$name]?_YES:_NO); + break; + } + $updated = " ".$label."\n"; + } + } + $xoopsDB->query('UPDATE '.OPTBL." SET $buf WHERE eid=$eid"); + } else { + $keys = array_keys($ofields); + $flist = 'eid, '.join(', ', $keys); + $buf = $eid; + foreach ($keys as $name) { + $buf .= ', '.$xoopsDB->quoteString($data[$name]); + } + $xoopsDB->query("INSERT INTO ".OPTBL."($flist) VALUES($buf)"); + } + if ($updated && $data['status']==STAT_NORMAL) { + $dirname = basename(dirname(__FILE__)); + $tags = array( + 'uid'=>$data['uid'], + 'URL_EVENTS' => $data['title']."\n".XOOPS_URL."/modules/$dirname/event.php?eid=".$eid, + 'UPDATED' => $updated, + 'DO_UNAME' => $xoopsUser->getVar('uname')); + event_notify('update', $tags); + } + if ($op == 'date') { + header('Location: '.EGUIDE_URL.'/editdate.php?eid='.$eid); + } else { + redirect_header(EGUIDE_URL."/event.php?eid=$eid",2,_MD_DBUPDATED); + } + exit; +} elseif ($op=='confirm') { + if ($adm) { // delete by admin + $result = $xoopsDB->query('DELETE FROM '.EGTBL." WHERE eid=$eid"); + $result = $xoopsDB->query('DELETE FROM '.OPTBL." WHERE eid=$eid"); + $result = $xoopsDB->query('DELETE FROM '.RVTBL." WHERE eid=$eid"); + $result = $xoopsDB->query('DELETE FROM '.EXTBL." WHERE eidref=$eid"); + } else { // delete by poster + $result = $xoopsDB->query('UPDATE '.EGTBL.' SET status='.STAT_DELETED." WHERE eid=$eid AND uid=$uid"); + } + redirect_header(EGUIDE_URL."/index.php",2,_MD_DBDELETED); + exit(); +} + + +include(XOOPS_ROOT_PATH."/header.php"); + +assign_module_css(); + +// DHTML calendar +include_once XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/calendar.php'; +if (!empty($ev_week)) $xoopsTpl->assign('weekname', $ev_week); +if (!empty($ev_month)) $xoopsTpl->assign('monthname', $ev_month); +$y = formatTimestamp(time(), 'Y'); +$xoopsTpl->assign('calrange', array($y-10,$y+10)); + +$check = array('title'=>_MD_TITLE, 'summary'=>_MD_INTROTEXT); +foreach ($check as $k=>$v) { + $check[$k] = sprintf(_FORM_ENTER, $v); +} +$xoopsTpl->assign('check', $check); +$xoopsTpl->assign('use_fckeditor', eguide_form_options('use_fckeditor', 0)); +$xoopsTpl->assign('enable_copy', eguide_form_options('enable_copy', 0)); +$timetable = array(); +$tstr = $xoopsModuleConfig['time_defs']; +if ($tstr) { + foreach (explode(',',$tstr) as $value) { + if (strpos($value, '=')) { + list($value, $label)=explode('=', $value); + } else { + $label=$value; + } + $timetable[] = array('label'=>$label, 'value'=>$value); + } +} +$xoopsTpl->assign('timetable', $timetable); + +if ($eid && $op=='delete') { + $xoopsOption['template_main'] = EGPREFIX.'_event.html'; + edit_eventdata($data); + unset($data['eid']); // disable control link + $xoopsTpl->assign('event', $data); + $xoopsTpl->assign('message', "<div><form action='admin.php' method='post'> +<input type='hidden' name='op' value='confirm' /> +<input type='hidden' name='eid' value='$eid' /> +<input type='submit' value='"._DELETE."' /> +</form><b>"._MD_EVENT_DEL_DESC."</b></div>\n". +(($adm)?"<div class='evnote'>"._MD_EVENT_DEL_ADMIN."</div>\n":'')); +} else { + $expire = $data['expire']>$data['edate']?$data['expire']-$data['edate']:$data['expire']; + $str = isset($expire_set["+$expire"])?"":htmlspecialchars(time_to_str($expire)); + $input_expire = "<input name='expire_text' size='8' value='$str' onchange='document.evform.expire.selectedIndex=0' /> ". + select_list('expire', $expire_set, $expire); + + $cats = get_eguide_category(); + if (count($cats) > 1) { + $input_category = select_list('topicid', $cats, $data['topicid']); + } else { + $input_category = ''; + } + + if ($op == 'preview') { + $views = array('edate', 'cdate', 'title', 'summary', 'body', + 'persons', 'reserved', 'closetime', + 'style', 'uid', 'counter', 'catid', 'catimg', 'catname'); + $event = array(); + if (empty($data['cdate'])) { + $data['cdate'] = $now; + $data['reserved'] = 0; + $data['counter'] = 0; + $data['uid'] = $uid; + $data['catid'] = 1; + } + $result = $xoopsDB->query('SELECT catname, catimg FROM '.CATBL.' WHERE catid='.$data['topicid']); + list($data['catname'], $data['catimg']) = $xoopsDB->fetchRow($result); + foreach ($views as $name) { + $event[$name] = $data[$name]; + } + edit_eventdata($event); + $form = eventform($data); + $form['submit_opts'] = 'disabled'; + $xoopsTpl->assign('form', $form); + $xoopsTpl->assign('event',$event); + } else { + $xoopsTpl->assign('event',''); + } + + $input_status = $adm?select_list('status', $ev_stats, $data['status']):''; + if (empty($data['before'])) { + $data['before']=time_to_str($data['closetime']); + } + edit_eventdata($data); + $data['optfield'] = htmlspecialchars($data['optfield']); + $xoopsTpl->assign($data); + + class myFormDhtmlTextArea extends XoopsFormDhtmlTextArea + { + function _renderSmileys() {} // only disable smileys + } + $summary = isset($data['summary'])?$data['summary']:''; + $textarea = new myFormDhtmlTextArea('', 'summary', $summary, 10, 60); + $nlab = eguide_form_options('label_persons'); + if ($nlab) $nlab = sprintf(_MD_RESERV_LABEL_DESC, $nlab); + $edate = $data['edate']; + $xoopsTpl->assign(array('input_edate'=>datefield('edate',$edate), + 'input_edatetime'=>timefield('edate',$edate), + 'edatetime'=>formatTimestamp($edate, 'H:i'), + 'input_expire'=>$input_expire, + 'input_category'=>$input_category, + 'input_extent'=>$input_extent, + 'input_status'=>$input_status, + 'extent_sets'=>$extent_sets, + 'label_desc'=>$nlab, + 'summary_textarea'=>$textarea->render(), + 'input_style'=>select_list('style', $edit_style, $data['style']), + 'edata' =>$data, + )); + if ($data['optvars']) { + $optvars = unserialize_vars($data['optvars']); + $xoopsTpl->assign('optvars', $optvars); + foreach (explode("\n", _EG_OPTDEFS) as $item) { + list($fname) = explode("=", $item); + unset($optvars[$fname]); + } + $others = ""; + foreach ($optvars as $k=>$v) { + $others .= "$k=$v\n"; + } + $xoopsTpl->assign('opt_others', $others); + } + $xoopsTpl->assign(array('input_edate'=>datefield('edate',$edate), + 'input_edatetime'=>timefield('edate',$edate), + 'edatetime'=>formatTimestamp($edate, 'H:i'), + 'input_expire'=>$input_expire, + 'input_category'=>$input_category, + 'input_extent'=>$input_extent, + 'input_status'=>$input_status, + 'extent_sets'=>$extent_sets, + 'label_desc'=>$nlab, + 'summary_textarea'=>$textarea->render(), + 'input_style'=>select_list('style', $edit_style, $data['style']), + )); +} + +$paths = array(); +if ($eid) { + $cid = $data['topicid']; + $paths[$data['title']] = "event.php?eid=$eid"; + if ($op == 'delete') { + $paths[_DELETE] = "admin.php?op=delete&eid=$eid"; + } else { + $paths[_EDIT] = "admin.php?eid=$eid"; + } +} else { + $cid = 0; + $paths[_MD_NEWTITLE] = 'admin.php'; +} +set_eguide_breadcrumbs($cid, $paths); + +include(XOOPS_ROOT_PATH."/footer.php"); + +// make to unix time from separate fields. +function getDateField($p) { + global $xoopsUser; + if (empty($_POST["${p}ymd"])) return 0; + list($y, $m, $d) = split('-', $_POST["${p}ymd"]); + if (isset($_POST["${p}time"])) { // accept 'HH:mm' format + list($hour, $min) = split(':', $_POST["${p}time"]); + } else { + $hour = $_POST["${p}hour"]; + $min = $_POST["${p}min"]; + } + return userTimeToServerTime(mktime($hour, $min, 0, $m, $d, $y), $xoopsUser->getVar("timezone_offset")); +} + +function datefield($prefix, $time, $hastime=true) { + $buf = "<input id='${prefix}ymd' name='${prefix}ymd' size='12' value='".formatTimestamp($time, "Y-m-d")."'/> "; + $buf .= "<script language='javascript'><!-- +document.write('<input type=\"button\" value=\""._MD_CAL."\" onClick=\"showCalendar(\\'${prefix}ymd\\')\">'); +--></script>\n"; + return $buf; +} + +function timefield($prefix, $time) { + list($h, $i) = split(' ', formatTimestamp($time, "G i")); + $buf = select_value("%02d", "${prefix}hour", 0, 23, $h); + $buf .= " : "; + + $buf .= select_value("%02d", "${prefix}min", 0, 59, $i, 5); + $buf .= " : 00\n"; + return $buf; +} + +function select_value($fmt, $name, $from, $to, $def=0, $step=1) { + $buf = "<select name='$name' id='$name'>\n"; + for ($i = $from; $i<=$to; $i+=$step) { + $buf .= "<option value='$i'".($i==$def?" selected='selected'":"").">".sprintf($fmt, $i)."</option>\n"; + } + $buf .= "</select>\n"; + return $buf; +} + +function select_list($name, $options, $def=1) { + $buf = "<select name='$name'>\n"; + foreach ($options as $i => $v) { + if (is_array($v)) $v = $v['name']; + $buf .= "<option value='$i'".($i==$def?" selected='selected'":"").">$v</option>\n"; + } + $buf .= "</select>\n"; + return $buf; +} + +function time_to_str($sec) { + $unit = split(',',_MD_TIME_UNIT); + if ((abs($sec) >= 86400) && ($sec % 86400) == 0) { // days + return ($sec / 86400).$unit[0]; + } elseif ((abs($sec) >= 3600) && ($sec % 3600 == 0)) { // hours + return ($sec / 3600).$unit[1]; + } + return intval($sec / 60).$unit[2]; +} + +function time_to_sec($str) { + $unit = split(',',_MD_TIME_REG); + $v = intval($str); + if (preg_match('/^-?\d+'.$unit[0].'$/i', $str)) { + return $v * 86400; + } elseif (preg_match('/^-?\d+'.$unit[1].'?$/i', $str)) { + return $v * 3600; + } + return $v * 60; +} + +function post_optvars($defs) { + $vars = array(); + foreach (explode("\n", $defs) as $item) { + list($fname) = explode("=", $item); + $v = param($fname, ''); + if (!empty($v)) $vars[$fname] = "$fname=$v"; + } + $fname = 'opt_others'; + $v = param($fname, ''); + if (!empty($v)) $vars[$fname] = $v; + return join("\n", $vars); +} + +?> \ No newline at end of file Property changes on: XoopsModules/eguide/trunk/eguide/admin.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/eguide/trunk/eguide/blocks/ev_cat.php =================================================================== --- XoopsModules/eguide/trunk/eguide/blocks/ev_cat.php (rev 0) +++ XoopsModules/eguide/trunk/eguide/blocks/ev_cat.php 2014-11-12 12:20:01 UTC (rev 12838) @@ -0,0 +1,41 @@ +<?php +# Event category select block +# $Id$ + +include dirname(dirname(__FILE__))."/mydirname.php"; + +eval ( ' +function b_'.$myprefix.'_select_show( $options ) +{ + return b_event_select_base( "'.$egdirname.'" , "'.$myprefix.'" ,$options ) ; +} +' ) ; + +if (!function_exists("b_event_select_base")) { + +function b_event_select_base($dirname, $prefix, $options) { + global $xoopsDB, $xoopsUser; + $cat = $xoopsDB->prefix($prefix.'_category'); + $cats = $options[0]; + $opt = preg_match('/^(\d+,)*\d+$/', $cats)?" WHERE p.catid IN ($cats)":""; + $result = $xoopsDB->query("SELECT c.catid, c.catname AS name, c.catimg AS image,if (p.weight, p.weight, c.weight) ord1, if(p.weight IS NULL, -1, c.weight) ord2,c.catpri, c.catdesc FROM $cat c LEFT JOIN $cat p ON c.catpri=p.catid $opt ORDER BY ord1,ord2,catid"); + $list = array(); + $catid = isset($_GET['cat'])... [truncated message content] |
From: <be...@us...> - 2014-11-12 12:37:41
|
Revision: 12839 http://sourceforge.net/p/xoops/svn/12839 Author: beckmi Date: 2014-11-12 12:37:31 +0000 (Wed, 12 Nov 2014) Log Message: ----------- Adding gnavi module Added Paths: ----------- XoopsModules/gnavi/ XoopsModules/gnavi/branches/ XoopsModules/gnavi/releases/ XoopsModules/gnavi/trunk/ XoopsModules/gnavi/trunk/gnavi/ XoopsModules/gnavi/trunk/gnavi/README XoopsModules/gnavi/trunk/gnavi/extra/ XoopsModules/gnavi/trunk/gnavi/extra/html/ XoopsModules/gnavi/trunk/gnavi/extra/html/class/ XoopsModules/gnavi/trunk/gnavi/extra/html/class/smarty/ XoopsModules/gnavi/trunk/gnavi/extra/html/class/smarty/plugins/ XoopsModules/gnavi/trunk/gnavi/extra/html/class/smarty/plugins/function.d3comment.php XoopsModules/gnavi/trunk/gnavi/extra/xoops_trust_path/ XoopsModules/gnavi/trunk/gnavi/extra/xoops_trust_path/modules/ XoopsModules/gnavi/trunk/gnavi/extra/xoops_trust_path/modules/d3pipes/ XoopsModules/gnavi/trunk/gnavi/extra/xoops_trust_path/modules/d3pipes/joints/ XoopsModules/gnavi/trunk/gnavi/extra/xoops_trust_path/modules/d3pipes/joints/block/ XoopsModules/gnavi/trunk/gnavi/extra/xoops_trust_path/modules/d3pipes/joints/block/D3pipesBlockGnavilist.class.php XoopsModules/gnavi/trunk/gnavi/html/ XoopsModules/gnavi/trunk/gnavi/html/modules/ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/.htaccess.dist XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/0jpg XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/0tempjpg XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/admin_menu.php XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/index.php XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/blocks/ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/blocks/blocks.php XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment.php XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_delete.php XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_edit.php XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_new.php XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_post.php XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_reply.php XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/css/ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/css/gnavi.css XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/css/lightbox.css XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/all.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/asx.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/avi.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/bmp.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/cgi.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/css.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/csv.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/dat.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/default.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/doc.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/footer.js XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/gif.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/htm.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/html.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/jpg.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/js.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/kml.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/kmz.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/lzh.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/mid.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/mov.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/mp3.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/mpeg.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/mpg.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/ogg.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/pdf.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/php.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/pl.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/png.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/py.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/q.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/ram.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/rar.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/rb.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/rss.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/swf.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/txt.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/vbs.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/wav.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/wmv.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/xls.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/xml.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/xsl.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/icons/zip.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/back1.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/blank.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/camera.png XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/close.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/closelabel.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/deadlink.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/down.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/editicon.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/elfinder_volume_icon.png XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/img_kml.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/index.html XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/loading.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/logo.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/mnavi.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/new.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/next.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/nextlabel.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/noimage.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/pe_logo.png XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/pict.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/pictadd.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/pop.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/prev.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/prevlabel.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/rank1.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/rank2.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/rank3.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/rank4.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/rank5.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/rank6.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/rank7.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/rank8.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/rank9.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/rank_none.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/rss.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/spacer.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/up.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/update.gif XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/wide_bt1.png XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/images/wide_bt2.png XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/index.php XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/js/ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/js/effects.js XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/js/lightbox.js XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/js/map.js XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/js/prototype.js XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/js/scriptaculous.js XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/kml.php XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/module_icon.php XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/module_icon.png XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/mytrustdirname.php XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/notification.php XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/notification_update.php XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/oninstall.php XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/onuninstall.php XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/onupdate.php XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/preload/ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/preload/disabled/ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/preload/disabled/DescriptionCkeditor4.class.php XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/search.php XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/xoops_version.php XoopsModules/gnavi/trunk/gnavi/html/uploads/ XoopsModules/gnavi/trunk/gnavi/html/uploads/gnavi/ XoopsModules/gnavi/trunk/gnavi/html/uploads/gnavi/thumbs/ XoopsModules/gnavi/trunk/gnavi/html/uploads/gnavi/thumbs/.gitkeep XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/README.sjis XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/README.txt XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv10_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv10_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv10_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv10_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv11_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv11_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv11_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv11_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv12_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv12_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv12_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv12_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv13_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv13_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv13_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv13_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv14_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv14_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv14_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv14_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv15_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv15_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv15_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv15_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv16_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv16_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv16_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv16_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv17_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv17_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv17_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv17_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv18_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv18_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv18_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv18_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv19_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv19_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv19_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv19_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv1_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv1_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv1_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv1_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv20_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv20_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv20_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv20_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv21_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv21_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv21_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv21_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv22_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv22_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv22_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv22_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv23_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv23_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv23_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv23_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv24_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv24_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv24_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv24_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv25_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv25_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv25_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv25_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv26_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv26_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv26_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv26_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv27_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv27_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv27_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv27_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv28_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv28_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv28_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv28_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv29_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv29_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv29_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv29_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv2_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv2_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv2_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv2_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv30_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv30_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv30_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv30_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv31_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv31_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv31_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv31_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv32_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv32_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv32_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv32_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv33_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv33_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv33_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv33_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv34_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv34_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv34_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv34_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv35_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv35_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv35_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv35_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv36_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv36_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv36_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv36_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv37_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv37_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv37_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv37_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv38_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv38_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv38_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv38_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv39_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv39_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv39_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv39_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv3_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv3_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv3_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv3_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv40_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv40_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv40_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv40_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv4_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv4_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv4_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv4_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv5_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv5_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv5_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv5_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv6_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv6_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv6_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv6_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv7_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv7_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv7_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv7_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv8_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv8_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv8_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv8_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv9_0.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv9_1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv9_2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrv9_3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr1.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr10.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr11.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr12.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr13.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr14.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr15.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr16.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr17.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr18.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr19.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr2.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr20.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr21.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr22.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr23.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr24.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr25.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr26.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr27.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr28.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr29.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr3.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr30.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr31.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr32.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr33.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr34.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr35.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr36.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr37.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr38.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr39.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr4.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr40.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr5.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr6.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr7.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr8.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/qrvfr9.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc10.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc13.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc15.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc16.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc17.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc18.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc20.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc22.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc24.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc26.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc28.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc30.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc32.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc34.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc36.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc40.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc42.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc44.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc46.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc48.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc50.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc52.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc54.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc56.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc58.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc60.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc62.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc64.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc66.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc68.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_data/rsc7.dat XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/qrcode_img.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/qrcode/sample.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/smarty/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/smarty/plugins/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/libs/smarty/plugins/function.d3comment.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/admin/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/admin/admin_header.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/admin/admission.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/admin/batch.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/admin/category.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/admin/checkconfigs.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/admin/checkgd2.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/admin/groupperm.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/admin/icon.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/admin/index.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/admin/mygroupperm.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/admin/mygrouppermform.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/admin/mymenu.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/admin/photomanager.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/admin/redothumbs.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/admin.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/admin_menu.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/blocks/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/blocks/archive.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/blocks/block_functions.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/blocks/d3pipes.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/blocks/menu.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/blocks.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/class/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/class/GnaviD3commentContent.class.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/class/GnaviExif.class.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/class/gnavi.textsanitizer.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/class/gtickets.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/class/myuploader.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/comment.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/include/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/include/common_functions.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/include/common_javalang.inc.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/include/common_prepend.inc.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/include/draw_functions.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/include/get_perms.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/include/item_orders.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/include/read_configs.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/include/sitemap.plugin.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/include/waiting.plugin.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/include/x20_keepblockoptions.inc.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/english/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/english/admin.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/english/blocks_common.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/english/blocks_each.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/english/gnavi_constants.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/english/mail_template/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/english/mail_template/category_newphoto_notify.tpl XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/english/mail_template/global_newphoto_notify.tpl XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/english/main.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/english/modinfo.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/ja_utf8/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/ja_utf8/admin.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/ja_utf8/blocks_common.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/ja_utf8/blocks_each.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/ja_utf8/gnavi_constants.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/ja_utf8/mail_template/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/ja_utf8/mail_template/category_newitem_notify.tpl XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/ja_utf8/mail_template/global_newitem_notify.tpl XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/ja_utf8/main.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/ja_utf8/modinfo.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/japanese/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/japanese/admin.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/japanese/blocks_common.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/japanese/blocks_each.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/japanese/gnavi_constants.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/japanese/mail_template/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/japanese/mail_template/category_newitem_notify.tpl XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/japanese/mail_template/global_newitem_notify.tpl XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/japanese/main.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/language/japanese/modinfo.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/main/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/main/category.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/main/comment_delete.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/main/comment_edit.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/main/comment_new.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/main/comment_post.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/main/comment_reply.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/main/index.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/main/item.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/main/kml.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/main/map.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/main/notification_update.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/main/submit.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/main/topten.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/main/vote.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/main.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/module_icon.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/module_icon.png XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/notification.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/oninstall.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/onuninstall.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/onupdate.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/search.php XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/sql/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/sql/mysql.sql XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/ XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/block_archive.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/block_menu.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/block_ritem.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/block_ritem_p.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/block_tophits.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/block_tophits_p.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/block_topnews.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/block_topnews_p.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/categories.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/footer.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/header.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/inc_breadcrumbs.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/inc_exif_table.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/item.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/itemheader.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/itemrow.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/map.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/mobile_item.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/mobile_map.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/mobile_viewcat.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/print.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/topten.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/viewcat_list.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/viewcat_table.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/templates/vote.html XoopsModules/gnavi/trunk/gnavi/xoops_trust_path/modules/gnavi/xoops_version.php Added: XoopsModules/gnavi/trunk/gnavi/README =================================================================== Added: XoopsModules/gnavi/trunk/gnavi/extra/html/class/smarty/plugins/function.d3comment.php =================================================================== --- XoopsModules/gnavi/trunk/gnavi/extra/html/class/smarty/plugins/function.d3comment.php (rev 0) +++ XoopsModules/gnavi/trunk/gnavi/extra/html/class/smarty/plugins/function.d3comment.php 2014-11-12 12:37:31 UTC (rev 12839) @@ -0,0 +1,58 @@ +<?php + +/* + * Smarty plugin + * ------------------------------------------------------------- + * Type: function + * Name: d3comment + * Version: 1.0 + * Date: + * Author: GIJOE + * Purpose: + * Input: + * + * Examples: {d3comment class=(class_name) mydirname=(dirname)} + * ------------------------------------------------------------- + */ +function smarty_function_d3comment($params, &$smarty) +{ + $mydirname = @$params['mydirname'] ; + $classname = @$params['class'] ; + + $mytrustdirname = '' ; + if( $mydirname != '' ) { + @include XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/mytrustdirname.php' ; + } + $params['mytrustdirname'] = $mytrustdirname ; + + $class_bases = array( + XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/class' , + XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/class' , + XOOPS_TRUST_PATH.'/modules/d3forum/class' , + ) ; + + foreach( $class_bases as $class_base ) { + if( file_exists( $class_base.'/'.$classname.'.class.php' ) ) { + require_once $class_base.'/'.$classname.'.class.php' ; + break ; + } + } + + if( class_exists( $classname ) ) { + $d3com = new $classname( '' , $mydirname , $mytrustdirname ) ; + $d3com->setSmarty( $smarty ) ; + switch( $params['mode'] ) { + case 'count' : + $d3com->displayCommentsCount( $params ) ; + break ; + case 'display_inline' : + default : + $d3com->displayCommentsInline( $params ) ; + break ; + } + } else { + echo "class parameter is invalid in <{d3comment}>" ; + } +} + +?> \ No newline at end of file Property changes on: XoopsModules/gnavi/trunk/gnavi/extra/html/class/smarty/plugins/function.d3comment.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/gnavi/trunk/gnavi/extra/xoops_trust_path/modules/d3pipes/joints/block/D3pipesBlockGnavilist.class.php =================================================================== --- XoopsModules/gnavi/trunk/gnavi/extra/xoops_trust_path/modules/d3pipes/joints/block/D3pipesBlockGnavilist.class.php (rev 0) +++ XoopsModules/gnavi/trunk/gnavi/extra/xoops_trust_path/modules/d3pipes/joints/block/D3pipesBlockGnavilist.class.php 2014-11-12 12:37:31 UTC (rev 12839) @@ -0,0 +1,87 @@ +<?php + +require_once dirname(dirname(__FILE__)).'/D3pipesBlockAbstract.class.php' ; + +class D3pipesBlockGnavilist extends D3pipesBlockAbstract { + + var $target_dirname = '' ; + var $trustdirname = 'gnavi' ; + + function init() + { + // parse and check option for this class + $params = array_map( 'trim' , explode( '|' , $this->option ) ) ; + if( empty( $params[0] ) ) { + $this->errors[] = _MD_D3PIPES_ERR_INVALIDDIRNAMEINBLOCK."\n($this->pipe_id)" ; + return false ; + } + $this->target_dirname = preg_replace( '/[^0-9a-zA-Z_-]/' , '' , $params[0] ) ; + + // configurations (file, name, block_options) + $this->func_file = XOOPS_ROOT_PATH.'/modules/'.$this->target_dirname.'/blocks/blocks.php' ; + $this->func_file = XOOPS_TRUST_PATH.'/modules/'.$this->trustdirname.'/blocks/d3pipes.php' ; + $this->func_name = 'b_gnavi_d3pipes_joints' ; + $this->block_options = array( + 'disable_renderer' => true , + 0 => $this->target_dirname , // mydirname + 1 => empty( $params[1] ) ? 0 : intval( $params[1] ) , // cat_limitation + 2 => empty( $params[2] ) ? 10 : intval( $params[2] ) , // photos_num + 3 => empty( $params[3] ) ? 0 : 1, // display body + ) ; + + return true ; + } + + function reassign( $data ) + { + $entries = array() ; + //add domifara 2011/12/14 + if (!isset($data['photo'])){ + return $entries ; + } + foreach( $data['photo'] as $content ) { + $entry = array( + 'pubtime' => $content['unixtime'] , // timestamp + 'link' => $data['mod_url'].'/index.php?lid='.$content['lid'] , + 'headline' => $content['title'] , + 'category' => $this->unhtmlspecialchars( $content['cat_title'] ) , + 'description' => $this->unhtmlspecialchars( $content['body'] ) , + 'content_encoded' => $this->unhtmlspecialchars( $content['body'] ) , + ) ; + $entry['fingerprint'] = $entry['link'] ; + $entries[] = $entry ; + } + + return $entries ; + } + + function renderOptions( $index , $current_value = null ) + { + $index = intval( $index ) ; + $options = explode( '|' , $current_value ) ; + + // options[0] (dirname) + $dirnames = $this->getValidDirnames() ; + $ret_0 = '<select name="joint_options['.$index.'][0]">' ; + foreach( $dirnames as $dirname ) { + $ret_0 .= '<option value="'.$dirname.'" '.($dirname==@$options[0]?'selected="selected"':'').'>'.$dirname.'</option>' ; + } + $ret_0 .= '</select>' ; + + // options[1] (cat_ids) + $options[1] = preg_replace( '/[^0-9,]/' , '' , @$options[1] ) ; + $ret_1 = _MD_D3PIPES_N4J_CID.'<input type="text" name="joint_options['.$index.'][1]" value="'.$options[1].'" size="8" />' ; + + // options[2] (max_entries) + $options[2] = empty( $options[2] ) ? 10 : intval( $options[2] ) ; + $ret_2 = _MD_D3PIPES_N4J_MAXENTRIES.'<input type="text" name="joint_options['.$index.'][2]" value="'.$options[2].'" size="2" style="text-align:right;" />' ; + + // options[3] (with body or not) + $ret_3 = _MD_D3PIPES_N4J_WITHDESCRIPTION.'<input type="checkbox" name="joint_options['.$index.'][3]" value="1" '.(empty($options[3])?'':'checked="checked"').' />' ; + + return '<input type="hidden" name="joint_option['.$index.']" id="joint_option_'.$index.'" value="" />'.$ret_0.' '.$ret_1.'<br />'.$ret_2.' '.$ret_3 ; + } + +} + +?> \ No newline at end of file Property changes on: XoopsModules/gnavi/trunk/gnavi/extra/xoops_trust_path/modules/d3pipes/joints/block/D3pipesBlockGnavilist.class.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/.htaccess.dist =================================================================== --- XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/.htaccess.dist (rev 0) +++ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/.htaccess.dist 2014-11-12 12:37:31 UTC (rev 12839) @@ -0,0 +1,11 @@ +AddType application/vnd.google-earth.kml+xml kml +AddType "application/xml; charset=UTF-8" xml rdf +php_value upload_max_filesize 5M +php_value post_max_size 15M +php_value memory_limit 15M +php_value max_execution_time 1000 +php_value max_input_time 1000 +php_value default_socket_timeout 1000 +php_value ignore_user_abort 1 +LimitRequestBody 51200000 +php_flag output_buffering Off Added: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/0jpg =================================================================== (Binary files differ) Index: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/0jpg =================================================================== --- XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/0jpg 2014-11-12 12:20:01 UTC (rev 12838) +++ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/0jpg 2014-11-12 12:37:31 UTC (rev 12839) Property changes on: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/0jpg ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/0tempjpg =================================================================== (Binary files differ) Index: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/0tempjpg =================================================================== --- XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/0tempjpg 2014-11-12 12:20:01 UTC (rev 12838) +++ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/0tempjpg 2014-11-12 12:37:31 UTC (rev 12839) Property changes on: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/0tempjpg ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/admin_menu.php =================================================================== --- XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/admin_menu.php (rev 0) +++ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/admin_menu.php 2014-11-12 12:37:31 UTC (rev 12839) @@ -0,0 +1,11 @@ +<?php + +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH into mainfile.php' ) ; + +$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; +$mydirpath = dirname( dirname( __FILE__ ) ) ; +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/admin_menu.php' ; + +?> \ No newline at end of file Property changes on: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/admin_menu.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/index.php =================================================================== --- XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/index.php (rev 0) +++ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/index.php 2014-11-12 12:37:31 UTC (rev 12839) @@ -0,0 +1,12 @@ +<?php + +require '../../../mainfile.php' ; +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH in mainfile.php' ) ; + +$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; +$mydirpath = dirname( dirname( __FILE__ ) ) ; +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/admin.php' ; + +?> \ No newline at end of file Property changes on: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/admin/index.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/blocks/blocks.php =================================================================== --- XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/blocks/blocks.php (rev 0) +++ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/blocks/blocks.php 2014-11-12 12:37:31 UTC (rev 12839) @@ -0,0 +1,10 @@ +<?php + +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH into mainfile.php' ) ; + +$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; +$mydirpath = dirname( dirname( __FILE__ ) ) ; +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/blocks.php' ; +?> \ No newline at end of file Property changes on: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/blocks/blocks.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment.php =================================================================== --- XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment.php (rev 0) +++ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment.php 2014-11-12 12:37:31 UTC (rev 12839) @@ -0,0 +1,11 @@ +<?php + +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH into mainfile.php' ) ; + +$mydirname = basename( dirname( __FILE__ ) ) ; +$mydirpath = dirname( __FILE__ ) ; +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/comment.php' ; + +?> \ No newline at end of file Property changes on: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_delete.php =================================================================== --- XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_delete.php (rev 0) +++ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_delete.php 2014-11-12 12:37:31 UTC (rev 12839) @@ -0,0 +1,14 @@ +<?php +require '../../mainfile.php' ; +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH in mainfile.php' ) ; + +$mydirname = basename( dirname( __FILE__ ) ) ; +$mydirpath = dirname( __FILE__ ) ; +$mydirurl = XOOPS_URL.'/modules/'.$mydirname; + +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +$_GET['page'] = basename( __FILE__ , '.php'); + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/main.php' ; +?> \ No newline at end of file Property changes on: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_delete.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_edit.php =================================================================== --- XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_edit.php (rev 0) +++ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_edit.php 2014-11-12 12:37:31 UTC (rev 12839) @@ -0,0 +1,14 @@ +<?php +require '../../mainfile.php' ; +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH in mainfile.php' ) ; + +$mydirname = basename( dirname( __FILE__ ) ) ; +$mydirpath = dirname( __FILE__ ) ; +$mydirurl = XOOPS_URL.'/modules/'.$mydirname; + +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +$_GET['page'] = basename( __FILE__ , '.php'); + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/main.php' ; +?> \ No newline at end of file Property changes on: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_edit.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_new.php =================================================================== --- XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_new.php (rev 0) +++ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_new.php 2014-11-12 12:37:31 UTC (rev 12839) @@ -0,0 +1,14 @@ +<?php +require '../../mainfile.php' ; +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH in mainfile.php' ) ; + +$mydirname = basename( dirname( __FILE__ ) ) ; +$mydirpath = dirname( __FILE__ ) ; +$mydirurl = XOOPS_URL.'/modules/'.$mydirname; + +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +$_GET['page'] = basename( __FILE__ , '.php'); + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/main.php' ; +?> \ No newline at end of file Property changes on: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_new.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_post.php =================================================================== --- XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_post.php (rev 0) +++ XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_post.php 2014-11-12 12:37:31 UTC (rev 12839) @@ -0,0 +1,14 @@ +<?php +require '../../mainfile.php' ; +if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH in mainfile.php' ) ; + +$mydirname = basename( dirname( __FILE__ ) ) ; +$mydirpath = dirname( __FILE__ ) ; +$mydirurl = XOOPS_URL.'/modules/'.$mydirname; + +require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname + +$_GET['page'] = basename( __FILE__ , '.php'); + +require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/main.php' ; +?> \ No newline at end of file Property changes on: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_post.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_reply.php =================================================================== --- XoopsModules/gnavi/trunk/gnavi/html/modules/gnavi/comment_reply.php (... [truncated message content] |
From: <be...@us...> - 2014-11-18 08:00:19
|
Revision: 12853 http://sourceforge.net/p/xoops/svn/12853 Author: beckmi Date: 2014-11-18 08:00:06 +0000 (Tue, 18 Nov 2014) Log Message: ----------- Adding Vide by Black_beard Added Paths: ----------- XoopsModules/vide/ XoopsModules/vide/branches/ XoopsModules/vide/releases/ XoopsModules/vide/trunk/ XoopsModules/vide/trunk/vide/ XoopsModules/vide/trunk/vide/add_item.php XoopsModules/vide/trunk/vide/admin/ XoopsModules/vide/trunk/vide/admin/about.php XoopsModules/vide/trunk/vide/admin/admin_footer.php XoopsModules/vide/trunk/vide/admin/admin_header.php XoopsModules/vide/trunk/vide/admin/categorie.php XoopsModules/vide/trunk/vide/admin/images/ XoopsModules/vide/trunk/vide/admin/images/close_pop.png XoopsModules/vide/trunk/vide/admin/images/index.html XoopsModules/vide/trunk/vide/admin/index.php XoopsModules/vide/trunk/vide/admin/item.php XoopsModules/vide/trunk/vide/admin/maintenance.php XoopsModules/vide/trunk/vide/admin/menu.php XoopsModules/vide/trunk/vide/blocks/ XoopsModules/vide/trunk/vide/blocks/index.html XoopsModules/vide/trunk/vide/class/ XoopsModules/vide/trunk/vide/class/class_admin.php XoopsModules/vide/trunk/vide/class/class_categorie.php XoopsModules/vide/trunk/vide/class/class_class.php XoopsModules/vide/trunk/vide/class/class_formulaire.php XoopsModules/vide/trunk/vide/class/class_item.php XoopsModules/vide/trunk/vide/class/class_kernel.php XoopsModules/vide/trunk/vide/class/class_loadclass.php XoopsModules/vide/trunk/vide/class/class_maintenance.php XoopsModules/vide/trunk/vide/class/index.html XoopsModules/vide/trunk/vide/css/ XoopsModules/vide/trunk/vide/css/index.html XoopsModules/vide/trunk/vide/css/style.css XoopsModules/vide/trunk/vide/docs/ XoopsModules/vide/trunk/vide/docs/index.html XoopsModules/vide/trunk/vide/footer.php XoopsModules/vide/trunk/vide/header.php XoopsModules/vide/trunk/vide/images/ XoopsModules/vide/trunk/vide/images/folder.png XoopsModules/vide/trunk/vide/images/icons/ XoopsModules/vide/trunk/vide/images/icons/index.html XoopsModules/vide/trunk/vide/images/icons/maintenance.png XoopsModules/vide/trunk/vide/images/index.html XoopsModules/vide/trunk/vide/images/vide_slogo.png XoopsModules/vide/trunk/vide/include/ XoopsModules/vide/trunk/vide/include/config.php XoopsModules/vide/trunk/vide/include/function.special.php XoopsModules/vide/trunk/vide/include/index.html XoopsModules/vide/trunk/vide/include/install_function.php XoopsModules/vide/trunk/vide/include/search.inc.php XoopsModules/vide/trunk/vide/include/start.php XoopsModules/vide/trunk/vide/index.php XoopsModules/vide/trunk/vide/language/ XoopsModules/vide/trunk/vide/language/french/ XoopsModules/vide/trunk/vide/language/french/admin.php XoopsModules/vide/trunk/vide/language/french/commun.php XoopsModules/vide/trunk/vide/language/french/help/ XoopsModules/vide/trunk/vide/language/french/help/index.html XoopsModules/vide/trunk/vide/language/french/index.html XoopsModules/vide/trunk/vide/language/french/mail_template/ XoopsModules/vide/trunk/vide/language/french/mail_template/index.html XoopsModules/vide/trunk/vide/language/french/main.php XoopsModules/vide/trunk/vide/language/french/modinfo.php XoopsModules/vide/trunk/vide/language/index.html XoopsModules/vide/trunk/vide/lib_js/ XoopsModules/vide/trunk/vide/lib_js/index.html XoopsModules/vide/trunk/vide/lib_js/jquery.js XoopsModules/vide/trunk/vide/lib_js/notifier.js XoopsModules/vide/trunk/vide/lib_js/popup.js XoopsModules/vide/trunk/vide/lib_js/print.js XoopsModules/vide/trunk/vide/log/ XoopsModules/vide/trunk/vide/log/index.html XoopsModules/vide/trunk/vide/sql/ XoopsModules/vide/trunk/vide/sql/index.html XoopsModules/vide/trunk/vide/sql/mysql.php XoopsModules/vide/trunk/vide/sql/mysql.sql XoopsModules/vide/trunk/vide/templates/ XoopsModules/vide/trunk/vide/templates/PDFmanager_content.html XoopsModules/vide/trunk/vide/templates/PDFmanager_footer.html XoopsModules/vide/trunk/vide/templates/PDFmanager_index.html XoopsModules/vide/trunk/vide/templates/index.html XoopsModules/vide/trunk/vide/voir.php XoopsModules/vide/trunk/vide/xoops_version.php Added: XoopsModules/vide/trunk/vide/add_item.php =================================================================== --- XoopsModules/vide/trunk/vide/add_item.php (rev 0) +++ XoopsModules/vide/trunk/vide/add_item.php 2014-11-18 08:00:06 UTC (rev 12853) @@ -0,0 +1,3 @@ +<?php + + \ No newline at end of file Property changes on: XoopsModules/vide/trunk/vide/add_item.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/vide/trunk/vide/admin/about.php =================================================================== --- XoopsModules/vide/trunk/vide/admin/about.php (rev 0) +++ XoopsModules/vide/trunk/vide/admin/about.php 2014-11-18 08:00:06 UTC (rev 12853) @@ -0,0 +1,9 @@ +<?php +/** + * CHG-WEB - MONTUY337513 - 2014-08-15 + */ +include_once 'admin_header.php'; +$aboutAdmin = new ModuleAdmin(); +echo $aboutAdmin->addNavigation('about.php'); +echo $aboutAdmin->renderAbout('KK44NLXHR2MXW', false); +include 'admin_footer.php'; \ No newline at end of file Property changes on: XoopsModules/vide/trunk/vide/admin/about.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/vide/trunk/vide/admin/admin_footer.php =================================================================== --- XoopsModules/vide/trunk/vide/admin/admin_footer.php (rev 0) +++ XoopsModules/vide/trunk/vide/admin/admin_footer.php 2014-11-18 08:00:06 UTC (rev 12853) @@ -0,0 +1,16 @@ +<?php + +if (!defined('XOOPS_ROOT_PATH')) { + die('XOOPS root path not defined'); +} +echo '<div class="adminfooter"><div style="text-align: center;"><a href="http://www.chg-web.org" rel="external"><img src="'.$pathIcon32.'/xoopsmicrobutton.gif" alt="Création de module pour Xoops" title="Création de module pour Xoops"></a></div>'; +echo '<div class="center smallsmall italic pad5">'.CHG_FOOT_ADMIN.'</div></div>'; +if (count($$DirName->fin_page)){ + echo implode("\n",$$DirName->fin_page); +} +if (is_array($tableau_erreur) && count($tableau_erreur) > 0) { + $$DirName->add_erreur($tableau_erreur); + echo $$DirName->aff_mess_client(); +} +$xoopsTpl->assign('xoops_module_header',$$DirName->aff_admin_header()); +xoops_cp_footer(); \ No newline at end of file Property changes on: XoopsModules/vide/trunk/vide/admin/admin_footer.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/vide/trunk/vide/admin/admin_header.php =================================================================== --- XoopsModules/vide/trunk/vide/admin/admin_header.php (rev 0) +++ XoopsModules/vide/trunk/vide/admin/admin_header.php 2014-11-18 08:00:06 UTC (rev 12853) @@ -0,0 +1,51 @@ +<?php +/** + * CHG-WEB - MONTUY33513 - 2014-08-15 + */ +$temp = array('admin'); +if (isset($class) && is_array($class)){ + $class = array_merge($temp,$class); +}else{ + $class = $temp; +} +unset($temp); +include_once '../../../mainfile.php'; +include_once '../include/config.php'; +include_once '../include/start.php'; +include_once XOOPS_ROOT_PATH . '/include/cp_functions.php'; +require_once XOOPS_ROOT_PATH . '/include/cp_header.php'; +include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; +global $xoopsModule; +$pathIcon16 = '../' . $xoopsModule->getInfo('icons16'); +$pathIcon32 = '../' . $xoopsModule->getInfo('icons32'); +$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); +// Load language files +xoops_loadLanguage('admin', $DirName); +xoops_loadLanguage('modinfo', $DirName); +xoops_loadLanguage('main',$DirName); +xoops_loadLanguage('commun',$DirName); +if (file_exists($GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php'))) { + include_once $GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php'); +} else { + redirect_header('../../../admin.php', 5, CHG_MODULEADMIN_MISSING, FALSE); + exit(); +} +$myts =& MyTextSanitizer::getInstance(); +if ($xoopsUser) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar( 'mid' ), $xoopsUser->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } + $usid = $xoopsUser->uid(); +} else { + redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM); + exit(); +} +if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { + include_once(XOOPS_ROOT_PATH.'/class/template.php'); + $xoopsTpl = new XoopsTpl(); +} +$xoopsTpl->assign('pathIcon16', $pathIcon16); +$$DirName->add_admin_header('<link rel="stylesheet" type="text/css" media="all" href="'.XOOPS_URL.'/modules/'.$DirName.'/css/style.css" />'); +xoops_cp_header(); \ No newline at end of file Property changes on: XoopsModules/vide/trunk/vide/admin/admin_header.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/vide/trunk/vide/admin/categorie.php =================================================================== --- XoopsModules/vide/trunk/vide/admin/categorie.php (rev 0) +++ XoopsModules/vide/trunk/vide/admin/categorie.php 2014-11-18 08:00:06 UTC (rev 12853) @@ -0,0 +1,320 @@ +<?php +$class = array('categorie','formulaire'); +$champs = array( + 'id' => 'int', + 'pid' => 'int', + 'nom' => 'text', + 'created' => 'datetime', + 'descriptif' => 'text', + 'keywords' => 'text', + 'image' => 'file', + 'actif' => 'int' +); +$nom = ''; +$pid = 0; +$keywords = ''; +$descriptif = ''; +$image = ''; +$actif = 1; +include_once 'admin_header.php'; +$$DirName->add_query($champs); +if (!empty($op)){ + if( ! xoopsSecurity::checkReferer() ) { + $$DirName->inscrit_log(CHG_LOG_SECU,CHG_LOG_HACK1); + redirect_header(XOOPS_URL.'/admin.php', 5, CHG_ERR_INC, FALSE); + exit(); + } +} +if($op == 'verif_form') { + foreach ($champs as $k => $v) { + if (!isset($$k)) { + $$k = $$DirName->requete('post', $k, $$DirName->defaut($v)); + } else { + $$k = $$DirName->requete('post', $k, $$k); + } + } + if ($$DirName->min_max($nom,3,50) === false){ + $tableau_erreur[] = sprintf(constant('_AM_'.$moduleUP.'_MIN_MAX_PAS_OK'),CHG_NOM,3,50).CHG_CARACTERES; + } + if ($pid != 0 && $$DirName->test_presence('categorie','id',$pid) === false){ + $tableau_erreur[] = constant('_AM_'.$moduleUP.'_PID_PASOK'); + } + if (empty($descriptif)){ + $tableau_erreur[] = sprintf(CHG_CHAMPS_VIDE,CHG_DESC); + } + if (empty($keywords)){ + $tableau_erreur[] = sprintf(CHG_CHAMPS_VIDE,CHG_KEYWORDS); + } + if($$DirName->onoff($actif) === false){ + $tableau_erreur[] = sprintf(CHG_ONOFF_NOTOK,CHG_ACTF); + } + if(isset($_POST['xoops_upload_file'])) { + include_once XOOPS_ROOT_PATH.'/class/uploader.php'; + $fldname = $_FILES[$_POST['xoops_upload_file'][0]]; + $fldname = $fldname['name']; + if(xoops_trim($fldname!='')) { + $destname = $$DirName->createUploadName(URI_THUMB_CAT ,$fldname, true); + $uploader = new XoopsMediaUploader(URI_THUMB_CAT, $allow_mimetype_cat, $xoopsModuleConfig[$DirName.'_maxfilesize']*1024); + $uploader->setTargetFileName($destname); + if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) { + if ($uploader->upload()) { + + $$DirName->chg_resizePicture(URI_THUMB_CAT.'/'.$destname,URI_THUMB_CAT.'/redim_'.$destname, $xoopsModuleConfig[$DirName.'_width_thumb'], $xoopsModuleConfig[$DirName.'_height_thumb']); + $image = 'redim_'.$destname; + + } else { + $tableau_erreur[] = CHG_UPLOAD_ERROR . ' ' . $uploader->getErrors(); + $$DirName->inscrit_log('ERREUR_UPLOAD',$uploader->getErrors()); + $image = 'blank.png'; + } + } else { + $$DirName->inscrit_log('ERREUR_UPLOAD',$uploader->getErrors()); + $tableau_erreur[] = CHG_UPLOAD_ERROR . ' ' . $uploader->getErrors(); + $image = 'blank.png'; + } + } + } + if (!is_file(URI_THUMB_CAT.'/'.$image)){ + $tableau_erreur[] = sprintf(CHG_PHOTO_INEX,$image); + $image = 'blank.png'; + } + if (count($tableau_erreur) > 0) { + if ($id > 0){ + $op = 'modifier'; + } else { + $op = 'ajouter'; + } + } else { + if ($id > 1) { + if ($$DirName->modif_categorie($id, $pid, $nom, $descriptif, $keywords, $image, $actif) === false) { + $$DirName->inscrit_log( + CHG_LOG_ERRSQL, + sprintf(CHG_LOG_ERR_MOD_SQL, $$DirName->liste_table['categorie']) + ); + redirect_header(XOOPS_URL . '/modules/' . $DirName . '/admin/categorie.php', 5, CHG_ERR_INC, false); + exit(); + } + }else{ + if($$DirName->crea_categorie($pid,$nom, $descriptif, $keywords, $image, $actif) === false){ + $$DirName->inscrit_log( + CHG_LOG_ERRSQL, + sprintf(CHG_LOG_ERR_MOD_SQL, $$DirName->liste_table['categorie']) + ); + redirect_header(XOOPS_URL . '/modules/' . $DirName . '/admin/categorie.php', 5, CHG_ERR_INC, false); + exit(); + } + } + $message = ($id > 0) ? sprintf(CHG_LOG_UP_CAT,$nom) : sprintf(CHG_LOG_CREER_CAT,$nom); + $$DirName->inscrit_log(CHG_LOG_OPSQL,$message); + } + $gperm_handler = &xoops_gethandler('groupperm'); + if($id > 0) { + // Permissions + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('gperm_itemid', $id, '=')); + $criteria->add(new Criteria('gperm_modid', $xoopsModule->getVar('mid'), '=')); + $criteria->add(new Criteria('gperm_name', $DirName . '_delete', '=')); + $gperm_handler->deleteAll($criteria); + + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('gperm_itemid', $id, '=')); + $criteria->add(new Criteria('gperm_modid', $xoopsModule->getVar('mid'), '=')); + $criteria->add(new Criteria('gperm_name', $DirName . '_submit', '=')); + $gperm_handler->deleteAll($criteria); + + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('gperm_itemid', $id, '=')); + $criteria->add(new Criteria('gperm_modid', $xoopsModule->getVar('mid'), '=')); + $criteria->add(new Criteria('gperm_name', $DirName . '_view', '=')); + $gperm_handler->deleteAll($criteria); + } + if(isset($_POST['groups_can_delete'])) { + foreach($_POST['groups_can_delete'] as $onegroup_id) { + $gperm_handler->addRight($DirName.'_delete', $id, $onegroup_id, $xoopsModule->getVar('mid')); + } + } + if(isset($_POST['groups_can_submit'])) { + foreach($_POST['groups_can_submit'] as $onegroup_id) { + $gperm_handler->addRight($DirName.'_submit', $id, $onegroup_id, $xoopsModule->getVar('mid')); + } + } + if(isset($_POST['groups_can_view'])) { + foreach($_POST['groups_can_view'] as $onegroup_id) { + $gperm_handler->addRight($DirName.'_view', $id, $onegroup_id, $xoopsModule->getVar('mid')); + } + } + redirect_header(XOOPS_URL.'/modules/'.$DirName.'/admin/categorie.php',5,CHG_OP_OK); + exit(); +}elseif($id > 0){ + $listing = $$DirName->liste('categorie','`id`='.$id); + if (count($listing) == 0){ + redirect_header(XOOPS_URL.'/modules/'.$DirName.'/admin/categorie.php', 5, CHG_NO_ID, FALSE); + exit(); + } + foreach($champs as $k=>$v){ + $$k = $listing[$id][$k]; + } +}elseif($op == 'ajouter'){ + foreach($champs as $k=>$v){ + $$k = $$DirName->defaut($v); + } +} +switch($op){ + case'activer': + if($$DirName->active_desactive($id,1,'categorie','id')){ + redirect_header(XOOPS_URL.'/modules/'.$DirName.'/admin/categorie.php',5,CHG_OP_OK); + exit(); + } else { + redirect_header(XOOPS_URL.'/admin.php', 5, CHG_ERR_INC, FALSE); + exit(); + } + + break; + case'desactiver': + if($$DirName->active_desactive($id,0,'categorie','id')){ + redirect_header(XOOPS_URL.'/modules/'.$DirName.'/admin/categorie.php',5,CHG_OP_OK); + exit(); + } else { + redirect_header(XOOPS_URL.'/admin.php', 5, CHG_ERR_INC, FALSE); + exit(); + } + break; + case'supprimer': + $content .= $$DirName->conf_sup($id,$listing[$id]['nom'],'/admin/categorie.php'); + break; + case'conf_sup': + if($$DirName->del_cat($id)){ + $$DirName->inscrit_log(CHG_LOG_OP,sprintf(CHG_LOG_DEL_SQL,$id,$liste_table['categorie'])); + redirect_header( XOOPS_URL.'/modules/' . $DirName .'/admin/categorie.php', 3, CHG_OP_OK); + exit; + } + redirect_header(XOOPS_URL.'/modules/'.$DirName.'/admin/categorie.php', 5, CHG_ERR_INC, FALSE); + exit(); + break; + case'ajouter'; + case'modifier': + + $$DirName->add_admin_header('<script src="'.XOOPS_URL.'/modules/' . $DirName .'/lib_js/notifier.js" type="text/javascript"></script>'); + ob_start(); + $titre = ($op == 'ajouter') ? constant('_AM_'.$moduleUP.'_ADD_CAT') : constant('_AM_'.$moduleUP.'_MOD_CAT'); + $form = new XoopsThemeForm($titre, 'submitform', XOOPS_URL.'/modules/' . $DirName .'/admin/categorie.php'); + $form->setExtra('enctype="multipart/form-data"'); + $form->addElement(new XoopsFormText(CHG_NOM, 'nom', 50, 50, $nom), true); + $soc = new XoopsFormSelect(constant('_AM_'.$moduleUP.'_PID'), 'pid', $pid); + $soc->addOption(0, '- - - -'); + $liste_temp = $$DirName->liste_categorie(); + foreach ($liste_temp as $k=>$v) { + $soc->addOption($k, $v); + } + $form->addElement($soc); + unset($liste_temp,$soc); + $form->addElement(new XoopsFormTextArea(constant('_AM_'.$moduleUP.'_CAT_DESC'), 'descriptif', $descriptif, 5, 50 ), true ); + $form->addElement(new XoopsFormTextArea(CHG_KEYWORDS, 'keywords', $keywords, 5, 50 ), true ); + $form->addElement(new XoopsFormRadioYN(CHG_ACTF, 'actif', $actif)); + $imgtray = new XoopsFormElementTray(sprintf(constant('_AM_'.$moduleUP.'_IMG'),CHG_DELA,mb_strtolower(constant('_AM_'.$moduleUP.'_CID'),'UTF-8')),'<br />'); + $imgpath = sprintf(constant('_AM_'.$moduleUP.'_LOCIMG'), URL_THUMB_CAT); + $imageselect = new XoopsFormSelect($imgpath, 'image',$image); + $topics_array = XoopsLists :: getImgListAsArray(URI_THUMB_CAT.'/'); + foreach( $topics_array as $image1 ) { + $imageselect->addOption("$image1", $image1); + } + $imageselect->setExtra( "onchange='showImgSelected(\"image3\", \"image\", \"" . 'uploads/'.$DirName.'/images/thumb_cat/' . "\", \"\", \"" . XOOPS_URL . "\")'" ); + $imgtray->addElement($imageselect,false); + $imgtray -> addElement( new XoopsFormLabel( '', '<br /><img src="'.URL_THUMB_CAT. '/'.$image.'" name="image3" id="image3" alt="" />' ) ); + $uploadfolder=sprintf(constant('_AM_'.$moduleUP.'_UPLOAD_WARNING'),URL_THUMB_CAT.'/'); + $fileseltray= new XoopsFormElementTray('','<br />'); + $fileseltray->addElement(new XoopsFormFile(constant('_AM_'.$moduleUP.'_TELECHARGE_IMG_CAT') , 'attachedfile', $xoopsModuleConfig[$DirName.'_maxfilesize']*1024), false); + $fileseltray->addElement(new XoopsFormLabel($uploadfolder ), false); + $imgtray->addElement($fileseltray); + $form->addElement($imgtray); + // Permissions + $member_handler = & xoops_gethandler('member'); + $group_list = &$member_handler->getGroupList(); + $gperm_handler = &xoops_gethandler('groupperm'); + $full_list = array_keys($group_list); + $groups_ids = array(); + if($id > 0) { // Edit mode + $groups_ids = $gperm_handler->getGroupIds($DirName.'_delete', $id, $xoopsModule->getVar('mid')); + $groups_ids = array_values($groups_ids); + $groups_can_delete_checkbox = new XoopsFormCheckBox(constant('_AM_'.$moduleUP.'_DELETEFORM'), 'groups_can_delete[]', $groups_ids); + } else { // Creation mode + $groups_can_delete_checkbox = new XoopsFormCheckBox(constant('_AM_'.$moduleUP.'_DELETEFORM'), 'groups_can_delete[]', $full_list); + } + $groups_can_delete_checkbox->addOptionArray($group_list); + $form->addElement($groups_can_delete_checkbox); + $groups_ids = array(); + if($id > 0) { // Edit mode + $groups_ids = $gperm_handler->getGroupIds($DirName.'_submit', $id, $xoopsModule->getVar('mid')); + $groups_ids = array_values($groups_ids); + $groups_can_submit_checkbox = new XoopsFormCheckBox(constant('_AM_'.$moduleUP.'_SUBMITFORM'), 'groups_can_submit[]', $groups_ids); + } else { // Creation mode + $groups_can_submit_checkbox = new XoopsFormCheckBox(constant('_AM_'.$moduleUP.'_SUBMITFORM'), 'groups_can_submit[]', $full_list); + } + $groups_can_submit_checkbox->addOptionArray($group_list); + $form->addElement($groups_can_submit_checkbox); + $groups_ids = array(); + if($id > 0) { // Edit mode + $groups_ids = $gperm_handler->getGroupIds($DirName.'_view', $id, $xoopsModule->getVar('mid')); + $groups_ids = array_values($groups_ids); + $groups_can_view_checkbox = new XoopsFormCheckBox(constant('_AM_'.$moduleUP.'_VIEWFORM'), 'groups_can_view[]', $groups_ids); + } else { // Creation mode + $groups_can_view_checkbox = new XoopsFormCheckBox(constant('_AM_'.$moduleUP.'_VIEWFORM'), 'groups_can_view[]', $full_list); + } + $groups_can_view_checkbox->addOptionArray($group_list); + $form->addElement($groups_can_view_checkbox); + $form->addElement(new XoopsFormHidden('op', 'verif_form')); + $form->addElement(new XoopsFormHidden('id', $id)); + $bouton_tray = new XoopsFormElementTray( '', '' ); + if ($id>0){ + $bouton_creer = new XoopsFormButton( '', '', $$DirName->modif(constant('_AM_'.$moduleUP.'_NOM_CAT')), 'submit' ); + }else { + $bouton_creer = new XoopsFormButton( '', '', $$DirName->ajout(constant('_AM_'.$moduleUP.'_NOM_CAT')), 'submit' ); + } + $bouton_tray->addElement( $bouton_creer ); + $form -> addElement( $bouton_tray ); + $form->display(); + $content .= ob_get_contents(); + ob_end_clean(); + break; + default: + $i = 0; + $liste[$i]['trad'] = constant('_AM_'.$moduleUP.'_NOM_CAT'); + $liste[$i]['champs'] = 'nom'; + $liste[$i]['class'] = 'w100 center'; + $liste[$i]['type'] = 'text'; + $i++; + $liste[$i]['trad'] = constant('_AM_'.$moduleUP.'_PID'); + $liste[$i]['champs'] = 'pid'; + $liste[$i]['class'] = 'w200 center'; + $liste[$i]['type'] = 'list_cat'; + $i++; + $liste[$i]['trad'] = CHG_IMG; + $liste[$i]['champs'] = 'image'; + $liste[$i]['class'] = 'w150 center'; + $liste[$i]['type'] = 'img_cat'; + + unset($i); + $action = array( + 'modifier' => CHG_MODIF, + 'voir1' => CHG_VOIR, + 'supprimer' => CHG_SUP + ); + $nb_log = $$DirName->compte('categorie','id'); + if ($nb_log > 0 && empty($op)){ + $$DirName->add_admin_header('<script src="'.XOOPS_URL.'/modules/' . $DirName .'/lib_js/popup.js" type="text/javascript"></script>'); + $listing = $$DirName->liste('categorie','','`pid` ASC','LIMIT '.(($xoopsModuleConfig[$DirName.'_nb_com'])*($page-1)).','.$xoopsModuleConfig[$DirName.'_nb_com']); + } else { + $listing = array(); + } + $$DirName->entete_tableau(1,CHG_ADD,constant('_AM_'.$moduleUP.'_GCAT')); + $$DirName->crea_tableau_admin($listing,'tableau_admin',$liste,$action,false,'id'); + $content .= $$DirName->aff_tableau(); + if ($nb_log > $xoopsModuleConfig[$DirName.'_nb_com']){ + $$DirName->num_page($nb_log,$page); + $content .= $$DirName->pagenav; + } +} +$mainAdmin = new ModuleAdmin(); +echo $mainAdmin->addNavigation('categorie.php'); +echo $content; +include 'admin_footer.php'; \ No newline at end of file Property changes on: XoopsModules/vide/trunk/vide/admin/categorie.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/vide/trunk/vide/admin/images/close_pop.png =================================================================== (Binary files differ) Index: XoopsModules/vide/trunk/vide/admin/images/close_pop.png =================================================================== --- XoopsModules/vide/trunk/vide/admin/images/close_pop.png 2014-11-17 03:34:31 UTC (rev 12852) +++ XoopsModules/vide/trunk/vide/admin/images/close_pop.png 2014-11-18 08:00:06 UTC (rev 12853) Property changes on: XoopsModules/vide/trunk/vide/admin/images/close_pop.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/vide/trunk/vide/admin/images/index.html =================================================================== --- XoopsModules/vide/trunk/vide/admin/images/index.html (rev 0) +++ XoopsModules/vide/trunk/vide/admin/images/index.html 2014-11-18 08:00:06 UTC (rev 12853) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/vide/trunk/vide/admin/index.php =================================================================== --- XoopsModules/vide/trunk/vide/admin/index.php (rev 0) +++ XoopsModules/vide/trunk/vide/admin/index.php 2014-11-18 08:00:06 UTC (rev 12853) @@ -0,0 +1,67 @@ +<?php +$class = array(); +$champs = array(); +include_once 'admin_header.php'; +$statistique = 0; // A 1 si afficher le bloc statistique +$require = 1; // Requis nécessaire +$folder = array(); // Les répertoires nécessaires +$indexAdmin = new ModuleAdmin(); +$liste_requis = array('wideimage','gd2'); +if ($statistique == 1){ + $indexAdmin->addInfoBox(constant('_AM_'.$moduleUP.'_STAT')); + //@TODO:Voir si besoin des statistiques +} +if($xoopsModuleConfig[$DirName.'_todo']){ + $indexAdmin->addInfoBox(constant('_AM_'.$moduleUP.'_TODOLIST')); + $a = 0; + $temp = $$DirName->valeur_config('optimise') + ($duree_optimize * 86400 ); + if ( $temp === false) { + $indexAdmin->addInfoBoxLine(constant('_AM_'.$moduleUP.'_TODOLIST'),CHG_VIDE,constant('_AM_'.$moduleUP.'_PASOPT'),'red'); + }else{ + if (time() > $temp){ + $indexAdmin->addInfoBoxLine(constant('_AM_'.$moduleUP.'_TODOLIST'),CHG_VIDE,constant('_AM_'.$moduleUP.'_OPT_AFAIRE').' '.$$DirName->gest_date($temp,3),'red'); + }else{ + $indexAdmin->addInfoBoxLine(constant('_AM_'.$moduleUP.'_TODOLIST'),CHG_VIDE,constant('_AM_'.$moduleUP.'_OPT_FAIT').' '.$$DirName->gest_date($temp,3),'green'); + } + } + unset($temp); + $temp = $$DirName->valeur_config('sauvebdd') + ($duree_sauvebdd * 86400); + if ($temp === false) { + $indexAdmin->addInfoBoxLine(constant('_AM_'.$moduleUP.'_TODOLIST'),CHG_VIDE,constant('_AM_'.$moduleUP.'_PASSAUVE'),'red'); + }else { + if (time() > $temp) { // sauvegarde tout les 7 jours + $indexAdmin->addInfoBoxLine( + constant('_AM_' . $moduleUP . '_TODOLIST'), + CHG_VIDE, + constant('_AM_' . $moduleUP . '_SAUVE_AFAIRE') . ' ' . $$DirName->gest_date($temp, 3), + 'red' + ); + } else { + $indexAdmin->addInfoBoxLine( + constant('_AM_' . $moduleUP . '_TODOLIST'), + CHG_VIDE, + constant('_AM_' . $moduleUP . '_SAUVE_FAIT') . ' ' . $$DirName->gest_date($temp, 3), + 'green' + ); + } + } +} +if ($require == 1 && count($liste_requis) > 0){ + $indexAdmin->addInfoBox(constant('_AM_'.$moduleUP.'_REQUIS')); + foreach($liste_requis as $v){ + $tableau = $$DirName->requis($v); + if(!empty($tableau[0]['present'])){ + $indexAdmin->addInfoBoxLine(constant('_AM_'.$moduleUP.'_REQUIS'),$tableau[0]['titre'], $tableau[0]['present'], $tableau[0]['couleur']); + } + } +} +$folder = array($uri_sauve_bdd,URI_ITEM,URI_THUMB_CAT); // TODO: a compléter si nécessaire +if (count($folder)>0){ + foreach(array_keys($folder) as $i){ + $indexAdmin->addConfigBoxLine($folder[$i], 'folder'); + $indexAdmin->addConfigBoxLine(array($folder[$i], '777'), 'chmod'); + } +} +echo $indexAdmin->addNavigation('index.php'); +echo $indexAdmin->renderIndex(); +include 'admin_footer.php'; \ No newline at end of file Property changes on: XoopsModules/vide/trunk/vide/admin/index.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/vide/trunk/vide/admin/item.php =================================================================== --- XoopsModules/vide/trunk/vide/admin/item.php (rev 0) +++ XoopsModules/vide/trunk/vide/admin/item.php 2014-11-18 08:00:06 UTC (rev 12853) @@ -0,0 +1,224 @@ +<?php +$class = array('item','categorie','formulaire'); +$champs = array( + 'id' => 'int', + 'cid' => 'int', + 'nom' => 'text', + 'created' => 'datetime', + 'descriptif' => 'text', + 'keywords' => 'text', + 'fichier' => 'string', + 'actif' => 'int' +); +$nom = ''; +$cid = 0; +$keywords = ''; +$descriptif = ''; +$fichier = ''; +$actif = 1; +include_once 'admin_header.php'; +$$DirName->add_query($champs); +if (!empty($op)){ + if( ! xoopsSecurity::checkReferer() ) { + $$DirName->inscrit_log(CHG_LOG_SECU,CHG_LOG_HACK1); + redirect_header(XOOPS_URL.'/admin.php', 5, CHG_ERR_INC, FALSE); + exit(); + } +} +if($op == 'verif_form') { + foreach ($champs as $k => $v) { + if (!isset($$k)) { + $$k = $$DirName->requete('post', $k, $$DirName->defaut($v)); + } else { + $$k = $$DirName->requete('post', $k, $$k); + } + } + if ($$DirName->min_max($nom,3,50) === false){ + $tableau_erreur[] = sprintf(constant('_AM_'.$moduleUP.'_MIN_MAX_PAS_OK'),CHG_NOM,3,50).CHG_CARACTERES; + } + if ($cid != 0 && $$DirName->test_presence('categorie','id',$cid) === false){ + $tableau_erreur[] = constant('_AM_'.$moduleUP.'_CID_PASOK'); + } + if (empty($descriptif)){ + $tableau_erreur[] = sprintf(CHG_CHAMPS_VIDE,CHG_DESC); + } + if (empty($keywords)){ + $tableau_erreur[] = sprintf(CHG_CHAMPS_VIDE,CHG_KEYWORDS); + } + if($$DirName->onoff($actif) === false){ + $tableau_erreur[] = sprintf(CHG_ONOFF_NOTOK,CHG_ACTF); + } + if(isset($_POST['xoops_upload_file'])) { + include_once XOOPS_ROOT_PATH.'/class/uploader.php'; + $fldname = $_FILES[$_POST['xoops_upload_file'][0]]; + $fldname = $fldname['name']; + if(xoops_trim($fldname!='')) { + $destname = $$DirName->createUploadName(URI_ITEM ,$fldname, true); + $uploader = new XoopsMediaUploader(URI_ITEM, $allow_mimetype_item, $xoopsModuleConfig[$DirName.'_maxfilesize']*1024); + $uploader->extensionToMime = array_merge($uploader->extensionToMime,array('pdf'=>'application/pdf')); + $uploader->setTargetFileName($destname); + if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) { + if ($uploader->upload()) { + $fichier = $destname; + + } else { + $tableau_erreur[] = CHG_UPLOAD_ERROR . ' ' . $uploader->getErrors(); + $$DirName->inscrit_log('ERREUR_UPLOAD',$uploader->getErrors()); + $fichier = ''; + } + } else { + $$DirName->inscrit_log('ERREUR_UPLOAD',$uploader->getErrors()); + $tableau_erreur[] = CHG_UPLOAD_ERROR . ' ' . $uploader->getErrors(); + $fichier = ''; + } + } + } + if (!is_file(URI_ITEM.'/'.$fichier)){ + $tableau_erreur[] = sprintf(CHG_PHOTO_INEX,$fichier); + $fichier = ''; + } + if (count($tableau_erreur) > 0) { + if ($id > 0){ + $op = 'modifier'; + } else { + $op = 'ajouter'; + } + } else { + if ($id > 1) { + if ($$DirName->modif_item($id, $cid, $nom, $descriptif, $keywords, $fichier, $actif) === false) { + $$DirName->inscrit_log( + CHG_LOG_ERRSQL, + sprintf(CHG_LOG_ERR_MOD_SQL, $$DirName->liste_table['item']) + ); + redirect_header(XOOPS_URL . '/modules/' . $DirName . '/admin/item.php', 5, CHG_ERR_INC, false); + exit(); + } + }else{ + if($$DirName->crea_item($cid,$nom, $descriptif, $keywords, $fichier, $actif) === false){ + $$DirName->inscrit_log( + CHG_LOG_ERRSQL, + sprintf(CHG_LOG_ERR_MOD_SQL, $$DirName->liste_table['item']) + ); + redirect_header(XOOPS_URL . '/modules/' . $DirName . '/admin/item.php', 5, CHG_ERR_INC, false); + exit(); + } + } + $message = ($id > 0) ? sprintf(CHG_LOG_UP_ITEM,$nom) : sprintf(CHG_LOG_CREER_ITEM,$nom); + $$DirName->inscrit_log(CHG_LOG_OPSQL,$message); + redirect_header(XOOPS_URL.'/modules/'.$DirName.'/admin/item.php',5,CHG_OP_OK); + exit(); + } +} +switch($op){ + case'activer': + if($$DirName->active_desactive($id,1,'item','id')){ + redirect_header(XOOPS_URL.'/modules/'.$DirName.'/admin/item.php',5,CHG_OP_OK); + exit(); + } else { + redirect_header(XOOPS_URL.'/admin.php', 5, CHG_ERR_INC, FALSE); + exit(); + } + + break; + case'desactiver': + if($$DirName->active_desactive($id,0,'item','id')){ + redirect_header(XOOPS_URL.'/modules/'.$DirName.'/admin/item.php',5,CHG_OP_OK); + exit(); + } else { + redirect_header(XOOPS_URL.'/admin.php', 5, CHG_ERR_INC, FALSE); + exit(); + } + break; + case'sup': + $content .= $$DirName->conf_sup($id,$listing[$id]['nom'],'/admin/item.php'); + break; + case'conf_sup': + if($$DirName->del_item($id)){ + $$DirName->inscrit_log(CHG_LOG_OP,sprintf(CHG_LOG_DEL_SQL,$id,$liste_table['item'])); + redirect_header( XOOPS_URL.'/modules/' . $DirName .'/admin/item.php', 3, CHG_OP_OK); + exit; + } + redirect_header(XOOPS_URL.'/modules/'.$DirName.'/admin/item.php', 5, CHG_ERR_INC, FALSE); + exit(); + break; + case'ajouter'; + case'modifier': + + $$DirName->add_admin_header('<script src="'.XOOPS_URL.'/modules/' . $DirName .'/lib_js/notifier.js" type="text/javascript"></script>'); + ob_start(); + $titre = ($op == 'ajouter') ? constant('_AM_'.$moduleUP.'_ADD_ITEM') : constant('_AM_'.$moduleUP.'_MOD_ITEM'); + $form = new XoopsThemeForm($titre, 'submitform', XOOPS_URL.'/modules/' . $DirName .'/admin/item.php'); + $form->setExtra('enctype="multipart/form-data"'); + $form->addElement(new XoopsFormText(CHG_NOM, 'nom', 50, 50, $nom), true); + $soc = new XoopsFormSelect(constant('_AM_'.$moduleUP.'_NOM_CAT'), 'cid', $cid); + $soc->addOption(0, '- - - -'); + $liste_temp = $$DirName->liste_categorie(); + foreach ($liste_temp as $k=>$v) { + $soc->addOption($k, $v); + } + $form->addElement($soc); + unset($liste_temp,$soc); + $form->addElement(new XoopsFormTextArea(constant('_AM_'.$moduleUP.'_ITEM_DESC'), 'descriptif', $descriptif, 5, 50 ), true ); + $form->addElement(new XoopsFormTextArea(CHG_KEYWORDS, 'keywords', $keywords, 5, 50 ), true ); + $form->addElement(new XoopsFormRadioYN(CHG_ACTF, 'actif', $actif)); + $file = new XoopsFormElementTray(constant('_AM_'.$moduleUP.'_UPLOAD_FILE'),'<br />'); + $file->addElement(new XoopsFormFile(constant('_AM_'.$moduleUP.'_PDF') , 'attachedfile', $xoopsModuleConfig[$DirName.'_maxfilesize']*1024), true); + $file->addElement(new XoopsFormLabel('<br />'.URL_ITEM.'/' ), false); + $form->addElement($file); + + $form->addElement(new XoopsFormHidden('op', 'verif_form')); + $form->addElement(new XoopsFormHidden('id', $id)); + $bouton_tray = new XoopsFormElementTray( '', '' ); + if ($id>0){ + $bouton_creer = new XoopsFormButton( '', '', $$DirName->modif(constant('_AM_'.$moduleUP.'_NOM_ITEM')), 'submit' ); + }else { + $bouton_creer = new XoopsFormButton( '', '', $$DirName->ajout(constant('_AM_'.$moduleUP.'_NOM_ITEM')), 'submit' ); + } + $bouton_tray->addElement( $bouton_creer ); + $form -> addElement( $bouton_tray ); + $form->display(); + $content .= ob_get_contents(); + ob_end_clean(); + break; + default: + $i = 0; + $liste[$i]['trad'] = constant('_AM_'.$moduleUP.'_NOM_ITEM'); + $liste[$i]['champs'] = 'nom'; + $liste[$i]['class'] = 'w100 center'; + $liste[$i]['type'] = 'text'; + $i++; + $liste[$i]['trad'] = constant('_AM_'.$moduleUP.'_CID'); + $liste[$i]['champs'] = 'cid'; + $liste[$i]['class'] = 'w200 center'; + $liste[$i]['type'] = 'list_cat'; + $i++; + $liste[$i]['trad'] = constant('_AM_'.$moduleUP.'_NOM_FIC'); + $liste[$i]['champs'] = 'fichier'; + $liste[$i]['class'] = 'w150 center'; + $liste[$i]['type'] = 'string'; + + unset($i); + $action = array( + 'modifier' => CHG_MODIF, + 'voir2' => CHG_VOIR, + 'supprimer' => CHG_SUP + ); + $nb_log = $$DirName->compte('item','id'); + if ($nb_log > 0 && empty($op)){ + $$DirName->add_admin_header('<script src="'.XOOPS_URL.'/modules/' . $DirName .'/lib_js/popup.js" type="text/javascript"></script>'); + $listing = $$DirName->liste('item','','`created` DESC','LIMIT '.(($xoopsModuleConfig[$DirName.'_nb_com'])*($page-1)).','.$xoopsModuleConfig[$DirName.'_nb_com']); + } else { + $listing = array(); + } + $$DirName->entete_tableau(1,CHG_ADD,constant('_AM_'.$moduleUP.'_GITEM')); + $$DirName->crea_tableau_admin($listing,'tableau_admin',$liste,$action,false,'id'); + $content .= $$DirName->aff_tableau(); + if ($nb_log > $xoopsModuleConfig[$DirName.'_nb_com']){ + $$DirName->num_page($nb_log,$page); + $content .= $$DirName->pagenav; + } +} +$mainAdmin = new ModuleAdmin(); +echo $mainAdmin->addNavigation('item.php'); +echo $content; +include 'admin_footer.php'; \ No newline at end of file Property changes on: XoopsModules/vide/trunk/vide/admin/item.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/vide/trunk/vide/admin/maintenance.php =================================================================== --- XoopsModules/vide/trunk/vide/admin/maintenance.php (rev 0) +++ XoopsModules/vide/trunk/vide/admin/maintenance.php 2014-11-18 08:00:06 UTC (rev 12853) @@ -0,0 +1,112 @@ +<?php +$class = array('maintenance'); +$champs = array(); +include_once 'admin_header.php'; +$liste_op = array( + 'optimise' => constant('_AM_'.$moduleUP.'_OPTIMIZE'), + 'sauvebdd' => constant('_AM_'.$moduleUP.'_SAUVEBDD'), + 'purge' => constant('_AM_'.$moduleUP.'_SEELOG'), +); +if (!empty($op)){ + if( ! xoopsSecurity::checkReferer() ) { + $$DirName->inscrit_log(CHG_LOG_SECU,CHG_LOG_HACK1); + redirect_header(XOOPS_URL.'/admin.php', 5, CHG_ERR_INC, FALSE); + exit(); + } +} +switch($op){ + case'purge': + $$DirName->purge_log_systeme(); + $$DirName->inscrit_log(CHG_LOG_MAINTENANCE,CHG_LOG_PURGELOG); + redirect_header( XOOPS_URL.'/modules/' . $DirName .'/admin/maintenance.php', 3, CHG_OP_OK); + exit(); + break; + case'optimise': + $$DirName->clean_bdd(); + $$DirName->inscrit_log(CHG_LOG_MAINTENANCE,CHG_LOG_OPTIMIZE); + $$DirName->update_divers('optimise',time()); + redirect_header( XOOPS_URL.'/modules/' . $DirName .'/admin/maintenance.php', 3, CHG_OP_OK); + exit; + break; + case'sauvebdd': + $$DirName->dump_table($liste_table); + $$DirName->resultat_table_bdd(); + if($$DirName->create_file_dump($uri_sauve_bdd) === false) { + redirect_header(XOOPS_URL.'/modules/' . $DirName .'/admin/maintenance.php', 3, CHG_CREATE_FILE_ERROR); + exit; + } + $$DirName->inscrit_log(CHG_LOG_MAINTENANCE,CHG_LOG_SAUVEBDD); + $$DirName->update_divers('sauvebdd',time()); + $content .= '<div id="chg_maintenance"><p>'.constant('_AM_'.$moduleUP.'_ADMIN_FILE_BASESQL').'<br /><a href="'.str_replace(XOOPS_ROOT_PATH,XOOPS_URL,$$DirName->path_file).'">'.$$DirName->path_file.'</a></p>'; + $content .= '<p><button class="CHG_button" onClick="self.location.href=\''.XOOPS_URL.'/modules/' . $DirName . '/admin/maintenance.php\'">'.CHG_RETOUR.'</button></p></div>'; + break; + default: + ob_start(); + echo $$DirName->titre(constant('_AM_'.$moduleUP.'_MAINTENANCE'),'div'); + echo'<table id="tableau_admin"><tr>'; + echo'<th>'.constant('_AM_'.$moduleUP.'_ADMIN_OPMAINTENANCE').'</th><th class="w200">'.constant('_AM_'.$moduleUP.'_ACTION').'</th>'; + echo '</tr>'; + echo '<tbody>'; + if (count($liste_op) > 1){ + foreach($liste_op as $k=>$v){ + echo '<tr><td class="colg">'.$v.'</td><td>'.$$DirName->aff_button($k,constant('_AM_'.$moduleUP.'_LANCE'),'').'</td></tr>'; + } + } else { + echo '<tr><td colspan="2">'.CHG_NO_DONNEE.'</td></tr>'; + } + + echo '</tbody>'; + echo '</table>'; + $content .= ob_get_contents(); + ob_end_clean(); + $nb_log = $$DirName->compte('log','id'); + if ($nb_log > 0 && empty($op)){ + $liste_log = $$DirName->liste('log','','`created` DESC','LIMIT '.(($xoopsModuleConfig[$DirName.'_nb_com'])*($page-1)).','.$xoopsModuleConfig[$DirName.'_nb_com']); + } else { + $liste_log = array(); + } + $i = 0; + $liste[$i]['trad'] = constant('_AM_'.$moduleUP.'_TYPE_LOG'); + $liste[$i]['champs'] = 'titre'; + $liste[$i]['class'] = 'w80 center'; + $liste[$i]['type'] = 'string'; + $i++; + $liste[$i]['trad'] = CHG_DATE; + $liste[$i]['champs'] = 'created'; + $liste[$i]['class'] = 'w80 center'; + $liste[$i]['type'] = 'date'; + $i++; + $liste[$i]['trad'] = CHG_USERID; + $liste[$i]['champs'] = 'userid'; + $liste[$i]['class'] = 'w80 center'; + $liste[$i]['type'] = 'string'; + $i++; + $liste[$i]['trad'] = CHG_DESC; + $liste[$i]['champs'] = 'description'; + $liste[$i]['class'] = 'w250'; + $liste[$i]['type'] = 'string'; + $i++; + $liste[$i]['trad'] = constant('_AM_'.$moduleUP.'_IP'); + $liste[$i]['champs'] = 'ip'; + $liste[$i]['class'] = 'w80 center'; + $liste[$i]['type'] = 'string'; + unset($i); + $action = array( + 'voir'=>CHG_VOIR + ); + if ($nb_log > 0){ + $$moduleDirName->add_admin_header('<script src="'.XOOPS_URL.'/modules/' . $DirName .'/lib_js/popup.js" type="text/javascript"></script>'); + } + $$DirName->inscrit_log(CHG_LOG_MAINTENANCE,CHG_LOG_VOIRLOG); + $$DirName->entete_tableau(2,'Purge des logs',constant('_AM_'.$moduleUP.'_LOGSYS')); + $$DirName->crea_tableau_admin($liste_log,'tableau_admin',$liste,$action,false,'id'); + $content .= $$DirName->aff_tableau(); + if ($nb_log > $xoopsModuleConfig[$DirName.'_nb_com']){ + $$DirName->num_page($nb_log,$page); + $content .= $$DirName->pagenav; + } +} +$mainAdmin = new ModuleAdmin(); +echo $mainAdmin->addNavigation('maintenance.php'); +echo $content; +include 'admin_footer.php'; \ No newline at end of file Property changes on: XoopsModules/vide/trunk/vide/admin/maintenance.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/vide/trunk/vide/admin/menu.php =================================================================== --- XoopsModules/vide/trunk/vide/admin/menu.php (rev 0) +++ XoopsModules/vide/trunk/vide/admin/menu.php 2014-11-18 08:00:06 UTC (rev 12853) @@ -0,0 +1,47 @@ +<?php +if (!defined('XOOPS_ROOT_PATH')) { + die('XOOPS root path not defined'); +} +include_once XOOPS_ROOT_PATH.'/mainfile.php'; +if (!isset($DirName)){ + $DirName = basename(dirname(__DIR__ )); +} +if (!isset($moduleUP)){ + $moduleUP = strtoupper($DirName); +} +if (!defined('CHG_ACCUEIL')) xoops_loadlanguage('commun'); +xoops_loadlanguage('main'); +if (!isset($module2) OR !is_object($module2)){ + $module_handler = xoops_gethandler('module'); + $module2 = $module_handler->getByDirname($DirName ); +} +$pathIcon32 = $module2->getInfo('icons32'); +$pathModuleAdmin = $module2->getInfo('dirmoduleadmin'); + +$adminmenu = array(); +$i = 1; +$adminmenu[$i]['title'] = CHG_ACCUEIL; +$adminmenu[$i]['link'] = 'admin/index.php'; +$adminmenu[$i]['icon'] = $pathIcon32.'/index.png'; +$i++; +$adminmenu[$i]['title'] = constant('_MI_'.$moduleUP.'_MENU_CAT'); +$adminmenu[$i]['link'] = 'admin/categorie.php'; +$adminmenu[$i]['icon'] = $pathIcon32.'/category.png'; +$i++; +$adminmenu[$i]['title'] = constant('_MI_'.$moduleUP.'_MENU_ITEM'); +$adminmenu[$i]['link'] = 'admin/item.php'; +$adminmenu[$i]['icon'] = $pathIcon32.'/content.png'; +if (!isset($menu_admin)) include XOOPS_ROOT_PATH.'/modules/'.$DirName.'/include/config.php'; +foreach($menu_admin as $v){ + $i++; + $adminmenu[$i] = $v; +} +$i++; +$adminmenu[$i]['title'] = CHG_MAINT; +$adminmenu[$i]['link'] = 'admin/maintenance.php'; +$adminmenu[$i]['icon'] = '/images/icons/maintenance.png'; +$i++; +$adminmenu[$i]['title'] = CHG_ABOUT; +$adminmenu[$i]['link'] = 'admin/about.php'; +$adminmenu[$i]['icon'] = $pathIcon32.'/about.png'; +unset($i); \ No newline at end of file Property changes on: XoopsModules/vide/trunk/vide/admin/menu.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/vide/trunk/vide/blocks/index.html =================================================================== --- XoopsModules/vide/trunk/vide/blocks/index.html (rev 0) +++ XoopsModules/vide/trunk/vide/blocks/index.html 2014-11-18 08:00:06 UTC (rev 12853) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/vide/trunk/vide/class/class_admin.php =================================================================== --- XoopsModules/vide/trunk/vide/class/class_admin.php (rev 0) +++ XoopsModules/vide/trunk/vide/class/class_admin.php 2014-11-18 08:00:06 UTC (rev 12853) @@ -0,0 +1,154 @@ +<?php +class admin { + protected $admin_header = array(); + protected $content = array(); + protected $id_tableau = 'tableau_admin'; + public $selection_rapide = 1; // A 1 pour une colonne de sélection rapide + protected $creation = 0; // A 1 si le début du tableau est créé + // Ajoute une ligne au <header> + public function add_admin_header($ligne){ + if (!in_array($ligne,$this->admin_header)) $this->admin_header[] = $ligne; + } + // Affichage des meta coté admin + public function aff_admin_header(){ + return implode("\n",$this->admin_header); + } + public function entete_tableau($add=0,$titre_add='',$titre_tableau=''){ + $this->creation = 1; + $this->content[] = '<div id="CHG_content">'; + $this->content[] = $this->titre($titre_tableau,'div'); + // Met le bouton ajouter + if ($add == 1){ + $this->content[] = '<div class="floatright">'.$this->aff_button('ajouter',$titre_add , '').'</div>'; + } + } + public function aff_tableau(){ + if ($this->creation == 1){ + $this->content[] = '</div>'; + } + return implode("\n",$this->content); + } + public function crea_tableau_admin($table='',$id='tableau_admin',$liste='',$action='',$rapide=false,$cle='id'){ + if (!is_array($table) OR !is_array($liste) OR !is_array($action)) { + return false; + } + $tableau = array(); + $id = (empty($id)) ? '' : 'id="'.$id.'"'; + if ($rapide){ + $tableau[] = '<form id="form_admin" method="post" action="'.$this->nom_script.'">'; + } + $tableau[] = '<table '.$id.' class="border" style="margin-bottom: 10px;">'; + $tableau[] = '<thead>'; + $tableau[] = '<tr class="padding10 big black center line140" >'; + if ($rapide){ + $tableau[] = '<th class="w25"><input type="checkbox" id="tout" name="tout" /></th>'; + } + foreach ($liste as $u) { + $tableau[] = '<th class="'.$u['class'].'">'.$u['trad'].'</th>'; + } + unset($u); + if (count($action) > 0){ + $tableau[] = '<th style="width: 150px;">'.CHG_ACTIONS.'</th></tr></thead>'; + } + $tableau[] = '<tbody>'; + $premier = 0; + foreach ($table as $v) { + if ($premier == 0) { + $tableau[] = '<tr class="line140 border" style="border-bottom: 1px solid;">'; + $premier = 1; + }else { + $tableau[] = '</tr><tr class="line140 border" style="border-bottom: 1px solid;">'; + } + if ($rapide){ + $tableau[] = '<td class="w25"><input type="checkbox" id="id" name="id['.$v['id'].']" />'; + } + foreach($liste as $u){ + $tableau[] = '<td class="'.$u['class'].'">'.$this->cellule($u['type'],$v[$u['champs']]).'</td>'; + } + if (count($action)>0){ + $tableau[] = '<td class="action">'; + if (array_key_exists('actif',$v)){ + if($v['actif'] == 0){ + $tableau[] = $this->aff_button('activer',CHG_ACTIVATION,$v[$cle]); + }else{ + $tableau[] = $this->aff_button('desactiver',CHG_DESACTIVE,$v[$cle]); + } + } + } + if (array_key_exists('operation',$v)){ + $tableau[] = $this->aff_button($v['operation'],$v['operation_titre'],$v[$cle]); + } + foreach ($action as $k=>$t){ + if ($k == 'supprimer' && $this->lcen == 1){ + + } elseif ($k == 'voir'){ + $tableau[] = $this->lien_voirplus($t,$this->aff_tout_log($v),'popup_'.$v[$cle],1); + } elseif ($k == 'voir1'){ + $tableau[] = $this->lien_voirplus($t,$this->aff_tout_cat($v),'popup_'.$v[$cle],1); + } elseif ($k == 'voir2'){ + $tableau[] = $this->lien_voirplus($t,$this->aff_tout_item($v),'popup_'.$v[$cle],1); + } else{ + $tableau[] = $this->aff_button($k,$t,$v[$cle]); + } + } + $tableau[] = '</td>'; + } + if(count($table) < 1){ + $tableau[] = '</tr><tr class="line140 border">'."\n"; + $tableau[] = '<td colspan="'.(count($liste) + 1).'" class="center italic">'.CHG_NO_DONNEE.'</td>'; + } + $tableau[] = '</tr></tbody></table>'; + $this->content[] = implode("\n",$tableau); + return true; + } + public function requis($requis){ + $tableau = array(); + global $moduleUP; + $tableau[0]['present'] = CHG_PRESENT; + $tableau[0]['couleur'] = 'green'; + $tableau[0]['titre'] = ''; + switch($requis){ + case'CHG_mentions': + if (!is_dir(XOOPS_ROOT_PATH.'/modules/CHG_mentions')){ + $tableau[0]['present'] = CHG_ABSENT; + $tableau[0]['couleur'] = 'red'; + } + break; + case'tcpdf': + $tableau[0]['titre'] = constant('_AM_'.$moduleUP.'_TCPDF'); + if (!is_file(XOOPS_ROOT_PATH.'/Frameworks/tcpdf/tcpdf.php')) { + $tableau[0]['present'] = CHG_ABSENT; + $tableau[0]['couleur'] = 'red'; + + } + break; + case'wideimage': + $tableau[0]['titre'] = constant('_AM_'.$moduleUP.'_WIDEIMAGE'); + if (!is_file(XOOPS_ROOT_PATH.'/Frameworks/WideImage/WideImage.php')) { + $tableau[0]['present'] = CHG_ABSENT; + $tableau[0]['couleur'] = 'red'; + } + break; + case'gd2': + $tableau[0]['titre'] = constant('_AM_'.$moduleUP.'_GD2'); + if (function_exists('gd_info')) { + $gd = gd_info(); + preg_match('/\d/', $gd['GD Version'], $match); + $gd_ver = $match[0]; + if ($gd_ver > '2') { + $tableau[0]['present'] = sprintf(CHG_VERSION_OBSOLETE,$gd['GD Version']); + $tableau[0]['couleur'] = 'red'; + } + } else { + $tableau[0]['present'] = CHG_ABSENT; + $tableau[0]['couleur'] = 'red'; + } + break; + default: + $tableau[0]['present'] = ''; + $tableau[0]['couleur'] = ''; + } + return $tableau; + } +} + \ No newline at end of file Property changes on: XoopsModules/vide/trunk/vide/class/class_admin.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/vide/trunk/vide/class/class_categorie.php =================================================================== --- XoopsModules/vide/trunk/vide/class/class_categorie.php (rev 0) +++ XoopsModules/vide/trunk/vide/class/class_categorie.php 2014-11-18 08:00:06 UTC (rev 12853) @@ -0,0 +1,76 @@ +<?php +class categorie{ + protected $liste_cat = array(); + protected $table_cat = array( + 'id' => 'int', + 'pid' => 'int', + 'nom' => 'string', + 'created' => 'date', + 'description' => 'area', + 'keywords' => 'area', + 'image' => 'file', + 'actif' => 'int' + ); + public function arbre_cat($pid=0,$etape=0,$tout=0){ + $tiret = ($etape == 0) ? '' : str_repeat('- ',$etape); + $where = ($pid == 0) ? '`pid`=0' : '`pid`='.$pid; + $extra = ($tout == 0) ? ' AND `actif`=1' : ''; + $temp = $this->liste('categorie',$where.$extra, '`nom` ASC'); + if (count($temp) > 0){ + foreach ($temp as $k=>$v){ + $this->liste_cat[$v['id']] = $tiret.$v['nom']; + $etape++; + $this->arbre_cat($v['id'],$etape,$tout); + } + } + return true; + } + function liste_categorie($id=0){ + if (count($this->liste_cat) > 0) return $this->liste_cat; + $this->arbre_cat($id); + return $this->liste_cat; + } + public function crea_categorie($pid,$nom,$descriptif,$keywords,$image,$actif){ + $champs = array(); + $valeur = array(); + $n = 0; + foreach($this->table_cat as $k=>$v){ + if (isset($$k)){ + $valeur[$n] = $this->prep_sql($$k,$v); + } elseif($k == 'created') { + $valeur[$n] = 'NOW()'; + } else{ + $valeur[$n] = '\'\''; + } + $champs[$n] = $k; + $n++; + } + return $this->insert_sql('categorie',$champs,$valeur); + } + public function modif_categorie($id,$pid,$nom,$descriptif,$keywords,$image,$actif){ + $champs = array(); + $valeur = array(); + $n = 0; + foreach($this->table_cat as $k=>$v){ + if ($k != 'created'){ + if (isset($$k)){ + $valeur[$n] = $this->prep_sql($$k,$v); + }else{ + $valeur[$n] = '\'\''; + } + $champs[$n] = $k; + $n++; + } + } + return ($this->modif_sql('categorie',$champs,$valeur,' WHERE `id`='.$id)); + } + public function del_cat($id){ + $liste = $this->liste('categorie','`id`='.$id); + if(count($liste) == 0) return false; + while (list($key, $val) = each($list)) { + @unlink(URI_THUMB_CAT.'/'.$val['image']); + } + return $this->sup_sql('categorie','`id`='.$id); + + } +} \ No newline at end of file Property changes on: XoopsModules/vide/trunk/vide/class/class_categorie.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: XoopsModules/vide/trunk/vide/class/class_class.php =================================================================== --- XoopsModules/vide/trunk/vide/class/class_class.php (rev 0) +++ XoopsModules/vide/trunk/vide/class/class_class.php 2014-11-18 08:00:06 UTC (rev 12853) @@ -0,0 +1,7 @@ +<?php +if (!defined('XOOPS_ROOT_PATH')) { + die('XOOPS root path not defined'); +} +global $xoopsModuleConfig; +include_once XOOPS_ROOT_PATH.'/modules/'.$DirName.'/class/class_loadclass.php'; +$$DirName = load_class::execute($liste_class); Property changes on: XoopsModules/vide/trunk/vide/class/class_class.php ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev URL \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: Xo... [truncated message content] |
From: <txm...@us...> - 2014-12-03 11:02:20
|
Revision: 12884 http://sourceforge.net/p/xoops/svn/12884 Author: txmodxoops Date: 2014-12-03 11:02:18 +0000 (Wed, 03 Dec 2014) Log Message: ----------- Added folders for invoices module in next time Added Paths: ----------- XoopsModules/invoices/ XoopsModules/invoices/branchies/ XoopsModules/invoices/releases/ XoopsModules/invoices/trunk/ |
From: <txm...@us...> - 2014-12-03 11:05:42
|
Revision: 12885 http://sourceforge.net/p/xoops/svn/12885 Author: txmodxoops Date: 2014-12-03 11:05:38 +0000 (Wed, 03 Dec 2014) Log Message: ----------- Added folders for estimate module in next time Added Paths: ----------- XoopsModules/estimate/ XoopsModules/estimate/branchies/ XoopsModules/estimate/releases/ XoopsModules/estimate/trunk/ |
From: <txm...@us...> - 2014-12-03 11:09:31
|
Revision: 12886 http://sourceforge.net/p/xoops/svn/12886 Author: txmodxoops Date: 2014-12-03 11:09:22 +0000 (Wed, 03 Dec 2014) Log Message: ----------- Added folders for budget module in next time Added Paths: ----------- XoopsModules/budget/ XoopsModules/budget/branchies/ XoopsModules/budget/releases/ XoopsModules/budget/trunk/ |
From: <txm...@us...> - 2014-12-04 21:57:26
|
Revision: 12887 http://sourceforge.net/p/xoops/svn/12887 Author: txmodxoops Date: 2014-12-04 21:57:19 +0000 (Thu, 04 Dec 2014) Log Message: ----------- Added folders for horoscope module in next time Added Paths: ----------- XoopsModules/horoscope/ XoopsModules/horoscope/branchies/ XoopsModules/horoscope/releases/ XoopsModules/horoscope/trunk/ |
From: <wis...@us...> - 2015-06-29 18:11:29
|
Revision: 13093 http://sourceforge.net/p/xoops/svn/13093 Author: wishcraft Date: 2015-06-29 18:11:25 +0000 (Mon, 29 Jun 2015) Log Message: ----------- Intial planning for Email Ticketter with secondary raise to MantisBT for second level support and faults! Added Paths: ----------- XoopsModules/please/ XoopsModules/please/trunk/ XoopsModules/please/trunk/admin/ XoopsModules/please/trunk/blocks/ XoopsModules/please/trunk/class/ XoopsModules/please/trunk/class/IncomingMail.php XoopsModules/please/trunk/class/Mailbox.php XoopsModules/please/trunk/class/imap.php XoopsModules/please/trunk/class/pop3.php XoopsModules/please/trunk/crons/ XoopsModules/please/trunk/image/ XoopsModules/please/trunk/include/ XoopsModules/please/trunk/include/common.php XoopsModules/please/trunk/include/functions.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/mail_template/ XoopsModules/please/trunk/language/english/main.php XoopsModules/please/trunk/language/english/modinfo.php XoopsModules/please/trunk/mantis.php XoopsModules/please/trunk/preloads/ XoopsModules/please/trunk/preloads/sef.php XoopsModules/please/trunk/sql/ XoopsModules/please/trunk/sql/mysqli.sql XoopsModules/please/trunk/templates/ XoopsModules/please/trunk/templates/admin/ XoopsModules/please/trunk/templates/blocks/ XoopsModules/please/trunk/templates/salts.php.tpl XoopsModules/please/trunk/xoops_version.php Added: XoopsModules/please/trunk/class/IncomingMail.php =================================================================== --- XoopsModules/please/trunk/class/IncomingMail.php (rev 0) +++ XoopsModules/please/trunk/class/IncomingMail.php 2015-06-29 18:11:25 UTC (rev 13093) @@ -0,0 +1,86 @@ +<?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 + */ + +namespace PhpImap; + +/** + * @see https://github.com/barbushin/php-imap + * @author Barbushin Sergey http://linkedin.com/in/barbushin + */ +class IncomingMail { + + public $id; + public $date; + public $subject; + + public $fromName; + public $fromAddress; + + public $to = array(); + public $toString; + public $cc = array(); + public $replyTo = array(); + + public $textPlain; + public $textHtml; + /** @var IncomingMailAttachment[] */ + protected $attachments = array(); + + public function addAttachment(IncomingMailAttachment $attachment) { + $this->attachments[$attachment->id] = $attachment; + } + + /** + * @return IncomingMailAttachment[] + */ + public function getAttachments() { + return $this->attachments; + } + + /** + * Get array of internal HTML links placeholders + * @return array attachmentId => link placeholder + */ + public function getInternalLinksPlaceholders() { + return preg_match_all('/=["\'](ci?d:([\w\.%*@-]+))["\']/i', $this->textHtml, $matches) ? array_combine($matches[2], $matches[1]) : array(); + + } + + public function replaceInternalLinks($baseUri) { + $baseUri = rtrim($baseUri, '\\/') . '/'; + $fetchedHtml = $this->textHtml; + foreach($this->getInternalLinksPlaceholders() as $attachmentId => $placeholder) { + if(isset($this->attachments[$attachmentId])) { + $fetchedHtml = str_replace($placeholder, $baseUri . basename($this->attachments[$attachmentId]->filePath), $fetchedHtml); + } + } + return $fetchedHtml; + } +} + +class IncomingMailAttachment { + + public $id; + public $name; + public $filePath; +} Added: XoopsModules/please/trunk/class/Mailbox.php =================================================================== --- XoopsModules/please/trunk/class/Mailbox.php (rev 0) +++ XoopsModules/please/trunk/class/Mailbox.php 2015-06-29 18:11:25 UTC (rev 13093) @@ -0,0 +1,624 @@ +<?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 + */ + +namespace PhpImap; + +use stdClass; + +/** + * @see https://github.com/barbushin/php-imap + * @author Barbushin Sergey http://linkedin.com/in/barbushin + */ +class Mailbox { + + protected $imapPath; + protected $imapLogin; + protected $imapPassword; + protected $imapOptions = 0; + protected $imapRetriesNum = 0; + protected $imapParams = array(); + protected $serverEncoding; + protected $attachmentsDir; + + public function __construct($imapPath, $login, $password, $attachmentsDir = null, $serverEncoding = 'UTF-8') { + $this->imapPath = $imapPath; + $this->imapLogin = $login; + $this->imapPassword = $password; + $this->serverEncoding = strtoupper($serverEncoding); + if($attachmentsDir) { + if(!is_dir($attachmentsDir)) { + throw new Exception('Directory "' . $attachmentsDir . '" not found'); + } + $this->attachmentsDir = rtrim(realpath($attachmentsDir), '\\/'); + } + } + + /** + * Set custom connection arguments of imap_open method. See http://php.net/imap_open + * @param int $options + * @param int $retriesNum + * @param array $params + */ + public function setConnectionArgs($options = 0, $retriesNum = 0, array $params = null) { + $this->imapOptions = $options; + $this->imapRetriesNum = $retriesNum; + $this->imapParams = $params; + } + + /** + * Get IMAP mailbox connection stream + * @param bool $forceConnection Initialize connection if it's not initialized + * @return null|resource + */ + public function getImapStream($forceConnection = true) { + static $imapStream; + if($forceConnection) { + if($imapStream && (!is_resource($imapStream) || !imap_ping($imapStream))) { + $this->disconnect(); + $imapStream = null; + } + if(!$imapStream) { + $imapStream = $this->initImapStream(); + } + } + return $imapStream; + } + + protected function initImapStream() { + $imapStream = @imap_open($this->imapPath, $this->imapLogin, $this->imapPassword, $this->imapOptions, $this->imapRetriesNum, $this->imapParams); + if(!$imapStream) { + throw new Exception('Connection error: ' . imap_last_error()); + } + return $imapStream; + } + + protected function disconnect() { + $imapStream = $this->getImapStream(false); + if($imapStream && is_resource($imapStream)) { + imap_close($imapStream, CL_EXPUNGE); + } + } + + /** + * Get information about the current mailbox. + * + * Returns the information in an object with following properties: + * Date - current system time formatted according to RFC2822 + * Driver - protocol used to access this mailbox: POP3, IMAP, NNTP + * Mailbox - the mailbox name + * Nmsgs - number of mails in the mailbox + * Recent - number of recent mails in the mailbox + * + * @return stdClass + */ + public function checkMailbox() { + return imap_check($this->getImapStream()); + } + + /** + * Creates a new mailbox specified by mailbox. + * + * @return bool + */ + + public function createMailbox() { + return imap_createmailbox($this->getImapStream(), imap_utf7_encode($this->imapPath)); + } + + /** + * Gets status information about the given mailbox. + * + * This function returns an object containing status information. + * The object has the following properties: messages, recent, unseen, uidnext, and uidvalidity. + * + * @return stdClass if the box doesn't exist + */ + + public function statusMailbox() { + return imap_status($this->getImapStream(), $this->imapPath, SA_ALL); + } + + + /** + * Gets listing the folders + * + * This function returns an object containing listing the folders. + * The object has the following properties: messages, recent, unseen, uidnext, and uidvalidity. + * + * @return array listing the folders + */ + + public function getListingFolders() { + $folders = imap_list($this->getImapStream(), $this->imapPath, "*"); + foreach ($folders as $key => $folder) + { + $folder = str_replace($this->imapPath, "", imap_utf7_decode($folder)); + $folders[$key] = $folder; + } + return $folders; + } + + + /** + * This function performs a search on the mailbox currently opened in the given IMAP stream. + * For example, to match all unanswered mails sent by Mom, you'd use: "UNANSWERED FROM mom". + * Searches appear to be case insensitive. This list of criteria is from a reading of the UW + * c-client source code and may be incomplete or inaccurate (see also RFC2060, section 6.4.4). + * + * @param string $criteria String, delimited by spaces, in which the following keywords are allowed. Any multi-word arguments (e.g. FROM "joey smith") must be quoted. Results will match all criteria entries. + * ALL - return all mails matching the rest of the criteria + * ANSWERED - match mails with the \\ANSWERED flag set + * BCC "string" - match mails with "string" in the Bcc: field + * BEFORE "date" - match mails with Date: before "date" + * BODY "string" - match mails with "string" in the body of the mail + * CC "string" - match mails with "string" in the Cc: field + * DELETED - match deleted mails + * FLAGGED - match mails with the \\FLAGGED (sometimes referred to as Important or Urgent) flag set + * FROM "string" - match mails with "string" in the From: field + * KEYWORD "string" - match mails with "string" as a keyword + * NEW - match new mails + * OLD - match old mails + * ON "date" - match mails with Date: matching "date" + * RECENT - match mails with the \\RECENT flag set + * SEEN - match mails that have been read (the \\SEEN flag is set) + * SINCE "date" - match mails with Date: after "date" + * SUBJECT "string" - match mails with "string" in the Subject: + * TEXT "string" - match mails with text "string" + * TO "string" - match mails with "string" in the To: + * UNANSWERED - match mails that have not been answered + * UNDELETED - match mails that are not deleted + * UNFLAGGED - match mails that are not flagged + * UNKEYWORD "string" - match mails that do not have the keyword "string" + * UNSEEN - match mails which have not been read yet + * + * @return array Mails ids + */ + public function searchMailbox($criteria = 'ALL') { + $mailsIds = imap_search($this->getImapStream(), $criteria, SE_UID, $this->serverEncoding); + return $mailsIds ? $mailsIds : array(); + } + + /** + * Save mail body. + * @return bool + */ + public function saveMail($mailId, $filename = 'email.eml') { + return imap_savebody($this->getImapStream(), $filename, $mailId, "", FT_UID); + } + + /** + * Marks mails listed in mailId for deletion. + * @return bool + */ + public function deleteMail($mailId) { + return imap_delete($this->getImapStream(), $mailId, FT_UID); + } + + public function moveMail($mailId, $mailBox) { + return imap_mail_move($this->getImapStream(), $mailId, $mailBox, CP_UID) && $this->expungeDeletedMails(); + } + + /** + * Deletes all the mails marked for deletion by imap_delete(), imap_mail_move(), or imap_setflag_full(). + * @return bool + */ + public function expungeDeletedMails() { + return imap_expunge($this->getImapStream()); + } + + /** + * Add the flag \Seen to a mail. + * @return bool + */ + public function markMailAsRead($mailId) { + return $this->setFlag(array($mailId), '\\Seen'); + } + + /** + * Remove the flag \Seen from a mail. + * @return bool + */ + public function markMailAsUnread($mailId) { + return $this->clearFlag(array($mailId), '\\Seen'); + } + + /** + * Add the flag \Flagged to a mail. + * @return bool + */ + public function markMailAsImportant($mailId) { + return $this->setFlag(array($mailId), '\\Flagged'); + } + + /** + * Add the flag \Seen to a mails. + * @return bool + */ + public function markMailsAsRead(array $mailId) { + return $this->setFlag($mailId, '\\Seen'); + } + + /** + * Remove the flag \Seen from some mails. + * @return bool + */ + public function markMailsAsUnread(array $mailId) { + return $this->clearFlag($mailId, '\\Seen'); + } + + /** + * Add the flag \Flagged to some mails. + * @return bool + */ + public function markMailsAsImportant(array $mailId) { + return $this->setFlag($mailId, '\\Flagged'); + } + + /** + * Causes a store to add the specified flag to the flags set for the mails in the specified sequence. + * + * @param array $mailsIds + * @param string $flag which you can set are \Seen, \Answered, \Flagged, \Deleted, and \Draft as defined by RFC2060. + * @return bool + */ + public function setFlag(array $mailsIds, $flag) { + return imap_setflag_full($this->getImapStream(), implode(',', $mailsIds), $flag, ST_UID); + } + + /** + * Cause a store to delete the specified flag to the flags set for the mails in the specified sequence. + * + * @param array $mailsIds + * @param string $flag which you can set are \Seen, \Answered, \Flagged, \Deleted, and \Draft as defined by RFC2060. + * @return bool + */ + public function clearFlag(array $mailsIds, $flag) { + return imap_clearflag_full($this->getImapStream(), implode(',', $mailsIds), $flag, ST_UID); + } + + /** + * Fetch mail headers for listed mails ids + * + * Returns an array of objects describing one mail header each. The object will only define a property if it exists. The possible properties are: + * subject - the mails subject + * from - who sent it + * to - recipient + * date - when was it sent + * message_id - Mail-ID + * references - is a reference to this mail id + * in_reply_to - is a reply to this mail id + * size - size in bytes + * uid - UID the mail has in the mailbox + * msgno - mail sequence number in the mailbox + * recent - this mail is flagged as recent + * flagged - this mail is flagged + * answered - this mail is flagged as answered + * deleted - this mail is flagged for deletion + * seen - this mail is flagged as already read + * draft - this mail is flagged as being a draft + * + * @param array $mailsIds + * @return array + */ + public function getMailsInfo(array $mailsIds) { + $mails = imap_fetch_overview($this->getImapStream(), implode(',', $mailsIds), FT_UID); + if(is_array($mails) && count($mails)) + { + foreach($mails as &$mail) + { + if(isset($mail->subject)) { + $mail->subject = $this->decodeMimeStr($mail->subject, $this->serverEncoding); + } + if(isset($mail->from)) { + $mail->from = $this->decodeMimeStr($mail->from, $this->serverEncoding); + } + if(isset($mail->to)) { + $mail->to = $this->decodeMimeStr($mail->to, $this->serverEncoding); + } + } + } + return $mails; + } + + /** + * Get information about the current mailbox. + * + * Returns an object with following properties: + * Date - last change (current datetime) + * Driver - driver + * Mailbox - name of the mailbox + * Nmsgs - number of messages + * Recent - number of recent messages + * Unread - number of unread messages + * Deleted - number of deleted messages + * Size - mailbox size + * + * @return object Object with info | FALSE on failure + */ + + public function getMailboxInfo() { + return imap_mailboxmsginfo($this->getImapStream()); + } + + /** + * Gets mails ids sorted by some criteria + * + * Criteria can be one (and only one) of the following constants: + * SORTDATE - mail Date + * SORTARRIVAL - arrival date (default) + * SORTFROM - mailbox in first From address + * SORTSUBJECT - mail subject + * SORTTO - mailbox in first To address + * SORTCC - mailbox in first cc address + * SORTSIZE - size of mail in octets + * + * @param int $criteria + * @param bool $reverse + * @return array Mails ids + */ + public function sortMails($criteria = SORTARRIVAL, $reverse = true) { + return imap_sort($this->getImapStream(), $criteria, $reverse, SE_UID); + } + + /** + * Get mails count in mail box + * @return int + */ + public function countMails() { + return imap_num_msg($this->getImapStream()); + } + + /** + * Retrieve the quota settings per user + * @return array - FALSE in the case of call failure + */ + protected function getQuota() { + return imap_get_quotaroot($this->getImapStream(), 'INBOX'); + } + + /** + * Return quota limit in KB + * @return int - FALSE in the case of call failure + */ + public function getQuotaLimit() { + $quota = $this->getQuota(); + if(is_array($quota)) { + $quota = $quota['STORAGE']['limit']; + } + return $quota; + } + + /** + * Return quota usage in KB + * @return int - FALSE in the case of call failure + */ + public function getQuotaUsage() { + $quota = $this->getQuota(); + if(is_array($quota)) { + $quota = $quota['STORAGE']['usage']; + } + return $quota; + } + + /** + * Get mail data + * + * @param $mailId + * @return IncomingMail + */ + public function getMail($mailId) { + $head = imap_rfc822_parse_headers(imap_fetchheader($this->getImapStream(), $mailId, FT_UID)); + + $mail = new IncomingMail(); + $mail->id = $mailId; + $mail->date = date('Y-m-d H:i:s', isset($head->date) ? strtotime(preg_replace('/\(.*?\)/', '', $head->date)) : time()); + $mail->subject = isset($head->subject) ? $this->decodeMimeStr($head->subject, $this->serverEncoding) : null; + $mail->fromName = isset($head->from[0]->personal) ? $this->decodeMimeStr($head->from[0]->personal, $this->serverEncoding) : null; + $mail->fromAddress = strtolower($head->from[0]->mailbox . '@' . $head->from[0]->host); + + if(isset($head->to)) { + $toStrings = array(); + foreach($head->to as $to) { + if(!empty($to->mailbox) && !empty($to->host)) { + $toEmail = strtolower($to->mailbox . '@' . $to->host); + $toName = isset($to->personal) ? $this->decodeMimeStr($to->personal, $this->serverEncoding) : null; + $toStrings[] = $toName ? "$toName <$toEmail>" : $toEmail; + $mail->to[$toEmail] = $toName; + } + } + $mail->toString = implode(', ', $toStrings); + } + + if(isset($head->cc)) { + foreach($head->cc as $cc) { + $mail->cc[strtolower($cc->mailbox . '@' . $cc->host)] = isset($cc->personal) ? $this->decodeMimeStr($cc->personal, $this->serverEncoding) : null; + } + } + + if(isset($head->reply_to)) { + foreach($head->reply_to as $replyTo) { + $mail->replyTo[strtolower($replyTo->mailbox . '@' . $replyTo->host)] = isset($replyTo->personal) ? $this->decodeMimeStr($replyTo->personal, $this->serverEncoding) : null; + } + } + + $mailStructure = imap_fetchstructure($this->getImapStream(), $mailId, FT_UID); + + if(empty($mailStructure->parts)) { + $this->initMailPart($mail, $mailStructure, 0); + } + else { + foreach($mailStructure->parts as $partNum => $partStructure) { + $this->initMailPart($mail, $partStructure, $partNum + 1); + } + } + + return $mail; + } + + protected function initMailPart(IncomingMail $mail, $partStructure, $partNum) { + $data = $partNum ? imap_fetchbody($this->getImapStream(), $mail->id, $partNum, FT_UID) : imap_body($this->getImapStream(), $mail->id, FT_UID); + + if($partStructure->encoding == 1) { + $data = imap_utf8($data); + } + elseif($partStructure->encoding == 2) { + $data = imap_binary($data); + } + elseif($partStructure->encoding == 3) { + $data = imap_base64($data); + } + elseif($partStructure->encoding == 4) { + $data = imap_qprint($data); + } + + $params = array(); + if(!empty($partStructure->parameters)) { + foreach($partStructure->parameters as $param) { + $params[strtolower($param->attribute)] = $param->value; + } + } + if(!empty($partStructure->dparameters)) { + foreach($partStructure->dparameters as $param) { + $paramName = strtolower(preg_match('~^(.*?)\*~', $param->attribute, $matches) ? $matches[1] : $param->attribute); + if(isset($params[$paramName])) { + $params[$paramName] .= $param->value; + } + else { + $params[$paramName] = $param->value; + } + } + } + + // attachments + $attachmentId = $partStructure->ifid + ? trim($partStructure->id, " <>") + : (isset($params['filename']) || isset($params['name']) ? mt_rand() . mt_rand() : null); + + if($attachmentId) { + if(empty($params['filename']) && empty($params['name'])) { + $fileName = $attachmentId . '.' . strtolower($partStructure->subtype); + } + else { + $fileName = !empty($params['filename']) ? $params['filename'] : $params['name']; + $fileName = $this->decodeMimeStr($fileName, $this->serverEncoding); + $fileName = $this->decodeRFC2231($fileName, $this->serverEncoding); + } + $attachment = new IncomingMailAttachment(); + $attachment->id = $attachmentId; + $attachment->name = $fileName; + if($this->attachmentsDir) { + $replace = array( + '/\s/' => '_', + '/[^0-9a-zа-яіїє_\.]/iu' => '', + '/_+/' => '_', + '/(^_)|(_$)/' => '', + ); + $fileSysName = preg_replace('~[\\\\/]~', '', $mail->id . '_' . $attachmentId . '_' . preg_replace(array_keys($replace), $replace, $fileName)); + $attachment->filePath = $this->attachmentsDir . DIRECTORY_SEPARATOR . $fileSysName; + file_put_contents($attachment->filePath, $data); + } + $mail->addAttachment($attachment); + } + else { + if(!empty($params['charset'])) { + $data = $this->convertStringEncoding($data, $params['charset'], $this->serverEncoding); + } + if($partStructure->type == 0 && $data) { + if(strtolower($partStructure->subtype) == 'plain') { + $mail->textPlain .= $data; + } + else { + $mail->textHtml .= $data; + } + } + elseif($partStructure->type == 2 && $data) { + $mail->textPlain .= trim($data); + } + } + if(!empty($partStructure->parts)) { + foreach($partStructure->parts as $subPartNum => $subPartStructure) { + if($partStructure->type == 2 && $partStructure->subtype == 'RFC822') { + $this->initMailPart($mail, $subPartStructure, $partNum); + } + else { + $this->initMailPart($mail, $subPartStructure, $partNum . '.' . ($subPartNum + 1)); + } + } + } + } + + protected function decodeMimeStr($string, $charset = 'utf-8') { + $newString = ''; + $elements = imap_mime_header_decode($string); + for($i = 0; $i < count($elements); $i++) { + if($elements[$i]->charset == 'default') { + $elements[$i]->charset = 'iso-8859-1'; + } + $newString .= $this->convertStringEncoding($elements[$i]->text, $elements[$i]->charset, $charset); + } + return $newString; + } + + function isUrlEncoded($string) { + $hasInvalidChars = preg_match( '#[^%a-zA-Z0-9\-_\.\+]#', $string ); + $hasEscapedChars = preg_match( '#%[a-zA-Z0-9]{2}#', $string ); + return !$hasInvalidChars && $hasEscapedChars; + } + + protected function decodeRFC2231($string, $charset = 'utf-8') { + if(preg_match("/^(.*?)'.*?'(.*?)$/", $string, $matches)) { + $encoding = $matches[1]; + $data = $matches[2]; + if($this->isUrlEncoded($data)) { + $string = $this->convertStringEncoding(urldecode($data), $encoding, $charset); + } + } + return $string; + } + + /** + * Converts a string from one encoding to another. + * @param string $string + * @param string $fromEncoding + * @param string $toEncoding + * @return string Converted string if conversion was successful, or the original string if not + */ + protected function convertStringEncoding($string, $fromEncoding, $toEncoding) { + $convertedString = null; + if($string && $fromEncoding != $toEncoding) { + $convertedString = @iconv($fromEncoding, $toEncoding . '//IGNORE', $string); + if(!$convertedString && extension_loaded('mbstring')) { + $convertedString = @mb_convert_encoding($string, $toEncoding, $fromEncoding); + } + } + return $convertedString ?: $string; + } + + public function __destruct() { + $this->disconnect(); + } +} + +class Exception extends \Exception { + +} Added: XoopsModules/please/trunk/class/imap.php =================================================================== --- XoopsModules/please/trunk/class/imap.php (rev 0) +++ XoopsModules/please/trunk/class/imap.php 2015-06-29 18:11:25 UTC (rev 13093) @@ -0,0 +1,705 @@ +<?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 + */ + +/** + * The Imap PHP class provides a wrapper for commonly used PHP IMAP functions. + * + * This class was originally written by Josh Grochowski, and was reformatted and + * documented by Jeff Geerling. + * + * Usage examples can be found in the included README file, and all methods + * should have adequate documentation to get you started. + * + * Quick Start: + * @code + * include 'path/to/Imap/JJG/Imap.php'; + * use \JJG\Imap as Imap; + * $mailbox = new Imap($host, $user, $pass, $port, $ssl, $folder); + * $mailbox->getMailboxInfo(); + * @endcode + * + * Minimum requirements: PHP 5.3.x, php5-imap + * + * @version 1.0-beta2 + * @author Josh Grochowski (josh[at]kastang[dot]com). + * @author Jeff Geerling (geerlingguy). + */ + +namespace JJG; + +class Imap { + + private $host; + private $user; + private $pass; + private $port; + private $folder; + private $ssl; + + private $baseAddress; + private $address; + private $mailbox; + + /** + * Called when the Imap object is created. + * + * Sample of a complete address: {imap.gmail.com:993/imap/ssl}INBOX + * + * @param $host (string) + * The IMAP hostname. Example: imap.gmail.com + * @param $port (int) + * Example: 933 + * @param $ssl (bool) + * TRUE to use SSL, FALSE for no SSL. + * @param $folder (string) + * IMAP Folder to open. + * @param $user (string) + * Username used for connection. Gmail uses full use...@gm..., but + * many providers simply use username. + * @param $pass (string) + * Account password. + * + * @return (empty) + */ + public function __construct($host, $user, $pass, $port, $ssl = true, $folder = 'INBOX') { + if ((!isset($host)) || (!isset($user)) || (!isset($pass)) || (!isset($port))) { + throw new Exception("Error: All Constructor values require a non NULL input."); + } + + $this->host = $host; + $this->user = $user; + $this->pass = $pass; + $this->port = $port; + $this->folder = $folder; + $this->ssl = $ssl; + + $this->changeLoginInfo($host, $user, $pass, $port, $ssl, $folder); + } + + /** + * Change IMAP folders and reconnect to the server. + * + * @param $folderName + * The name of the folder to change to. + * + * @return (empty) + */ + public function changeFolder($folderName) { + if ($this->ssl) { + $address = '{' . $this->host . ':' . $this->port . '/imap/ssl}' . $folderName; + } else { + $address = '{' . $this->host . ':' . $this->port . '/imap}' . $folderName; + } + + $this->address = $address; + $this->reconnect(); + } + + /** + * Log into an IMAP server. + * + * This method is called on the initialization of the class (see + * __construct()), and whenever you need to log into a different account. + * + * Please see __construct() for parameter info. + * + * @return (empty) + * + * @throws Exception when IMAP can't connect. + */ + public function changeLoginInfo($host, $user, $pass, $port, $ssl, $folder) { + if ($ssl) { + $baseAddress = '{' . $host . ':' . $port . '/imap/ssl}'; + $address = $baseAddress . $folder; + } else { + $baseAddress = '{' . $host . ':' . $port . '/imap}'; + $address = $baseAddress . $folder; + } + + // Set the new address and the base address. + $this->baseAddress = $baseAddress; + $this->address = $address; + + // Open new IMAP connection + if ($mailbox = imap_open($address, $user, $pass)) { + $this->mailbox = $mailbox; + } else { + throw new Exception("Error: " . imap_last_error()); + } + } + + /** + * Returns an associative array with detailed information about a given + * message. + * + * @param $messageId (int) + * Message id. + * + * @return Associative array with keys (strings unless otherwise noted): + * raw_header + * to + * from + * cc + * bcc + * reply_to + * sender + * date_sent + * subject + * deleted (bool) + * answered (bool) + * draft (bool) + * body + * original_encoding + * size (int) + * auto_response (bool) + * + * @throws Exception when message with given id can't be found. + */ + public function getMessage($messageId) { + $this->tickle(); + + // Get message details. + $details = imap_headerinfo($this->mailbox, $messageId); + if ($details) { + // Get the raw headers. + $raw_header = imap_fetchheader($this->mailbox, $messageId); + + // Detect whether the message is an autoresponse. + $autoresponse = $this->detectAutoresponder($raw_header); + + // Get some basic variables. + $deleted = ($details->Deleted == 'D'); + $answered = ($details->Answered == 'A'); + $draft = ($details->Draft == 'X'); + + // Get the message body. + $body = imap_fetchbody($this->mailbox, $messageId, 1.2); + if (!strlen($body) > 0) { + $body = imap_fetchbody($this->mailbox, $messageId, 1); + } + + // Get the message body encoding. + $encoding = $this->getEncodingType($messageId); + + // Decode body into plaintext (8bit, 7bit, and binary are exempt). + if ($encoding == 'BASE64') { + $body = $this->decodeBase64($body); + } + elseif ($encoding == 'QUOTED-PRINTABLE') { + $body = $this->decodeQuotedPrintable($body); + } + elseif ($encoding == '8BIT') { + $body = $this->decode8Bit($body); + } + elseif ($encoding == '7BIT') { + $body = $this->decode7Bit($body); + } + + // Build the message. + $message = array( + 'raw_header' => $raw_header, + 'to' => $details->toaddress, + 'from' => $details->fromaddress, + 'cc' => isset($details->ccaddress) ? $details->ccaddress : '', + 'bcc' => isset($details->bccaddress) ? $details->bccaddress : '', + 'reply_to' => isset($details->reply_toaddress) ? $details->reply_toaddress : '', + 'sender' => $details->senderaddress, + 'date_sent' => $details->date, + 'subject' => $details->subject, + 'deleted' => $deleted, + 'answered' => $answered, + 'draft' => $draft, + 'body' => $body, + 'original_encoding' => $encoding, + 'size' => $details->Size, + 'auto_response' => $autoresponse, + ); + } + else { + throw new Exception("Message could not be found: " . imap_last_error()); + } + + return $message; + } + + /** + * Deletes an email matching the specified $messageId. + * + * @param $messageId (int) + * Message id. + * @param $immediate (bool) + * Set TRUE if message should be deleted immediately. Otherwise, message + * will not be deleted until disconnect() is called. Normally, this is a + * bad idea, as other message ids will change if a message is deleted. + * + * @return (empty) + * + * @throws Exception when message can't be deleted. + */ + public function deleteMessage($messageId, $immediate = FALSE) { + $this->tickle(); + + // Mark message for deletion. + if (!imap_delete($this->mailbox, $messageId)) { + throw new Exception("Message could not be deleted: " . imap_last_error()); + } + + // Immediately delete the message if $immediate is TRUE. + if ($immediate) { + imap_expunge($this->mailbox); + } + } + + /** + * Moves an email into the given mailbox. + * + * @param $messageId (int) + * Message id. + * @param $folder (string) + * The name of the folder (mailbox) into which messages should be moved. + * $folder could either be the folder name or 'INBOX.foldername'. + * + * @return (bool) + * Returns TRUE on success, FALSE on failure. + */ + public function moveMessage($messageId, $folder) { + $messageRange = $messageId . ':' . $messageId; + return imap_mail_move($this->mailbox, $messageRange, '{sslmail.webguyz.net:143/imap}Questionable'); + } + + /** + * Returns an associative array with email subjects and message ids for all + * messages in the active $folder. + * + * @return Associative array with message id as key and subject as value. + */ + public function getMessageIds() { + $this->tickle(); + + // Fetch overview of mailbox. + $number_messages = imap_num_msg($this->mailbox); + if ($number_messages) { + $overviews = imap_fetch_overview($this->mailbox, "1:" . imap_num_msg($this->mailbox), 0); + } + else { + $overviews = array(); + } + $messageArray = array(); + + // Loop through message overviews, build message array. + foreach($overviews as $overview) { + $messageArray[$overview->msgno] = $overview->subject; + } + + return $messageArray; + } + + /** + * Return an associative array containing the number of recent, unread, and + * total messages. + * + * @return Associative array with keys: + * unread + * recent + * total + */ + public function getCurrentMailboxInfo() { + $this->tickle(); + + // Get general mailbox information. + $info = imap_status($this->mailbox, $this->address, SA_ALL); + $mailInfo = array( + 'unread' => $info->unseen, + 'recent' => $info->recent, + 'total' => $info->messages, + ); + return $mailInfo; + } + + /** + * Return an array of objects containing mailbox information. + * + * @return Array of mailbox names. + */ + public function getMailboxInfo() { + $this->tickle(); + + // Get all mailbox information. + $mailboxInfo = imap_getmailboxes($this->mailbox, $this->baseAddress, '*'); + $mailboxes = array(); + foreach ($mailboxInfo as $mailbox) { + // Remove baseAddress from mailbox name. + $mailboxes[] = array( + 'mailbox' => $mailbox->name, + 'name' => str_replace($this->baseAddress, '', $mailbox->name), + ); + } + + return $mailboxes; + } + + /** + * Decodes Base64-encoded text. + * + * @param $text (string) + * Base64 encoded text to convert. + * + * @return (string) + * Decoded text. + */ + public function decodeBase64($text) { + $this->tickle(); + return imap_base64($text); + } + + /** + * Decodes quoted-printable text. + * + * @param $text (string) + * Quoted printable text to convert. + * + * @return (string) + * Decoded text. + */ + public function decodeQuotedPrintable($text) { + return quoted_printable_decode($text); + } + + /** + * Decodes 8-Bit text. + * + * @param $text (string) + * 8-Bit text to convert. + * + * @return (string) + * Decoded text. + */ + public function decode8Bit($text) { + return quoted_printable_decode(imap_8bit($text)); + } + + /** + * Decodes 7-Bit text. + * + * PHP seems to think that most emails are 7BIT-encoded, therefore this + * decoding method assumes that text passed through may actually be base64- + * encoded, quoted-printable encoded, or just plain text. Instead of passing + * the email directly through a particular decoding function, this method + * runs through a bunch of common encoding schemes to try to decode everything + * and simply end up with something *resembling* plain text. + * + * Results are not guaranteed, but it's pretty good at what it does. + * + * @param $text (string) + * 7-Bit text to convert. + * + * @return (string) + * Decoded text. + */ + public function decode7Bit($text) { + // If there are no spaces on the first line, assume that the body is + // actually base64-encoded, and decode it. + $lines = explode("\r\n", $text); + $first_line_words = explode(' ', $lines[0]); + if ($first_line_words[0] == $lines[0]) { + $text = base64_decode($text); + } + + // Manually convert common encoded characters into their UTF-8 equivalents. + $characters = array( + '=20' => ' ', // space. + '=2C' => ',', // comma. + '=E2=80=99' => "'", // single quote. + '=0A' => "\r\n", // line break. + '=0D' => "\r\n", // carriage return. + '=A0' => ' ', // non-breaking space. + '=B9' => '$sup1', // 1 superscript. + '=C2=A0' => ' ', // non-breaking space. + "=\r\n" => '', // joined line. + '=E2=80=A6' => '…', // ellipsis. + '=E2=80=A2' => '•', // bullet. + '=E2=80=93' => '–', // en dash. + '=E2=80=94' => '—', // em dash. + ); + + // Loop through the encoded characters and replace any that are found. + foreach ($characters as $key => $value) { + $text = str_replace($key, $value, $text); + } + + return $text; + } + + /** + * Strips quotes (older messages) from a message body. + * + * This function removes any lines that begin with a quote character (>). + * Note that quotes in reply bodies will also be removed by this function, + * so only use this function if you're okay with this behavior. + * + * @param $message (string) + * The message to be cleaned. + * @param $plain_text_output (bool) + * Set to TRUE to also run the text through strip_tags() (helpful for + * cleaning up HTML emails). + * + * @return (string) + * Same as message passed in, but with all quoted text removed. + * + * @see http://stackoverflow.com/a/12611562/100134 + */ + public function cleanReplyEmail($message, $plain_text_output = FALSE) { + // Strip markup if $plain_text_output is set. + if ($plain_text_output) { + $message = strip_tags($message); + } + + // Remove quoted lines (lines that begin with '>'). + $message = preg_replace("/(^\w.+:\n)?(^>.*(\n|$))+/mi", '', $message); + + // Remove lines beginning with 'On' and ending with 'wrote:' (matches + // Mac OS X Mail, Gmail). + $message = preg_replace("/^(On).*(wrote:).*$/sm", '', $message); + + // Remove lines like '----- Original Message -----' (some other clients). + // Also remove lines like '--- On ... wrote:' (some other clients). + $message = preg_replace("/^---.*$/mi", '', $message); + + // Remove lines like '____________' (some other clients). + $message = preg_replace("/^____________.*$/mi", '', $message); + + // Remove blocks of text with formats like: + // - 'From: Sent: To: Subject:' + // - 'From: To: Sent: Subject:' + // - 'From: Date: To: Reply-to: Subject:' + $message = preg_replace("/From:.*^(To:).*^(Subject:).*/sm", '', $message); + + // Remove any remaining whitespace. + $message = trim($message); + + return $message; + } + + /** + * Takes in a string of email addresses and returns an array of addresses + * as objects. For example, passing in 'John Doe <jo...@sa...>' + * returns the following array: + * + * Array ( + * [0] => stdClass Object ( + * [mailbox] => johndoe + * [host] => sample.com + * [personal] => John Doe + * ) + * ) + * + * You can pass in a string with as many addresses as you'd like, and each + * address will be parsed into a new object in the returned array. + * + * @param $addresses (string) + * String of one or more email addresses to be parsed. + * + * @return (array) + * Array of parsed email addresses, as objects. + * + * @see imap_rfc822_parse_adrlist(). + */ + public function parseAddresses($addresses) { + return imap_rfc822_parse_adrlist($addresses, '#'); + } + + /** + * Create an email address to RFC822 specifications. + * + * @param $username (string) + * Name before the @ sign in an email address (example: 'johndoe'). + * @param $host (string) + * Address after the @ sign in an email address (example: 'sample.com'). + * @param $name (string) + * Name of the entity (example: 'John Doe'). + * + * @return (string) Email Address in the following format: + * 'John Doe <jo...@sa...>' + */ + public function createAddress($username, $host, $name) { + return imap_rfc822_write_address($username, $host, $name); + } + + /** + * Returns structured information for a given message id. + * + * @param $messageId + * Message id for which structure will be returned. + * + * @return (object) + * See imap_fetchstructure() return values for details. + * + * @see imap_fetchstructure(). + */ + public function getStructure($messageId) { + return imap_fetchstructure($this->mailbox, $messageId); + } + + /** + * Returns the primary body type for a given message id. + * + * @param $messageId (int) + * Message id. + * @param $numeric (bool) + * Set to true for a numerical body type. + * + * @return (mixed) + * Integer value of body type if numeric, string if not numeric. + */ + public function getBodyType($messageId, $numeric = false) { + // See imap_fetchstructure() documentation for explanation. + $types = array( + 0 => 'Text', + 1 => 'Multipart', + 2 => 'Message', + 3 => 'Application', + 4 => 'Audio', + 5 => 'Image', + 6 => 'Video', + 7 => 'Other', + ); + + // Get the structure of the message. + $structure = $this->getStructure($messageId); + + // Return a number or a string, depending on the $numeric value. + if ($numeric) { + return $structure->type; + } else { + return $types[$structure->type]; + } + } + + /** + * Returns the encoding type of a given $messageId. + * + * @param $messageId (int) + * Message id. + * @param $numeric (bool) + * Set to true for a numerical encoding type. + * + * @return (mixed) + * Integer value of body type if numeric, string if not numeric. + */ + public function getEncodingType($messageId, $numeric = false) { + // See imap_fetchstructure() documentation for explanation. + $encodings = array( + 0 => '7BIT', + 1 => '8BIT', + 2 => 'BINARY', + 3 => 'BASE64', + 4 => 'QUOTED-PRINTABLE', + 5 => 'OTHER', + ); + + // Get the structure of the message. + $structure = $this->getStructure($messageId); + + // Return a number or a string, depending on the $numeric value. + if ($numeric) { + return $structure->encoding; + } else { + return $encodings[$structure->encoding]; + } + } + + /** + * Closes an active IMAP connection. + * + * @return (empty) + */ + public function disconnect() { + // Close the connection, deleting all messages marked for deletion. + imap_close($this->mailbox, CL_EXPUNGE); + } + + /** + * Reconnect to the IMAP server. + * + * @return (empty) + * + * @throws Exception when IMAP can't reconnect. + */ + private function reconnect() { + $this->mailbox = imap_open($this->address, $this->user, $this->pass); + if (!$this->mailbox) { + throw new Exception("Reconnection Failure: " . imap_last_error()); + } + } + + /** + * Checks to see if the connection is alive. If not, reconnects to server. + * + * @return (empty) + */ + private function tickle() { + if (!imap_ping($this->mailbox)) { + $this->reconnect; + } + } + + /** + * Determines whether the given message is from an auto-responder. + * + * This method checks whether the header contains any auto response headers as + * outlined in RFC 3834, and also checks to see if the subject line contains + * certain strings set by different email providers to indicate an automatic + * response. + * + * @see http://tools.ietf.org/html/rfc3834 + * + * @param $header (string) + * Message header as returned by imap_fetchheader(). + * + * @return (bool) + * TRUE if this message comes from an autoresponder. + */ + private function detectAutoresponder($header) { + $autoresponder_strings = array( + 'X-Autoresponse:', // Other email servers. + 'X-Autorespond:', // LogSat server. + 'Subject: Auto Response', // Yahoo mail. + 'Out of office', // Generic. + 'Out of the office', // Generic. + 'out of the office', // Generic. + 'Auto-reply', // Generic. + 'Autoreply', // Generic. + 'autoreply', // Generic. + ); + + // Check for presence of different autoresponder strings. + foreach ($autoresponder_strings as $string) { + if (strpos($header, $string) !== false) { + return true; + } + } + + return false; + } + +} Property changes on: XoopsModules/please/trunk/class/imap.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/please/trunk/class/pop3.php =================================================================== --- XoopsModules/please/trunk/class/pop3.php (rev 0) +++ XoopsModules/please/trunk/class/pop3.php 2015-06-29 18:11:25 UTC (rev 13093) @@ -0,0 +1,419 @@ +<?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 + */ + +/** + * PHPMailer POP-Before-SMTP Authentication Class. + * PHP Version 5 + * @package PHPMailer + * @link https://github.com/PHPMailer/PHPMailer/ + * @author Marcus Bointon (Synchro/coolbru) <php...@sy...> + * @author Jim Jagielski (jimjag) <ji...@gm...> + * @author Andy Prevost (codeworxtech) <cod...@us...> + * @author Brent R. Matzelle (original founder) + * @copyright 2012 - 2014 Marcus Bointon + * @copyright 2010 - 2012 Jim Jagielski + * @copyright 2004 - 2009 Andy Prevost + * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License + * @note This program is distributed in the hope that it will be useful - WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + */ + +/** + * PHPMailer POP-Before-SMTP Authentication Class. + * Specifically for PHPMailer to use for RFC1939 POP-before-SMTP authentication. + * Does not support APOP. + * @package PHPMailer + * @author Richard Davey (original author) <ri...@co...> + * @author Marcus Bointon (Synchro/coolbru) <php...@sy...> + * @author Jim Jagielski (jimjag) <ji...@gm...> + * @author Andy Prevost (codeworxtech) <cod...@us...> + */ +class POP3 +{ + /** + * The POP3 PHPMailer Version number. + * @type string + * @access public + */ + public $Version = '5.2.10'; + + /** + * Default POP3 port number. + * @type integer + * @access public + */ + public $POP3_PORT = 110; + + /** + * Default timeout in seconds. + * @type integer + * @access public + */ + public $POP3_TIMEOUT = 30; + + /** + * POP3 Carriage Return + Line Feed. + * @type string + * @access public + * @deprecated Use the constant instead + */ + public $CRLF = "\r\n"; + + /** + * Debug display level. + * Options: 0 = no, 1+ = yes + * @type integer + * @access public + */ + public $do_debug = 0; + + /** + * POP3 mail server hostname. + * @type string + * @access public + */ + public $host; + + /** + * POP3 port number. + * @type integer + * @access public + */ + public $port; + + /** + * POP3 Timeout Value in seconds. + * @type integer + * @access public + */ + public $tval; + + /** + * POP3 username + * @type string + * @access public + */ + public $username; + + /** + * POP3 password. + * @type string + * @access public + */ + public $password; + + /** + * Resource handle for the POP3 connection socket. + * @type resource + * @access private + */ + private $pop_conn; + + /** + * Are we connected? + * @type boolean + * @access private + */ + private $connected = false; + + /** + * Error container. + * @type array + * @access private + */ + private $errors = array(); + + /** + * Line break constant + */ + const CRLF = "\r\n"; + + /** + * Simple static wrapper for all-in-one POP before SMTP + * @param $host + * @param integer|boolean $port The port number to connect to + * @param integer|boolean $timeout The timeout value + * @param string $username + * @param string $password + * @param integer $debug_level + * @return boolean + */ + public static function popBeforeSmtp( + $host, + $port = false, + $timeout = false, + $username = '', + $password = '', + $debug_level = 0 + ) { + $pop = new POP3; + return $pop->authorise($host, $port, $timeout, $username, $password, $debug_level); + } + + /** + * Authenticate with a POP3 server. + * A connect, login, disconnect sequence + * appropriate for POP-before SMTP authorisation. + * @access public + * @param string $host The hostname to connect to + * @param integer|boolean $port The port number to connect to + * @param integer|boolean $timeout The timeout value + * @param string $username + * @param string $password + * @param integer $debug_level + * @return boolean + */ + public function authorise($host, $port = false, $timeout = false, $username = '', $password = '', $debug_level = 0) + { + $this->host = $host; + // If no port value provided, use default + if (false === $port) { + $this->port = $this->POP3_PORT; + } else { + $this->port = (integer)$port; + } + // If no timeout value provided, use default + if (false === $timeout) { + $this->tval = $this->POP3_TIMEOUT; + } else { + $this->tval = (integer)$timeout; + } + $this->do_debug = $debug_level; + $this->username = $username; + $this->password = $password; + // Reset the error log + $this->errors = array(); + // connect + $result = $this->connect($this->host, $this->port, $this->tval); + if ($result) { + $login_result = $this->login($this->username, $this->password); + if ($login_result) { + $this->disconnect(); + return true; + } + } + // We need to disconnect regardless of whether the login succeeded + $this->disconnect(); + return false; + } + + /** + * Connect to a POP3 server. + * @access public + * @param string $host + * @param integer|boolean $port + * @param integer $tval + * @return boolean + */ + public function connect($host, $port = false, $tval = 30) + { + // Are we already connected? + if ($this->connected) { + return true; + } + + //On Windows this will raise a PHP Warning error if the hostname doesn't exist. + //Rather than suppress it with @fsockopen, capture it cleanly instead + set_error_handler(array($this, 'catchWarning')); + + if (false === $port) { + $port = $this->POP3_PORT; + } + + // connect to the POP3 server + $this->pop_conn = fsockopen( + $host, // POP3 Host + $port, // Port # + $errno, // Error Number + $errstr, // Error Message + $tval + ); // Timeout (seconds) + // Restore the error handler + restore_error_handler(); + + // Did we connect? + if (false === $this->pop_conn) { + // It would appear not... + $this->setError(array( + 'error' => "Failed to connect to server $host on port $port", + 'errno' => $errno, + 'errstr' => $errstr + )); + return false; + } + + // Increase the stream time-out + stream_set_timeout($this->pop_conn, $tval, 0); + + // Get the POP3 server response + $pop3_response = $this->getResponse(); + // Check for the +OK + if ($this->checkResponse($pop3_response)) { + // The connection is established and the POP3 server is talking + $this->connected = true; + return true; + } + return false; + } + + /** + * Log in to the POP3 server. + * Does not support APOP (RFC 2828, 4949). + * @access public + * @param string $username + * @param string $password + * @return boolean + */ + public function login($username = '', $password = '') + { + if (!$this->connected) { + $this->setError('Not connected to POP3 server'); + } + if (empty($username)) { + $username = $this->username; + } + if (empty($password)) { + $password = $this->password; + } + + // Send the Username + $this->sendString("USER $username" . self::CRLF); + $pop3_response = $this->getResponse(); + if ($this->checkResponse($pop3_response)) { + // Send the Password + $this->sendString("PASS $password" . self::CRLF); + $pop3_response = $this->getResponse(); + if ($this->checkResponse($pop3_response)) { + return true; + } + } + return false; + } + + /** + * Disconnect from the POP3 server. + * @access public + */ + public function disconnect() + { + $this->sendString('QUIT'); + //The QUIT command may cause the daemon to exit, which will kill our connection + //So ignore errors here + try { + @fclose($this->pop_conn); + } catch (Exception $e) { + //Do nothing + }; + } + + /** + * Get a response from the POP3 server. + * $size is the maximum number of bytes to retrieve + * @param integer $size + * @return string + * @access private + */ + private function getResponse($size = 128) + { + $response = fgets($this->pop_conn, $size); + if ($this->do_debug >= 1) { + echo "Server -> Client: $response"; + } + return $response; + } + + /** + * Send raw data to the POP3 server. + * @param string $string + * @return integer + * @access private + */ + private function sendString($string) + { + if ($this->pop_conn) { + if ($this->do_debug >= 2) { //Show client messages when debug >= 2 + echo "Client -> Server: $string"; + } + return fwrite($this->pop_conn, $string, strlen($string)); + } + return 0; + } + + /** + * Checks the POP3 server response. + * Looks for for +OK or -ERR. + * @param string $string + * @return boolean + * @access private + */ + private function checkResponse($string) + { + if (substr($string, 0, 3) !== '+OK') { + $this->setError(array( + 'error' => "Server reported an error: $string", + 'errno' => 0, + 'errstr' => '' + )); + return false; + } else { + return true; + } + } + + /** + * Add an error to the internal error store. + * Also display debug output if it's enabled. + * @param $error + */ + private function setError($error) + { + $this->errors[] = $error; + if ($this->do_debug >= 1) { + echo '<pre>'; + foreach ($this->errors as $error) { + print_r($error); + } + echo '</pre>'; + } + } + + /** + * POP3 connection error handler. + * @param integer $errno + * @param string $errstr + * @param string $errfile + * @param integer $errline + * @access private + */ + private function catchWarning($errno, $errstr, $errfile, $errline) + { + $this->setError(array( + 'error' => "Connecting to the POP3 server raised a PHP warning: ", + 'errno' => $errno, + 'errstr' => $errstr, + ... [truncated message content] |
From: <be...@us...> - 2015-08-08 22:04:36
|
Revision: 13138 http://sourceforge.net/p/xoops/svn/13138 Author: beckmi Date: 2015-08-08 22:04:32 +0000 (Sat, 08 Aug 2015) Log Message: ----------- adding TDMLinks Added Paths: ----------- XoopsModules/tdmlinks/ XoopsModules/tdmlinks/branches/ XoopsModules/tdmlinks/releases/ XoopsModules/tdmlinks/trunk/ XoopsModules/tdmlinks/trunk/tdmlinks/ XoopsModules/tdmlinks/trunk/tdmlinks/0_extra/ XoopsModules/tdmlinks/trunk/tdmlinks/0_extra/include/ XoopsModules/tdmlinks/trunk/tdmlinks/0_extra/include/country.php XoopsModules/tdmlinks/trunk/tdmlinks/0_extra/include/currency.php XoopsModules/tdmlinks/trunk/tdmlinks/0_extra/include/mimetypes.inc.php XoopsModules/tdmlinks/trunk/tdmlinks/admin/ XoopsModules/tdmlinks/trunk/tdmlinks/admin/about.php XoopsModules/tdmlinks/trunk/tdmlinks/admin/admin_header.php XoopsModules/tdmlinks/trunk/tdmlinks/admin/broken.php XoopsModules/tdmlinks/trunk/tdmlinks/admin/category.php XoopsModules/tdmlinks/trunk/tdmlinks/admin/field.php XoopsModules/tdmlinks/trunk/tdmlinks/admin/import.php XoopsModules/tdmlinks/trunk/tdmlinks/admin/index.html XoopsModules/tdmlinks/trunk/tdmlinks/admin/index.php XoopsModules/tdmlinks/trunk/tdmlinks/admin/links.php XoopsModules/tdmlinks/trunk/tdmlinks/admin/menu.php XoopsModules/tdmlinks/trunk/tdmlinks/admin/modified.php XoopsModules/tdmlinks/trunk/tdmlinks/admin/permissions.php XoopsModules/tdmlinks/trunk/tdmlinks/blocks/ XoopsModules/tdmlinks/trunk/tdmlinks/blocks/index.html XoopsModules/tdmlinks/trunk/tdmlinks/blocks/tdmlinks_search.php XoopsModules/tdmlinks/trunk/tdmlinks/blocks/tdmlinks_top.php XoopsModules/tdmlinks/trunk/tdmlinks/brokenlink.php XoopsModules/tdmlinks/trunk/tdmlinks/class/ XoopsModules/tdmlinks/trunk/tdmlinks/class/index.html XoopsModules/tdmlinks/trunk/tdmlinks/class/tdmlinks_broken.php XoopsModules/tdmlinks/trunk/tdmlinks/class/tdmlinks_cat.php XoopsModules/tdmlinks/trunk/tdmlinks/class/tdmlinks_field.php XoopsModules/tdmlinks/trunk/tdmlinks/class/tdmlinks_fielddata.php XoopsModules/tdmlinks/trunk/tdmlinks/class/tdmlinks_linklimit.php XoopsModules/tdmlinks/trunk/tdmlinks/class/tdmlinks_links.php XoopsModules/tdmlinks/trunk/tdmlinks/class/tdmlinks_mod.php XoopsModules/tdmlinks/trunk/tdmlinks/class/tdmlinks_modfielddata.php XoopsModules/tdmlinks/trunk/tdmlinks/class/tdmlinks_purchase.php XoopsModules/tdmlinks/trunk/tdmlinks/class/tdmlinks_votedata.php XoopsModules/tdmlinks/trunk/tdmlinks/class/tree.php XoopsModules/tdmlinks/trunk/tdmlinks/comment_delete.php XoopsModules/tdmlinks/trunk/tdmlinks/comment_edit.php XoopsModules/tdmlinks/trunk/tdmlinks/comment_new.php XoopsModules/tdmlinks/trunk/tdmlinks/comment_post.php XoopsModules/tdmlinks/trunk/tdmlinks/comment_reply.php XoopsModules/tdmlinks/trunk/tdmlinks/css/ XoopsModules/tdmlinks/trunk/tdmlinks/css/blocks.css XoopsModules/tdmlinks/trunk/tdmlinks/css/index.html XoopsModules/tdmlinks/trunk/tdmlinks/css/styles.css XoopsModules/tdmlinks/trunk/tdmlinks/docs/ XoopsModules/tdmlinks/trunk/tdmlinks/docs/changelog.txt XoopsModules/tdmlinks/trunk/tdmlinks/docs/htaccess.tdmlinks XoopsModules/tdmlinks/trunk/tdmlinks/docs/index.html XoopsModules/tdmlinks/trunk/tdmlinks/docs/licence.txt XoopsModules/tdmlinks/trunk/tdmlinks/header.php XoopsModules/tdmlinks/trunk/tdmlinks/images/ XoopsModules/tdmlinks/trunk/tdmlinks/images/admin/ XoopsModules/tdmlinks/trunk/tdmlinks/images/admin/about.png XoopsModules/tdmlinks/trunk/tdmlinks/images/admin/add.png XoopsModules/tdmlinks/trunk/tdmlinks/images/admin/addlink.png XoopsModules/tdmlinks/trunk/tdmlinks/images/admin/bg_button.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/admin/broken.png XoopsModules/tdmlinks/trunk/tdmlinks/images/admin/category.png XoopsModules/tdmlinks/trunk/tdmlinks/images/admin/field.png XoopsModules/tdmlinks/trunk/tdmlinks/images/admin/home.png XoopsModules/tdmlinks/trunk/tdmlinks/images/admin/import.png XoopsModules/tdmlinks/trunk/tdmlinks/images/admin/index.html XoopsModules/tdmlinks/trunk/tdmlinks/images/admin/list.png XoopsModules/tdmlinks/trunk/tdmlinks/images/admin/modified.png XoopsModules/tdmlinks/trunk/tdmlinks/images/admin/permissions.png XoopsModules/tdmlinks/trunk/tdmlinks/images/admin/xoopsmicrobutton.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/arrow.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/blank.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/ XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/balatarin.png XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/blinklist.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/delicious.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/designfloat.png XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/diggman.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/facebook_share_icon.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/fark.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/furl.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/google-icon.png XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/google-reader-icon.png XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/google_buzz_icon.png XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/index.html XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/mixx.png XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/myspace.jpg XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/newsvine.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/reddit.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/scriptandstyle.png XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/simpy.png XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/spurl.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/stumbleupon.png XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/technorati.png XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/twitter_share_icon.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/bookmarks/yahoomyweb.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/cats/ XoopsModules/tdmlinks/trunk/tdmlinks/images/cats/blank.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/cats/index.html XoopsModules/tdmlinks/trunk/tdmlinks/images/deco/ XoopsModules/tdmlinks/trunk/tdmlinks/images/deco/arrow.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/deco/bg.png XoopsModules/tdmlinks/trunk/tdmlinks/images/deco/date.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/deco/dateout.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/deco/favoris.png XoopsModules/tdmlinks/trunk/tdmlinks/images/deco/favorisout.png XoopsModules/tdmlinks/trunk/tdmlinks/images/deco/index.html XoopsModules/tdmlinks/trunk/tdmlinks/images/deco/info.png XoopsModules/tdmlinks/trunk/tdmlinks/images/deco/left_both.png XoopsModules/tdmlinks/trunk/tdmlinks/images/deco/more.png XoopsModules/tdmlinks/trunk/tdmlinks/images/deco/right_both.png XoopsModules/tdmlinks/trunk/tdmlinks/images/deco/tableft4.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/deco/tabright4.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/deco/tdmlinks_search.png XoopsModules/tdmlinks/trunk/tdmlinks/images/down.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/editicon.png XoopsModules/tdmlinks/trunk/tdmlinks/images/field/ XoopsModules/tdmlinks/trunk/tdmlinks/images/field/blank.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/field/homepage.png XoopsModules/tdmlinks/trunk/tdmlinks/images/field/index.html XoopsModules/tdmlinks/trunk/tdmlinks/images/field/platform.png XoopsModules/tdmlinks/trunk/tdmlinks/images/field/size.png XoopsModules/tdmlinks/trunk/tdmlinks/images/field/version.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/ XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/author.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/comments.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/date.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/delete.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/edit.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/hits.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/homepage.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/ignore_mini.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/index.html XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/link.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/off.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/on.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/platform.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/rss.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/size.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/tomodify.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/torate.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/toreport.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/totell.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/version.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/view_mini.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/visit-now.png XoopsModules/tdmlinks/trunk/tdmlinks/images/icon/votes.png XoopsModules/tdmlinks/trunk/tdmlinks/images/index.html XoopsModules/tdmlinks/trunk/tdmlinks/images/link.png XoopsModules/tdmlinks/trunk/tdmlinks/images/liste.png XoopsModules/tdmlinks/trunk/tdmlinks/images/logo-en.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/rss.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/shots/ XoopsModules/tdmlinks/trunk/tdmlinks/images/shots/blank.gif XoopsModules/tdmlinks/trunk/tdmlinks/images/shots/index.html XoopsModules/tdmlinks/trunk/tdmlinks/images/tdmlinks_slogo.png XoopsModules/tdmlinks/trunk/tdmlinks/images/up.gif XoopsModules/tdmlinks/trunk/tdmlinks/include/ XoopsModules/tdmlinks/trunk/tdmlinks/include/comment_functions.php XoopsModules/tdmlinks/trunk/tdmlinks/include/functions.php XoopsModules/tdmlinks/trunk/tdmlinks/include/index.html XoopsModules/tdmlinks/trunk/tdmlinks/include/install.php XoopsModules/tdmlinks/trunk/tdmlinks/include/notification.inc.php XoopsModules/tdmlinks/trunk/tdmlinks/include/search.inc.php XoopsModules/tdmlinks/trunk/tdmlinks/include/update.php XoopsModules/tdmlinks/trunk/tdmlinks/index.php XoopsModules/tdmlinks/trunk/tdmlinks/language/ XoopsModules/tdmlinks/trunk/tdmlinks/language/blank.png XoopsModules/tdmlinks/trunk/tdmlinks/language/english/ XoopsModules/tdmlinks/trunk/tdmlinks/language/english/admin.php XoopsModules/tdmlinks/trunk/tdmlinks/language/english/blocks.php XoopsModules/tdmlinks/trunk/tdmlinks/language/english/changelog.txt XoopsModules/tdmlinks/trunk/tdmlinks/language/english/help/ XoopsModules/tdmlinks/trunk/tdmlinks/language/english/help/help.html XoopsModules/tdmlinks/trunk/tdmlinks/language/english/help/index.html XoopsModules/tdmlinks/trunk/tdmlinks/language/english/index.html XoopsModules/tdmlinks/trunk/tdmlinks/language/english/mail_template/ XoopsModules/tdmlinks/trunk/tdmlinks/language/english/mail_template/category_filesubmit_notify.tpl XoopsModules/tdmlinks/trunk/tdmlinks/language/english/mail_template/category_newfile_notify.tpl XoopsModules/tdmlinks/trunk/tdmlinks/language/english/mail_template/file_approve_notify.tpl XoopsModules/tdmlinks/trunk/tdmlinks/language/english/mail_template/global_filebroken_notify.tpl XoopsModules/tdmlinks/trunk/tdmlinks/language/english/mail_template/global_filemodify_notify.tpl XoopsModules/tdmlinks/trunk/tdmlinks/language/english/mail_template/global_filesubmit_notify.tpl XoopsModules/tdmlinks/trunk/tdmlinks/language/english/mail_template/global_newcategory_notify.tpl XoopsModules/tdmlinks/trunk/tdmlinks/language/english/mail_template/global_newfile_notify.tpl XoopsModules/tdmlinks/trunk/tdmlinks/language/english/mail_template/index.html XoopsModules/tdmlinks/trunk/tdmlinks/language/english/main.php XoopsModules/tdmlinks/trunk/tdmlinks/language/english/modinfo.php XoopsModules/tdmlinks/trunk/tdmlinks/language/english/new.png XoopsModules/tdmlinks/trunk/tdmlinks/language/english/popular.png XoopsModules/tdmlinks/trunk/tdmlinks/language/english/updated.png XoopsModules/tdmlinks/trunk/tdmlinks/language/index.html XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/ XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/admin.php XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/blocks.php XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/changelog.txt XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/help/ XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/help/help.html XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/help/index.html XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/index.html XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/mail_template/ XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/mail_template/category_filesubmit_notify.tpl XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/mail_template/category_newfile_notify.tpl XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/mail_template/file_approve_notify.tpl XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/mail_template/global_filebroken_notify.tpl XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/mail_template/global_filemodify_notify.tpl XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/mail_template/global_filesubmit_notify.tpl XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/mail_template/global_newcategory_notify.tpl XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/mail_template/global_newfile_notify.tpl XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/mail_template/index.html XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/main.php XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/modinfo.php XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/new.png XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/popular.png XoopsModules/tdmlinks/trunk/tdmlinks/language/italian/updated.png XoopsModules/tdmlinks/trunk/tdmlinks/language/lang_diff.txt XoopsModules/tdmlinks/trunk/tdmlinks/licence.txt XoopsModules/tdmlinks/trunk/tdmlinks/list.tag.php XoopsModules/tdmlinks/trunk/tdmlinks/modlink.php XoopsModules/tdmlinks/trunk/tdmlinks/notification_update.php XoopsModules/tdmlinks/trunk/tdmlinks/plugins/ XoopsModules/tdmlinks/trunk/tdmlinks/plugins/index.html XoopsModules/tdmlinks/trunk/tdmlinks/plugins/sitemap/ XoopsModules/tdmlinks/trunk/tdmlinks/plugins/sitemap/TDMLinks.php XoopsModules/tdmlinks/trunk/tdmlinks/plugins/sitemap/index.html XoopsModules/tdmlinks/trunk/tdmlinks/plugins/tag/ XoopsModules/tdmlinks/trunk/tdmlinks/plugins/tag/TDMDownloads.php XoopsModules/tdmlinks/trunk/tdmlinks/plugins/tag/TDMLinks.php XoopsModules/tdmlinks/trunk/tdmlinks/plugins/waiting/ XoopsModules/tdmlinks/trunk/tdmlinks/plugins/waiting/TDMLinks.php XoopsModules/tdmlinks/trunk/tdmlinks/plugins/whatsnew/ XoopsModules/tdmlinks/trunk/tdmlinks/plugins/whatsnew/TDMLinks/ XoopsModules/tdmlinks/trunk/tdmlinks/plugins/whatsnew/TDMLinks/data.inc.php XoopsModules/tdmlinks/trunk/tdmlinks/plugins/whatsnew/TDMLinks/index.html XoopsModules/tdmlinks/trunk/tdmlinks/plugins/whatsnew/index.html XoopsModules/tdmlinks/trunk/tdmlinks/ratelink.php XoopsModules/tdmlinks/trunk/tdmlinks/rss.php XoopsModules/tdmlinks/trunk/tdmlinks/search.php XoopsModules/tdmlinks/trunk/tdmlinks/singlelink.php XoopsModules/tdmlinks/trunk/tdmlinks/sql/ XoopsModules/tdmlinks/trunk/tdmlinks/sql/index.html XoopsModules/tdmlinks/trunk/tdmlinks/sql/mysql.sql XoopsModules/tdmlinks/trunk/tdmlinks/submit.php XoopsModules/tdmlinks/trunk/tdmlinks/templates/ XoopsModules/tdmlinks/trunk/tdmlinks/templates/blocks/ XoopsModules/tdmlinks/trunk/tdmlinks/templates/blocks/index.html XoopsModules/tdmlinks/trunk/tdmlinks/templates/blocks/tdmlinks_block_new.html XoopsModules/tdmlinks/trunk/tdmlinks/templates/blocks/tdmlinks_block_random.html XoopsModules/tdmlinks/trunk/tdmlinks/templates/blocks/tdmlinks_block_rating.html XoopsModules/tdmlinks/trunk/tdmlinks/templates/blocks/tdmlinks_block_search.html XoopsModules/tdmlinks/trunk/tdmlinks/templates/blocks/tdmlinks_block_top.html XoopsModules/tdmlinks/trunk/tdmlinks/templates/index.html XoopsModules/tdmlinks/trunk/tdmlinks/templates/tdmlinks_brokenlink.html XoopsModules/tdmlinks/trunk/tdmlinks/templates/tdmlinks_index.html XoopsModules/tdmlinks/trunk/tdmlinks/templates/tdmlinks_link.html XoopsModules/tdmlinks/trunk/tdmlinks/templates/tdmlinks_liste.html XoopsModules/tdmlinks/trunk/tdmlinks/templates/tdmlinks_modlink.html XoopsModules/tdmlinks/trunk/tdmlinks/templates/tdmlinks_ratelink.html XoopsModules/tdmlinks/trunk/tdmlinks/templates/tdmlinks_rss.html XoopsModules/tdmlinks/trunk/tdmlinks/templates/tdmlinks_singlelink.html XoopsModules/tdmlinks/trunk/tdmlinks/templates/tdmlinks_submit.html XoopsModules/tdmlinks/trunk/tdmlinks/templates/tdmlinks_viewcat.html XoopsModules/tdmlinks/trunk/tdmlinks/view.tag.php XoopsModules/tdmlinks/trunk/tdmlinks/viewcat.php XoopsModules/tdmlinks/trunk/tdmlinks/visit.php XoopsModules/tdmlinks/trunk/tdmlinks/xoops_version.php Added: XoopsModules/tdmlinks/trunk/tdmlinks/0_extra/include/country.php =================================================================== --- XoopsModules/tdmlinks/trunk/tdmlinks/0_extra/include/country.php (rev 0) +++ XoopsModules/tdmlinks/trunk/tdmlinks/0_extra/include/country.php 2015-08-08 22:04:32 UTC (rev 13138) @@ -0,0 +1,280 @@ +<?php +/** + * **************************************************************************** + * - TXModCreate By TXMod Xoops - TEAM XOOPS MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.txmodxoops.org) + * - + * + * This license contains restrictions...!!! + * + * 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 TXMod XOOPS Project http://sourceforge.net/projects/txmodxoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package kernel + * @since 1.0.0 + * @Version $Id 1.0 Timgno + * **************************************************************************** + */ +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +/** + * Return a list of Countries + * + * This should really be replaced with a more accurate way of determining the actually country + */ +return $country = array( + 'AFGHANISTAN' => 'AF', + 'ALAND ISLANDS' => 'AX', + 'ALBANIA' => 'AL', + 'ALGERIA' => 'DZ', + 'AMERICAN SAMOA' => 'AS', + 'ANDORRA' => 'AD', + 'ANGOLA' => 'AO', + 'ANGUILLA' => 'AI', + 'ANTARCTICA' => 'AQ', + 'ANTIGUA AND BARBUDA' => 'AG', + 'ARGENTINA' => 'AR', + 'ARMENIA' => 'AM', + 'ARUBA' => 'AW', + 'AUSTRALIA' => 'AU', + 'AUSTRIA' => 'AT', + 'AZERBAIJAN' => 'AZ', + 'BAHAMAS' => 'BS', + 'BAHRAIN' => 'BH', + 'BANGLADESH' => 'BD', + 'BARBADOS' => 'BB', + 'BELARUS' => 'BY', + 'BELGIUM' => 'BE', + 'BELIZE' => 'BZ', + 'BENIN' => 'BJ', + 'BERMUDA' => 'BM', + 'BHUTAN' => 'BT', + 'BOLIVIA, PLURINATIONAL STATE OF' => 'BO', + 'BONAIRE, SAINT EUSTATIUS AND SABA' => 'BQ', + 'BOSNIA AND HERZEGOVINA' => 'BA', + 'BOTSWANA' => 'BW', + 'BOUVET ISLAND' => 'BV', + 'BRAZIL' => 'BR', + 'BRITISH INDIAN OCEAN TERRITORY' => 'IO', + 'BRUNEI DARUSSALAM' => 'BN', + 'BULGARIA' => 'BG', + 'BURKINA FASO' => 'BF', + 'BURUNDI' => 'BI', + 'CAMBODIA' => 'KH', + 'CAMEROON' => 'CM', + 'CANADA' => 'CA', + 'CAPE VERDE' => 'CV', + 'CAYMAN ISLANDS' => 'KY', + 'CENTRAL AFRICAN REPUBLIC' => 'CF', + 'CHAD' => 'TD', + 'CHILE' => 'CL', + 'CHINA' => 'CN', + 'CHRISTMAS ISLAND' => 'CX', + 'COCOS (KEELING) ISLANDS' => 'CC', + 'COLOMBIA' => 'CO', + 'COMOROS' => 'KM', + 'CONGO' => 'CG', + 'CONGO, THE DEMOCRATIC REPUBLIC OF THE' => 'CD', + 'COOK ISLANDS' => 'CK', + 'COSTA RICA' => 'CR', + 'COTE D\'IVOIRE' => 'CI', + 'CROATIA' => 'HR', + 'CUBA' => 'CU', + 'CURACAO' => 'CW', + 'CYPRUS' => 'CY', + 'CZECH REPUBLIC' => 'CZ', + 'DENMARK' => 'DK', + 'DJIBOUTI' => 'DJ', + 'DOMINICA' => 'DM', + 'DOMINICAN REPUBLIC' => 'DO', + 'ECUADOR' => 'EC', + 'EGYPT' => 'EG', + 'EL SALVADOR' => 'SV', + 'EQUATORIAL GUINEA' => 'GQ', + 'ERITREA' => 'ER', + 'ESTONIA' => 'EE', + 'ETHIOPIA' => 'ET', + 'FALKLAND ISLANDS (MALVINAS)' => 'FK', + 'FAROE ISLANDS' => 'FO', + 'FIJI' => 'FJ', + 'FINLAND' => 'FI', + 'FRANCE' => 'FR', + 'FRENCH GUIANA' => 'GF', + 'FRENCH POLYNESIA' => 'PF', + 'FRENCH SOUTHERN TERRITORIES' => 'TF', + 'GABON' => 'GA', + 'GAMBIA' => 'GM', + 'GEORGIA' => 'GE', + 'GERMANY' => 'DE', + 'GHANA' => 'GH', + 'GIBRALTAR' => 'GI', + 'GREECE' => 'GR', + 'GREENLAND' => 'GL', + 'GRENADA' => 'GD', + 'GUADELOUPE' => 'GP', + 'GUAM' => 'GU', + 'GUATEMALA' => 'GT', + 'GUERNSEY' => 'GG', + 'GUINEA' => 'GN', + 'GUINEA-BISSAU' => 'GW', + 'GUYANA' => 'GY', + 'HAITI' => 'HT', + 'HEARD ISLAND AND MCDONALD ISLANDS' => 'HM', + 'HOLY SEE (VATICAN CITY STATE)' => 'VA', + 'HONDURAS' => 'HN', + 'HONG KONG' => 'HK', + 'HUNGARY' => 'HU', + 'ICELAND' => 'IS', + 'INDIA' => 'IN', + 'INDONESIA' => 'ID', + 'IRAN, ISLAMIC REPUBLIC OF' => 'IR', + 'IRAQ' => 'IQ', + 'IRELAND' => 'IE', + 'ISLE OF MAN' => 'IM', + 'ISRAEL' => 'IL', + 'ITALY' => 'IT', + 'JAMAICA' => 'JM', + 'JAPAN' => 'JP', + 'JERSEY' => 'JE', + 'JORDAN' => 'JO', + 'KAZAKHSTAN' => 'KZ', + 'KENYA' => 'KE', + 'KIRIBATI' => 'KI', + 'KOREA, DEMOCRATIC PEOPLE\'S REPUBLIC OF' => 'KP', + 'KOREA, REPUBLIC OF' => 'KR', + 'KUWAIT' => 'KW', + 'KYRGYZSTAN' => 'KG', + 'LAO PEOPLE\'S DEMOCRATIC REPUBLIC' => 'LA', + 'LATVIA' => 'LV', + 'LEBANON' => 'LB', + 'LESOTHO' => 'LS', + 'LIBERIA' => 'LR', + 'LIBYAN ARAB JAMAHIRIYA' => 'LY', + 'LIECHTENSTEIN' => 'LI', + 'LITHUANIA' => 'LT', + 'LUXEMBOURG' => 'LU', + 'MACAO' => 'MO', + 'MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF' => 'MK', + 'MADAGASCAR' => 'MG', + 'MALAWI' => 'MW', + 'MALAYSIA' => 'MY', + 'MALDIVES' => 'MV', + 'MALI' => 'ML', + 'MALTA' => 'MT', + 'MARSHALL ISLANDS' => 'MH', + 'MARTINIQUE' => 'MQ', + 'MAURITANIA' => 'MR', + 'MAURITIUS' => 'MU', + 'MAYOTTE' => 'YT', + 'MEXICO' => 'MX', + 'MICRONESIA, FEDERATED STATES OF' => 'FM', + 'MOLDOVA, REPUBLIC OF' => 'MD', + 'MONACO' => 'MC', + 'MONGOLIA' => 'MN', + 'MONTENEGRO' => 'ME', + 'MONTSERRAT' => 'MS', + 'MOROCCO' => 'MA', + 'MOZAMBIQUE' => 'MZ', + 'MYANMAR' => 'MM', + 'NAMIBIA' => 'NA', + 'NAURU' => 'NR', + 'NEPAL' => 'NP', + 'NETHERLANDS' => 'NL', + 'NEW CALEDONIA' => 'NC', + 'NEW ZEALAND' => 'NZ', + 'NICARAGUA' => 'NI', + 'NIGER' => 'NE', + 'NIGERIA' => 'NG', + 'NIUE' => 'NU', + 'NORFOLK ISLAND' => 'NF', + 'NORTHERN MARIANA ISLANDS' => 'MP', + 'NORWAY' => 'NO', + 'OMAN' => 'OM', + 'PAKISTAN' => 'PK', + 'PALAU' => 'PW', + 'PALESTINIAN TERRITORY, OCCUPIED' => 'PS', + 'PANAMA' => 'PA', + 'PAPUA NEW GUINEA' => 'PG', + 'PARAGUAY' => 'PY', + 'PERU' => 'PE', + 'PHILIPPINES' => 'PH', + 'PITCAIRN' => 'PN', + 'POLAND' => 'PL', + 'PORTUGAL' => 'PT', + 'PUERTO RICO' => 'PR', + 'QATAR' => 'QA', + 'REUNION' => 'RE', + 'ROMANIA' => 'RO', + 'RUSSIAN FEDERATION' => 'RU', + 'RWANDA' => 'RW', + 'SAINT BARTHELEMY' => 'BL', + 'SAINT HELENA, ASCENSION AND TRISTAN DA CUNHA' => 'SH', + 'SAINT KITTS AND NEVIS' => 'KN', + 'SAINT LUCIA' => 'LC', + 'SAINT MARTIN (FRENCH PART)' => 'MF', + 'SAINT PIERRE AND MIQUELON' => 'PM', + 'SAINT VINCENT AND THE GRENADINES' => 'VC', + 'SAMOA' => 'WS', + 'SAN MARINO' => 'SM', + 'SAO TOME AND PRINCIPE' => 'ST', + 'SAUDI ARABIA' => 'SA', + 'SENEGAL' => 'SN', + 'SERBIA' => 'RS', + 'SEYCHELLES' => 'SC', + 'SIERRA LEONE' => 'SL', + 'SINGAPORE' => 'SG', + 'SINT MAARTEN (DUTCH PART)' => 'SX', + 'SLOVAKIA' => 'SK', + 'SLOVENIA' => 'SI', + 'SOLOMON ISLANDS' => 'SB', + 'SOMALIA' => 'SO', + 'SOUTH AFRICA' => 'ZA', + 'SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS' => 'GS', + 'SPAIN' => 'ES', + 'SRI LANKA' => 'LK', + 'SUDAN' => 'SD', + 'SURINAME' => 'SR', + 'SVALBARD AND JAN MAYEN' => 'SJ', + 'SWAZILAND' => 'SZ', + 'SWEDEN' => 'SE', + 'SWITZERLAND' => 'CH', + 'SYRIAN ARAB REPUBLIC' => 'SY', + 'TAIWAN, PROVINCE OF CHINA' => 'TW', + 'TAJIKISTAN' => 'TJ', + 'TANZANIA, UNITED REPUBLIC OF' => 'TZ', + 'THAILAND' => 'TH', + 'TIMOR-LESTE' => 'TL', + 'TOGO' => 'TG', + 'TOKELAU' => 'TK', + 'TONGA' => 'TO', + 'TRINIDAD AND TOBAGO' => 'TT', + 'TUNISIA' => 'TN', + 'TURKEY' => 'TR', + 'TURKMENISTAN' => 'TM', + 'TURKS AND CAICOS ISLANDS' => 'TC', + 'TUVALU' => 'TV', + 'UGANDA' => 'UG', + 'UKRAINE' => 'UA', + 'UNITED ARAB EMIRATES' => 'AE', + 'UNITED KINGDOM' => 'GB', + 'UNITED STATES' => 'US', + 'UNITED STATES MINOR OUTLYING ISLANDS' => 'UM', + 'URUGUAY' => 'UY', + 'UZBEKISTAN' => 'UZ', + 'VANUATU' => 'VU', + 'VENEZUELA, BOLIVARIAN REPUBLIC OF' => 'VE', + 'VIET NAM' => 'VN', + 'VIRGIN ISLANDS, BRITISH' => 'VG', + 'VIRGIN ISLANDS, U.S.' => 'VI', + 'WALLIS AND FUTUNA' => 'WF', + 'WESTERN SAHARA' => 'EH', + 'YEMEN' => 'YE0', + 'ZAMBIA' => 'ZM', + 'ZIMBABWE' => 'ZW' +); Added: XoopsModules/tdmlinks/trunk/tdmlinks/0_extra/include/currency.php =================================================================== --- XoopsModules/tdmlinks/trunk/tdmlinks/0_extra/include/currency.php (rev 0) +++ XoopsModules/tdmlinks/trunk/tdmlinks/0_extra/include/currency.php 2015-08-08 22:04:32 UTC (rev 13138) @@ -0,0 +1,54 @@ +<?php +/** + * **************************************************************************** + * - TXModCreate By TXMod Xoops - TEAM XOOPS MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.txmodxoops.org) + * - + * + * This license contains restrictions...!!! + * + * 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 TXMod XOOPS Project http://sourceforge.net/projects/txmodxoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package kernel + * @since 1.0.0 + * @Version $Id 1.0 Timgno + * **************************************************************************** + */ +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +/** + * Return a list of file Currency + * + * This should really be replaced with a more accurate way of determining the actually currency + */ +return $currency = array( + 'AUD' => 'AUD', + 'BRL' => 'BRL', + 'CAD' => 'CAD', + 'CHF' => 'CHF', + 'CZK' => 'CZK', + 'DKK' => 'DKK', + 'EUR' => 'EUR', + 'GBP' => 'GBP', + 'HKD' => 'HKD', + 'HUF' => 'HUF', + 'ILS' => 'ILS', + 'JPY' => 'JPY', + 'MXN' => 'MXN', + 'NOK' => 'NOK', + 'NZD' => 'NZD', + 'PHP' => 'PHP', + 'PLN' => 'PLN', + 'SEK' => 'SEK', + 'SGD' => 'SGD', + 'THB' => 'THB', + 'TWD' => 'TWD', + 'USD' => 'USD' +); Added: XoopsModules/tdmlinks/trunk/tdmlinks/0_extra/include/mimetypes.inc.php =================================================================== --- XoopsModules/tdmlinks/trunk/tdmlinks/0_extra/include/mimetypes.inc.php (rev 0) +++ XoopsModules/tdmlinks/trunk/tdmlinks/0_extra/include/mimetypes.inc.php 2015-08-08 22:04:32 UTC (rev 13138) @@ -0,0 +1,131 @@ +<?php +/** + * XOOPS MIME types + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package kernel + * @since 2.0.0 + * @version $Id$ + */ +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +/** + * Return a list of file Mimetypes + * + * This should really be replaced with a more accurate way of determining the actually mimetype + */ +return $mimetypes = array( + 'hqx' => 'application/mac-binhex40' , + 'doc' => 'application/msword' , + 'dot' => 'application/msword' , + 'bin' => 'application/octet-stream' , + 'lha' => 'application/octet-stream' , + 'lzh' => 'application/octet-stream' , + 'exe' => 'application/octet-stream' , + 'class' => 'application/octet-stream' , + 'so' => 'application/octet-stream' , + 'dll' => 'application/octet-stream' , + 'pdf' => 'application/pdf' , + 'ai' => 'application/postscript' , + 'eps' => 'application/postscript' , + 'ps' => 'application/postscript' , + 'smi' => 'application/smil' , + 'smil' => 'application/smil' , + 'wbxml' => 'application/vnd.wap.wbxml' , + 'wmlc' => 'application/vnd.wap.wmlc' , + 'wmlsc' => 'application/vnd.wap.wmlscriptc' , + 'xla' => 'application/vnd.ms-excel' , + 'xls' => 'application/vnd.ms-excel' , + 'xlt' => 'application/vnd.ms-excel' , + 'ppt' => 'application/vnd.ms-powerpoint' , + 'csh' => 'application/x-csh' , + 'dcr' => 'application/x-director' , + 'dir' => 'application/x-director' , + 'dxr' => 'application/x-director' , + 'spl' => 'application/x-futuresplash' , + 'gtar' => 'application/x-gtar' , + 'php' => 'application/x-httpd-php' , + 'php3' => 'application/x-httpd-php' , + 'php4' => 'application/x-httpd-php' , + 'php5' => 'application/x-httpd-php' , + 'phtml' => 'application/x-httpd-php' , + 'js' => 'application/x-javascript' , + 'sh' => 'application/x-sh' , + 'swf' => 'application/x-shockwave-flash' , + 'sit' => 'application/x-stuffit' , + 'tar' => 'application/x-tar' , + 'tcl' => 'application/x-tcl' , + 'xhtml' => 'application/xhtml+xml' , + 'xht' => 'application/xhtml+xml' , + 'xhtml' => 'application/xml' , + 'ent' => 'application/xml-external-parsed-entity' , + 'dtd' => 'application/xml-dtd' , + 'mod' => 'application/xml-dtd' , + 'gz' => 'application/x-gzip' , + 'zip' => 'application/zip' , + 'au' => 'audio/basic' , + 'snd' => 'audio/basic' , + 'mid' => 'audio/midi' , + 'midi' => 'audio/midi' , + 'kar' => 'audio/midi' , + 'mp1' => 'audio/mpeg' , + 'mp2' => 'audio/mpeg' , + 'mp3' => 'audio/mpeg' , + 'aif' => 'audio/x-aiff' , + 'aiff' => 'audio/x-aiff' , + 'm3u' => 'audio/x-mpegurl' , + 'ram' => 'audio/x-pn-realaudio' , + 'rm' => 'audio/x-pn-realaudio' , + 'rpm' => 'audio/x-pn-realaudio-plugin' , + 'ra' => 'audio/x-realaudio' , + 'wav' => 'audio/x-wav' , + 'ogg' => 'audio/ogg' , + 'bmp' => 'image/bmp' , + 'gif' => 'image/gif' , + 'jpeg' => 'image/jpeg' , + 'jpg' => 'image/jpeg' , + 'jpe' => 'image/jpeg' , + 'png' => 'image/png' , + 'tiff' => 'image/tiff' , + 'tif' => 'image/tif' , + 'wbmp' => 'image/vnd.wap.wbmp' , + 'pnm' => 'image/x-portable-anymap' , + 'pbm' => 'image/x-portable-bitmap' , + 'pgm' => 'image/x-portable-graymap' , + 'ppm' => 'image/x-portable-pixmap' , + 'xbm' => 'image/x-xbitmap' , + 'xpm' => 'image/x-xpixmap' , + 'ics' => 'text/calendar' , + 'ifb' => 'text/calendar' , + 'css' => 'text/css' , + 'html' => 'text/html' , + 'htm' => 'text/html' , + 'asc' => 'text/plain' , + 'txt' => 'text/plain' , + 'rtf' => 'text/rtf' , + 'sgml' => 'text/x-sgml' , + 'sgm' => 'text/x-sgml' , + 'tsv' => 'text/tab-seperated-values' , + 'wml' => 'text/vnd.wap.wml' , + 'wmls' => 'text/vnd.wap.wmlscript' , + 'xsl' => 'text/xml' , + 'ogv' => 'video/ogg' , + 'mpeg' => 'video/mpeg' , + 'mpg' => 'video/mpeg' , + 'mpe' => 'video/mpeg' , + 'qt' => 'video/quicktime' , + 'mov' => 'video/quicktime' , + 'avi' => 'video/x-msvideo' , + 'flv' => 'video/x-flv' , + 'mp4' => 'video/mp4' , + 'wmv' => 'video/x-ms-wmv' , + 'webm' => 'video/webm' , + '3gp' => 'video/quicktime' ); Added: XoopsModules/tdmlinks/trunk/tdmlinks/admin/about.php =================================================================== --- XoopsModules/tdmlinks/trunk/tdmlinks/admin/about.php (rev 0) +++ XoopsModules/tdmlinks/trunk/tdmlinks/admin/about.php 2015-08-08 22:04:32 UTC (rev 13138) @@ -0,0 +1,26 @@ +<?php +/** + * TDMLink + * + * 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 Gregory Mage (Aka Mage) + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @author Gregory Mage (Aka Mage) + */ + +include 'admin_header.php'; +xoops_cp_header(); +if (TDMLinks_checkModuleAdmin()){ + $about_admin = new ModuleAdmin(); + + echo $about_admin->addNavigation('about.php'); + echo $about_admin->renderabout('9MYQB7GUK5MCS', true); +} +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/tdmlinks/trunk/tdmlinks/admin/admin_header.php =================================================================== --- XoopsModules/tdmlinks/trunk/tdmlinks/admin/admin_header.php (rev 0) +++ XoopsModules/tdmlinks/trunk/tdmlinks/admin/admin_header.php 2015-08-08 22:04:32 UTC (rev 13138) @@ -0,0 +1,69 @@ +<?php +/** + * TDMLink + * + * 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 Gregory Mage (Aka Mage) + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @author Gregory Mage (Aka Mage) + */ + +// Include xoops admin header +include_once '../../../include/cp_header.php'; + +include_once(XOOPS_ROOT_PATH."/class/xoopsmodule.php"); +include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; +include_once XOOPS_ROOT_PATH."/class/tree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopslists.php"; +include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; +include_once XOOPS_ROOT_PATH.'/class/xoopsform/grouppermform.php'; + +include_once("../include/functions.php"); + +if ( $xoopsUser ) { + $xoopsModule = XoopsModule::getByDirname("TDMLinks"); + if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); +} + +// Include language file +xoops_loadLanguage('admin', 'system'); +xoops_loadLanguage('admin', $xoopsModule->getVar('dirname', 'e')); +xoops_loadLanguage('modinfo', $xoopsModule->getVar('dirname', 'e')); + +//param\xE8tres: +// pour les images des cat\xE9gories: +$uploaddir = XOOPS_ROOT_PATH . '/uploads/TDMLinks/images/cats/'; +$uploadurl = XOOPS_URL . '/uploads/TDMLinks/images/cats/'; +// pour les fichiers +$uploaddir_links = XOOPS_ROOT_PATH . '/uploads/TDMLinks/links/'; +$uploadurl_links = XOOPS_URL . '/uploads/TDMLinks/links/'; +// pour les captures d'\xE9cran fichiers +$uploaddir_shots = XOOPS_ROOT_PATH . '/uploads/TDMLinks/images/shots/'; +$uploadurl_shots = XOOPS_URL . '/uploads/TDMLinks/images/shots/'; +// pour les images des champs: +$uploaddir_field = XOOPS_ROOT_PATH . '/uploads/TDMLinks/images/field/'; +$uploadurl_field = XOOPS_URL . '/uploads/TDMLinks/images/field/'; +///////////// + +//appel des class +$linkscat_Handler =& xoops_getModuleHandler('tdmlinks_cat', 'TDMLinks'); +$links_Handler =& xoops_getModuleHandler('tdmlinks_links', 'TDMLinks'); +$linksvotedata_Handler =& xoops_getModuleHandler('tdmlinks_votedata', 'TDMLinks'); +$linksfield_Handler =& xoops_getModuleHandler('tdmlinks_field', 'TDMLinks'); +$linksfielddata_Handler =& xoops_getModuleHandler('tdmlinks_fielddata', 'TDMLinks'); +$linksbroken_Handler =& xoops_getModuleHandler('tdmlinks_broken', 'TDMLinks'); +$linksmod_Handler =& xoops_getModuleHandler('tdmlinks_mod', 'TDMLinks'); +$linksfieldmoddata_Handler =& xoops_getModuleHandler('tdmlinks_modfielddata', 'TDMLinks'); +?> \ No newline at end of file Added: XoopsModules/tdmlinks/trunk/tdmlinks/admin/broken.php =================================================================== --- XoopsModules/tdmlinks/trunk/tdmlinks/admin/broken.php (rev 0) +++ XoopsModules/tdmlinks/trunk/tdmlinks/admin/broken.php 2015-08-08 22:04:32 UTC (rev 13138) @@ -0,0 +1,124 @@ +<?php +/** + * TDMLink + * + * 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 Gregory Mage (Aka Mage) + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @author Gregory Mage (Aka Mage) + */ + +include 'admin_header.php'; + +//On recupere la valeur de l'argument op dans l'URL$ +$op = TDMLinks_CleanVars($_REQUEST, 'op', 'list', 'string'); + +//Les valeurs de op qui vont permettre d'aller dans les differentes parties de la page +switch ($op) +{ + // Vue liste + case "list": + //Affichage de la partie haute de l'administration de Xoops + xoops_cp_header(); + if (TDMLinks_checkModuleAdmin()){ + $broken_admin = new ModuleAdmin(); + echo $broken_admin->addNavigation('broken.php'); + } + $criteria = new CriteriaCompo(); + if (isset($_REQUEST['limit'])) { + $criteria->setLimit($_REQUEST['limit']); + $limit = $_REQUEST['limit']; + } else { + $criteria->setLimit($xoopsModuleConfig['perpageadmin']); + $limit = $xoopsModuleConfig['perpageadmin']; + } + if (isset($_REQUEST['start'])) { + $criteria->setStart($_REQUEST['start']); + $start = $_REQUEST['start']; + } else { + $criteria->setStart(0); + $start = 0; + } + $criteria->setSort('reportid'); + $criteria->setOrder('ASC'); + //pour faire une jointure de table + $linksbroken_Handler->table_link = $linksbroken_Handler->db->prefix("tdmlinks_links"); // Nom de la table en jointure + $linksbroken_Handler->field_link = "lid"; // champ de la table en jointure + $linksbroken_Handler->field_object = "lid"; // champ de la table courante + $linksbroken_arr = $linksbroken_Handler->getByLink($criteria); + $numrows = $linksbroken_Handler->getCount($criteria); + if ( $numrows > $limit ) { + $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=list&limit=' . $limit); + $pagenav = $pagenav->renderNav(4); + } else { + $pagenav = ''; + } + //Affichage du tableau des téléchargements brisés + if ($numrows > 0) { + echo '<table width="100%" cellspacing="1" class="outer">'; + echo '<tr>'; + echo '<th align="center" width="10%">'._AM_TDMLINKS_FORMFILE.'</th>'; + echo '<th align="center">' . _AM_TDMLINKS_FORMTITLE . '</th>'; + echo '<th align="center" width="20%">' . _AM_TDMLINKS_BROKEN_SENDER . '</th>'; + echo '<th align="center" width="15%">'._AM_TDMLINKS_FORMACTION.'</th>'; + echo '</tr>'; + $class = 'odd'; + foreach (array_keys($linksbroken_arr) as $i) { + $class = ($class == 'even') ? 'odd' : 'even'; + $links_lid = $linksbroken_arr[$i]->getVar('lid'); + $links_reportid = $linksbroken_arr[$i]->getVar('reportid'); + $links_title = $linksbroken_arr[$i]->getVar('title'); + $links_cid = $linksbroken_arr[$i]->getVar('cid'); + $links_poster = XoopsUser::getUnameFromId($linksbroken_arr[$i]->getVar('sender')); + $links_poster_ip = $linksbroken_arr[$i]->getVar('ip'); + echo '<tr class="'.$class.'">'; + echo '<td align="center">'; + echo '<a href="../visit.php?cid=' . $links_cid . '&lid=' . $links_lid . '" target="_blank"><img src="../images/icon/link.png" alt="link ' . $links_title . '" title="link ' . $links_title . '"></a>'; + echo '</td>'; + echo '<td align="center">' . $links_title . '</td>'; + echo '<td align="center"><b>' . $links_poster . '</b> (' . $links_poster_ip . ')</td>'; + echo '<td align="center" width="15%">'; + echo '<a href="links.php?op=view_links&links_lid=' . $links_lid . '"><img src="../images/icon/view_mini.png" alt="' . _AM_TDMLINKS_FORMDISPLAY . '" title="' . _AM_TDMLINKS_FORMDISPLAY . '"></a> '; + echo '<a href="links.php?op=edit_links&links_lid=' . $links_lid . '"><img src="../images/icon/edit.png" alt="' . _AM_TDMLINKS_FORMEDIT . '" title="' . _AM_TDMLINKS_FORMEDIT . '"></a> '; + echo '<a href="broken.php?op=del_brokenlinks&broken_id=' . $links_reportid . '"><img src="../images/icon/ignore_mini.png" alt="' . _AM_TDMLINKS_FORMIGNORE . '" title="' . _AM_TDMLINKS_FORMIGNORE . '"></a>'; + echo '</td>'; + } + echo '</table><br />'; + echo '<br /><div align=right>' . $pagenav . '</div><br />'; + }else{ + echo '<div class="errorMsg" style="text-align: center;">' . _AM_TDMLINKS_ERREUR_NOBROKENLINKS . '</div>'; + } + break; + + // permet de suprimmer le rapport de téléchargment brisé + case "del_brokenlinks": + $obj =& $linksbroken_Handler->get($_REQUEST['broken_id']); + if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) { + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header('links.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + } + if ($linksbroken_Handler->delete($obj)) { + redirect_header('broken.php', 1, _AM_TDMLINKS_REDIRECT_DELOK); + } + echo $objvotedata->getHtmlErrors(); + } else { + //Affichage de la partie haute de l'administration de Xoops + xoops_cp_header(); + if (TDMLinks_checkModuleAdmin()){ + $broken_admin = new ModuleAdmin(); + $broken_admin->addItemButton(_MI_TDMLINKS_ADMENU4, 'broken.php', 'list'); + echo $broken_admin->renderButton(); + } + xoops_confirm(array('ok' => 1, 'broken_id' => $_REQUEST['broken_id'], 'op' => 'del_brokenlinks'), $_SERVER['REQUEST_URI'], _AM_TDMLINKS_BROKEN_SURDEL . '<br>'); + } + break; +} +//Affichage de la partie basse de l'administration de Xoops +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/tdmlinks/trunk/tdmlinks/admin/category.php =================================================================== --- XoopsModules/tdmlinks/trunk/tdmlinks/admin/category.php (rev 0) +++ XoopsModules/tdmlinks/trunk/tdmlinks/admin/category.php 2015-08-08 22:04:32 UTC (rev 13138) @@ -0,0 +1,398 @@ +<?php +/** + * TDMLink + * + * 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 Gregory Mage (Aka Mage) + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @author Gregory Mage (Aka Mage) + */ + +include 'admin_header.php'; +//On recupere la valeur de l'argument op dans l'URL$ +$op = TDMLinks_CleanVars($_REQUEST, 'op', 'list', 'string'); + +//Les valeurs de op qui vont permettre d'aller dans les differentes parties de la page +switch ($op) +{ + // Vue liste + case "list": + //Affichage de la partie haute de l'administration de Xoops + xoops_cp_header(); + if (TDMLinks_checkModuleAdmin()){ + $category_admin = new ModuleAdmin(); + echo $category_admin->addNavigation('category.php'); + $category_admin->addItemButton(_AM_TDMLINKS_CAT_NEW, 'category.php?op=new_cat', 'add'); + echo $category_admin->renderButton(); + } + $criteria = new CriteriaCompo(); + $criteria->setSort('cat_weight ASC, cat_title'); + $criteria->setOrder('ASC'); + $links_cat = $linkscat_Handler->getall($criteria); + //Affichage du tableau + if (count($links_cat)>0) { + echo '<table width="100%" cellspacing="1" class="outer">'; + echo '<tr>'; + echo '<th align="left" width="25%">' . _AM_TDMLINKS_FORMTITLE . '</th>'; + echo '<th align="center" width="10%">' . _AM_TDMLINKS_FORMIMG . '</th>'; + echo '<th align="center">' . _AM_TDMLINKS_FORMTEXT . '</th>'; + echo '<th align="center" width="3%">' . _AM_TDMLINKS_FORMWEIGHT . '</th>'; + echo '<th align="center" width="8%">' . _AM_TDMLINKS_FORMACTION . '</th>'; + echo '</tr>'; + $class = 'odd'; + include_once XOOPS_ROOT_PATH."/modules/TDMLinks/class/tree.php"; + $mytree = new TDMObjectTree($links_cat, 'cat_cid', 'cat_pid'); + $category_ArrayTree = $mytree->makeArrayTree('cat_title','<img src="../images/deco/arrow.gif">'); + foreach (array_keys($category_ArrayTree) as $i) { + echo '<tr class="'.$class.'">'; + echo '<td align="left" ><a href="' . XOOPS_URL . '/modules/TDMLinks/viewcat.php?cid=' . $i . '">' . $category_ArrayTree[$i] . '</a></td>'; + echo '<td align="center">'; + echo '<img src="' . $uploadurl . $links_cat[$i]->getVar('cat_imgurl') . '" alt="" title="" height="60">'; + echo '</td>'; + echo '<td align="left">' . $links_cat[$i]->getVar('cat_description_main') . '</td>'; + echo '<td align="center">' . $links_cat[$i]->getVar('cat_weight') . '</td>'; + echo '<td align="center">'; + echo '<a href="category.php?op=edit_cat&linkscat_cid=' . $i . '"><img src="../images/icon/edit.png" alt="'._AM_TDMLINKS_FORMEDIT.'" title="'._AM_TDMLINKS_FORMEDIT.'"></a> '; + echo '<a href="category.php?op=del_cat&linkscat_cid=' . $i . '"><img src="../images/icon/delete.png" alt="'._AM_TDMLINKS_FORMDEL.'" title="'._AM_TDMLINKS_FORMDEL.'"></a>'; + echo '</td>'; + echo '</tr>'; + $class = ($class == 'even') ? 'odd' : 'even'; + } + echo '</table>'; + } + break; + + // vue création + case "new_cat": + //Affichage de la partie haute de l'administration de Xoops + xoops_cp_header(); + if (TDMLinks_checkModuleAdmin()){ + $category_admin = new ModuleAdmin(); + echo $category_admin->addNavigation('category.php'); + $category_admin->addItemButton(_AM_TDMLINKS_CAT_LIST, 'category.php?op=list', 'list'); + echo $category_admin->renderButton(); + } + //Affichage du formulaire de création des catégories + $obj =& $linkscat_Handler->create(); + $form = $obj->getForm(); + $form->display(); + break; + + // Pour éditer une catégorie + case "edit_cat": + //Affichage de la partie haute de l'administration de Xoops + xoops_cp_header(); + if (TDMLinks_checkModuleAdmin()){ + $category_admin = new ModuleAdmin(); + echo $category_admin->addNavigation('category.php'); + $category_admin->addItemButton(_AM_TDMLINKS_CAT_NEW, 'category.php?op=new_cat', 'add'); + $category_admin->addItemButton(_AM_TDMLINKS_CAT_LIST, 'category.php?op=list', 'list'); + echo $category_admin->renderButton(); + } + //Affichage du formulaire de création des catégories + $linkscat_cid = TDMLinks_CleanVars($_REQUEST, 'linkscat_cid', 0, 'int'); + $obj = $linkscat_Handler->get($linkscat_cid); + $form = $obj->getForm(); + $form->display(); + break; + + // Pour supprimer une catégorie + case "del_cat": + global $xoopsModule; + $linkscat_cid = TDMLinks_CleanVars($_REQUEST, 'linkscat_cid', 0, 'int'); + $obj =& $linkscat_Handler->get($linkscat_cid); + if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) { + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header('category.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + } + // supression des téléchargements de la catégorie + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('cid', $linkscat_cid)); + $links_arr = $links_Handler->getall($criteria); + foreach (array_keys($links_arr) as $i) { + // supression des votes + $criteria_1 = new CriteriaCompo(); + $criteria_1->add(new Criteria('lid', $links_arr[$i]->getVar('lid'))); + $links_votedata = $linksvotedata_Handler->getall($criteria_1); + foreach (array_keys($links_votedata) as $j) { + $objvotedata =& $linksvotedata_Handler->get($links_votedata[$j]->getVar('ratingid')); + $linksvotedata_Handler->delete($objvotedata) or $objvotedata->getHtmlErrors(); + } + // supression des rapports de fichier brisé + $criteria_2 = new CriteriaCompo(); + $criteria_2->add(new Criteria('lid', $links_arr[$i]->getVar('lid'))); + $links_broken = $linksbroken_Handler->getall($criteria_2); + foreach (array_keys($links_broken) as $j) { + $objbroken =& $linksbroken_Ha... [truncated message content] |
From: <wis...@us...> - 2015-10-06 20:43:30
|
Revision: 13155 http://sourceforge.net/p/xoops/svn/13155 Author: wishcraft Date: 2015-10-06 20:43:27 +0000 (Tue, 06 Oct 2015) Log Message: ----------- FOIP/FAX/PBX Module Prealpah 0.00.01 Added Paths: ----------- XoopsModules/ICTPBX/ XoopsModules/ICTPBX/trunk/ XoopsModules/ICTPBX/trunk/modules/ XoopsModules/ICTPBX/trunk/modules/ict/ XoopsModules/ICTPBX/trunk/modules/ict/admin/ XoopsModules/ICTPBX/trunk/modules/ict/class/ XoopsModules/ICTPBX/trunk/modules/ict/class/coredb.php XoopsModules/ICTPBX/trunk/modules/ict/class/did.php XoopsModules/ICTPBX/trunk/modules/ict/class/gateway.php XoopsModules/ICTPBX/trunk/modules/ict/class/service.php XoopsModules/ICTPBX/trunk/modules/ict/class/technology.php XoopsModules/ICTPBX/trunk/modules/ict/class/trunk.php XoopsModules/ICTPBX/trunk/modules/ict/class/user.php XoopsModules/ICTPBX/trunk/modules/ict/images/ XoopsModules/ICTPBX/trunk/modules/ict/images/icons/ XoopsModules/ICTPBX/trunk/modules/ict/images/icons/16/ XoopsModules/ICTPBX/trunk/modules/ict/images/icons/24/ XoopsModules/ICTPBX/trunk/modules/ict/images/icons/32/ XoopsModules/ICTPBX/trunk/modules/ict/include/ XoopsModules/ICTPBX/trunk/modules/ict/include/constants.php XoopsModules/ICTPBX/trunk/modules/ict/include/forms.php XoopsModules/ICTPBX/trunk/modules/ict/include/formselectcountry.php XoopsModules/ICTPBX/trunk/modules/ict/include/functions.php XoopsModules/ICTPBX/trunk/modules/ict/include/places-api.uris XoopsModules/ICTPBX/trunk/modules/ict/language/ XoopsModules/ICTPBX/trunk/modules/ict/language/english/ XoopsModules/ICTPBX/trunk/modules/ict/language/english/css/ XoopsModules/ICTPBX/trunk/modules/ict/language/english/emails.php XoopsModules/ICTPBX/trunk/modules/ict/language/english/errors.php XoopsModules/ICTPBX/trunk/modules/ict/language/english/forms.php XoopsModules/ICTPBX/trunk/modules/ict/language/english/images.php XoopsModules/ICTPBX/trunk/modules/ict/language/english/mail_template/ XoopsModules/ICTPBX/trunk/modules/ict/language/english/mail_template/existing-user-password-changed.html XoopsModules/ICTPBX/trunk/modules/ict/language/english/mail_template/new-ictpbx-user-created.html XoopsModules/ICTPBX/trunk/modules/ict/preloads/ XoopsModules/ICTPBX/trunk/modules/ict/sql/ XoopsModules/ICTPBX/trunk/modules/ict/sql/mysql.sql XoopsModules/ICTPBX/trunk/modules/ict/templates/ XoopsModules/ICTPBX/trunk/modules/ict/xoops_version.php XoopsModules/ICTPBX/trunk/uploads/ XoopsModules/ICTPBX/trunk/uploads/ictpbx/ Added: XoopsModules/ICTPBX/trunk/modules/ict/class/coredb.php =================================================================== --- XoopsModules/ICTPBX/trunk/modules/ict/class/coredb.php (rev 0) +++ XoopsModules/ICTPBX/trunk/modules/ict/class/coredb.php 2015-10-06 20:43:27 UTC (rev 13155) @@ -0,0 +1,41 @@ +<?php +/** + * ICT-FAX Open Source Fax system based on ICT Innovations drupal modules + * + * 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 © 2012 ICT Innovations, All Rights Reserved + * @copyright © 2015 Chronolabs Cooperative, All Rights Reserved + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @subpackage ictfax + * @category foip/fax + * @since 1.0.1 + * @author Simon A. Roberts <wis...@us...> + * @author Falak Nawaz <su...@ic...> + * @author Nasir Iqbal <su...@ic...> + * @author Tahir Almas <su...@ic...> + * @see http://www.ictinnovations.com/ + * @see http://labs.coop/ + * @link mailto:in...@ic... + */ + + +class CoreDB extends XoopsDatabase +{ + public function __call($name, $arguments) { + return self::_callStatic($name, $arguments); + } + + /** As of PHP 5.3.0 */ + public static function __callStatic($name, $arguments) { + $db = db_set_active('ictcore'); + $result = call_user_func_array($name, $arguments); + db_set_active(); + return $result; + } +} Property changes on: XoopsModules/ICTPBX/trunk/modules/ict/class/coredb.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ICTPBX/trunk/modules/ict/class/did.php =================================================================== --- XoopsModules/ICTPBX/trunk/modules/ict/class/did.php (rev 0) +++ XoopsModules/ICTPBX/trunk/modules/ict/class/did.php 2015-10-06 20:43:27 UTC (rev 13155) @@ -0,0 +1,116 @@ +<?php +/** + * ICT-FAX Open Source Fax system based on ICT Innovations drupal modules + * + * 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 © 2012 ICT Innovations, All Rights Reserved + * @copyright © 2015 Chronolabs Cooperative, All Rights Reserved + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @subpackage ictfax + * @category foip/fax + * @since 1.0.1 + * @author Simon A. Roberts <wis...@us...> + * @author Falak Nawaz <su...@ic...> + * @author Nasir Iqbal <su...@ic...> + * @author Tahir Almas <su...@ic...> + * @see http://www.ictinnovations.com/ + * @see http://labs.coop/ + * @link mailto:in...@ic... + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @copyright copyright © 2015 labs.coop + */ +class IctDid extends XoopsObject +{ + /** + * Class Constructor + */ + function __construct() + { + $this->initVar('ictpbx_did_id', XOBJ_DTYPE_INT, null, true); + $this->initVar('did', XOBJ_DTYPE_TXTBOX, '', false, 32); + $this->initVar('description', XOBJ_DTYPE_TXTBOX, '', false, 255); + $this->initVar('assigned_to', XOBJ_DTYPE_INT, 0, false); + $this->initVar('forward_to', XOBJ_DTYPE_TXTBOX, '', false, 255); + $this->initVar('trunk_id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created_by', XOBJ_DTYPE_INT, 0, false); + } + +} + + +/** + * @copyright copyright © 2015 labs.coop + */ +class IctDidUserList extends XoopsObject +{ + /** + * Class Constructor + */ + function __construct($row = array()) + { + $this->initVar('ictpbx_did_id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('ictpbx_user_id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('account_id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('did', XOBJ_DTYPE_TXTBOX, '', false, 32); + $this->initVar('description', XOBJ_DTYPE_TXTBOX, '', false, 255); + $this->initVar('assigned_to', XOBJ_DTYPE_INT, 0, false); + $this->initVar('forward_to', XOBJ_DTYPE_TXTBOX, '', false, 255); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, '', false, 32); + $this->initVar('first_name', XOBJ_DTYPE_TXTBOX, '', false, 32); + $this->initVar('last_name', XOBJ_DTYPE_TXTBOX, '', false, 32); + $this->initVar('phone_number', XOBJ_DTYPE_TXTBOX, '', false, 32); + $this->initVar('mobile_number', XOBJ_DTYPE_TXTBOX, '', false, 32); + $this->initVar('fax_number', XOBJ_DTYPE_TXTBOX, '', false, 32); + $this->initVar('mail', XOBJ_DTYPE_TXTBOX, '', false, 32); + $this->initVar('uid', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('user_created', XOBJ_DTYPE_INT, 0, false); + $this->assignVars($row); + } + +} + +/** + * @copyright copyright © 2015 labs.coop + */ +class IctDidHandler extends XoopsPersistableObjectHandler +{ + + /** + * Class Constructor + * + * @param unknown_type $db + */ + function __construct(&$db) + { + parent::__construct($db, "ictpbx_did", "IctDid", "ictpbx_did_id", 'did'); + } + + function getDidByUserList($criteria = NULL) + { + $rows = array(); + $sql = "SELECT `ictpbx_did_id`, `ictpbx_user_id`, `did`, `description`, `assigned_to`, `forward_to`, `b`.`name` as `name`, `b`.`first_name` as `first_name`, `b`.`last_name` as `last_name`, `b`.`phone_number` as `phone_number`, `b`.`mobile_number` as `mobile_number`, `b`.`fax_number` as `fax_number`,`b`.`mail` as `mail`, `b`.`uid` as `uid`, `created`, `b`.`created` as `user_created` "; + $sql .= "FROM " . CoreDB::prefix("ictpbx_did") . " a LEFT JOIN " . CoreDB::prefix("ictpbx_user") . " b ON a.created_by = b.uid "; + if (!is_null($criteria)) + $sql .= $criteria->renderWhere(); + $result = CoreDB::queryF($sql); + while($row = CoreDB::fetchArray($result)) + { + $row['account_id'] = $row['ictpbx_did_id'] * $row['ictpbx_user_id'] + $row['uid']; + $rows[] = new IctDidUserList($row); + } + return $rows; + } +} +?> \ No newline at end of file Property changes on: XoopsModules/ICTPBX/trunk/modules/ict/class/did.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ICTPBX/trunk/modules/ict/class/gateway.php =================================================================== --- XoopsModules/ICTPBX/trunk/modules/ict/class/gateway.php (rev 0) +++ XoopsModules/ICTPBX/trunk/modules/ict/class/gateway.php 2015-10-06 20:43:27 UTC (rev 13155) @@ -0,0 +1,65 @@ +<?php +/** + * ICT-FAX Open Source Fax system based on ICT Innovations drupal modules + * + * 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 © 2012 ICT Innovations, All Rights Reserved + * @copyright © 2015 Chronolabs Cooperative, All Rights Reserved + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @subpackage ictfax + * @category foip/fax + * @since 1.0.1 + * @author Simon A. Roberts <wis...@us...> + * @author Falak Nawaz <su...@ic...> + * @author Nasir Iqbal <su...@ic...> + * @author Tahir Almas <su...@ic...> + * @see http://www.ictinnovations.com/ + * @see http://labs.coop/ + * @link mailto:in...@ic... + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @copyright copyright © 2015 labs.coop + */ +class IctGateway extends XoopsObject +{ + /** + * Class Constructor + */ + function __construct() + { + $this->initVar('ictpbx_gateway_id', XOBJ_DTYPE_INT, null, true); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, 0, false, 32); + $this->initVar('type', XOBJ_DTYPE_INT, 0, false); + $this->initVar('active', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created_by', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * @copyright copyright © 2015 labs.coop + */ +class IctGatewayHandler extends XoopsPersistableObjectHandler +{ + + /** + * Class Constructor + * + * @param unknown_type $db + */ + function __construct(&$db) + { + parent::__construct($db, "ictpbx_gateway", "IctGateway", "ictpbx_gateway_id", 'name'); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/ICTPBX/trunk/modules/ict/class/gateway.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ICTPBX/trunk/modules/ict/class/service.php =================================================================== --- XoopsModules/ICTPBX/trunk/modules/ict/class/service.php (rev 0) +++ XoopsModules/ICTPBX/trunk/modules/ict/class/service.php 2015-10-06 20:43:27 UTC (rev 13155) @@ -0,0 +1,64 @@ +<?php +/** + * ICT-FAX Open Source Fax system based on ICT Innovations drupal modules + * + * 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 © 2012 ICT Innovations, All Rights Reserved + * @copyright © 2015 Chronolabs Cooperative, All Rights Reserved + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @subpackage ictfax + * @category foip/fax + * @since 1.0.1 + * @author Simon A. Roberts <wis...@us...> + * @author Falak Nawaz <su...@ic...> + * @author Nasir Iqbal <su...@ic...> + * @author Tahir Almas <su...@ic...> + * @see http://www.ictinnovations.com/ + * @see http://labs.coop/ + * @link mailto:in...@ic... + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @copyright copyright © 2015 labs.coop + */ +class IctService extends XoopsObject +{ + /** + * Class Constructor + */ + function __construct() + { + $this->initVar('ictpbx_service_id', XOBJ_DTYPE_INT, null, true); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, '', false, 32); + $this->initVar('active', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created_by', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * @copyright copyright © 2015 labs.coop + */ +class IctServiceHandler extends XoopsPersistableObjectHandler +{ + + /** + * Class Constructor + * + * @param unknown_type $db + */ + function __construct(&$db) + { + parent::__construct($db, "ictpbx_service", "IctService", "ictpbx_service_id", 'name'); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/ICTPBX/trunk/modules/ict/class/service.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ICTPBX/trunk/modules/ict/class/technology.php =================================================================== --- XoopsModules/ICTPBX/trunk/modules/ict/class/technology.php (rev 0) +++ XoopsModules/ICTPBX/trunk/modules/ict/class/technology.php 2015-10-06 20:43:27 UTC (rev 13155) @@ -0,0 +1,65 @@ +<?php +/** + * ICT-FAX Open Source Fax system based on ICT Innovations drupal modules + * + * 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 © 2012 ICT Innovations, All Rights Reserved + * @copyright © 2015 Chronolabs Cooperative, All Rights Reserved + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @subpackage ictfax + * @category foip/fax + * @since 1.0.1 + * @author Simon A. Roberts <wis...@us...> + * @author Falak Nawaz <su...@ic...> + * @author Nasir Iqbal <su...@ic...> + * @author Tahir Almas <su...@ic...> + * @see http://www.ictinnovations.com/ + * @see http://labs.coop/ + * @link mailto:in...@ic... + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @copyright copyright © 2015 labs.coop + */ +class IctTechnology extends XoopsObject +{ + /** + * Class Constructor + */ + function __construct() + { + $this->initVar('ictpbx_technology_id', XOBJ_DTYPE_INT, null, true); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, '', false, 32); + $this->initVar('type', XOBJ_DTYPE_INT, 0, false); + $this->initVar('active', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created_by', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * @copyright copyright © 2015 labs.coop + */ +class IctTechnologyHandler extends XoopsPersistableObjectHandler +{ + + /** + * Class Constructor + * + * @param unknown_type $db + */ + function __construct(&$db) + { + parent::__construct($db, "ictpbx_technology", "IctTechnology", "ictpbx_technology_id", 'name'); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/ICTPBX/trunk/modules/ict/class/technology.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ICTPBX/trunk/modules/ict/class/trunk.php =================================================================== --- XoopsModules/ICTPBX/trunk/modules/ict/class/trunk.php (rev 0) +++ XoopsModules/ICTPBX/trunk/modules/ict/class/trunk.php 2015-10-06 20:43:27 UTC (rev 13155) @@ -0,0 +1,77 @@ +<?php +/** + * ICT-FAX Open Source Fax system based on ICT Innovations drupal modules + * + * 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 © 2012 ICT Innovations, All Rights Reserved + * @copyright © 2015 Chronolabs Cooperative, All Rights Reserved + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @subpackage ictfax + * @category foip/fax + * @since 1.0.1 + * @author Simon A. Roberts <wis...@us...> + * @author Falak Nawaz <su...@ic...> + * @author Nasir Iqbal <su...@ic...> + * @author Tahir Almas <su...@ic...> + * @see http://www.ictinnovations.com/ + * @see http://labs.coop/ + * @link mailto:in...@ic... + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @copyright copyright © 2015 labs.coop + */ +class IctTrunk extends XoopsObject +{ + /** + * Class Constructor + */ + function __construct() + { + $this->initVar('ictpbx_trunk_id', XOBJ_DTYPE_INT, null, true); + $this->initVar('type', XOBJ_DTYPE_INT, 0, false); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, 0, false, 32); + $this->initVar('host', XOBJ_DTYPE_OTHER, '', false); + $this->initVar('username', XOBJ_DTYPE_OTHER, 0, false); + $this->initVar('password', XOBJ_DTYPE_OTHER, 0, false); + $this->initVar('port', XOBJ_DTYPE_OTHER, 0, false); + $this->initVar('channel', XOBJ_DTYPE_INT, 0, false); + $this->initVar('prefix', XOBJ_DTYPE_TXTBOX, '', false, 255); + $this->initVar('dial_string', XOBJ_DTYPE_TXTBOX, '', false, 255); + $this->initVar('register_string', XOBJ_DTYPE_TXTBOX, '', false, 255); + $this->initVar('gateway_id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('service_flag', XOBJ_DTYPE_INT, 0, false); + $this->initVar('technology_id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('weight', XOBJ_DTYPE_INT, 0, false); + $this->initVar('active', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created_by', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * @copyright copyright © 2015 labs.coop + */ +class IctTrunkHandler extends XoopsPersistableObjectHandler +{ + + /** + * Class Constructor + * + * @param unknown_type $db + */ + function __construct(&$db) + { + parent::__construct($db, "ictpbx_trunk", "IctTrunk", "ictpbx_trunk_id", 'name'); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/ICTPBX/trunk/modules/ict/class/trunk.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ICTPBX/trunk/modules/ict/class/user.php =================================================================== --- XoopsModules/ICTPBX/trunk/modules/ict/class/user.php (rev 0) +++ XoopsModules/ICTPBX/trunk/modules/ict/class/user.php 2015-10-06 20:43:27 UTC (rev 13155) @@ -0,0 +1,182 @@ +<?php +/** + * ICT-FAX Open Source Fax system based on ICT Innovations drupal modules + * + * 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 © 2012 ICT Innovations, All Rights Reserved + * @copyright © 2015 Chronolabs Cooperative, All Rights Reserved + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @subpackage ictfax + * @category foip/fax + * @since 1.0.1 + * @author Simon A. Roberts <wis...@us...> + * @author Falak Nawaz <su...@ic...> + * @author Nasir Iqbal <su...@ic...> + * @author Tahir Almas <su...@ic...> + * @see http://www.ictinnovations.com/ + * @see http://labs.coop/ + * @link mailto:in...@ic... + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @copyright copyright © 2015 labs.coop + */ +class IctUser extends XoopsObject +{ + /** + * Class Constructor + */ + function __construct() + { + $this->initVar('ictpbx_user_id', XOBJ_DTYPE_INT, null, true); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, 0, false, 32); + $this->initVar('first_name', XOBJ_DTYPE_TXTBOX, 0, false, 32); + $this->initVar('last_name', XOBJ_DTYPE_TXTBOX, 0, false, 32); + $this->initVar('mail', XOBJ_DTYPE_TXTBOX, 0, false, 32); + $this->initVar('phone_number', XOBJ_DTYPE_TXTBOX, 0, false, 32); + $this->initVar('mobile_number', XOBJ_DTYPE_TXTBOX, 0, false, 32); + $this->initVar('fax_number', XOBJ_DTYPE_TXTBOX, 0, false, 32); + $this->initVar('address', XOBJ_DTYPE_TXTAREA, '', false); + $this->initVar('country', XOBJ_DTYPE_TXTBOX, 0, false, 32); + $this->initVar('company', XOBJ_DTYPE_TXTBOX, 0, false, 32); + $this->initVar('website', XOBJ_DTYPE_TXTBOX, 0, false, 32); + $this->initVar('uid', XOBJ_DTYPE_INT, 0, false); + $this->initVar('active', XOBJ_DTYPE_INT, 0, false); + $this->initVar('credit', XOBJ_DTYPE_FLOAT, 0, false); + $this->initVar('free_bundle', XOBJ_DTYPE_INT, 0, false); + $this->initVar('reserved_credit', XOBJ_DTYPE_FLOAT, 0, false); + $this->initVar('reserved_free_bundle', XOBJ_DTYPE_INT, 0, false); + $this->initVar('package', XOBJ_DTYPE_TXTBOX, 0, false, 32); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created_by', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * @copyright copyright © 2015 labs.coop + */ +class IctUserHandler extends XoopsPersistableObjectHandler +{ + + /** + * Class Constructor + * + * @param unknown_type $db + */ + function __construct(&$db) + { + parent::__construct($db, "ictpbx_user", "IctUser", "ictpbx_user_id", 'name'); + } + + /** + * Handles Record Submition from Form Designations + * + * @param IctUser $user + * @param boolean $force + * @param array $formvalues + */ + function insertFromForm(IctUser $user, $force = true, $formvalues = array()) + { + if ($user->isNew()) + { + $isnew = true; + $mailpasswd = false; + if (isset($formvalues['passwd']) && empty($formvalues['passwd'])) + { + $formvalues['vpasswd'] = $formvalues['passwd'] = xoops_makepass(); + $mailpasswd = true; + } elseif (isset($formvalues['passwd']) && !empty($formvalues['passwd']) && isset($formvalues['vpasswd']) && !empty($formvalues['vpasswd']) && $formvalues['vpasswd'] != $formvalues['passwd']) + { + xoops_loadLanguages('errors'); + $GLOBALS['errors'][] = _ICTPBX_ERRORS_PASSWORD_MISMATCH; + return false; + } + $user_handler = xoops_gethandler('user'); + $xoopsuser = $user_handler->create(); + $xoopsuser->setVar('email', $user->getVar('mail')); + $xoopsuser->setVar('uname', $user->getVar('name')); + $xoopsuser->setVar('name', $user->getVar('first_name') . " " . $user->getVar('last_name')); + $xoopsuser->setVar('pass', md5($formvalues['passwd'])); + $xoopsuser->setVar('user_avatar', "ictpbx/blank.gif"); + $xoopsuser->setVar('user_from', $user->getVar('country')); + $xoopsuser->setVar('user_regdate', time()); + $xoopsuser->setVar('user_viewemail', $GLOBALS['ictModuleConfig']['newuser_user_viewmail']); + $xoopsuser->setVar('user_mailok', $GLOBALS['ictModuleConfig']['newuser_user_mailok']); + $user->setVar('uid', $user_handler->insert($xoopsuser, $force)); + $member_handler = xoops_gethandler('member'); + $member_handler->addUserToGroup(XOOPS_GROUP_USERS, $user->getVar('uid')); + if ($GLOBALS['ictModuleConfig']['newuser_group']!=XOOPS_GROUP_USERS) + $member_handler->addUserToGroup($GLOBALS['ictModuleConfig']['newuser_group'], $user->getVar('uid')); + $user->setVar('active', $GLOBALS['ictModuleConfig']['newuser_active']); + $user->setVar('credit', $GLOBALS['ictModuleConfig']['newuser_credit']); + $user->setVar('free_bundle', $GLOBALS['ictModuleConfig']['newuser_bundle']); + $user->setVar('reserved_credit', $GLOBALS['ictModuleConfig']['newuser_reserved_credit']); + $user->setVar('reserved_free_bundle', $GLOBALS['ictModuleConfig']['newuser_reserved_bundle']); + $user->setVar('package', $GLOBALS['ictModuleConfig']['newuser_package']); + $user->setVar('created', time()); + if (is_a($GLOBALS["xoopsUser"], "XoopsUser")) + $user->setVar('created_by', $GLOBALS["xoopsUser"]->getVar('uid')); + } else { + $isnew = false; + if (isset($formvalues['passwd']) && !empty($formvalues['passwd']) && isset($formvalues['vpasswd']) && !empty($formvalues['vpasswd']) && $formvalues['vpasswd'] != $formvalues['passwd']) + { + xoops_loadLanguages('errors'); + $GLOBALS['errors'][] = _ICTPBX_ERRORS_PASSWORD_MISMATCH; + return false; + } + if ($user->getVar('uid')!=0) + { + $user_handler = xoops_gethandler('user'); + $xoopsuser = $user_handler->get($user->getVar('uid')); + $xoopsuser->setVar('email', $user->getVar('mail')); + $xoopsuser->setVar('uname', $user->getVar('name')); + $xoopsuser->setVar('name', $user->getVar('first_name') . " " . $user->getVar('last_name')); + if (!empty($formvalues['passwd'])) + { + $xoopsuser->setVar('pass', md5($formvalues['passwd'])); + $mailpasswd = true; + } + $user_handler->insert($xoopsuser, $force); + + } + } + $id = parent::insert($user, $force); + if ($mailpasswd == true && is_a($xoopsuser, "XoopsUser")) + { + xoops_loadLanguages('emails'); + xoops_load("XoopsMailer"); + $xoopsMailer =& xoops_getMailer(); + $xoopsMailer->reset(); + $xoopsMailer->useMail(); + $xoopsMailer->setHTML(true); + $xoopsMailer->setTemplate(_ICTPBX_MAILTEMPLATE_PATH . DIRECTORY_SEPARATOR . ($isnew==true?'new-ictpbx-user-created.html':'existing-user-password-changed.html')); + $xoopsMailer->assign('FIRSTNAME', $user->getVar('first_name')); + $xoopsMailer->assign('LASTNAME', $user->getVar('last_name')); + $xoopsMailer->assign('USERNAME', $user->getVar('name')); + $xoopsMailer->assign('USEREMAIL', $user->getVar('mail')); + $xoopsMailer->assign('PASSWORD', $user->getVar('passwd')); + $xoopsMailer->assign('SITENAME', $GLOBALS['xoopsConfig']['sitename']); + $xoopsMailer->assign('ADMINMAIL', $GLOBALS['xoopsConfig']['adminmail']); + $xoopsMailer->assign('SITEURL', XOOPS_URL . "/"); + $xoopsMailer->setToUser($xoopsuser); + $xoopsMailer->setFromEmail($GLOBALS['xoopsConfig']['adminmail']); + $xoopsMailer->setFromName($GLOBALS['xoopsConfig']['sitename']); + $xoopsMailer->setSubject(sprintf(($isnew==true?_ICTPBX_EMAIL_SUBJECT_NEWUSER:_ICTPBX_EMAIL_SUBJECT_PASSCHANGE), $GLOBALS['xoopsConfig']['sitename'])); + if (!$xoopsMailer->send()) { + xoops_loadLanguages('errors'); + $GLOBALS['errors'][] = sprintf(_ICTPBX_ERRORS_EMAIL_NOTSENT, $user->getVar('mail')); + } + } + return $id; + } +} +?> \ No newline at end of file Property changes on: XoopsModules/ICTPBX/trunk/modules/ict/class/user.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ICTPBX/trunk/modules/ict/include/constants.php =================================================================== --- XoopsModules/ICTPBX/trunk/modules/ict/include/constants.php (rev 0) +++ XoopsModules/ICTPBX/trunk/modules/ict/include/constants.php 2015-10-06 20:43:27 UTC (rev 13155) @@ -0,0 +1,31 @@ +<?php +/** + * ICT-FAX Open Source Fax system based on ICT Innovations drupal modules + * + * 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 © 2012 ICT Innovations, All Rights Reserved + * @copyright © 2015 Chronolabs Cooperative, All Rights Reserved + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @subpackage ictfax + * @category foip/fax + * @since 1.0.1 + * @author Simon A. Roberts <wis...@us...> + * @author Falak Nawaz <su...@ic...> + * @author Nasir Iqbal <su...@ic...> + * @author Tahir Almas <su...@ic...> + * @see http://www.ictinnovations.com/ + * @see http://labs.coop/ + * @link mailto:in...@ic... + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +define("_ICTPBX_DIRNAME", basename(dirname(__DIR__))); +define('_ICTPBX_MAILTEMPLATE_PATH', dirname(__DIR__) . DIRECTORY_SEPARATOR . "language" . DIRECTORY_SEPARATOR . $GLOBALS["xoopsConfig"]["language"] . DIRECTORY_SEPARATOR . "mail_template"); +define('_ICTPBX_CSS_URI', XOOPS_URL . "/modules/" . _ICTPBX_DIRNAME . "/language/" . $GLOBALS["xoopsConfig"]["language"] . "/css"); \ No newline at end of file Property changes on: XoopsModules/ICTPBX/trunk/modules/ict/include/constants.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ICTPBX/trunk/modules/ict/include/forms.php =================================================================== --- XoopsModules/ICTPBX/trunk/modules/ict/include/forms.php (rev 0) +++ XoopsModules/ICTPBX/trunk/modules/ict/include/forms.php 2015-10-06 20:43:27 UTC (rev 13155) @@ -0,0 +1,700 @@ +<?php +/** + * ICT-FAX Open Source Fax system based on ICT Innovations drupal modules + * + * 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 © 2012 ICT Innovations, All Rights Reserved + * @copyright © 2015 Chronolabs Cooperative, All Rights Reserved + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @subpackage ictfax + * @category foip/fax + * @since 1.0.1 + * @author Simon A. Roberts <wis...@us...> + * @author Falak Nawaz <su...@ic...> + * @author Nasir Iqbal <su...@ic...> + * @author Tahir Almas <su...@ic...> + * @see http://www.ictinnovations.com/ + * @see http://labs.coop/ + * @link mailto:in...@ic... + */ + +require_once dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . 'xoopsformloader.php'; +require_once __DIR__ . DIRECTORY_SEPARATOR . 'formselectcountry.php'; + +/** + * Build the ictcore editing form. + * + * @ingroup forms + * @see ictcore_form_submit() + */ +function ictcore_form_user_register_form_alter(&$form, &$form_state) { + + xoops_loadLanguage('forms', _ICTFAX_DIRNAME); + + $frm = array(); + $frm['name']['form'] = new XoopsFormText(_ICTPBX_MN_FORM_USERNAME, 'name', 32, $form_state['values']['name']); + $frm['name']['form']->addDescription(_ICTPBX_MN_FORM_USERNAME_DESC); + $frm['name']['require'] = true; + $frm['passwd']['form'] = new XoopsFormPassword(_ICTPBX_MN_FORM_PASSWD, 'passwd', 32, ''); + $frm['passwd']['form']->addDescription(_ICTPBX_MN_FORM_PASSWD_DESC); + $frm['passwd']['require'] = false; + $frm['vpasswd']['form'] = new XoopsFormPassword(_ICTPBX_MN_FORM_VPASSWD, 'vpasswd', 32, ''); + $frm['vpasswd']['form']->addDescription(_ICTPBX_MN_FORM_VPASSWD_DESC); + $frm['vpasswd']['require'] = false; + $frm['first_name']['form'] = new XoopsFormText(_ICTPBX_MN_FORM_FIRSTNAME, 'first_name', 32, $form_state['values']['first_name']); + $frm['first_name']['form']->addDescription(_ICTPBX_MN_FORM_FIRSTNAME_DESC); + $frm['first_name']['require'] = true; + $frm['last_name']['form'] = new XoopsFormText(_ICTPBX_MN_FORM_LASTNAME, 'last_name', 32, $form_state['values']['last_name']); + $frm['last_name']['form']->addDescription(_ICTPBX_MN_FORM_LASTNAME_DESC); + $frm['last_name']['require'] = true; + $frm['mail']['form'] = new XoopsFormText(_ICTPBX_MN_FORM_EMAIL, 'mail', 32, $form_state['values']['mail']); + $frm['mail']['form']->addDescription(_ICTPBX_MN_FORM_EMAIL_DESC); + $frm['mail']['require'] = false; + $frm['company']['form'] = new XoopsFormText(_ICTPBX_MN_FORM_COMPANY, 'company', 32, $form_state['values']['company']); + $frm['company']['form']->addDescription(_ICTPBX_MN_FORM_COMPANY_DESC); + $frm['company']['require'] = false; + $frm['website']['form'] = new XoopsFormText(_ICTPBX_MN_FORM_WEBSITE, 'website', 32, $form_state['values']['website']); + $frm['website']['form']->addDescription(_ICTPBX_MN_FORM_WEBSITE_DESC); + $frm['website']['require'] = false; + $frm['phone_number']['form'] = new XoopsFormText(_ICTPBX_MN_FORM_PHONE, 'phone_number', 32, $form_state['values']['phone_number']); + $frm['phone_number']['form']->addDescription(_ICTPBX_MN_FORM_PHONE_DESC); + $frm['phone_number']['require'] = true; + $frm['mobile_number']['form'] = new XoopsFormText(_ICTPBX_MN_FORM_MOBILE, 'mobile_number', 32, $form_state['values']['mobile_number']); + $frm['mobile_number']['form']->addDescription(_ICTPBX_MN_FORM_MOBILE_DESC); + $frm['mobile_number']['require'] = false; + $frm['fax_number']['form'] = new XoopsFormText(_ICTPBX_MN_FORM_FAX, 'fax_number', 32, $form_state['values']['fax_number']); + $frm['fax_number']['form']->addDescription(_ICTPBX_MN_FORM_FAX_DESC); + $frm['fax_number']['require'] = false; + $frm['address']['form'] = new XoopsFormTextArea(_ICTPBX_MN_FORM_ADDRESS, 'address', $form_state['values']['address'], 5, 39); + $frm['address']['form']->addDescription(_ICTPBX_MN_FORM_ADDRESS_DESC); + $frm['address']['require'] = true; + $frm['country']['form'] = new IctpbxFormSelectCountry(_ICTPBX_MN_FORM_COUNTRY, 'country', $form_state['values']['country'], 1, true); + $frm['country']['form']->addDescription(_ICTPBX_MN_FORM_COUNTRY_DESC); + $frm['country']['require'] = true; + $frm['ictpbx_user_id']['form'] = new XoopsFormHidden('ictpbx_user_id', !isset($form_state['values']['ictpbx_user_id'])?'0':$form_state['values']['ictpbx_user_id']); + $frm['ictpbx_user_id']['require'] = false; + + $form = new XoopsTableForm(_ICTPBX_MN_FORM_TITLE_USERREGO, _ICTPBX_MN_FORM_IDENTITY_USERREGO, $_SERVER["REQUEST_URI"]); + foreach($frm as $key => $values) + $form->addElement($values['form'], $values['require']); + + return $form->render(); +} + +/** + * Build the did form. + */ +function ictpbx_did_form($form, &$form_state, $edit = array()) { + // It's safe to use on both an empty array, and an incoming array with full or partial data. + $edit += array( + 'account_id' => '', + 'phone' => '', + 'first_name' => '', + 'email' => '', + ); + + // If we're editing an existing fax, we'll add a value field to the form + // containing the fax's unique ID. + if (!empty($edit['account_id'])) { + $form['account_id'] = array( + '#type' => 'value', + '#value' => $edit['account_id'], + ); + } + + $form['info'] = array( + '#type' => 'fieldset', + '#title' => t('did Information'), + ); + + $form['info']['phone'] = array( + '#type' => 'textfield', + '#title' => t('DID Number'), + '#required' => TRUE, + '#default_value' => $edit['phone'], + ); + + $form['info']['first_name'] = array( + '#type' => 'textfield', + '#title' => t('Title'), + '#default_value' => $edit['first_name'], + ); + + $form['info']['email'] = array( + '#type' => 'textfield', + '#title' => t('Email'), + '#default_value' => $edit['email'], + ); + + $form['buttons']['submit'] = array( + '#type' => 'submit', + '#value' => t('Submit'), + ); + + return $form; +} + + + +/** + * Validate + * + */ +function ictpbx_did_form_validate($form, &$form_state) { + $did = $form_state['values']; + $query = "SELECT account_id FROM account WHERE phone = :phone"; + $result = CoreDB::db_query($query, array(':phone'=>$did['phone'])); + if ($res = $result->fetchAssoc()) { + form_set_error('phone', t('DID already exist!')); + } +} + + + + +/** + * Build the did batch form. + */ +function ictpbx_did_batch($form, &$form_state, $edit = array()) { + $edit += array( + 'from' => '', + 'to' => '', + 'first_name' => '', + 'email' => '', + ); + + $form['info'] = array( + '#type' => 'fieldset', + '#title' => t('DID Information'), + ); + + $form['info']['from'] = array( + '#type' => 'textfield', + '#title' => t('Range From'), + '#required' => TRUE, + '#default_value' => $edit['from'], + ); + + $form['info']['to'] = array( + '#type' => 'textfield', + '#title' => t('Range To'), + '#required' => TRUE, + '#default_value' => $edit['to'], + ); + + $form['info']['first_name'] = array( + '#type' => 'textfield', + '#title' => t('Title'), + '#default_value' => $edit['first_name'], + ); + + $form['info']['email'] = array( + '#type' => 'textfield', + '#title' => t('Email'), + '#default_value' => $edit['email'], + ); + + $form['buttons']['submit'] = array( + '#type' => 'submit', + '#value' => t('Submit'), + ); + + return $form; +} + +/** + * Validates did batch insert + */ +function ictpbx_did_batch_validate($form, &$form_state) { + $did = $form_state['values']; + + // validation in case of batch insert + if ($did['from'] == '' || $did['to'] == '') { + form_set_error('from', t('Both fileds in DID Range cannot be empty')); + } else { + if (!is_numeric($did['from']) || !is_numeric($did['to'])) { + form_set_error('from', t('Please enter a valid DID range only numbers are allowed!')); + } else { + $query = "SELECT count(account_id) as num FROM account WHERE phone >= :from AND phone<= :to"; + $result = CoreDB::db_query($query, array(':from'=>$did['from'], ':to'=>$did['to'])); + $count = $result->fetchField(); + } + } +} + + + +/** + * Build the did import form. + */ +function ictpbx_did_import($form, &$form_state, $edit = array()) { + $edit += array( + 'upload' => '', + 'to' => '', + 'first_name' => '', + 'email' => '', + ); + + $form['info'] = array( + '#type' => 'fieldset', + '#title' => t('did Information'), + ); + + // helper field for file upload + $form['#attributes'] = array('enctype' => "multipart/form-data"); + $form['info']['upload'] = array( + '#type' => 'file', + '#title' => t('Upload DID List'), + '#default_value' => $edit['upload'], + ); + $module_path = base_path() . drupal_get_path('module', 'ictpbx_did'); + $form['info']['example'] = array( + '#type' => 'markup', + '#markup' => t("Example File: <a href='$module_path/did_sample.csv'>did_sample.csv</a>"), + ); + + $form['buttons']['submit'] = array( + '#type' => 'submit', + '#value' => t('Submit'), + ); + + return $form; +} + +/** + * Validates did import insert + */ +function ictpbx_did_import_validate($form, &$form_state) { + +} + + +/** + * Build the did form. + */ +function ictpbx_did_assign($form, &$form_state, $edit = array()) { + $edit += array( + 'phone' => '', + 'first_name' => '', + 'email' => '', + ); + + $form['info'] = array( + '#type' => 'fieldset', + '#title' => t('DID Information'), + ); + + // containing the DID's unique ID. + if (!empty($edit['account_id'])) { + $form['info']['account_id'] = array( + '#type' => 'value', + '#value' => $edit['account_id'], + ); + } + + $form['info']['phone'] = array( + '#type' => 'textfield', + '#title' => t('DID Number'), + '#default_value' => $edit['phone'], + ); + + $form['info']['first_name'] = array( + '#type' => 'textfield', + '#title' => t('First_Name'), + '#default_value' => $edit['first_name'], + ); + + $form['setting'] = array( + '#type' => 'fieldset', + '#title' => t('User Information'), + ); + + $form['setting']['created_by'] = array( + '#type' => 'select', + '#title' => t('Assign to User'), + '#options' => array(0 => 'None') + ictcore_user_option(), + '#default_value' => $edit['created_by'], + ); + + $form['setting']['email'] = array( + '#type' => 'textfield', + '#title' => t('E-mail to Forward DID'), + '#default_value' => $edit['email'], + ); + + $form['buttons']['submit'] = array( + '#type' => 'submit', + '#value' => t('Submit'), + ); + + return $form; +} + + +/** + * Crates a input form + */ +function ictfax_form($form, &$form_state, $edit = array()) { + $edit += array( + 'send_to' => '', + 'send_from' => '', + 'text' => '', + 'file_name' => '', + 'try_max' => 1, + ); + + // Include the CTools tools that we need. + ctools_include('ajax'); + ctools_include('modal'); + // Add CTools' javascript to the page. + ctools_modal_add_js(); + // drupal_add_js(drupal_get_path('module', 'ictfax') . '/fax_answer.js'); + // If we're editing an existing fax, we'll add a value field to the form + // containing the fax's unique ID. + if (!empty($edit['cid'])) { + $form['cid'] = array( + '#type' => 'value', + '#value' => $edit['cid'], + ); + } + + $form['info'] = array( + '#type' => 'fieldset', + '#title' => t('Fax Information'), + ); + + $form['info']['send_to'] = array( + '#type' => 'textfield', + '#title' => t('Send To'), + '#required' => TRUE, + '#size' => 60, + '#maxlength' => 128, + '#description' => t('Click \'Phonebook\' to select fax #. where to send fax'), + '#default_value' => $edit['send_to'], + ); + + $form['info']['url'] = array( + '#type' => 'hidden', + // The name of the class is the #id of $form['ajax_button'] with "-url" + // suffix. + '#attributes' => array('class' => array('contact-button-url')), + '#value' => url('ictfax/phonebookpopup'), + ); + + $form['info']['ajax_button'] = array( + '#type' => 'button', + '#value' => 'Phonebook', + '#attributes' => array('class' => array('ctools-use-modal')), + '#id' => 'contact-button', + ); + + $form['info']['text'] = array( + '#type' => 'hidden', + '#title' => t('Message'), + '#required' => FALSE, + '#cols' => 60, + '#rows' => 10, + '#default_value' => $edit['text'], + ); + + // helper field for file upload + $form['#attributes'] = array('enctype' => "multipart/form-data"); + $form['info']['file_name'] = array( + '#type' => 'file', + '#title' => t('Fax file'), + '#required' => FALSE, + '#description' => t('Select a file to send as fax, please use only tif, pdf, jpg, png, gif or txt file'), + ); + + $form['info']['try_max'] = array( + '#type' => 'select', + '#title' => t('No. of Retries'), + '#options' => array( + 1 => t('[None]'), // no retry = 1 try + 2 => t('1'), // 1 retry = 2 tries and so on ... + 3 => t('2'), + 4 => t('3')), + '#description' => t('No. of tries if call failed'), + '#default_value' => $edit['try_max'], + ); + + $form['submit'] = array( + '#type' => 'submit', + '#value' => t('Create new Fax'), + ); + + return $form; +} + +/** + * Performs validation. + * + */ +function ictfax_form_validate($form, &$form_state) { + $transmission = $form_state['values']; + if (isset($transmission['transmission_id'])) { + // we are editing an existing record + $existing_record = $transmission['transmission_id']; + } + if ($transmission['send_to'] == '') { + form_set_error('send_to', t('Recipient cannot be empty')); + } + if (empty($transmission['send_to'])) { + form_set_error('send_to', t('Fax Number is required.')); + } else { + if (!ctype_digit(str_replace(array('+', ','), '',$transmission['send_to']))) { + form_set_error('send_to', t('Fax Number is not valid.')); + } + } + // Validate file + $allowedTypes = array( + 1=>'odt', 2=>'ott', 3=>'sxw', 4=>'stw', 5=>'doc', 6=>'dot', 7=>'sdw', 8=>'vor', 9=>'htm', 10=>'sdd', + 11=>'sdp', 12=>'wpd', 13=>'ods', 14=>'ots', 15=>'sxc', 16=>'stc', 17=>'xls', 18=>'xlw', 19=>'xlt', 20=>'sdc', + 21=>'csv', 22=>'odp', 23=>'otp', 24=>'sxi', 25=>'sti', 26=>'ppt', 27=>'pps', 28=>'pot', 29=>'sxd', 30=>'odt', + 31=>'ott', 32=>'sxw', 33=>'stw', 34=>'doc', 35=>'dot', 36=>'sdw', 37=>'vor', 38=>'htm', 39=>'sdd', 40=>'sdp', + 41=>'wpd', 42=>'ods', 43=>'ots', 44=>'sxc', 45=>'stc', 46=>'xls', 47=>'xlw', 48=>'xlt', 49=>'sdc', 50=>'csv', + 51=>'odp', 52=>'otp', 53=>'sxi', 54=>'sti', 55=>'ppt', 56=>'pps', 57=>'pot', 58=>'sxd', 59=>'txt', 60=>'tif', + 61=>'jpg', 62=>'pdf', 63=>'png', 64=>'gif', + ); + $validators = array('file_validate_extensions' => $allowedTypes); + $file = file_save_upload('file_name', $validators); + if ($file) { + $form_state['values']['file_name'] = $file; // drupal file object + } else { + form_set_error('file_name', "File is required"); + } +} + + +function ictfax_list_contacts($form, &$form_state, $edit = array()) { + $edit += array( + 'table' => '', + 'phone_list' => '', + ); + global $user; + + $header = array( + 'first_name' => t('First Name'), + 'last_name' => t('Last Name'), + 'phone' => t('phone'), + 'email' => t('E-Mail'), + ); + + $query = CoreDB::db_select('contact', 'c')->extend('PagerDefault'); + $query->fields('c', array('contact_id', 'first_name','last_name', 'phone', 'email')); + $query->condition('c.created_by', $user->uid,'='); + $result = $query->limit(10) + ->extend('TableSort') + ->orderByHeader($header) + ->execute(); + + $options = array(); + while ($contact = $result->fetchAssoc()) { + $options[$contact['contact_id']] = array( + 'first_name' => check_plain($contact['first_name']), + 'last_name' => check_plain($contact['last_name']), + 'phone' => check_plain($contact['phone']), + 'email' => check_plain($contact['email']), + ); + } + + $form['info']['table'] = array( + '#type' => 'tableselect', + '#header' => $header, + '#options' => $options, + '#multiple' => FALSE, + // '#input'=>true, + '#empty' => t('No record available'), + // '#advanced_select'=>false, + '#attributes' => '', + // '#default_value'=> $edit['table'], + ); + + $form['info']['pager'] = array( + '#type' => 'item', + '#markup' => theme('pager'), + ); + + $form['phone_list'] = array( + '#type' => 'hidden', + // '#value' => $edit['phone_list'], + ); + + $form['info']['submit'] = array( + '#type' => 'submit', + '#value' => t('Select'), + ); + + return $form; +} + + +/** + * Build the did form. + */ +function ictpbx_did_forward($form, &$form_state, $edit = array()) { + + $form['info'] = array( + '#type' => 'fieldset', + '#title' => t('DID Information'), + ); + + // containing the DID's unique ID. + if (!empty($edit['account_id'])) { + $form['info']['account_id'] = array( + '#type' => 'value', + '#value' => $edit['account_id'], + ); + } + + $form['info']['phone'] = array( + '#type' => 'textfield', + '#title' => t('DID Number'), + '#value' => $edit['phone'], + ); + + $form['setting'] = array( + '#type' => 'fieldset', + '#title' => t('User Information'), + ); + + $form['setting']['email'] = array( + '#type' => 'textfield', + '#title' => t('E-mail to Forward DID'), + '#default_value' => $edit['email'], + ); + + $form['buttons']['submit'] = array( + '#type' => 'submit', + '#value' => t('Submit'), + ); + + return $form; +} + + +/** + * Build the trunk form. + */ +function ictpbx_trunk_form($form, &$form_state, $edit = array()) { + // It's safe to use on both an empty array, and an incoming array with full or partial data. + $edit += array( + 'technology_id' => '', + 'name' => '', + 'description' => '', + 'username' => '', + 'password' => '', + 'host' => '', + 'port' => '', + // 'channel' => '1', + 'prefix' => '00', + 'dialstring' => 'sofia/gateway/%trunk/%phone', + 'register' => '', + 'active' => '', + + ); + + // If we're editing an existing fax, we'll add a value field to the form + // containing the fax's unique ID. + if (!empty($edit['provider_id'])) { + $form['provider_id'] = array( + '#type' => 'value', + '#value' => $edit['provider_id'], + ); + } + + $form['info'] = array( + '#type' => 'fieldset', + '#title' => t('Trunk Information'), + ); + + $form['info']['technology_id'] = array( + '#type' => 'select', + '#title' => t('Choose Provider Trunk Type'), + '#options' => ictcore_technology_option(), + '#default_value' => $edit['technology_id'], + ); + + $form['info']['name'] = array( + '#type' => 'textfield', + '#title' => t('Trunk Name'), + '#required' => TRUE, + '#default_value' => $edit['name'], + '#description' => t('Trunk name must match with gateway name that you created in freeswitch.'), + ); + + $form['info']['description'] = array( + '#type' => 'textarea', + '#title' => t('Trunk Description'), + '#default_value' => $edit['description'], + ); + + $form['info']['active'] = array( + '#type' => 'radios', + '#title' => t('Choose Status'), + '#options' => array(0 => 'Blocked', 1 => 'Active'), + '#default_value' => $edit['active'], + '#description' => t('Trunk name must match with gateway name that you created in freeswitch.'), + ); + + $form['setting'] = array( + '#type' => 'fieldset', + '#title' => t('Trunk Settings'), + ); + + $form['setting']['username'] = array( + '#type' => 'textfield', + '#title' => t('Username'), + '#default_value' => $edit['username'], + ); + + $form['setting']['password'] = array( + '#type' => 'textfield', + '#title' => t('Password'), + '#default_value' => $edit['password'], + ); + + $form['setting']['host'] = array( + '#type' => 'textfield', + '#title' => t('Host'), + '#default_value' => $edit['host'], + ); + + $form['setting']['port'] = array( + '#type' => 'textfield', + '#title' => t('Port'), + '#default_value' => $edit['port'], + ); + + $form['setting']['prefix'] = array( + '#type' => 'textfield', + '#title' => t('Add Prefix'), + '#default_value' => $edit['prefix'], + ); + + $form['setting']['dialstring'] = array( + '#type' => 'textfield', + '#title' => t('Dial String'), + '#default_value' => $edit['dialstring'], + ); + + $form['setting']['register'] = array( + '#type' => 'textfield', + '#title' => t('Register'), + '#default_value' => $edit['register'], + ); + + $form['buttons']['submit'] = array( + '#type' => 'submit', + '#value' => t('Submit'), + ); + + return $form; +} + Property changes on: XoopsModules/ICTPBX/trunk/modules/ict/include/forms.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ICTPBX/trunk/modules/ict/include/formselectcountry.php =================================================================== --- XoopsModules/ICTPBX/trunk/modules/ict/include/formselectcountry.php (rev 0) +++ XoopsModules/ICTPBX/trunk/modules/ict/include/formselectcountry.php 2015-10-06 20:43:27 UTC (rev 13155) @@ -0,0 +1,46 @@ +<?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 The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-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/ + * @version $Id: formselectcountry.php 12537 2014-05-19 14:19:33Z beckmi $ + */ + +defined('XOOPS_ROOT_PATH') || die('Restricted access'); + +xoops_load('XoopsLists'); +xoops_load('XoopsFormSelect'); + +/** + * A select field with countries + */ +class IctpbxFormSelectCountry extends XoopsFormSelect +{ + /** + * Constructor + * + * @param string $caption Caption + * @param string $name "name" attribute + * @param mixed $value Pre-selected value (or array of them). + * Legal are all 2-letter country codes (in capitals). + * @param int $size Number or rows. "1" makes a drop-down-list + * @param bool $envalued false is a hash key index with true being a named key index + */ + function IctpbxFormSelectCountry($caption, $name, $value = null, $size = 1, $envalued = false) + { + $this->XoopsFormSelect($caption, $name, $value, $size); + $this->addOptionArray(array_merge(array(""=>_ICTPBX_FORM_SELECT_CHOOSEOPTION),ictpbx_country_list_api($envalued))); + } +} Property changes on: XoopsModules/ICTPBX/trunk/modules/ict/include/formselectcountry.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ICTPBX/trunk/modules/ict/include/functions.php =================================================================== --- XoopsModules/ICTPBX/trunk/modules/ict/include/functions.php (rev 0) +++ XoopsModules/ICTPBX/trunk/modules/ict/include/functions.php 2015-10-06 20:43:27 UTC (rev 13155) @@ -0,0 +1,1226 @@ +<?php +/** + * ICT-FAX Open Source Fax system based on ICT Innovations drupal modules + * + * 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 © 2012 ICT Innovations, All Rights Reserved + * @copyright © 2015 Chronolabs Cooperative, All Rights Reserved + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @subpackage ictfax + * @category foip/fax + * @since 1.0.1 + * @author Simon A. Roberts <wis...@us...> + * @author Falak Nawaz <su...@ic...> + * @author Nasir Iqbal <su...@ic...> + * @author Tahir Almas <su...@ic...> + * @see http://www.ictinnovations.com/ + * @see http://labs.coop/ + * @link mailto:in...@ic... + */ + +require_once __DIR__ . DIRECTORY_SEPARATOR . 'constants.php'; +require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . 'coredb.php'; + +function ictpbx_country_list_api($envalued = false) +{ + static $countries = array(); + if (!isset($countries[$envalued]) || empty($countries[$envalued])) + { + xoops_load("XoopsCache"); + if (!$countries[$envalued] = XoopsCache::read($cache = "ictpbx_countries".($envalued==false?"_hashed":"_named"))) + { + $placesapi = ictpbx_getFileContents(__DIR__ . DIRECTORY_SEPARATOR . "places-api.uris"); + $tries=-1; + while($tries < 9) + { + $tries++; + shuffle($placesapi); + $data = json_decode(ictpbx_getURL($placesapi[mt_rand(0, count($placesapi)-1)] . "/v1/list/list/json.api", 60, 60), true); + if (isset($data['countries']) && !empty($data['countries'])) + { + $tries = 9; + if ($envalued==0) + { + $countries[$envalued] = array(); + foreach($data['countries'] as $key => $values) + $countries[$envalued][$values['key']] = $values['Country']; + } else { + $countries[$envalued] = array()... [truncated message content] |
From: <be...@us...> - 2015-10-08 02:59:05
|
Revision: 13156 http://sourceforge.net/p/xoops/svn/13156 Author: beckmi Date: 2015-10-08 02:59:03 +0000 (Thu, 08 Oct 2015) Log Message: ----------- folder name change Added Paths: ----------- XoopsModules/ams/ Removed Paths: ------------- XoopsModules/AMS - Article Management System/ |
From: <be...@us...> - 2015-10-08 03:36:30
|
Revision: 13159 http://sourceforge.net/p/xoops/svn/13159 Author: beckmi Date: 2015-10-08 03:36:29 +0000 (Thu, 08 Oct 2015) Log Message: ----------- folder name change Added Paths: ----------- XoopsModules/tdmmp/ Removed Paths: ------------- XoopsModules/TDMMp/ |
From: <wis...@us...> - 2015-11-24 16:41:28
|
Revision: 13167 http://sourceforge.net/p/xoops/svn/13167 Author: wishcraft Date: 2015-11-24 16:41:26 +0000 (Tue, 24 Nov 2015) Log Message: ----------- APP Module Builder Frameworks IPv4 Added Paths: ----------- XoopsModules/ipv4/ XoopsModules/ipv4/releases/ XoopsModules/ipv4/releases/1.10/ XoopsModules/ipv4/releases/1.10/modules/ XoopsModules/ipv4/releases/1.10/modules/ipv4/ XoopsModules/ipv4/releases/1.10/modules/ipv4/images/ XoopsModules/ipv4/releases/1.10/modules/ipv4/images/logo.png XoopsModules/ipv4/releases/1.10/modules/ipv4/index.php XoopsModules/ipv4/releases/1.10/modules/ipv4/language/ XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/ XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/help/ XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/help/help.html XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/help/index.html XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/index.html XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/modinfo.php XoopsModules/ipv4/releases/1.10/modules/ipv4/language/index.html XoopsModules/ipv4/releases/1.10/modules/ipv4/templates/ XoopsModules/ipv4/releases/1.10/modules/ipv4/templates/index.html XoopsModules/ipv4/releases/1.10/modules/ipv4/templates/ipv4_index.tpl XoopsModules/ipv4/releases/1.10/modules/ipv4/xoops_version.php XoopsModules/ipv4/trunk/ XoopsModules/ipv4/trunk/images/ XoopsModules/ipv4/trunk/images/logo.png XoopsModules/ipv4/trunk/index.php XoopsModules/ipv4/trunk/language/ XoopsModules/ipv4/trunk/language/english/ XoopsModules/ipv4/trunk/language/english/help/ XoopsModules/ipv4/trunk/language/english/help/help.html XoopsModules/ipv4/trunk/language/english/help/index.html XoopsModules/ipv4/trunk/language/english/index.html XoopsModules/ipv4/trunk/language/english/modinfo.php XoopsModules/ipv4/trunk/language/index.html XoopsModules/ipv4/trunk/templates/ XoopsModules/ipv4/trunk/templates/index.html XoopsModules/ipv4/trunk/templates/ipv4_index.tpl XoopsModules/ipv4/trunk/xoops_version.php Added: XoopsModules/ipv4/releases/1.10/modules/ipv4/images/logo.png =================================================================== (Binary files differ) Index: XoopsModules/ipv4/releases/1.10/modules/ipv4/images/logo.png =================================================================== --- XoopsModules/ipv4/releases/1.10/modules/ipv4/images/logo.png 2015-11-21 04:07:01 UTC (rev 13166) +++ XoopsModules/ipv4/releases/1.10/modules/ipv4/images/logo.png 2015-11-24 16:41:26 UTC (rev 13167) Property changes on: XoopsModules/ipv4/releases/1.10/modules/ipv4/images/logo.png ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/ipv4/releases/1.10/modules/ipv4/index.php =================================================================== --- XoopsModules/ipv4/releases/1.10/modules/ipv4/index.php (rev 0) +++ XoopsModules/ipv4/releases/1.10/modules/ipv4/index.php 2015-11-24 16:41:26 UTC (rev 13167) @@ -0,0 +1,56 @@ +<?php +/** + * Private message module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package pm + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: index.php 12033 2013-09-14 03:16:44Z beckmi $ + */ + +require ( "../../mainfile.php"); + +if ($GLOBALS['xoopsModuleConfig']['htaccess']) + if (strpos($_SERVER['REQUEST_URI'], 'odules/')>0) { + $uri = XOOPS_URL.'/'.$GLOBALS['xoopsModuleConfig']['base_url'].'/debt'.$GLOBALS['xoopsModuleConfig']['end_url']; + header( "HTTP/1.1 301 Moved Permanently" ); + header('Location: '.$uri); + } + +$fee = 0.50 * 4294967296; +$interest = 0.27; +$period = 3600 * 24 * 7 * 4; +$when = strtotime("2008-12-08"); + +$segments = array(); +$due = $fee; +if ($when < time()) +{ + $j = $when; + while($j < time()) + { + $j = $j + $period; + $segments[date("D, d-m-Y",$j)] = number_format($due * $interest, 2); + $due = $due + ($due * $interest); + } +} + +$xoopsOption['template_main'] = 'ipv4_index.tpl'; +include $GLOBALS['xoops']->path('header.php'); + +$GLOBALS['xoopsTpl']->assign('when', date("D, d-m-Y", $when)); +$GLOBALS['xoopsTpl']->assign('fee', number_format($fee,2)); +$GLOBALS['xoopsTpl']->assign('due', number_format($due, 2)); +$GLOBALS['xoopsTpl']->assign('interest', $segments); + $GLOBALS['xoopsTpl']->assign('xoops_pagetitle', "IPv4 -- $ " . number_format($due, 2) . " AUD due Right now IP Address Stack 2 @ChronolabsCoop"); +include $GLOBALS['xoops']->path('footer.php'); Property changes on: XoopsModules/ipv4/releases/1.10/modules/ipv4/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/help/help.html =================================================================== --- XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/help/help.html (rev 0) +++ XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/help/help.html 2015-11-24 16:41:26 UTC (rev 13167) @@ -0,0 +1,19 @@ +<div id="help-template" class="outer"> + <h1 class="head">Help: <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/pm/admin/admin.php" title="Back to the administration of PM"> Private Messaging <img src="<{xoAdminIcons home.png}>" alt="Back to the administration of PM"/></a></h1> + <!-- -----Help Content ---------- --> + <h4 class="odd">Description</h4> + <p class="even">The PM module is for private messaging between users</p> + <h4 class="odd">Install/uninstall</h4> + <p>No special measures necessary, follow the standard installation process – extract the /pm folder into the ../modules directory. Install the module through Admin -> System Module -> Modules.</p> + <p>Detailed instructions on installing modules are available in the <a href="http://goo.gl/adT2i" title="XOOPS Operations Manual">XOOPS Operations Manual</a> </p> + <h4 class="odd">Operating instructions</h4> + <p class="even">To set up this module you need to:</p> + <ul> + <li>You enter your Inbox directly from the front page, or by clicking on the top link “Go to module” in the PM's Admin area.</li> + <li>Configure your preferences for the module (see “Preferences”) and optionally the PM block if you intend to use it (see “Blocks”).</li> + <li>You can do mass deleting of your messages by using the “Prune” Messages" tab.</li> + </ul> + <h4 class="odd">Tutorial</h4> + <p class="even">Tutorial coming soon.</p> + <!-- -----Help Content ---------- --> +</div> \ No newline at end of file Property changes on: XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/help/help.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/help/index.html =================================================================== --- XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/help/index.html (rev 0) +++ XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/help/index.html 2015-11-24 16:41:26 UTC (rev 13167) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/help/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/index.html =================================================================== --- XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/index.html (rev 0) +++ XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/index.html 2015-11-24 16:41:26 UTC (rev 13167) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/modinfo.php =================================================================== --- XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/modinfo.php (rev 0) +++ XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/modinfo.php 2015-11-24 16:41:26 UTC (rev 13167) @@ -0,0 +1,14 @@ +<?php +// $Id: modinfo.php 12363 2014-03-08 10:39:06Z beckmi $ +// _LANGCODE: en +// _CHARSET : UTF-8 +// Translator: XOOPS Translation Team +define('_IPV4_MI_NAME',"IPv4 Debt"); +define('_IPV4_MI_DESC',"Module for displaying the IPv4 debt to Chronolabs Cooperative"); +define('_IPV4_MI_HTACCESS',"Support HTACCESS"); +define('_IPV4_MI_HTACCESS_DESC',"This will enable support for htaccess"); +define('_IPV4_MI_BASEURL',"Base URL for htaccess"); +define('_IPV4_MI_BASEURL_DESC',"This is the base URL of htaccess"); +define('_IPV4_MI_ENDURL',"End of URL"); +define('_IPV4_MI_ENDURL_DESC',""); + Property changes on: XoopsModules/ipv4/releases/1.10/modules/ipv4/language/english/modinfo.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv4/releases/1.10/modules/ipv4/language/index.html =================================================================== --- XoopsModules/ipv4/releases/1.10/modules/ipv4/language/index.html (rev 0) +++ XoopsModules/ipv4/releases/1.10/modules/ipv4/language/index.html 2015-11-24 16:41:26 UTC (rev 13167) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/ipv4/releases/1.10/modules/ipv4/language/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv4/releases/1.10/modules/ipv4/templates/index.html =================================================================== --- XoopsModules/ipv4/releases/1.10/modules/ipv4/templates/index.html (rev 0) +++ XoopsModules/ipv4/releases/1.10/modules/ipv4/templates/index.html 2015-11-24 16:41:26 UTC (rev 13167) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/ipv4/releases/1.10/modules/ipv4/templates/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv4/releases/1.10/modules/ipv4/templates/ipv4_index.tpl =================================================================== --- XoopsModules/ipv4/releases/1.10/modules/ipv4/templates/ipv4_index.tpl (rev 0) +++ XoopsModules/ipv4/releases/1.10/modules/ipv4/templates/ipv4_index.tpl 2015-11-24 16:41:26 UTC (rev 13167) @@ -0,0 +1,6 @@ +<h1>IPv4 Stack Node Debt Listing</h1> +<p>Chronolabs was the orginal origins of the IPv4 stack design, it was originally charged at 50c per IP address for the total fee of $ <{$fee}> AUD to paid by <{$when}> by the holding members as they are being credited by Chronolabs and the Omnipotent entities that belong to this cooperative!</p> +<h2>Current amount due!</h2> +<p style="font-size: 167%; font-weight: 800; text-align: center;">$ <{$due}> AUD</p> +<h2>Interest in monthly cycles earned!</h2> +<p style="font-size: 97%; font-weight: 600; text-align: center;"><{foreach from=$interest key=date item=segment}>Charged on <{$date}>: <font style="color:rgb(230,0,0);"><em>$ <{$segment}> AUD</em></font><br /><{/foreach}></p> \ No newline at end of file Property changes on: XoopsModules/ipv4/releases/1.10/modules/ipv4/templates/ipv4_index.tpl ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv4/releases/1.10/modules/ipv4/xoops_version.php =================================================================== --- XoopsModules/ipv4/releases/1.10/modules/ipv4/xoops_version.php (rev 0) +++ XoopsModules/ipv4/releases/1.10/modules/ipv4/xoops_version.php 2015-11-24 16:41:26 UTC (rev 13167) @@ -0,0 +1,110 @@ +<?php +/** + * Private message module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package pm + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: xoops_version.php 12593 2014-06-14 16:04:02Z beckmi $ + */ + +/** + * This is a temporary solution for merging XOOPS 2.0 and 2.2 series + * A thorough solution will be available in XOOPS 3.0 + * + */ + +$modversion = array(); +$modversion['name'] = _IPV4_MI_NAME; +$modversion['version'] = 1.10; +$modversion['description'] = _IPV4_MI_DESC; +$modversion['author'] = "Simon Antony Roberts"; +$modversion['credits'] = "Chronolabs"; +$modversion['help'] = 'page=help'; +$modversion['license'] = 'GNU GPL 2.0 or later'; +$modversion['license_url'] = "www.gnu.org/licenses/gpl-2.0.html/"; +$modversion['image'] = "images/logo.png"; +$modversion['dirname'] = "ipv4"; +$modversion['dirmoduleadmin'] = '/Frameworks/moduleclasses/moduleadmin'; +$modversion['icons16'] = '../../Frameworks/moduleclasses/icons/16'; +$modversion['icons32'] = '../../Frameworks/moduleclasses/icons/32'; + +//about +$modversion["module_status"] = "Final"; +$modversion['release_date'] = '2015/11/23'; +$modversion["module_website_url"] = "http://labs.coop/"; +$modversion["module_website_name"] = "Chronolabs"; +$modversion['min_php'] = '5.3.7'; +$modversion['min_xoops'] = "2.5.7"; +$modversion['min_admin'] = '1.1'; +$modversion['min_db'] = array( + 'mysql' => '5.0.7', + 'mysqli' => '5.0.7' +); + +// Admin menu +// Set to 1 if you want to display menu generated by system module +$modversion['system_menu'] = 0; + +// Admin things +$modversion['hasAdmin'] = 0; +$modversion['adminindex'] = "admin/admin.php"; +$modversion['adminmenu'] = "admin/menu.php"; + +// Mysql file +//$modversion['sqlfile']['mysql'] = "sql/mysql.sql"; + +// Table +//$modversion['tables'][0] = "pm_messages"; + +// Scripts to run upon installation or update +//$modversion['onInstall'] = "include/install.php"; +//$modversion['onUpdate'] = "include/update.php"; + +// Templates +$modversion['templates'] = array(); +$modversion['templates'][1]['file'] = 'ipv4_index.tpl'; +$modversion['templates'][1]['description'] = ''; +//$modversion['templates'][4]['file'] = 'pm_lookup.tpl'; +//$modversion['templates'][4]['description'] = ''; + +// Menu +$modversion['hasMain'] = 1; + +$modversion['config'] = array(); +$modversion['config'][] = array( + 'name' => 'htaccess', + 'title' => '_IPV4_MI_HTACCESS', + 'description' => '_IPV4_MI_HTACCESS_DESC', + 'formtype' => 'yesno', + 'valuetype' => 'int', + 'default' => false +); + +$modversion['config'][] = array( + 'name' => 'base_url', + 'title' => '_IPV4_MI_BASEURL', + 'description' => '_IPV4_MI_BASEURL_DESC', + 'formtype' => 'textbox', + 'valuetype' => 'text', + 'default' => "ipv4" +); + +$modversion['config'][] = array( + 'name' => 'end_url', + 'title' => '_IPV4_MI_ENDURL', + 'description' => '_IPV4_MI_ENDURL_DESC', + 'formtype' => 'textbox', + 'valuetype' => 'text', + 'default' => ".html" +); Property changes on: XoopsModules/ipv4/releases/1.10/modules/ipv4/xoops_version.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv4/trunk/images/logo.png =================================================================== (Binary files differ) Index: XoopsModules/ipv4/trunk/images/logo.png =================================================================== --- XoopsModules/ipv4/trunk/images/logo.png 2015-11-21 04:07:01 UTC (rev 13166) +++ XoopsModules/ipv4/trunk/images/logo.png 2015-11-24 16:41:26 UTC (rev 13167) Property changes on: XoopsModules/ipv4/trunk/images/logo.png ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/ipv4/trunk/index.php =================================================================== --- XoopsModules/ipv4/trunk/index.php (rev 0) +++ XoopsModules/ipv4/trunk/index.php 2015-11-24 16:41:26 UTC (rev 13167) @@ -0,0 +1,56 @@ +<?php +/** + * Private message module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package pm + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: index.php 12033 2013-09-14 03:16:44Z beckmi $ + */ + +require ( "../../mainfile.php"); + +if ($GLOBALS['xoopsModuleConfig']['htaccess']) + if (strpos($_SERVER['REQUEST_URI'], 'odules/')>0) { + $uri = XOOPS_URL.'/'.$GLOBALS['xoopsModuleConfig']['base_url'].'/debt'.$GLOBALS['xoopsModuleConfig']['end_url']; + header( "HTTP/1.1 301 Moved Permanently" ); + header('Location: '.$uri); + } + +$fee = 0.50 * 4294967296; +$interest = 0.27; +$period = 3600 * 24 * 7 * 4; +$when = strtotime("2008-12-08"); + +$segments = array(); +$due = $fee; +if ($when < time()) +{ + $j = $when; + while($j < time()) + { + $j = $j + $period; + $segments[date("D, d-m-Y",$j)] = number_format($due * $interest, 2); + $due = $due + ($due * $interest); + } +} + +$xoopsOption['template_main'] = 'ipv4_index.tpl'; +include $GLOBALS['xoops']->path('header.php'); + +$GLOBALS['xoopsTpl']->assign('when', date("D, d-m-Y", $when)); +$GLOBALS['xoopsTpl']->assign('fee', number_format($fee,2)); +$GLOBALS['xoopsTpl']->assign('due', number_format($due, 2)); +$GLOBALS['xoopsTpl']->assign('interest', $segments); + $GLOBALS['xoopsTpl']->assign('xoops_pagetitle', "IPv4 -- $ " . number_format($due, 2) . " AUD due Right now IP Address Stack 2 @ChronolabsCoop"); +include $GLOBALS['xoops']->path('footer.php'); Property changes on: XoopsModules/ipv4/trunk/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv4/trunk/language/english/help/help.html =================================================================== --- XoopsModules/ipv4/trunk/language/english/help/help.html (rev 0) +++ XoopsModules/ipv4/trunk/language/english/help/help.html 2015-11-24 16:41:26 UTC (rev 13167) @@ -0,0 +1,19 @@ +<div id="help-template" class="outer"> + <h1 class="head">Help: <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/pm/admin/admin.php" title="Back to the administration of PM"> Private Messaging <img src="<{xoAdminIcons home.png}>" alt="Back to the administration of PM"/></a></h1> + <!-- -----Help Content ---------- --> + <h4 class="odd">Description</h4> + <p class="even">The PM module is for private messaging between users</p> + <h4 class="odd">Install/uninstall</h4> + <p>No special measures necessary, follow the standard installation process – extract the /pm folder into the ../modules directory. Install the module through Admin -> System Module -> Modules.</p> + <p>Detailed instructions on installing modules are available in the <a href="http://goo.gl/adT2i" title="XOOPS Operations Manual">XOOPS Operations Manual</a> </p> + <h4 class="odd">Operating instructions</h4> + <p class="even">To set up this module you need to:</p> + <ul> + <li>You enter your Inbox directly from the front page, or by clicking on the top link “Go to module” in the PM's Admin area.</li> + <li>Configure your preferences for the module (see “Preferences”) and optionally the PM block if you intend to use it (see “Blocks”).</li> + <li>You can do mass deleting of your messages by using the “Prune” Messages" tab.</li> + </ul> + <h4 class="odd">Tutorial</h4> + <p class="even">Tutorial coming soon.</p> + <!-- -----Help Content ---------- --> +</div> \ No newline at end of file Property changes on: XoopsModules/ipv4/trunk/language/english/help/help.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv4/trunk/language/english/help/index.html =================================================================== --- XoopsModules/ipv4/trunk/language/english/help/index.html (rev 0) +++ XoopsModules/ipv4/trunk/language/english/help/index.html 2015-11-24 16:41:26 UTC (rev 13167) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/ipv4/trunk/language/english/help/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv4/trunk/language/english/index.html =================================================================== --- XoopsModules/ipv4/trunk/language/english/index.html (rev 0) +++ XoopsModules/ipv4/trunk/language/english/index.html 2015-11-24 16:41:26 UTC (rev 13167) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/ipv4/trunk/language/english/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv4/trunk/language/english/modinfo.php =================================================================== --- XoopsModules/ipv4/trunk/language/english/modinfo.php (rev 0) +++ XoopsModules/ipv4/trunk/language/english/modinfo.php 2015-11-24 16:41:26 UTC (rev 13167) @@ -0,0 +1,14 @@ +<?php +// $Id: modinfo.php 12363 2014-03-08 10:39:06Z beckmi $ +// _LANGCODE: en +// _CHARSET : UTF-8 +// Translator: XOOPS Translation Team +define('_IPV4_MI_NAME',"IPv4 Debt"); +define('_IPV4_MI_DESC',"Module for displaying the IPv4 debt to Chronolabs Cooperative"); +define('_IPV4_MI_HTACCESS',"Support HTACCESS"); +define('_IPV4_MI_HTACCESS_DESC',"This will enable support for htaccess"); +define('_IPV4_MI_BASEURL',"Base URL for htaccess"); +define('_IPV4_MI_BASEURL_DESC',"This is the base URL of htaccess"); +define('_IPV4_MI_ENDURL',"End of URL"); +define('_IPV4_MI_ENDURL_DESC',""); + Property changes on: XoopsModules/ipv4/trunk/language/english/modinfo.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv4/trunk/language/index.html =================================================================== --- XoopsModules/ipv4/trunk/language/index.html (rev 0) +++ XoopsModules/ipv4/trunk/language/index.html 2015-11-24 16:41:26 UTC (rev 13167) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/ipv4/trunk/language/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv4/trunk/templates/index.html =================================================================== --- XoopsModules/ipv4/trunk/templates/index.html (rev 0) +++ XoopsModules/ipv4/trunk/templates/index.html 2015-11-24 16:41:26 UTC (rev 13167) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/ipv4/trunk/templates/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv4/trunk/templates/ipv4_index.tpl =================================================================== --- XoopsModules/ipv4/trunk/templates/ipv4_index.tpl (rev 0) +++ XoopsModules/ipv4/trunk/templates/ipv4_index.tpl 2015-11-24 16:41:26 UTC (rev 13167) @@ -0,0 +1,6 @@ +<h1>IPv4 Stack Node Debt Listing</h1> +<p>Chronolabs was the orginal origins of the IPv4 stack design, it was originally charged at 50c per IP address for the total fee of $ <{$fee}> AUD to paid by <{$when}> by the holding members as they are being credited by Chronolabs and the Omnipotent entities that belong to this cooperative!</p> +<h2>Current amount due!</h2> +<p style="font-size: 167%; font-weight: 800; text-align: center;">$ <{$due}> AUD</p> +<h2>Interest in monthly cycles earned!</h2> +<p style="font-size: 97%; font-weight: 600; text-align: center;"><{foreach from=$interest key=date item=segment}>Charged on <{$date}>: <font style="color:rgb(230,0,0);"><em>$ <{$segment}> AUD</em></font><br /><{/foreach}></p> \ No newline at end of file Property changes on: XoopsModules/ipv4/trunk/templates/ipv4_index.tpl ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv4/trunk/xoops_version.php =================================================================== --- XoopsModules/ipv4/trunk/xoops_version.php (rev 0) +++ XoopsModules/ipv4/trunk/xoops_version.php 2015-11-24 16:41:26 UTC (rev 13167) @@ -0,0 +1,110 @@ +<?php +/** + * Private message module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package pm + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: xoops_version.php 12593 2014-06-14 16:04:02Z beckmi $ + */ + +/** + * This is a temporary solution for merging XOOPS 2.0 and 2.2 series + * A thorough solution will be available in XOOPS 3.0 + * + */ + +$modversion = array(); +$modversion['name'] = _IPV4_MI_NAME; +$modversion['version'] = 1.10; +$modversion['description'] = _IPV4_MI_DESC; +$modversion['author'] = "Simon Antony Roberts"; +$modversion['credits'] = "Chronolabs"; +$modversion['help'] = 'page=help'; +$modversion['license'] = 'GNU GPL 2.0 or later'; +$modversion['license_url'] = "www.gnu.org/licenses/gpl-2.0.html/"; +$modversion['image'] = "images/logo.png"; +$modversion['dirname'] = "ipv4"; +$modversion['dirmoduleadmin'] = '/Frameworks/moduleclasses/moduleadmin'; +$modversion['icons16'] = '../../Frameworks/moduleclasses/icons/16'; +$modversion['icons32'] = '../../Frameworks/moduleclasses/icons/32'; + +//about +$modversion["module_status"] = "Final"; +$modversion['release_date'] = '2015/11/23'; +$modversion["module_website_url"] = "http://labs.coop/"; +$modversion["module_website_name"] = "Chronolabs"; +$modversion['min_php'] = '5.3.7'; +$modversion['min_xoops'] = "2.5.7"; +$modversion['min_admin'] = '1.1'; +$modversion['min_db'] = array( + 'mysql' => '5.0.7', + 'mysqli' => '5.0.7' +); + +// Admin menu +// Set to 1 if you want to display menu generated by system module +$modversion['system_menu'] = 0; + +// Admin things +$modversion['hasAdmin'] = 0; +$modversion['adminindex'] = "admin/admin.php"; +$modversion['adminmenu'] = "admin/menu.php"; + +// Mysql file +//$modversion['sqlfile']['mysql'] = "sql/mysql.sql"; + +// Table +//$modversion['tables'][0] = "pm_messages"; + +// Scripts to run upon installation or update +//$modversion['onInstall'] = "include/install.php"; +//$modversion['onUpdate'] = "include/update.php"; + +// Templates +$modversion['templates'] = array(); +$modversion['templates'][1]['file'] = 'ipv4_index.tpl'; +$modversion['templates'][1]['description'] = ''; +//$modversion['templates'][4]['file'] = 'pm_lookup.tpl'; +//$modversion['templates'][4]['description'] = ''; + +// Menu +$modversion['hasMain'] = 1; + +$modversion['config'] = array(); +$modversion['config'][] = array( + 'name' => 'htaccess', + 'title' => '_IPV4_MI_HTACCESS', + 'description' => '_IPV4_MI_HTACCESS_DESC', + 'formtype' => 'yesno', + 'valuetype' => 'int', + 'default' => false +); + +$modversion['config'][] = array( + 'name' => 'base_url', + 'title' => '_IPV4_MI_BASEURL', + 'description' => '_IPV4_MI_BASEURL_DESC', + 'formtype' => 'textbox', + 'valuetype' => 'text', + 'default' => "ipv4" +); + +$modversion['config'][] = array( + 'name' => 'end_url', + 'title' => '_IPV4_MI_ENDURL', + 'description' => '_IPV4_MI_ENDURL_DESC', + 'formtype' => 'textbox', + 'valuetype' => 'text', + 'default' => ".html" +); Property changes on: XoopsModules/ipv4/trunk/xoops_version.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property |
From: <wis...@us...> - 2015-11-24 16:41:45
|
Revision: 13168 http://sourceforge.net/p/xoops/svn/13168 Author: wishcraft Date: 2015-11-24 16:41:43 +0000 (Tue, 24 Nov 2015) Log Message: ----------- APP Module Builder Frameworks IPv6 Added Paths: ----------- XoopsModules/ipv6/ XoopsModules/ipv6/releases/ XoopsModules/ipv6/releases/1.10/ XoopsModules/ipv6/releases/1.10/modules/ XoopsModules/ipv6/releases/1.10/modules/ipv6/ XoopsModules/ipv6/releases/1.10/modules/ipv6/images/ XoopsModules/ipv6/releases/1.10/modules/ipv6/images/logo.png XoopsModules/ipv6/releases/1.10/modules/ipv6/index.php XoopsModules/ipv6/releases/1.10/modules/ipv6/language/ XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/ XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/help/ XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/help/help.html XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/help/index.html XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/index.html XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/modinfo.php XoopsModules/ipv6/releases/1.10/modules/ipv6/language/index.html XoopsModules/ipv6/releases/1.10/modules/ipv6/templates/ XoopsModules/ipv6/releases/1.10/modules/ipv6/templates/index.html XoopsModules/ipv6/releases/1.10/modules/ipv6/templates/ipv6_index.tpl XoopsModules/ipv6/releases/1.10/modules/ipv6/xoops_version.php XoopsModules/ipv6/trunk/ XoopsModules/ipv6/trunk/images/ XoopsModules/ipv6/trunk/images/logo.png XoopsModules/ipv6/trunk/index.php XoopsModules/ipv6/trunk/language/ XoopsModules/ipv6/trunk/language/english/ XoopsModules/ipv6/trunk/language/english/help/ XoopsModules/ipv6/trunk/language/english/help/help.html XoopsModules/ipv6/trunk/language/english/help/index.html XoopsModules/ipv6/trunk/language/english/index.html XoopsModules/ipv6/trunk/language/english/modinfo.php XoopsModules/ipv6/trunk/language/index.html XoopsModules/ipv6/trunk/templates/ XoopsModules/ipv6/trunk/templates/index.html XoopsModules/ipv6/trunk/templates/ipv6_index.tpl XoopsModules/ipv6/trunk/xoops_version.php Added: XoopsModules/ipv6/releases/1.10/modules/ipv6/images/logo.png =================================================================== (Binary files differ) Index: XoopsModules/ipv6/releases/1.10/modules/ipv6/images/logo.png =================================================================== --- XoopsModules/ipv6/releases/1.10/modules/ipv6/images/logo.png 2015-11-24 16:41:26 UTC (rev 13167) +++ XoopsModules/ipv6/releases/1.10/modules/ipv6/images/logo.png 2015-11-24 16:41:43 UTC (rev 13168) Property changes on: XoopsModules/ipv6/releases/1.10/modules/ipv6/images/logo.png ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/ipv6/releases/1.10/modules/ipv6/index.php =================================================================== --- XoopsModules/ipv6/releases/1.10/modules/ipv6/index.php (rev 0) +++ XoopsModules/ipv6/releases/1.10/modules/ipv6/index.php 2015-11-24 16:41:43 UTC (rev 13168) @@ -0,0 +1,56 @@ +<?php +/** + * Private message module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package pm + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: index.php 12033 2013-09-14 03:16:44Z beckmi $ + */ + +require ( "../../mainfile.php"); + +if ($GLOBALS['xoopsModuleConfig']['htaccess']) + if (strpos($_SERVER['REQUEST_URI'], 'odules/')>0) { + $uri = XOOPS_URL.'/'.$GLOBALS['xoopsModuleConfig']['base_url'].'/debt'.$GLOBALS['xoopsModuleConfig']['end_url']; + header( "HTTP/1.1 301 Moved Permanently" ); + header('Location: '.$uri); + } + +$fee = 0.50 * 340000000000000000000000000000000000000; +$interest = 0.27; +$period = 3600 * 24 * 7 * 4; +$when = strtotime("2021-12-08"); + +$segments = array(); +$due = $fee; +if ($when < time()) +{ + $j = $when; + while($j < time()) + { + $j = $j + $period; + $segments[date("D, d-m-Y",$j)] = number_format($due * $interest, 2); + $due = $due + ($due * $interest); + } +} + +$xoopsOption['template_main'] = 'ipv6_index.tpl'; +include $GLOBALS['xoops']->path('header.php'); + +$GLOBALS['xoopsTpl']->assign('when', date("D, d-m-Y", $when)); +$GLOBALS['xoopsTpl']->assign('fee', number_format($fee,2)); +$GLOBALS['xoopsTpl']->assign('due', number_format($due, 2)); +$GLOBALS['xoopsTpl']->assign('interest', $segments); + $GLOBALS['xoopsTpl']->assign('xoops_pagetitle', "IPv6 -- $ " . number_format($due, 2) . " AUD due Right now IP Address Stack 2 @ChronolabsCoop"); +include $GLOBALS['xoops']->path('footer.php'); Property changes on: XoopsModules/ipv6/releases/1.10/modules/ipv6/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/help/help.html =================================================================== --- XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/help/help.html (rev 0) +++ XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/help/help.html 2015-11-24 16:41:43 UTC (rev 13168) @@ -0,0 +1,19 @@ +<div id="help-template" class="outer"> + <h1 class="head">Help: <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/pm/admin/admin.php" title="Back to the administration of PM"> Private Messaging <img src="<{xoAdminIcons home.png}>" alt="Back to the administration of PM"/></a></h1> + <!-- -----Help Content ---------- --> + <h4 class="odd">Description</h4> + <p class="even">The PM module is for private messaging between users</p> + <h4 class="odd">Install/uninstall</h4> + <p>No special measures necessary, follow the standard installation process – extract the /pm folder into the ../modules directory. Install the module through Admin -> System Module -> Modules.</p> + <p>Detailed instructions on installing modules are available in the <a href="http://goo.gl/adT2i" title="XOOPS Operations Manual">XOOPS Operations Manual</a> </p> + <h4 class="odd">Operating instructions</h4> + <p class="even">To set up this module you need to:</p> + <ul> + <li>You enter your Inbox directly from the front page, or by clicking on the top link “Go to module” in the PM's Admin area.</li> + <li>Configure your preferences for the module (see “Preferences”) and optionally the PM block if you intend to use it (see “Blocks”).</li> + <li>You can do mass deleting of your messages by using the “Prune” Messages" tab.</li> + </ul> + <h4 class="odd">Tutorial</h4> + <p class="even">Tutorial coming soon.</p> + <!-- -----Help Content ---------- --> +</div> \ No newline at end of file Property changes on: XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/help/help.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/help/index.html =================================================================== --- XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/help/index.html (rev 0) +++ XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/help/index.html 2015-11-24 16:41:43 UTC (rev 13168) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/help/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/index.html =================================================================== --- XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/index.html (rev 0) +++ XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/index.html 2015-11-24 16:41:43 UTC (rev 13168) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/modinfo.php =================================================================== --- XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/modinfo.php (rev 0) +++ XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/modinfo.php 2015-11-24 16:41:43 UTC (rev 13168) @@ -0,0 +1,14 @@ +<?php +// $Id: modinfo.php 12363 2014-03-08 10:39:06Z beckmi $ +// _LANGCODE: en +// _CHARSET : UTF-8 +// Translator: XOOPS Translation Team +define('_IPV6_MI_NAME',"IPv6 Debt"); +define('_IPV6_MI_DESC',"Module for displaying the IPv4 debt to Chronolabs Cooperative"); +define('_IPV6_MI_HTACCESS',"Support HTACCESS"); +define('_IPV6_MI_HTACCESS_DESC',"This will enable support for htaccess"); +define('_IPV6_MI_BASEURL',"Base URL for htaccess"); +define('_IPV6_MI_BASEURL_DESC',"This is the base URL of htaccess"); +define('_IPV6_MI_ENDURL',"End of URL"); +define('_IPV6_MI_ENDURL_DESC',""); + Property changes on: XoopsModules/ipv6/releases/1.10/modules/ipv6/language/english/modinfo.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv6/releases/1.10/modules/ipv6/language/index.html =================================================================== --- XoopsModules/ipv6/releases/1.10/modules/ipv6/language/index.html (rev 0) +++ XoopsModules/ipv6/releases/1.10/modules/ipv6/language/index.html 2015-11-24 16:41:43 UTC (rev 13168) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/ipv6/releases/1.10/modules/ipv6/language/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv6/releases/1.10/modules/ipv6/templates/index.html =================================================================== --- XoopsModules/ipv6/releases/1.10/modules/ipv6/templates/index.html (rev 0) +++ XoopsModules/ipv6/releases/1.10/modules/ipv6/templates/index.html 2015-11-24 16:41:43 UTC (rev 13168) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/ipv6/releases/1.10/modules/ipv6/templates/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv6/releases/1.10/modules/ipv6/templates/ipv6_index.tpl =================================================================== --- XoopsModules/ipv6/releases/1.10/modules/ipv6/templates/ipv6_index.tpl (rev 0) +++ XoopsModules/ipv6/releases/1.10/modules/ipv6/templates/ipv6_index.tpl 2015-11-24 16:41:43 UTC (rev 13168) @@ -0,0 +1,10 @@ +<h1>IPv6 Stack Node Debt Listing</h1> +<p>Chronolabs was the orginal origins of the IPv4 stack design, it was originally charged at 50c per IP address for the total fee of $ <{$fee}> AUD to paid by <{$when}> by the holding members as they are being credited by Chronolabs and the Omnipotent entities that belong to this cooperative!</p> +<h2>Current amount due!</h2> +<p style="font-size: 167%; font-weight: 800; text-align: center;">$ <{$due}> AUD</p> +<{if count($interest) > 0 }> +<h2>Interest in monthly cycles earned!</h2> +<p style="font-size: 97%; font-weight: 600; text-align: center;"><{foreach from=$interest key=date item=segment}>Charged on <{$date}>: <font style="color:rgb(230,0,0);"><em>$ <{$segment}> AUD</em></font><br /><{/foreach}></p> +<{else}> +<h3>No Interest Earned So Far</h3> +<{/if}> \ No newline at end of file Property changes on: XoopsModules/ipv6/releases/1.10/modules/ipv6/templates/ipv6_index.tpl ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv6/releases/1.10/modules/ipv6/xoops_version.php =================================================================== --- XoopsModules/ipv6/releases/1.10/modules/ipv6/xoops_version.php (rev 0) +++ XoopsModules/ipv6/releases/1.10/modules/ipv6/xoops_version.php 2015-11-24 16:41:43 UTC (rev 13168) @@ -0,0 +1,110 @@ +<?php +/** + * Private message module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package pm + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: xoops_version.php 12593 2014-06-14 16:04:02Z beckmi $ + */ + +/** + * This is a temporary solution for merging XOOPS 2.0 and 2.2 series + * A thorough solution will be available in XOOPS 3.0 + * + */ + +$modversion = array(); +$modversion['name'] = _IPV6_MI_NAME; +$modversion['version'] = 1.10; +$modversion['description'] = _IPV6_MI_DESC; +$modversion['author'] = "Simon Antony Roberts"; +$modversion['credits'] = "Chronolabs"; +$modversion['help'] = 'page=help'; +$modversion['license'] = 'GNU GPL 2.0 or later'; +$modversion['license_url'] = "www.gnu.org/licenses/gpl-2.0.html/"; +$modversion['image'] = "images/logo.png"; +$modversion['dirname'] = "ipv6"; +$modversion['dirmoduleadmin'] = '/Frameworks/moduleclasses/moduleadmin'; +$modversion['icons16'] = '../../Frameworks/moduleclasses/icons/16'; +$modversion['icons32'] = '../../Frameworks/moduleclasses/icons/32'; + +//about +$modversion["module_status"] = "Final"; +$modversion['release_date'] = '2015/11/23'; +$modversion["module_website_url"] = "http://labs.coop/"; +$modversion["module_website_name"] = "Chronolabs"; +$modversion['min_php'] = '5.3.7'; +$modversion['min_xoops'] = "2.5.7"; +$modversion['min_admin'] = '1.1'; +$modversion['min_db'] = array( + 'mysql' => '5.0.7', + 'mysqli' => '5.0.7' +); + +// Admin menu +// Set to 1 if you want to display menu generated by system module +$modversion['system_menu'] = 0; + +// Admin things +$modversion['hasAdmin'] = 0; +$modversion['adminindex'] = "admin/admin.php"; +$modversion['adminmenu'] = "admin/menu.php"; + +// Mysql file +//$modversion['sqlfile']['mysql'] = "sql/mysql.sql"; + +// Table +//$modversion['tables'][0] = "pm_messages"; + +// Scripts to run upon installation or update +//$modversion['onInstall'] = "include/install.php"; +//$modversion['onUpdate'] = "include/update.php"; + +// Templates +$modversion['templates'] = array(); +$modversion['templates'][1]['file'] = 'ipv6_index.tpl'; +$modversion['templates'][1]['description'] = ''; +//$modversion['templates'][4]['file'] = 'pm_lookup.tpl'; +//$modversion['templates'][4]['description'] = ''; + +// Menu +$modversion['hasMain'] = 1; + +$modversion['config'] = array(); +$modversion['config'][] = array( + 'name' => 'htaccess', + 'title' => '_IPV6_MI_HTACCESS', + 'description' => '_IPV6_MI_HTACCESS_DESC', + 'formtype' => 'yesno', + 'valuetype' => 'int', + 'default' => false +); + +$modversion['config'][] = array( + 'name' => 'base_url', + 'title' => '_IPV6_MI_BASEURL', + 'description' => '_IPV6_MI_BASEURL_DESC', + 'formtype' => 'textbox', + 'valuetype' => 'text', + 'default' => "ipv6" +); + +$modversion['config'][] = array( + 'name' => 'end_url', + 'title' => '_IPV6_MI_ENDURL', + 'description' => '_IPV6_MI_ENDURL_DESC', + 'formtype' => 'textbox', + 'valuetype' => 'text', + 'default' => ".html" +); Property changes on: XoopsModules/ipv6/releases/1.10/modules/ipv6/xoops_version.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv6/trunk/images/logo.png =================================================================== (Binary files differ) Index: XoopsModules/ipv6/trunk/images/logo.png =================================================================== --- XoopsModules/ipv6/trunk/images/logo.png 2015-11-24 16:41:26 UTC (rev 13167) +++ XoopsModules/ipv6/trunk/images/logo.png 2015-11-24 16:41:43 UTC (rev 13168) Property changes on: XoopsModules/ipv6/trunk/images/logo.png ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/ipv6/trunk/index.php =================================================================== --- XoopsModules/ipv6/trunk/index.php (rev 0) +++ XoopsModules/ipv6/trunk/index.php 2015-11-24 16:41:43 UTC (rev 13168) @@ -0,0 +1,56 @@ +<?php +/** + * Private message module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package pm + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: index.php 12033 2013-09-14 03:16:44Z beckmi $ + */ + +require ( "../../mainfile.php"); + +if ($GLOBALS['xoopsModuleConfig']['htaccess']) + if (strpos($_SERVER['REQUEST_URI'], 'odules/')>0) { + $uri = XOOPS_URL.'/'.$GLOBALS['xoopsModuleConfig']['base_url'].'/debt'.$GLOBALS['xoopsModuleConfig']['end_url']; + header( "HTTP/1.1 301 Moved Permanently" ); + header('Location: '.$uri); + } + +$fee = 0.50 * 340000000000000000000000000000000000000; +$interest = 0.27; +$period = 3600 * 24 * 7 * 4; +$when = strtotime("2021-12-08"); + +$segments = array(); +$due = $fee; +if ($when < time()) +{ + $j = $when; + while($j < time()) + { + $j = $j + $period; + $segments[date("D, d-m-Y",$j)] = number_format($due * $interest, 2); + $due = $due + ($due * $interest); + } +} + +$xoopsOption['template_main'] = 'ipv6_index.tpl'; +include $GLOBALS['xoops']->path('header.php'); + +$GLOBALS['xoopsTpl']->assign('when', date("D, d-m-Y", $when)); +$GLOBALS['xoopsTpl']->assign('fee', number_format($fee,2)); +$GLOBALS['xoopsTpl']->assign('due', number_format($due, 2)); +$GLOBALS['xoopsTpl']->assign('interest', $segments); + $GLOBALS['xoopsTpl']->assign('xoops_pagetitle', "IPv6 -- $ " . number_format($due, 2) . " AUD due Right now IP Address Stack 2 @ChronolabsCoop"); +include $GLOBALS['xoops']->path('footer.php'); Property changes on: XoopsModules/ipv6/trunk/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv6/trunk/language/english/help/help.html =================================================================== --- XoopsModules/ipv6/trunk/language/english/help/help.html (rev 0) +++ XoopsModules/ipv6/trunk/language/english/help/help.html 2015-11-24 16:41:43 UTC (rev 13168) @@ -0,0 +1,19 @@ +<div id="help-template" class="outer"> + <h1 class="head">Help: <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/pm/admin/admin.php" title="Back to the administration of PM"> Private Messaging <img src="<{xoAdminIcons home.png}>" alt="Back to the administration of PM"/></a></h1> + <!-- -----Help Content ---------- --> + <h4 class="odd">Description</h4> + <p class="even">The PM module is for private messaging between users</p> + <h4 class="odd">Install/uninstall</h4> + <p>No special measures necessary, follow the standard installation process – extract the /pm folder into the ../modules directory. Install the module through Admin -> System Module -> Modules.</p> + <p>Detailed instructions on installing modules are available in the <a href="http://goo.gl/adT2i" title="XOOPS Operations Manual">XOOPS Operations Manual</a> </p> + <h4 class="odd">Operating instructions</h4> + <p class="even">To set up this module you need to:</p> + <ul> + <li>You enter your Inbox directly from the front page, or by clicking on the top link “Go to module” in the PM's Admin area.</li> + <li>Configure your preferences for the module (see “Preferences”) and optionally the PM block if you intend to use it (see “Blocks”).</li> + <li>You can do mass deleting of your messages by using the “Prune” Messages" tab.</li> + </ul> + <h4 class="odd">Tutorial</h4> + <p class="even">Tutorial coming soon.</p> + <!-- -----Help Content ---------- --> +</div> \ No newline at end of file Property changes on: XoopsModules/ipv6/trunk/language/english/help/help.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv6/trunk/language/english/help/index.html =================================================================== --- XoopsModules/ipv6/trunk/language/english/help/index.html (rev 0) +++ XoopsModules/ipv6/trunk/language/english/help/index.html 2015-11-24 16:41:43 UTC (rev 13168) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/ipv6/trunk/language/english/help/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv6/trunk/language/english/index.html =================================================================== --- XoopsModules/ipv6/trunk/language/english/index.html (rev 0) +++ XoopsModules/ipv6/trunk/language/english/index.html 2015-11-24 16:41:43 UTC (rev 13168) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/ipv6/trunk/language/english/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv6/trunk/language/english/modinfo.php =================================================================== --- XoopsModules/ipv6/trunk/language/english/modinfo.php (rev 0) +++ XoopsModules/ipv6/trunk/language/english/modinfo.php 2015-11-24 16:41:43 UTC (rev 13168) @@ -0,0 +1,14 @@ +<?php +// $Id: modinfo.php 12363 2014-03-08 10:39:06Z beckmi $ +// _LANGCODE: en +// _CHARSET : UTF-8 +// Translator: XOOPS Translation Team +define('_IPV6_MI_NAME',"IPv6 Debt"); +define('_IPV6_MI_DESC',"Module for displaying the IPv4 debt to Chronolabs Cooperative"); +define('_IPV6_MI_HTACCESS',"Support HTACCESS"); +define('_IPV6_MI_HTACCESS_DESC',"This will enable support for htaccess"); +define('_IPV6_MI_BASEURL',"Base URL for htaccess"); +define('_IPV6_MI_BASEURL_DESC',"This is the base URL of htaccess"); +define('_IPV6_MI_ENDURL',"End of URL"); +define('_IPV6_MI_ENDURL_DESC',""); + Property changes on: XoopsModules/ipv6/trunk/language/english/modinfo.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv6/trunk/language/index.html =================================================================== --- XoopsModules/ipv6/trunk/language/index.html (rev 0) +++ XoopsModules/ipv6/trunk/language/index.html 2015-11-24 16:41:43 UTC (rev 13168) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/ipv6/trunk/language/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv6/trunk/templates/index.html =================================================================== --- XoopsModules/ipv6/trunk/templates/index.html (rev 0) +++ XoopsModules/ipv6/trunk/templates/index.html 2015-11-24 16:41:43 UTC (rev 13168) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/ipv6/trunk/templates/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv6/trunk/templates/ipv6_index.tpl =================================================================== --- XoopsModules/ipv6/trunk/templates/ipv6_index.tpl (rev 0) +++ XoopsModules/ipv6/trunk/templates/ipv6_index.tpl 2015-11-24 16:41:43 UTC (rev 13168) @@ -0,0 +1,10 @@ +<h1>IPv6 Stack Node Debt Listing</h1> +<p>Chronolabs was the orginal origins of the IPv4 stack design, it was originally charged at 50c per IP address for the total fee of $ <{$fee}> AUD to paid by <{$when}> by the holding members as they are being credited by Chronolabs and the Omnipotent entities that belong to this cooperative!</p> +<h2>Current amount due!</h2> +<p style="font-size: 167%; font-weight: 800; text-align: center;">$ <{$due}> AUD</p> +<{if count($interest) > 0 }> +<h2>Interest in monthly cycles earned!</h2> +<p style="font-size: 97%; font-weight: 600; text-align: center;"><{foreach from=$interest key=date item=segment}>Charged on <{$date}>: <font style="color:rgb(230,0,0);"><em>$ <{$segment}> AUD</em></font><br /><{/foreach}></p> +<{else}> +<h3>No Interest Earned So Far</h3> +<{/if}> \ No newline at end of file Property changes on: XoopsModules/ipv6/trunk/templates/ipv6_index.tpl ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/ipv6/trunk/xoops_version.php =================================================================== --- XoopsModules/ipv6/trunk/xoops_version.php (rev 0) +++ XoopsModules/ipv6/trunk/xoops_version.php 2015-11-24 16:41:43 UTC (rev 13168) @@ -0,0 +1,110 @@ +<?php +/** + * Private message module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package pm + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: xoops_version.php 12593 2014-06-14 16:04:02Z beckmi $ + */ + +/** + * This is a temporary solution for merging XOOPS 2.0 and 2.2 series + * A thorough solution will be available in XOOPS 3.0 + * + */ + +$modversion = array(); +$modversion['name'] = _IPV6_MI_NAME; +$modversion['version'] = 1.10; +$modversion['description'] = _IPV6_MI_DESC; +$modversion['author'] = "Simon Antony Roberts"; +$modversion['credits'] = "Chronolabs"; +$modversion['help'] = 'page=help'; +$modversion['license'] = 'GNU GPL 2.0 or later'; +$modversion['license_url'] = "www.gnu.org/licenses/gpl-2.0.html/"; +$modversion['image'] = "images/logo.png"; +$modversion['dirname'] = "ipv6"; +$modversion['dirmoduleadmin'] = '/Frameworks/moduleclasses/moduleadmin'; +$modversion['icons16'] = '../../Frameworks/moduleclasses/icons/16'; +$modversion['icons32'] = '../../Frameworks/moduleclasses/icons/32'; + +//about +$modversion["module_status"] = "Final"; +$modversion['release_date'] = '2015/11/23'; +$modversion["module_website_url"] = "http://labs.coop/"; +$modversion["module_website_name"] = "Chronolabs"; +$modversion['min_php'] = '5.3.7'; +$modversion['min_xoops'] = "2.5.7"; +$modversion['min_admin'] = '1.1'; +$modversion['min_db'] = array( + 'mysql' => '5.0.7', + 'mysqli' => '5.0.7' +); + +// Admin menu +// Set to 1 if you want to display menu generated by system module +$modversion['system_menu'] = 0; + +// Admin things +$modversion['hasAdmin'] = 0; +$modversion['adminindex'] = "admin/admin.php"; +$modversion['adminmenu'] = "admin/menu.php"; + +// Mysql file +//$modversion['sqlfile']['mysql'] = "sql/mysql.sql"; + +// Table +//$modversion['tables'][0] = "pm_messages"; + +// Scripts to run upon installation or update +//$modversion['onInstall'] = "include/install.php"; +//$modversion['onUpdate'] = "include/update.php"; + +// Templates +$modversion['templates'] = array(); +$modversion['templates'][1]['file'] = 'ipv6_index.tpl'; +$modversion['templates'][1]['description'] = ''; +//$modversion['templates'][4]['file'] = 'pm_lookup.tpl'; +//$modversion['templates'][4]['description'] = ''; + +// Menu +$modversion['hasMain'] = 1; + +$modversion['config'] = array(); +$modversion['config'][] = array( + 'name' => 'htaccess', + 'title' => '_IPV6_MI_HTACCESS', + 'description' => '_IPV6_MI_HTACCESS_DESC', + 'formtype' => 'yesno', + 'valuetype' => 'int', + 'default' => false +); + +$modversion['config'][] = array( + 'name' => 'base_url', + 'title' => '_IPV6_MI_BASEURL', + 'description' => '_IPV6_MI_BASEURL_DESC', + 'formtype' => 'textbox', + 'valuetype' => 'text', + 'default' => "ipv6" +); + +$modversion['config'][] = array( + 'name' => 'end_url', + 'title' => '_IPV6_MI_ENDURL', + 'description' => '_IPV6_MI_ENDURL_DESC', + 'formtype' => 'textbox', + 'valuetype' => 'text', + 'default' => ".html" +); Property changes on: XoopsModules/ipv6/trunk/xoops_version.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property |
From: <wis...@us...> - 2015-12-01 11:20:58
|
Revision: 13169 http://sourceforge.net/p/xoops/svn/13169 Author: wishcraft Date: 2015-12-01 11:20:55 +0000 (Tue, 01 Dec 2015) Log Message: ----------- Pingtrax -- the Pinglist and Trackback Automated module -- Pre-alpha 1.01 -- Planning Added Paths: ----------- XoopsModules/pingtrax/ XoopsModules/pingtrax/branches/ XoopsModules/pingtrax/releases/ XoopsModules/pingtrax/trunk/ XoopsModules/pingtrax/trunk/admin/ XoopsModules/pingtrax/trunk/admin/index.html XoopsModules/pingtrax/trunk/api/ XoopsModules/pingtrax/trunk/blocks/ XoopsModules/pingtrax/trunk/blocks/index.html XoopsModules/pingtrax/trunk/class/ XoopsModules/pingtrax/trunk/class/index.html XoopsModules/pingtrax/trunk/class/items.php XoopsModules/pingtrax/trunk/class/items_pings.php XoopsModules/pingtrax/trunk/class/items_sitemaps.php XoopsModules/pingtrax/trunk/class/pings.php XoopsModules/pingtrax/trunk/class/pings_sitemaps.php XoopsModules/pingtrax/trunk/class/plugins.php XoopsModules/pingtrax/trunk/class/sitemaps.php XoopsModules/pingtrax/trunk/class/trackback.php XoopsModules/pingtrax/trunk/images/ XoopsModules/pingtrax/trunk/images/logo.png XoopsModules/pingtrax/trunk/include/ XoopsModules/pingtrax/trunk/include/index.html XoopsModules/pingtrax/trunk/language/ XoopsModules/pingtrax/trunk/language/english/ XoopsModules/pingtrax/trunk/language/english/help/ XoopsModules/pingtrax/trunk/language/english/help/help.html XoopsModules/pingtrax/trunk/language/english/help/index.html XoopsModules/pingtrax/trunk/language/english/index.html XoopsModules/pingtrax/trunk/language/english/modinfo.php XoopsModules/pingtrax/trunk/language/index.html XoopsModules/pingtrax/trunk/plugins/ XoopsModules/pingtrax/trunk/plugins/default.php XoopsModules/pingtrax/trunk/plugins/index.html XoopsModules/pingtrax/trunk/preloads/ XoopsModules/pingtrax/trunk/preloads/index.html XoopsModules/pingtrax/trunk/preloads/ping.php XoopsModules/pingtrax/trunk/preloads/sitemap.php XoopsModules/pingtrax/trunk/preloads/trackback.php XoopsModules/pingtrax/trunk/sql/ XoopsModules/pingtrax/trunk/sql/index.html XoopsModules/pingtrax/trunk/sql/mysql.sql XoopsModules/pingtrax/trunk/sql/tables.json XoopsModules/pingtrax/trunk/templates/ XoopsModules/pingtrax/trunk/templates/admin/ XoopsModules/pingtrax/trunk/templates/admin/index.html XoopsModules/pingtrax/trunk/templates/blocks/ XoopsModules/pingtrax/trunk/templates/blocks/index.html XoopsModules/pingtrax/trunk/templates/index.html XoopsModules/pingtrax/trunk/xoops_version.php Added: XoopsModules/pingtrax/trunk/admin/index.html =================================================================== --- XoopsModules/pingtrax/trunk/admin/index.html (rev 0) +++ XoopsModules/pingtrax/trunk/admin/index.html 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/admin/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/blocks/index.html =================================================================== --- XoopsModules/pingtrax/trunk/blocks/index.html (rev 0) +++ XoopsModules/pingtrax/trunk/blocks/index.html 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/blocks/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/class/index.html =================================================================== --- XoopsModules/pingtrax/trunk/class/index.html (rev 0) +++ XoopsModules/pingtrax/trunk/class/index.html 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/class/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/class/items.php =================================================================== --- XoopsModules/pingtrax/trunk/class/items.php (rev 0) +++ XoopsModules/pingtrax/trunk/class/items.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,114 @@ +<?php +/** + * Pintrax Database Class Handler module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Cooperative http://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + + +/** + * Class PintraxItems + * + * @subpackage pingtrax + * + * Database MySQL Table:- + * + * CREATE TABLE `pingtrax_items` ( + * `id` mediumint(20) NOT NULL AUTO_INCREMENT, + * `referer` varchar(44) NOT NULL DEFAULT '', + * `type` enum('local','remote','unknown') NOT NULL DEFAULT 'unknown', + * `module-dirname` varchar(30) NOT NULL DEFAULT '', + * `module-class` varchar(100) NOT NULL DEFAULT '', + * `module-item-id` mediumint(30) NOT NULL DEFAULT '0', + * `module-php-self` varchar(150) NOT NULL DEFAULT '', + * `module-get` tinytext, + * `item-author-uid` int(13) NOT NULL DEFAULT '0', + * `item-author-name` varchar(64) NOT NULL DEFAULT '', + * `item-category-id` int(20) NOT NULL DEFAULT '0', + * `item-title` varchar(180) NOT NULL DEFAULT '', + * `item-description` varchar(250) NOT NULL DEFAULT '', + * `item-protocol` enum('https://','http://') NOT NULL DEFAULT 'http://', + * `item-domain` varchar(150) NOT NULL DEFAULT '', + * `item-referer-uri` varchar(250) NOT NULL DEFAULT '', + * `item-php-self` varchar(250) NOT NULL DEFAULT '', + * `feed-protocol` enum('https://','http://') NOT NULL DEFAULT 'http://', + * `feed-domain` varchar(150) NOT NULL DEFAULT '', + * `feed-referer-uri` varchar(250) NOT NULL DEFAULT '', + * `discovery-hook` enum('php','preloader','smarty','combination','unknown') NOT NULL DEFAULT 'unknown', + * `user-session` enum('admin','user','guest','unknown') NOT NULL DEFAULT 'unknown', + * `created` int(12) NOT NULL DEFAULT '0', + * `updated` int(12) NOT NULL DEFAULT '0', + * `offlined` int(12) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`referer`,`item-author-uid`,`item-author-name`,`module-dirname`,`item-protocol`,`item-domain`,`item-referer-uri`,`module-php-self`,`item-php-self`,`discovery-hook`,`id`) KEY_BLOCK_SIZE=128, + * KEY `CHRONOLOGISTICS` (`id`,`referer`,`created`,`updated`,`offlined`) USING BTREE KEY_BLOCK_SIZE=64 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8 PACK_KEYS=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC KEY_BLOCK_SIZE=16; + */ +class PingtraxItems extends XoopsObject +{ + /** + * + */ + function __construct() + { + $this->XoopsObject(); + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('referer', XOBJ_DTYPE_OTHER, sha1(NULL), false, 44); + $this->initVar('type', XOBJ_DTYPE_ENUM, 'unknown', true, false, false, false, array('local','remote','unknown')); + $this->initVar('module-dirname', XOBJ_DTYPE_OTHER, '', false, 30); + $this->initVar('module-class', XOBJ_DTYPE_OTHER, '', false, 100); + $this->initVar('module-item-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('module-php-self', XOBJ_DTYPE_OTHER, '', false, 150); + $this->initVar('module-get', XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar('item-author-uid', XOBJ_DTYPE_INT, 0, false); + $this->initVar('item-author-name', XOBJ_DTYPE_TXTBOX, 0, false, 64); + $this->initVar('item-title', XOBJ_DTYPE_TXTBOX, 0, false, 180); + $this->initVar('item-description', XOBJ_DTYPE_TXTBOX, 0, false, 250); + $this->initVar('item-protocol', XOBJ_DTYPE_ENUM, XOOPS_PROT, true, false, false, false, array('https://','http://')); + $this->initVar('item-domain', XOBJ_DTYPE_TXTBOX, parse_url(XOOPS_URL, PHP_URL_HOST), true, 150); + $this->initVar('item-referer-uri', XOBJ_DTYPE_TXTBOX, $_SERVER["REQUEST_URI"], true, 250); + $this->initVar('item-php-self', XOBJ_DTYPE_TXTBOX, str_replace(XOOPS_ROOT_PATH, "", $_SERVER["PHP_SELF"]), true, 250); + $this->initVar('feed-protocol', XOBJ_DTYPE_ENUM, XOOPS_PROT, true, false, false, false, array('https://','http://')); + $this->initVar('feed-domain', XOBJ_DTYPE_TXTBOX, parse_url(XOOPS_URL, PHP_URL_HOST), true, 150); + $this->initVar('feed-referer-uri', XOBJ_DTYPE_TXTBOX, parse_url(XOOPS_URL, PHP_URL_PATH) . '/backend.php', true, 250); + $this->initVar('discovery-hook', XOBJ_DTYPE_ENUM, 'unknown', true, false, false, false, array('php','preloader','smarty','combination','unknown')); + $this->initVar('user-session', XOBJ_DTYPE_ENUM, 'unknown', true, false, false, false, array('admin','user','guest','unknown')); + $this->initVar('written', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('updated', XOBJ_DTYPE_INT, 0, false); + $this->initVar('offline', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * Class PintraxItemsHandler + */ +class PintraxItemsHandler extends XoopsPersistableObjectHandler +{ + + /** + * @param null|object $db + */ + function __construct(&$db) + { + parent::__construct($db, "pingtrax_items", 'PingtraxItems', 'id', 'referer'); + } + + +} Added: XoopsModules/pingtrax/trunk/class/items_pings.php =================================================================== --- XoopsModules/pingtrax/trunk/class/items_pings.php (rev 0) +++ XoopsModules/pingtrax/trunk/class/items_pings.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,73 @@ +<?php +/** + * Pintrax Database Class Handler module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Cooperative http://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + + +/** + * Class PintraxItems_pings + * + * @subpackage itemtrax + * + * Database MySQL Table:- + * + * CREATE TABLE `pingtrax_items_pings` ( + * `id` mediumint(32) NOT NULL AUTO_INCREMENT, + * `ping-referer` varchar(44) NOT NULL DEFAULT '', + * `item-referer` varchar(44) NOT NULL DEFAULT '', + * `when` int(12) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`id`,`ping-referer`,`item-referer`) USING BTREE, + * KEY `CHRONOLOGISTICS` (`ping-referer`,`item-referer`,`when`) USING BTREE KEY_BLOCK_SIZE=64 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8 PACK_KEYS=1 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC KEY_BLOCK_SIZE=8; + * + */ +class PingtraxItems_pings extends XoopsObject +{ + /** + * + */ + function __construct() + { + $this->XoopsObject(); + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('ping-referer', XOBJ_DTYPE_TXTBOX, null, true, 44); + $this->initVar('item-referer', XOBJ_DTYPE_TXTBOX, null, true, 44); + $this->initVar('when', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * Class PintraxItems_pingsHandler + */ +class PintraxItems_pingsHandler extends XoopsPersistableObjectHandler +{ + + /** + * @param null|object $db + */ + function __construct(&$db) + { + parent::__construct($db, "pingtrax_items_pings", 'PingtraxItems_pings', 'id', 'ping-referer'); + } + + +} Added: XoopsModules/pingtrax/trunk/class/items_sitemaps.php =================================================================== --- XoopsModules/pingtrax/trunk/class/items_sitemaps.php (rev 0) +++ XoopsModules/pingtrax/trunk/class/items_sitemaps.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,73 @@ +<?php +/** + * Pintrax Database Class Handler module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Cooperative http://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + + +/** + * Class PintraxItems_sitemaps + * + * @subpackage itemtrax + * + * Database MySQL Table:- + * + * CREATE TABLE `itemtrax_items_sitemaps` ( + * `id` mediumint(32) NOT NULL AUTO_INCREMENT, + * `map-referer` varchar(44) NOT NULL DEFAULT '', + * `item-referer` varchar(44) NOT NULL DEFAULT '', + * `when` int(12) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`id`,`map-referer`,`item-referer`) USING BTREE, + * KEY `CHRONOLOGISTICS` (`map-referer`,`item-referer`,`when`) USING BTREE KEY_BLOCK_SIZE=64 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8 PACK_KEYS=1 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC KEY_BLOCK_SIZE=8; + * + */ +class PingtraxItems_sitemaps extends XoopsObject +{ + /** + * + */ + function __construct() + { + $this->XoopsObject(); + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('map-referer', XOBJ_DTYPE_TXTBOX, null, true, 44); + $this->initVar('item-referer', XOBJ_DTYPE_TXTBOX, null, true, 44); + $this->initVar('when', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * Class PintraxItems_sitemapsHandler + */ +class PintraxItems_sitemapsHandler extends XoopsPersistableObjectHandler +{ + + /** + * @param null|object $db + */ + function __construct(&$db) + { + parent::__construct($db, "itemtrax_items_sitemaps", 'PingtraxItems_sitemaps', 'id', 'map-referer'); + } + + +} Added: XoopsModules/pingtrax/trunk/class/pings.php =================================================================== --- XoopsModules/pingtrax/trunk/class/pings.php (rev 0) +++ XoopsModules/pingtrax/trunk/class/pings.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,92 @@ +<?php +/** + * Pintrax Database Class Handler module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Cooperative http://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + + +/** + * Class PintraxPings + * + * @subpackage pingtrax + * + * Database MySQL Table:- + * + * CREATE TABLE `pingtrax_pings` ( + * `id` int(14) NOT NULL AUTO_INCREMENT, + * `referer` varchar(44) NOT NULL DEFAULT '', + * `type` enum('XML-RPC','SITEMAPS') NOT NULL DEFAULT 'XML-RPC', + * `uri` varchar(250) NOT NULL DEFAULT '', + * `last-item-referer` varchar(44) NOT NULL DEFAULT '', + * `successful-pings` int(18) NOT NULL DEFAULT '0', + * `failed-pings` int(18) NOT NULL DEFAULT '0', + * `sleep-till` int(12) NOT NULL DEFAULT '0', + * `success-time` int(12) NOT NULL DEFAULT '0', + * `failure-time` int(12) NOT NULL DEFAULT '0', + * `created` int(12) NOT NULL DEFAULT '0', + * `updated` int(12) NOT NULL DEFAULT '0', + * `offlined` int(12) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`,`referer`,`type`,`uri`), + * KEY `SEARCH` (`referer`,`type`,`uri`,`last-item-referer`,`successful-pings`,`failed-pings`,`id`) USING BTREE, + * KEY `CHRONOLOGISTICS` (`id`,`referer`,`created`,`updated`,`offlined`,`failure-time`,`success-time`,`sleep-till`) USING BTREE KEY_BLOCK_SIZE=128 + * ) ENGINE=InnoDB AUTO_INCREMENT=150 DEFAULT CHARSET=utf8 PACK_KEYS=1 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC KEY_BLOCK_SIZE=16; + * + */ +class PingtraxPings extends XoopsObject +{ + /** + * + */ + function __construct() + { + $this->XoopsObject(); + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('referer', XOBJ_DTYPE_OTHER, sha1(NULL), false, 44); + $this->initVar('type', XOBJ_DTYPE_ENUM, 'XML-RPC', true, false, false, false, array('XML-RPC','SITEMAPS')); + $this->initVar('uri', XOBJ_DTYPE_TXTBOX, null, true, 250); + $this->initVar('last-item-referer', XOBJ_DTYPE_OTHER, sha1(NULL), false, 44); + $this->initVar('successful-pings', XOBJ_DTYPE_INT, 0, false); + $this->initVar('failed-pings', XOBJ_DTYPE_INT, 0, false); + $this->initVar('sleep-till', XOBJ_DTYPE_INT, 0, false); + $this->initVar('success-time', XOBJ_DTYPE_INT, 0, false); + $this->initVar('failure-time', XOBJ_DTYPE_INT, 0, false); + $this->initVar('written', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('updated', XOBJ_DTYPE_INT, 0, false); + $this->initVar('offline', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * Class PintraxPingsHandler + */ +class PintraxPingsHandler extends XoopsPersistableObjectHandler +{ + + /** + * @param null|object $db + */ + function __construct(&$db) + { + parent::__construct($db, "pingtrax_pings", 'PingtraxPings', 'id', 'referer'); + } + + +} Added: XoopsModules/pingtrax/trunk/class/pings_sitemaps.php =================================================================== --- XoopsModules/pingtrax/trunk/class/pings_sitemaps.php (rev 0) +++ XoopsModules/pingtrax/trunk/class/pings_sitemaps.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,73 @@ +<?php +/** + * Pintrax Database Class Handler module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Cooperative http://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + + +/** + * Class PintraxPings_sitemaps + * + * @subpackage pingtrax + * + * Database MySQL Table:- + * + * CREATE TABLE `pingtrax_pings_sitemaps` ( + * `id` mediumint(32) NOT NULL AUTO_INCREMENT, + * `map-referer` varchar(44) NOT NULL DEFAULT '', + * `ping-referer` varchar(44) NOT NULL DEFAULT '', + * `when` int(12) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`id`,`map-referer`,`ping-referer`) USING BTREE, + * KEY `CHRONOLOGISTICS` (`map-referer`,`ping-referer`,`when`) USING BTREE KEY_BLOCK_SIZE=64 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8 PACK_KEYS=1 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC KEY_BLOCK_SIZE=8; + * + */ +class PingtraxPings_sitemaps extends XoopsObject +{ + /** + * + */ + function __construct() + { + $this->XoopsObject(); + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('map-referer', XOBJ_DTYPE_TXTBOX, null, true, 44); + $this->initVar('ping-referer', XOBJ_DTYPE_TXTBOX, null, true, 44); + $this->initVar('when', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * Class PintraxPings_sitemapsHandler + */ +class PintraxPings_sitemapsHandler extends XoopsPersistableObjectHandler +{ + + /** + * @param null|object $db + */ + function __construct(&$db) + { + parent::__construct($db, "pingtrax_pings_sitemaps", 'PingtraxPings_sitemaps', 'id', 'map-referer'); + } + + +} Added: XoopsModules/pingtrax/trunk/class/plugins.php =================================================================== --- XoopsModules/pingtrax/trunk/class/plugins.php (rev 0) +++ XoopsModules/pingtrax/trunk/class/plugins.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,51 @@ +<?php +/** + * PingTrax Constructor for Plugin's + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Cooperative http://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + +defined('XOOPS_ROOT_PATH') || die('XOOPS root path not defined'); + +/** + * Class PingtraxPluginsDefault + */ +class PingtraxPlugins +{ + /** + * @param $args + + function eventCoreIncludeFunctionsRedirectheader($args) + { + $context = stream_context_create(array('http' => array( + 'method' => "POST", + 'header' => "Content-Type: text/xml\r\n", + 'content' => $xml + ))); + $file = @file_get_contents($post_to, false, $context); + if ($file === false) { echo '<p>Couldn\'t connect!</p>'; } + elseif ($file) { + echo '<p>The following response was returned:</p>'; + echo '<pre>'.htmlspecialchars($file).'</pre>'; + } else { + echo '<p>Empty response!</p>'; + } + } + */ + +} Added: XoopsModules/pingtrax/trunk/class/sitemaps.php =================================================================== --- XoopsModules/pingtrax/trunk/class/sitemaps.php (rev 0) +++ XoopsModules/pingtrax/trunk/class/sitemaps.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,98 @@ +<?php +/** + * Pintrax Database Class Handler module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Cooperative http://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + + +/** + * Class PintraxSitemaps + * + * Database MySQL Table:- + * + * CREATE TABLE `pingtrax_sitemaps` ( + * `id` int(10) NOT NULL AUTO_INCREMENT, + * `referer` varchar(44) NOT NULL DEFAULT '', + * `protocol` enum('https://','http://') NOT NULL DEFAULT 'http://', + * `domain` varchar(100) NOT NULL DEFAULT '', + * `baseurl` varchar(100) NOT NULL DEFAULT '', + * `filename` varchar(65) NOT NULL DEFAULT '', + * `items` int(18) NOT NULL DEFAULT '0', + * `bytes` int(18) NOT NULL DEFAULT '0', + * `successful-pings` int(18) NOT NULL DEFAULT '0', + * `failed-pings` int(18) NOT NULL DEFAULT '0', + * `sleep-till` int(12) NOT NULL DEFAULT '0', + * `success-time` int(12) NOT NULL DEFAULT '0', + * `failure-time` int(12) NOT NULL DEFAULT '0', + * `written` int(12) NOT NULL DEFAULT '0', + * `created` int(12) NOT NULL DEFAULT '0', + * `updated` int(12) NOT NULL DEFAULT '0', + * `offlined` int(12) NOT NULL DEFAULT '0', + * PRIMARY KEY (`id`), + * KEY `SEARCH` (`id`,`referer`,`protocol`,`filename`,`domain`,`baseurl`) USING BTREE, + * KEY `CHRONOLOGISTICS` (`id`,`written`,`created`,`updated`,`offlined`,`referer`) USING BTREE KEY_BLOCK_SIZE=64 + * ) ENGINE=InnoDB DEFAULT CHARSET=utf8 PACK_KEYS=1 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC KEY_BLOCK_SIZE=16; + * + * @subpackage pingtrax + */ +class PingtraxSitemaps extends XoopsObject +{ + /** + * + */ + function __construct() + { + $this->XoopsObject(); + $this->initVar('id', XOBJ_DTYPE_INT, null, false); + $this->initVar('referer', XOBJ_DTYPE_OTHER, sha1(NULL), true, 44); + $this->initVar('protocol', XOBJ_DTYPE_ENUM, 'http://', true, false, false, false, array('https://','http://')); + $this->initVar('domain', XOBJ_DTYPE_TXTBOX, parse_url(XOOPS_URL, PHP_URL_HOST), true, 100); + $this->initVar('baseurl', XOBJ_DTYPE_TXTBOX, parse_url(XOOPS_URL, PHP_URL_PATH), true, 100); + $this->initVar('filename', XOBJ_DTYPE_TXTBOX, 'sitemap.'.parse_url(XOOPS_URL, PHP_URL_HOST).'.xml', true, 64); + $this->initVar('items', XOBJ_DTYPE_INT, 0, false); + $this->initVar('bytes', XOBJ_DTYPE_INT, 0, false); + $this->initVar('successful-pings', XOBJ_DTYPE_INT, 0, false); + $this->initVar('failed-pings', XOBJ_DTYPE_INT, 0, false); + $this->initVar('sleep-till', XOBJ_DTYPE_INT, 0, false); + $this->initVar('success-time', XOBJ_DTYPE_INT, 0, false); + $this->initVar('failure-time', XOBJ_DTYPE_INT, 0, false); + $this->initVar('written', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('updated', XOBJ_DTYPE_INT, 0, false); + $this->initVar('offline', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * Class PintraxSitemapsHandler + */ +class PintraxSitemapsHandler extends XoopsPersistableObjectHandler +{ + + /** + * @param null|object $db + */ + function __construct(&$db) + { + parent::__construct($db, "pingtrax_sitemaps", 'PingtraxSitemaps', 'id', 'referer'); + } + + +} Added: XoopsModules/pingtrax/trunk/class/trackback.php =================================================================== --- XoopsModules/pingtrax/trunk/class/trackback.php (rev 0) +++ XoopsModules/pingtrax/trunk/class/trackback.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,442 @@ +<?php +/** + * PingTrax Constructor for Plugin's + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Cooperative http://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + +defined('XOOPS_ROOT_PATH') || die('XOOPS root path not defined'); + +/** + * Class PingtraxTrackback + * + * @param string $blog_name + * @param string $author + * @param string $encoding + */ +class PingtraxTrackback { + + var $blog_name = ''; // Default blog name used throughout the class (ie. Chronolabs Cooperative) + var $author = ''; // Default author name used throughout the class (ie. Simon Antony Roberts) + var $encoding = ''; // Default encoding used throughout the class (ie. UTF-8) + var $get_id = ''; // Retreives and holds $_GET['id'] (if not empty) + var $post_id = ''; // Retreives and holds $_POST['id'] (if not empty) + var $url = ''; // Retreives and holds $_POST['url'] (if not empty) + var $title = ''; // Retreives and holds $_POST['title'] (if not empty) + var $expert = ''; // Retreives and holds $_POST['expert'] (if not empty) + /** + * Class Constructure + * + * @param string $blog_name + * @param string $author + * @param string $encoding + * @return + */ + function PingtraxTrackback($blog_name, $author, $encoding = "UTF-8") + { + $this->blog_name = $blog_name; + $this->author = $author; + $this->encoding = $encoding; + + // Gather $_POST information + if (isset($_GET['id'])) { + $this->get_id = $_GET['id']; + } + if (isset($_POST['id'])) { + $this->post_id = $_POST['id']; + } + if (isset($_POST['url'])) { + $this->url = $_POST['url']; + } + if (isset($_POST['title'])) { + $this->title = $_POST['url']; + } + if (isset($_POST['expert'])) { + $this->expert = $_POST['expert']; + } + } + + /** + * Sends a trackback ping to a specified trackback URL. + * allowing clients to auto-discover the TrackBack Ping URL. + * + * <code><?php + * include('trackback.php'); + * $trackback = new PingtraxTrackback('Chronolabs Cooperative', 'Simon Antony Roberts', 'UTF-8'); + * if ($trackback->ping('http://example.com/modules/pingtrax/api/', 'http://your-url.com', 'Your entry title')) { + * echo "PingtraxTrackback sent successfully..."; + * } else { + * echo "Error sending trackback...."; + * } + * ?></code> + * + * @param string $trackback + * @param string $url + * @param string $title + * @param string $excerpt + * @return boolean + */ + function ping($trackback, $url, $title = "", $excerpt = "") + { + $response = ""; + $reason = ""; + // Set default values + if (empty($title)) { + $title = "PingtraxTrackbacking your entry..."; + } + if (empty($excerpt)) { + $excerpt = "I found your entry interesting do I've added a PingtraxTrackback to it on my weblog :)"; + } + // Parse the target + $target = parse_url($trackback); + + if ((isset($target["query"])) && ($target["query"] != "")) { + $target["query"] = "?" . $target["query"]; + } else { + $target["query"] = ""; + } + + if ((isset($target["port"]) && !is_numeric($target["port"])) || (!isset($target["port"]))) { + $target["port"] = 80; + } + // Open the socket + $trackback_sock = fsockopen($target["host"], $target["port"]); + // Something didn't work out, return + if (!is_resource($trackback_sock)) { + return '$trackback->ping: can\'t connect to: ' . $trackback . '.'; + exit; + } + // Put together the things we want to send + $trackback_send = "url=" . rawurlencode($url) . "&title=" . rawurlencode($title) . "&blog_name=" . rawurlencode($this->blog_name) . "&excerpt=" . rawurlencode($excerpt); + // Send the trackback + fputs($trackback_sock, "POST " . $target["path"] . $target["query"] . " HTTP/1.1\r\n"); + fputs($trackback_sock, "Host: " . $target["host"] . "\r\n"); + fputs($trackback_sock, "Content-type: application/x-www-form-urlencoded\r\n"); + fputs($trackback_sock, "Content-length: " . strlen($trackback_send) . "\r\n"); + fputs($trackback_sock, "Connection: close\r\n\r\n"); + fputs($trackback_sock, $trackback_send); + // Gather result + while (!feof($trackback_sock)) { + $response .= fgets($trackback_sock, 128); + } + // Close socket + fclose($trackback_sock); + // Did the trackback ping work + strpos($response, '<error>0</error>') ? $return = true : $return = false; + // send result + return $return; + } + + /** + * Produces XML response for trackbackers with ok/error message. + * + * <code><?php + * // Set page header to XML + * header('Content-Type: text/xml'); // MUST be the 1st line + * // + * // Instantiate the class + * // + * include('trackback.php'); + * $trackback = new PingtraxTrackback('Chronolabs Cooperative', 'Simon Antony Roberts', 'UTF-8'); + * // + * // Get trackback information + * // + * $trackback_id = $trackback->post_id; // The id of the item being trackbacked + * $trackback_url = $trackback->url; // The URL from which we got the trackback + * $trackback_title = $trackback->title; // Subject/title send by trackback + * $trackback_expert = $trackback->expert; // Short text send by trackback + * // + * // Do whatever to log the trackback (save in DB, flatfile, etc...) + * // + * if (TRACKBACK_LOGGED_SUCCESSFULLY) { + * // Logged successfully... + * echo $trackback->recieve(true); + * } else { + * // Something went wrong... + * echo $trackback->recieve(false, 'Explain why you return error'); + * } + * ?></code> + * + * @param boolean $success + * @param string $err_response + * @return boolean + */ + function recieve($success = false, $err_response = "") + { + // Default error response in case of problems... + if (!$success && empty($err_response)) { + $err_response = "An error occured while tring to log your trackback..."; + } + // Start response to trackbacker... + $return = '<?xml version="1.0" encoding="' . $this->encoding . '"?>' . "\n"; + $return .= "<response> \n"; + // Send back response... + if ($success) { + // PingtraxTrackback received successfully... + $return .= " <error>0</error> \n"; + } else { + // Something went wrong... + $return .= " <error>1</error> \n"; + $return .= " <message>" . $this->xml_safe($err_response) . "</message>\n"; + } + // End response to trackbacker... + $return .= "</response>"; + + return $return; + } + + /** + * Feteched trackback information and produces an RSS-0.91 feed. + * + * <code><?php + * // 1 + * header('Content-Type: text/xml'); // MUST be the 1st line + * // 2 + * include('trackback.php'); + * $trackback = new PingtraxTrackback('Chronolabs Cooperative', 'Simon Antony Roberts', 'UTF-8'); + * // 3 + * $trackback_id = $trackback->get_id; + * // 4 + * Do whatever to get trackback information by ID (search db, etc...) + * if (GOT_TRACKBACK_INFO) { + * // Successful - pass trackback info as array()... + * $trackback_info = array('title' => string TRACKBACK_TITLE, + * 'expert' => string TRACKBACK_EXPERT, + * 'permalink' => string PERMALINK_URL, + * 'trackback' => string TRACKBACK_URL + * ); + * echo $trackback->fetch(true, $trackback_info); + * } else { + * // Something went wrong - tell my why... + * echo $trackback->fetch(false, string RESPONSE); + * } + * ?></code> + * + * @param boolean $success + * @param string $response + * @return string XML response to the caller + */ + function fetch($success = false, $response = "") + { + if (!$success && empty($response)) { + $response = "An error occured while tring to retreive trackback information..."; + } + // Start response to caller + $return = '<?xml version="1.0" encoding="' . $this->encoding . '"?>' . "\n"; + $return .= "<response> \n"; + // Send back response... + if ($success) { + // PingtraxTrackback retreived successfully... + // Sending back an RSS (0.91) - trackback information from $response (array)... + $return .= " <error>0</error> \n"; + $return .= " <rss version=\"0.91\"> \n"; + $return .= " <channel> \n"; + $return .= " <title>" . $this->xml_safe($response['title']) . "</title> \n"; + $return .= " <link>" . $this->xml_safe($response['trackback']) . "</link> \n"; + $return .= " <description>" . $this->xml_safe($response['expert']) . "</description> \n"; + $return .= " <item> \n"; + $return .= " <title>" . $this->xml_safe($response['title']) . "</title> \n"; + $return .= " <link>" . $this->xml_safe($response['permalink']) . "</link> \n"; + $return .= " <description>" . $this->xml_safe($response['expert']) . "</description> \n"; + $return .= " </item> \n"; + $return .= " </channel> \n"; + $return .= " </rss> \n"; + } else { + // Something went wrong - provide reason from $response (string)... + $return .= " <error>1</error> \n"; + $return .= " <message>" . $this->xml_safe($response) . "</message>\n"; + } + // End response to trackbacker + $return .= "</response>"; + + return $return; + } + + /** + * Produces embedded RDF representing metadata about the entry, + * allowing clients to auto-discover the TrackBack Ping URL. + * + * NOTE: DATE should be string in RFC822 Format - Use RFC822_from_datetime(). + * + * <code><?php + * include('trackback.php'); + * $trackback = new PingtraxTrackback('Chronolabs Cooperative', 'Simon Antony Roberts', 'UTF-8'); + * + * echo $trackback->rdf_autodiscover(string DATE, string TITLE, string EXPERT, string PERMALINK, string TRACKBACK [, string AUTHOR]); + * ?></code> + * + * @param string $RFC822_date + * @param string $title + * @param string $expert + * @param string $permalink + * @param string $trackback + * @param string $author + * @return string + */ + function rdf_autodiscover($RFC822_date, $title, $expert, $permalink, $trackback, $author = "") + { + if (!$author) { + $author = $this->author; + } + + $return = "<!-- \n"; + $return .= "<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" \n"; + $return .= " xmlns:dc=\"http://purl.org/dc/elements/1.1/\" \n"; + $return .= " xmlns:trackback=\"http://madskills.com/public/xml/rss/module/trackback/\"> \n"; + $return .= "<rdf:Description \n"; + $return .= " rdf:about=\"" . $this->xml_safe($permalink) . "\" \n"; + $return .= " dc:identifier=\"" . $this->xml_safe($permalink) . "\" \n"; + $return .= " trackback:ping=\"" . $this->xml_safe($trackback) . "\" \n"; + $return .= " dc:title=\"" . $this->xml_safe($title) . "\" \n"; + $return .= " dc:subject=\"TrackBack\" \n"; + $return .= " dc:description=\"" . $this->xml_safe($this->cut_short($expert)) . "\" \n"; + $return .= " dc:creator=\"" . $this->xml_safe($author) . "\" \n"; + $return .= " dc:date=\"" . $RFC822_date . "\" /> \n"; + $return .= "</rdf:RDF> \n"; + $return .= "--> \n"; + + return $return; + } + + /** + * Search text for links, and searches links for trackback URLs. + * + * <code><?php + * + * include('trackback.php'); + * $trackback = new PingtraxTrackback('Chronolabs Cooperative', 'Simon Antony Roberts', 'UTF-8'); + * + * if ($trackback_array = $trackback->auto_discovery(string TEXT)) { + * // Found trackbacks in TEXT. Looping... + * foreach($trackback_array as $trackback_key => $trackback_url) { + * // Attempt to ping each one... + * if ($trackback->ping($trackback_url, string URL, [string TITLE], [string EXPERT])) { + * // Successful ping... + * echo "PingtraxTrackback sent to <i>$trackback_url</i>...\n"; + * } else { + * // Error pinging... + * echo "PingtraxTrackback to <i>$trackback_url</i> failed....\n"; + * } + * } + * } else { + * // No trackbacks in TEXT... + * echo "No trackbacks were auto-discover...\n" + * } + * ?></code> + * + * @param string $text + * @return array PingtraxTrackback URLs. + */ + function auto_discovery($text) + { + // Get a list of UNIQUE links from text... + // --------------------------------------- + // RegExp to look for (0=>link, 4=>host in 'replace') + $reg_exp = "/(http)+(s)?:(\\/\\/)((\\w|\\.)+)(\\/)?(\\S+)?/i"; + // Make sure each link ends with [sapce] + $text = eregi_replace("www.", "http://www.", $text); + $text = eregi_replace("http://http://", "http://", $text); + $text = eregi_replace("\"", " \"", $text); + $text = eregi_replace("'", " '", $text); + $text = eregi_replace(">", " >", $text); + // Create an array with unique links + $uri_array = array(); + if (preg_match_all($reg_exp, strip_tags($text, "<a>"), $array, PREG_PATTERN_ORDER)) { + foreach($array[0] as $key => $link) { + foreach((array(",", ".", ":", ";")) as $t_key => $t_value) { + $link = trim($link, $t_value); + } + $uri_array[] = ($link); + } + $uri_array = array_unique($uri_array); + } + // Get the trackback URIs from those links... + // ------------------------------------------ + // Loop through the URIs array and extract RDF segments + $rdf_array = array(); // <- holds list of RDF segments + foreach($uri_array as $key => $link) { + if ($link_content = implode("", @file($link))) { + preg_match_all('/(<rdf:RDF.*?<\/rdf:RDF>)/sm', $link_content, $link_rdf, PREG_SET_ORDER); + for ($i = 0; $i < count($link_rdf); $i++) { + if (preg_match('|dc:identifier="' . preg_quote($link) . '"|ms', $link_rdf[$i][1])) { + $rdf_array[] = trim($link_rdf[$i][1]); + } + } + } + } + // Loop through the RDFs array and extract trackback URIs + $trackback_array = array(); // <- holds list of trackback URIs + if (!empty($rdf_array)) { + for ($i = 0; $i < count($rdf_array); $i++) { + if (preg_match('/trackback:ping="([^"]+)"/', $rdf_array[$i], $array)) { + $trackback_array[] = trim($array[1]); + } + } + } + // Return Trackbacks + return $trackback_array; + } + + /** + * Other Useful functions used in this class + */ + + /** + * Converts MySQL datetime to a standart RFC 822 date format + * + * @param string $datetime + * @return string RFC 822 date + */ + function RFC822_from_datetime($datetime) + { + $timestamp = mktime( + substr($datetime, 8, 2), substr($datetime, 10, 2), substr($datetime, 12, 2), + substr($datetime, 4, 2), substr($datetime, 6, 2), substr($datetime, 0, 4) + ); + return date("r", $timestamp); + } + + /** + * Converts a string into an XML-safe string (replaces &, <, >, " and ') + * + * @param string $string + * @return string + */ + function xml_safe($string) + { + return htmlspecialchars($string, ENT_QUOTES); + } + + /** + * Cuts a string short (with "...") accroding to $max_length... + * + * @param string $string + * @param integer $max_length + * @return string + */ + function cut_short($string, $max_length = 255) + { + if (strlen($string) > $max_length) { + $string = substr($string, 0, $max_length) . '...'; + } + + return $string; + } +} + +?> \ No newline at end of file Added: XoopsModules/pingtrax/trunk/images/logo.png =================================================================== (Binary files differ) Index: XoopsModules/pingtrax/trunk/images/logo.png =================================================================== --- XoopsModules/pingtrax/trunk/images/logo.png 2015-11-24 16:41:43 UTC (rev 13168) +++ XoopsModules/pingtrax/trunk/images/logo.png 2015-12-01 11:20:55 UTC (rev 13169) Property changes on: XoopsModules/pingtrax/trunk/images/logo.png ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/pingtrax/trunk/include/index.html =================================================================== --- XoopsModules/pingtrax/trunk/include/index.html (rev 0) +++ XoopsModules/pingtrax/trunk/include/index.html 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/include/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/language/english/help/help.html =================================================================== --- XoopsModules/pingtrax/trunk/language/english/help/help.html (rev 0) +++ XoopsModules/pingtrax/trunk/language/english/help/help.html 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,19 @@ +<div id="help-template" class="outer"> + <h1 class="head">Help: <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/pm/admin/admin.php" title="Back to the administration of PM"> Private Messaging <img src="<{xoAdminIcons home.png}>" alt="Back to the administration of PM"/></a></h1> + <!-- -----Help Content ---------- --> + <h4 class="odd">Description</h4> + <p class="even">The PM module is for private messaging between users</p> + <h4 class="odd">Install/uninstall</h4> + <p>No special measures necessary, follow the standard installation process – extract the /pm folder into the ../modules directory. Install the module through Admin -> System Module -> Modules.</p> + <p>Detailed instructions on installing modules are available in the <a href="http://goo.gl/adT2i" title="XOOPS Operations Manual">XOOPS Operations Manual</a> </p> + <h4 class="odd">Operating instructions</h4> + <p class="even">To set up this module you need to:</p> + <ul> + <li>You enter your Inbox directly from the front page, or by clicking on the top link “Go to module” in the PM's Admin area.</li> + <li>Configure your preferences for the module (see “Preferences”) and optionally the PM block if you intend to use it (see “Blocks”).</li> + <li>You can do mass deleting of your messages by using the “Prune” Messages" tab.</li> + </ul> + <h4 class="odd">Tutorial</h4> + <p class="even">Tutorial coming soon.</p> + <!-- -----Help Content ---------- --> +</div> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/language/english/help/help.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/language/english/help/index.html =================================================================== --- XoopsModules/pingtrax/trunk/language/english/help/index.html (rev 0) +++ XoopsModules/pingtrax/trunk/language/english/help/index.html 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1 @@ +<script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/language/english/help/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/language/english/index.html =================================================================== --- XoopsModules/pingtrax/trunk/language/english/index.html (rev 0) +++ XoopsModules/pingtrax/trunk/language/english/index.html 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/language/english/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/language/english/modinfo.php =================================================================== --- XoopsModules/pingtrax/trunk/language/english/modinfo.php (rev 0) +++ XoopsModules/pingtrax/trunk/language/english/modinfo.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,14 @@ +<?php +// $Id: modinfo.php 12363 2014-03-08 10:39:06Z beckmi $ +// _LANGCODE: en +// _CHARSET : UTF-8 +// Translator: XOOPS Translation Team +define('_IPV4_MI_NAME',"IPv4 Debt"); +define('_IPV4_MI_DESC',"Module for displaying the IPv4 debt to Chronolabs Cooperative"); +define('_IPV4_MI_HTACCESS',"Support HTACCESS"); +define('_IPV4_MI_HTACCESS_DESC',"This will enable support for htaccess"); +define('_IPV4_MI_BASEURL',"Base URL for htaccess"); +define('_IPV4_MI_BASEURL_DESC',"This is the base URL of htaccess"); +define('_IPV4_MI_ENDURL',"End of URL"); +define('_IPV4_MI_ENDURL_DESC',""); + Property changes on: XoopsModules/pingtrax/trunk/language/english/modinfo.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/language/index.html =================================================================== --- XoopsModules/pingtrax/trunk/language/index.html (rev 0) +++ XoopsModules/pingtrax/trunk/language/index.html 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/language/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/plugins/default.php =================================================================== --- XoopsModules/pingtrax/trunk/plugins/default.php (rev 0) +++ XoopsModules/pingtrax/trunk/plugins/default.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,51 @@ +<?php +/** + * PingTrax Default Plugin + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Cooperative http://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + +defined('XOOPS_ROOT_PATH') || die('XOOPS root path not defined'); + +/** + * Class PingtraxPluginsDefault + */ +class PingtraxPluginsDefault extends PingtraxPlugins +{ + /** + * @param $args + + function eventCoreIncludeFunctionsRedirectheader($args) + { + $context = stream_context_create(array('http' => array( + 'method' => "POST", + 'header' => "Content-Type: text/xml\r\n", + 'content' => $xml + ))); + $file = @file_get_contents($post_to, false, $context); + if ($file === false) { echo '<p>Couldn\'t connect!</p>'; } + elseif ($file) { + echo '<p>The following response was returned:</p>'; + echo '<pre>'.htmlspecialchars($file).'</pre>'; + } else { + echo '<p>Empty response!</p>'; + } + } + */ + +} Added: XoopsModules/pingtrax/trunk/plugins/index.html =================================================================== --- XoopsModules/pingtrax/trunk/plugins/index.html (rev 0) +++ XoopsModules/pingtrax/trunk/plugins/index.html 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/plugins/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/preloads/index.html =================================================================== --- XoopsModules/pingtrax/trunk/preloads/index.html (rev 0) +++ XoopsModules/pingtrax/trunk/preloads/index.html 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/preloads/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/preloads/ping.php =================================================================== --- XoopsModules/pingtrax/trunk/preloads/ping.php (rev 0) +++ XoopsModules/pingtrax/trunk/preloads/ping.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,51 @@ +<?php +/** + * PingTrax Preloads + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Cooperative http://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + +defined('XOOPS_ROOT_PATH') || die('XOOPS root path not defined'); + +/** + * Class PingtraxPingPreload + */ +class PingtraxPingPreload extends XoopsPreloadItem +{ + /** + * @param $args + + function eventCoreIncludeFunctionsRedirectheader($args) + { + $context = stream_context_create(array('http' => array( + 'method' => "POST", + 'header' => "Content-Type: text/xml\r\n", + 'content' => $xml + ))); + $file = @file_get_contents($post_to, false, $context); + if ($file === false) { echo '<p>Couldn\'t connect!</p>'; } + elseif ($file) { + echo '<p>The following response was returned:</p>'; + echo '<pre>'.htmlspecialchars($file).'</pre>'; + } else { + echo '<p>Empty response!</p>'; + } + } + */ + +} Property changes on: XoopsModules/pingtrax/trunk/preloads/ping.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/preloads/sitemap.php =================================================================== --- XoopsModules/pingtrax/trunk/preloads/sitemap.php (rev 0) +++ XoopsModules/pingtrax/trunk/preloads/sitemap.php 2015-12-01 11:20:55 UTC (rev 13169) @@ -0,0 +1,51 @@ +<?php +/** + * PingTrax Preloads + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Cooperative http://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + +defined('XOOPS_ROOT_PATH') || die('XOOPS root path not defined'); + +/** + * Class PingtraxSitemapPreload + */ +class PingtraxSitemapPreload extends XoopsPreloadItem +{ + /** + * @param $args + + function eventCoreIncludeFunctionsRedirectheader($args) + { + $context = stream_context_create(array('http' => array( + 'method' => "POST", + 'header' => "Content-Type: text/xml\r\n", + 'content' => $xm... [truncated message content] |
From: <wis...@us...> - 2016-01-27 11:11:03
|
Revision: 13195 http://sourceforge.net/p/xoops/svn/13195 Author: wishcraft Date: 2016-01-27 11:11:00 +0000 (Wed, 27 Jan 2016) Log Message: ----------- Starting Fontier+ for XOOPS 2.5 Added Paths: ----------- XoopsModules/fontier+/ XoopsModules/fontier+/trunk/ XoopsModules/fontier+/trunk/modules/ XoopsModules/fontier+/trunk/modules/fontier/ XoopsModules/fontier+/trunk/modules/fontier/.htaccess XoopsModules/fontier+/trunk/modules/fontier/admin/ XoopsModules/fontier+/trunk/modules/fontier/blocks/ XoopsModules/fontier+/trunk/modules/fontier/callback.php XoopsModules/fontier+/trunk/modules/fontier/class/ XoopsModules/fontier+/trunk/modules/fontier/header.php XoopsModules/fontier+/trunk/modules/fontier/images/ XoopsModules/fontier+/trunk/modules/fontier/images/assets/ XoopsModules/fontier+/trunk/modules/fontier/images/icons/ XoopsModules/fontier+/trunk/modules/fontier/images/icons/16x16/ XoopsModules/fontier+/trunk/modules/fontier/images/icons/24x24/ XoopsModules/fontier+/trunk/modules/fontier/images/icons/32x32/ XoopsModules/fontier+/trunk/modules/fontier/images/icons/48x48/ XoopsModules/fontier+/trunk/modules/fontier/images/icons/module_fontier+.png XoopsModules/fontier+/trunk/modules/fontier/include/ XoopsModules/fontier+/trunk/modules/fontier/js/ XoopsModules/fontier+/trunk/modules/fontier/language/ XoopsModules/fontier+/trunk/modules/fontier/language/english/ XoopsModules/fontier+/trunk/modules/fontier/language/english/style.css XoopsModules/fontier+/trunk/modules/fontier/templates/ XoopsModules/fontier+/trunk/modules/fontier/templates/admin/ XoopsModules/fontier+/trunk/modules/fontier/templates/blocks/ XoopsModules/fontier+/trunk/xoops_data/ XoopsModules/fontier+/trunk/xoops_data/cache/ XoopsModules/fontier+/trunk/xoops_data/cache/fontier/ XoopsModules/fontier+/trunk/xoops_data/fontier/ XoopsModules/fontier+/trunk/xoops_lib/ XoopsModules/fontier+/trunk/xoops_lib/modules/ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/default-useragent-v1.diz XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/default-useragent-v2.diz XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/domains.diz XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-converted.diz XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-css-listed.diz XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-families.diz XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-preferences.diz XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-supported-v1.diz XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-supported-v2.diz XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/lookups.diz XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/mimetypes.diz XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/packs-archiving.diz XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/packs-converted.diz XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/packs-extracting.diz XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/stratas.diz XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/whois.diz XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/include/ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/include/constants.php XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/include/functions.php Added: XoopsModules/fontier+/trunk/modules/fontier/.htaccess =================================================================== --- XoopsModules/fontier+/trunk/modules/fontier/.htaccess (rev 0) +++ XoopsModules/fontier+/trunk/modules/fontier/.htaccess 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,47 @@ +php_value memory_limit 360M +php_value upload_max_filesize 999999M +php_value post_max_size 999999M +php_value error_reporting 0 +php_value display_errors 0 + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d + +RewriteRule ^([a-z0-9]{2})/(.*?)/callback.api$ callback.php?version=$1&mode=$2 [L,NC,QSA] + +RewriteRule ^([a-z0-9]{2})/(font)/(.*?)/(preview)/image.(gif|jpg|png)$ index.php?version=$1&mode=$2&clause=$3&state=$5&output=$4 [L] +RewriteRule ^([a-z0-9]{2})/survey/(preview)/(.*?)/image.(jpg|png|gif)$ survey-$2.php?version=$1&mode=$4&key=$3&output=$2 [L] +RewriteRule ^([a-z0-9]{2})/(font)/(.*?)/(preview)/(gif|jpg|png).api$ index.php?version=$1&mode=$2&clause=$3&state=$5&output=$4 [L] +RewriteRule ^([a-z0-9]{2})/survey/(preview)/(.*?)/(jpg|png|gif).api$ survey-$2.php?version=$1&mode=$4&key=$3&output=$2 [L] +RewriteRule ^([a-z0-9]{2})/(font)/(.*?)/(glyph)/([0-9]+)/image.(gif|jpg|png)$ index.php?version=$1&mode=$2&clause=$3&state=$6&output=$4&char=$5 [L] +RewriteRule ^([a-z0-9]{2})/(font)/(.*?)/(glyph)/([0-9]+)/(gif|jpg|png).api$ index.php?version=$1&mode=$2&clause=$3&state=$6&output=$4&char=$5 [L] +RewriteRule ^([a-z0-9]{2})/(font)/(.*?)/(ufo).api$ index.php?version=$1&mode=$2&clause=$3&output=$4 [L] +RewriteRule ^([a-z0-9]{2})/(font)/(.*?)/(ufo).api/(.*?)$ index.php?version=$1&mode=$2&clause=$3&state=$5&output=$4 [L] +RewriteRule ^([a-z0-9]{2})/(font)/(.*?)/(.*?).api$ index.php?version=$1&mode=$2&clause=$3&state=$5&output=$4 [L] + + +RewriteRule ^([a-z0-9]{2})/survey/page-([0-9]+)/(.*?)/(.*?).api$ survey-page-$2.php?version=$1&mode=$2&key=$3&output=$4& [L] +RewriteRule ^([a-z0-9]{2})/survey/(.*?)/(.*?)/(.*?).api?(.*?)$ survey-$2.php?version=$1&mode=$2&key=$3&output=$4&$5 [L] +RewriteRule ^([a-z0-9]{2})/survey/(.*?)/(.*?)/(.*?).api$ survey-$2.php?version=$1&mode=$2&key=$3&output=$4 [L] +RewriteRule ^([a-z0-9]{2})/survey/(.*?)/(.*?).api$ survey-$2.php?version=$1&key=$2&output=$3& [L] + +RewriteRule ^([a-z0-9]{2})/(.*?)/upload.api$ upload.php?version=$1&field=$2 [L] +RewriteRule ^([a-z0-9]{2})/(.*?)/releases.api$ releases.php?version=$1&field=$2 [L] +RewriteRule ^([a-z0-9]{2})/(uploads|releases)/(.*?)/(.*?).api?(.*?)$ index.php?version=$1&mode=$2&clause=$3&state=&output=$4&$5 [L] +RewriteRule ^([a-z0-9]{2})/(uploads|releases)/(.*?)/(.*?).api$ index.php?version=$1&mode=$2&clause=$3&state=&output=$4 [L] +RewriteRule ^([a-z0-9]{2})/(uploads|releases)/(forms).api$ index.php?version=$1&mode=$2&clause=&state=&output=$3 [L] + +RewriteRule ^([a-z0-9]{2})/(fonts|nodes|random|data|callbacks|downloads)/(.*?)/(.*?)/(.*?)/(.*?).api?(.*?)$ index.php?version=$1&mode=$2&clause=$3&state=$4&output=$5&name=$6&$7 [L] +RewriteRule ^([a-z0-9]{2})/(fonts|nodes|random|data|callbacks|downloads)/(.*?)/(.*?)/(.*?).api?(.*?)$ index.php?version=$1&mode=$2&clause=$3&state=$4&output=$5&$6 [L] +RewriteRule ^([a-z0-9]{2})/(fonts|nodes|random|data|callbacks|downloads|fonthit|archive)/(.*?)/(.*?).api?(.*?)$ index.php?version=$1&mode=$2&clause=$3&state=&output=$4&$5 [L] +RewriteRule ^([a-z0-9]{2})/(fonts|nodes|random|data|callbacks|downloads)/(.*?).api?(.*?)$ index.php?version=$1&mode=$2&clause=&state=&output=$3&$4 [L] + +RewriteRule ^([a-z0-9]{2})/(fonts|nodes|random|data|callbacks|downloads)/(.*?)/(.*?)/(.*?)/(.*?).api$ index.php?version=$1&mode=$2&clause=$3&state=$4&output=$5&name=$6 [L] +RewriteRule ^([a-z0-9]{2})/(fonts|nodes|random|data|callbacks|downloads)/(.*?)/(.*?)/(.*?).api$ index.php?version=$1&mode=$2&clause=$3&state=$4&output=$5 [L] +RewriteRule ^([a-z0-9]{2})/(fonts|nodes|random|data|callbacks|downloads|fonthit|archive)/(.*?)/(.*?).api$ index.php?version=$1&mode=$2&clause=$3&state=&output=$4 [L] +RewriteRule ^([a-z0-9]{2})/(fonts|nodes|random|data|callbacks|downloads)/(.*?).api$ index.php?version=$1&mode=$2&clause=&state=&output=$3& [L] + +RewriteRule ^font-download-example.zip$ examples/sample-font-api2-download.zip [L] +RewriteRule ^callback-example.php$ examples/callback-example.php.txt [L] +RewriteRule ^(.*?).(css|txt|php|jpg|png|gif|ico)$ $1.$2 [L] \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/modules/fontier/.htaccess ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/modules/fontier/callback.php =================================================================== --- XoopsModules/fontier+/trunk/modules/fontier/callback.php (rev 0) +++ XoopsModules/fontier+/trunk/modules/fontier/callback.php 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,77 @@ +<?php +/** + * Chronolabs Entitiesing Repository Services REST API API + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Cooperative http://labs.coop + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @package entities + * @since 2.1.9 + * @author Simon Roberts <wis...@us...> + * @subpackage api + * @description Entitiesing Repository Services REST API + * @link http://sourceforge.net/projects/chronolabsapis + * @link http://cipher.labs.coop + */ + + + require_once __DIR__ . DIRECTORY_SEPARATOR . "header.php"; + + $sql = "SELECT * FROM `peers` WHERE `peer-id` LIKE '%s'"; + if ($GLOBALS['FontsDB']->getRowsNum($results = $GLOBALS['FontsDB']->queryF(sprintf($sql, mysql_real_escape_string($GLOBALS['peer-id']))))==1) + { + $peer = $GLOBALS['FontsDB']->fetchArray($results); + } + + $mode = !isset($_REQUEST['mode'])?md5(NULL):$_REQUEST['mode']; + + switch ($mode) + { + case "register": + $required = array('peer-id', 'api-uri', 'api-uri-callback', 'api-uri-zip', 'api-uri-fonts', 'version', 'polinating'); + foreach($required as $field) + if (!in_array($field, array_keys($_POST))) + die("Field \$_POST[$field] is required to operate this function!"); + + $sql = "INSERT INTO `peers` (`peer-id`, 'api-uri', 'api-uri-callback', 'api-uri-zip', 'api-uri-fonts', `version`, `polinating`, `created`) VALUES ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')"; + if ($GLOBALS['FontsDB']->queryF(sprintf($sql, mysql_real_escape_string($_POST['peer-id']), mysql_real_escape_string($_POST['api-uri']), mysql_real_escape_string($_POST['api-uri-callback']), mysql_real_escape_string($_POST['api-uri-zip']), mysql_real_escape_string($_POST['api-uri-fonts']), mysql_real_escape_string($_POST['version']), ($_POST['polinating']==true?'Yes':'No'), time()))) + { + if ($_POST['polinating']==true) + { + if (API_URL === API_ROOT_NODE) + { + $sql = "SELECT * FROM `peers` WHERE `peer-id` NOT LIKE '%s' AND `peer-id` NOT LIKE '%s' AND `polinating` = 'Yes'"; + if ($GLOBALS['FontsDB']->getRowsNum($results = $GLOBALS['FontsDB']->queryF(sprintf($sql, mysql_real_escape_string($GLOBALS['peer-id']), mysql_real_escape_string($_POST['peer-id']))))>=1) + { + while($other = $GLOBALS['FontsDB']->fetchArray($results)) + { + @setCallBackURI(sprintf($other['api-uri'].$other['api-uri-callback'], $mode), 145, 145, $_POST, array()); + @setCallBackURI(sprintf($_POST['api-uri'].$_POST['api-uri-callback'], $mode), 145, 145, array('peer-id'=>$other['peer-id'], 'api-uri'=>$other['api-uri'], 'api-uri-callback'=>$other['api-uri-callback'], 'api-uri-zip'=>$other['api-uri-zip'], 'api-uri-fonts'=>$other['api-uri-fonts'], 'version'=>$other['version'], 'polinating'=>$other['polinating']), array()); + } + } + } + } + + } + break; + case "fingering": + $required = array('fingerprint'); + foreach($required as $field) + if (!in_array($field, array_keys($_POST))) + die("Field \$_POST[$field] is required to operate this function!"); + $sql = "SELECT COUNT(*) as RC from `fonts_fingering` where `fingerprint` LIKE '%s'"; + list($count) = $GLOBALS['FontsDB']->fetchRow($GLOBALS['FontsDB']->queryF(sprintf($sql, $_POST['fingerprint']))); + die(json_encode(array('count'=>$count))); + break; + default: + + break; + } + exit(0); +?> \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/modules/fontier/callback.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/modules/fontier/header.php =================================================================== --- XoopsModules/fontier+/trunk/modules/fontier/header.php (rev 0) +++ XoopsModules/fontier+/trunk/modules/fontier/header.php 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,87 @@ +<?php +/** + * Chronolabs Fonting Repository Services REST API API +* +* You may not change or alter any portion of this comment or credits +* of supporting developers from this source code or any supporting source code +* which is considered copyrighted (c) material of the original comment or credit authors. +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* +* @copyright Chronolabs Cooperative http://labs.coop +* @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) +* @package fonts +* @since 2.1.9 +* @author Simon Roberts <wis...@us...> +* @subpackage api +* @description Fonting Repository Services REST API +* @link http://sourceforge.net/projects/chronolabsapis +* @link http://cipher.labs.coop +*/ + + error_reporting(E_ERROR); + ini_set('display_errors', true); + + /** + * 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); + + /** + * + * @var constants + */ + define("API_FILE_IO_PEERS", __DIR__ . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'peers.diz'); + define("API_FILE_IO_DOMAINS", __DIR__ . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'domains.diz'); + define("API_FILE_IO_FOOTER", __DIR__ . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'api-%s.html'); + + require_once __DIR__.'/class/fontages.php'; + require_once __DIR__.'/functions.php'; + require_once __DIR__.'/apiconfig.php'; + + $parts = explode(".", microtime(true)); + mt_srand(mt_rand(-microtime(true), microtime(true))/$parts[1]); + mt_srand(mt_rand(-microtime(true), microtime(true))/$parts[1]); + mt_srand(mt_rand(-microtime(true), microtime(true))/$parts[1]); + mt_srand(mt_rand(-microtime(true), microtime(true))/$parts[1]); + $salter = ((float)(mt_rand(0,1)==1?'':'-').$parts[1].'.'.$parts[0]) / sqrt((float)$parts[1].'.'.intval(cosh($parts[0])))*tanh($parts[1]) * mt_rand(1, intval($parts[0] / $parts[1])); + header('Blowfish-salt: '. $salter); + + global $domain, $protocol, $business, $entity, $contact, $referee, $peerings, $source, $ipid, $fontnames; + $fontnames = array(); + + define('FONTS_CACHE', DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'fonts' . DIRECTORY_SEPARATOR . 'cache'); + if (!is_dir(FONTS_CACHE)) + mkdirSecure(FONTS_CACHE, 0777, true); + + + /** + * Global API Configurations and Setting from file Constants! + */ + $domain = getDomainSupportism('domain', $_SERVER["HTTP_HOST"]); + $protocol = getDomainSupportism('protocol', $_SERVER["HTTP_HOST"]); + $business = getDomainSupportism('business', $_SERVER["HTTP_HOST"]); + $entity = getDomainSupportism('entity', $_SERVER["HTTP_HOST"]); + $contact = getDomainSupportism('contact', $_SERVER["HTTP_HOST"]); + $referee = getDomainSupportism('referee', $_SERVER["HTTP_HOST"]); + + /** + * URI Path Finding of API URL Source Locality + * @var unknown_type + */ + $pu = parse_url($_SERVER['REQUEST_URI']); + $source = (isset($_SERVER['HTTPS'])?'https://':'http://').strtolower($_SERVER['HTTP_HOST']); + + /** + * URI Path Finding of API URL Source Locality + * @var unknown_type + */ + $ipid = getIPIdentity(whitelistGetIP(true)); \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/modules/fontier/header.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/modules/fontier/images/icons/module_fontier+.png =================================================================== (Binary files differ) Index: XoopsModules/fontier+/trunk/modules/fontier/images/icons/module_fontier+.png =================================================================== --- XoopsModules/fontier+/trunk/modules/fontier/images/icons/module_fontier+.png 2016-01-02 01:15:09 UTC (rev 13194) +++ XoopsModules/fontier+/trunk/modules/fontier/images/icons/module_fontier+.png 2016-01-27 11:11:00 UTC (rev 13195) Property changes on: XoopsModules/fontier+/trunk/modules/fontier/images/icons/module_fontier+.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/fontier+/trunk/modules/fontier/language/english/style.css =================================================================== --- XoopsModules/fontier+/trunk/modules/fontier/language/english/style.css (rev 0) +++ XoopsModules/fontier+/trunk/modules/fontier/language/english/style.css 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,97 @@ +@CHARSET "ISO-8859-1"; + +@import url(https://fonts.ringwould.com.au/v1/random/any/Api-Header-Alpha/css.api); +@import url(https://fonts.ringwould.com.au/v1/random/any/Api-Header-Omega/css.api); +@import url(https://fonts.ringwould.com.au/v1/random/any/Api-Content/css.api); +@import url(https://fonts.ringwould.com.au/v1/random/any/Api-Fields/css.api); +@import url(https://fonts.ringwould.com.au/v1/random/any/Api-Bullets/css.api); +@import url(https://fonts.ringwould.com.au/v1/random/any/Api-Main/css.api); +@import url(https://fonts.ringwould.com.au/v1/random/courier-terminal-shell-system/Api-Code-Examples/css.api); + +body { + font-family: "Api Content", "Trebuchet MS", Arial, Helvetica, sans-serif; + font-size:85%em; + text-align:justify; +} +.main { + font-family: "Api Main" !important; + border:3px solid #000000; + border-radius:15px; + background-color:#feeebe; + padding:39px 39px 39px 39px; + margin:64px 64px 64px 64px; + -webkit-box-shadow: 7px 7px 10px 0px rgba(108, 80, 99, 0.72); + -moz-box-shadow: 7px 7px 10px 0px rgba(108, 80, 99, 0.72); + box-shadow: 7px 7px 10px 0px rgba(108, 80, 99, 0.72); +} +h1 { + font-family: "Api Header Alpha" !important; + font-weight:bold; + font-size:1.42em; + background-color:#FFEED9; + border-radius:15px; + padding:10px 10px 10px 10px; + text-shadow: 4px 4px 2px rgba(150, 150, 150, 1); +} +h2 { + font-family: "Api Header Omega" !important; + font-weight:500; + font-size:1.15em; + text-shadow: 4px 4px 2px rgba(150, 150, 150, 1); +} +blockquote { + margin-left:25px; + margin-right:25px; + font-family: "Api Code Examples", "Courier New", Courier, monospace !important; + margin-bottom:25px; + padding: 25px 25px 25px 25px; + border:dotted; + background-color:#fefefe; + -webkit-box-shadow: 7px 7px 10px 0px rgba(108, 80, 99, 0.72); + -moz-box-shadow: 7px 7px 10px 0px rgba(108, 80, 99, 0.72); + box-shadow: 7px 7px 10px 0px rgba(108, 80, 99, 0.72); + -webkit-border-radius: 14px; + -moz-border-radius: 14px; + border-radius: 14px; + text-shadow: 2px 2px 2px rgba(103, 87, 101, 0.82); +} + +.error, #error { + color: red; + margin:25px; + font-family: "Api Code Examples", "Courier New", Courier, monospace !important; + font-weight: bold; + padding: 25px 25px 25px 25px; + border: 5px dotted rgb(128, 230, 110); + background-color:#ffeede; + -webkit-box-shadow: 7px 7px 10px 0px rgba(108, 80, 99, 0.72); + -moz-box-shadow: 7px 7px 10px 0px rgba(108, 80, 99, 0.72); + box-shadow: 7px 7px 10px 0px rgba(108, 80, 99, 0.72); + -webkit-border-radius: 14px; + -moz-border-radius: 14px; + border-radius: 14px; + text-shadow: 2px -2px -2px rgba(103, 87, 101, 0.82); +} + +form { + padding:17px; + border: solid 3px #110022; + -webkit-box-shadow: 7px 7px 10px 0px rgba(108, 80, 99, 0.72); + -moz-box-shadow: 7px 7px 10px 0px rgba(108, 80, 99, 0.72); + box-shadow: 7px 7px 10px 0px rgba(108, 80, 99, 0.72); + -webkit-border-radius: 11px; + -moz-border-radius: 11px; + border-radius: 11px; + text-shadow: 2px 2px 2px rgba(103, 87, 101, 0.82); + margin-bottom: 16px; +} + +p { + font-family: "Api Content", "Trebuchet MS", Arial, Helvetica, sans-serif; + margin-bottom:12px; +} + +input, button, textarea, radio, select, label +{ + font-family: "Api Fields" !important; +} \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/modules/fontier/language/english/style.css ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/default-useragent-v1.diz =================================================================== --- XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/default-useragent-v1.diz (rev 0) +++ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/default-useragent-v1.diz 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,7 @@ +ttf||truetype +otf||truetype +woff||woff +svg||svg +eot||eot +afm||afm +ufo||ufo \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/default-useragent-v1.diz ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/default-useragent-v2.diz =================================================================== --- XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/default-useragent-v2.diz (rev 0) +++ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/default-useragent-v2.diz 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,7 @@ +ttf||truetype +otf||truetype +woff||woff +svg||svg +eot||eot +afm||afm +ufo||ufo \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/default-useragent-v2.diz ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/domains.diz =================================================================== --- XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/domains.diz (rev 0) +++ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/domains.diz 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,6 @@ +api.hempembassy.net||http://||Hemp Embassy (Nimbin, Australia)||Guanga-girls||we...@he...||http://hempembassy.net/register.php +ringwould.com.au||https://||Ringwould Farm (WA, Australia)||Saunder's Family||rin...@me...||http://farm.ringwould.com.au +labs.coop||http://||Chronolabs Cooperative (US Hosting)||Wishcraft||me...@sl...||http://labs.coop/register.php +syd.labs.coop||http://||Chronolabs Cooperative (Sydney, Australia)||Wishcraft||wis...@us...||http://labs.coop/register.php +127.0.0.1||http://||Localhost Development||Development||wis...@us...||http://127.0.0.1 +localhost||http://||Localhost Development||Development||wis...@us...||http://localhost \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/domains.diz ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-converted.diz =================================================================== --- XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-converted.diz (rev 0) +++ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-converted.diz 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,31 @@ +pfa +pfb +pt3 +t42 +sfd +ttf +bdf +otf +otb +cff +cef +gai +woff +svg +ufo +pf3 +ttc +gsf +cid +bin +hqx +dfont +mf +ik +fon +fnt +pcf +pmf +pdb +eot +afm \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-converted.diz ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-css-listed.diz =================================================================== --- XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-css-listed.diz (rev 0) +++ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-css-listed.diz 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,31 @@ +pfa +pfb +pt3 +t42 +sfd +ttf +bdf +otf +otb +cff +cef +gai +woff +svg +ufo +pf3 +ttc +gsf +cid +bin +hqx +dfont +mf +ik +fon +fnt +pcf +pmf +pdb +eot +afm \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-css-listed.diz ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-families.diz =================================================================== --- XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-families.diz (rev 0) +++ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-families.diz 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,10 @@ +normal||Normal regular font +italic||Font is italic +bold||Font is bold +semi||Font is semi-bold +wide||Font is wide-set +condensed||Font is condensed +light||Font is light +book||Font is for book +script||Font is a script +graphic||Font is like a wing-ding or graffite \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-families.diz ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-preferences.diz =================================================================== --- XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-preferences.diz (rev 0) +++ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-preferences.diz 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,31 @@ +ttf +otf +eot +woff +pfa +pfb +pt3 +t42 +sfd +bdf +otb +cff +cef +gai +svg +ufo +pf3 +ttc +gsf +cid +bin +hqx +dfont +mf +ik +fnt +pcf +pmf +pdb +afm +fon \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-preferences.diz ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-supported-v1.diz =================================================================== --- XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-supported-v1.diz (rev 0) +++ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-supported-v1.diz 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,6 @@ +ttf +otf +woff +svg +eot +afm \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-supported-v1.diz ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-supported-v2.diz =================================================================== --- XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-supported-v2.diz (rev 0) +++ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-supported-v2.diz 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,31 @@ +pfa +pfb +pt3 +t42 +sfd +ttf +bdf +otf +otb +cff +cef +gai +woff +svg +ufo +pf3 +ttc +gsf +cid +bin +hqx +dfont +mf +ik +fon +fnt +pcf +pmf +pdb +eot +afm \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/font-supported-v2.diz ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/lookups.diz =================================================================== --- XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/lookups.diz (rev 0) +++ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/lookups.diz 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,3 @@ +http://lookups.labs.coop/v1/country/%s/%s.api +http://lookups.api.hempembassy.net/v1/country/%s/%s.api +https://lookups.ringwould.com.au/v1/country/%s/%s.api \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/lookups.diz ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/mimetypes.diz =================================================================== --- XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/mimetypes.diz (rev 0) +++ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/mimetypes.diz 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,46 @@ +pfa||application/x-font-type1 +pfb||application/x-font-type1 +pt3||application/x-pagemaker +t42||application/octet-stream +sfd||application/octet-stream +ttf||application/x-font-ttf +bdf||application/octet-stream +otf||application/octet-stream +otb||image/vnd.nokia.ota-bitmap +cff||application/octet-stream +cef||application/octet-stream +gai||application/octet-stream +woff||application/font-woff +svg||image/svg+xml +ufo||application/octet-stream +pf3||application/octet-stream +ttc||application/octet-stream +gsf||application/octet-stream +cid||application/octet-stream +bin||application/octet-stream +hqx||application/mac-binhex +dfont||application/octet-stream +mf||application/octet-stream +ik||application/octet-stream +fon||application/octet-stream +fnt||application/octet-stream +pcf||application/octet-stream +pmf||application/octet-stream +pdb||application/octet-stream +eot||application/octet-stream +afm||application/octet-stream +7z||application/x-7z-compressed +zip||application/x-zip-compressed +rar||application/x-rar-compressed +rar5||application/x-rar-compressed +exe||application/x-ms-dos-executable +zoo||application/x-zoo-compressed +tar.gz||application/x-tar +html||text/html +css||text/css +diz||text/plain +-=-||application/octet-stream +jpg||image/jpg +jpeg||image/jpg +gif||image/gif +png||image/png \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/mimetypes.diz ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/packs-archiving.diz =================================================================== --- XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/packs-archiving.diz (rev 0) +++ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/packs-archiving.diz 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,23 @@ +7z||7z a "%pack" "%folder" +ar||#tar --auto-compress -cf "%pack" "%folder" +bz2||#tar --auto-compress -cf "%pack" "%folder" +gz||#tar --auto-compress -cf "%pack" "%folder" +lzma||#tar --auto-compress -cf "%pack" "%folder" +lz||#tar --auto-compress -cf "%pack" "%folder" +lzo||#tar --auto-compress -cf "%pack" "%folder" +tar||#tar --auto-compress -cf "%pack" "%folder" +tar.7z||#tar --auto-compress -cf "%pack" "%folder" +tar.Z||#tar --auto-compress -cf "%pack" "%folder" +tar.bz2||#tar --auto-compress -cf "%pack" "%folder" +tar.gz||#tar --auto-compress -cf "%pack" "%folder" +tar.lz||#tar --auto-compress -cf "%pack" "%folder" +tar.lzma||#tar --auto-compress -cf "%pack" "%folder" +tar.lzo||#tar --auto-compress -cf "%pack" "%folder" +tar.xz||#tar --auto-compress -cf "%pack" "%folder" +tgz||#tar --auto-compress -cf "%pack" "%folder" +zip||zip -D -r -9 "%pack" "%folder" +rar||rar a -k -ma4 -r -z"%commentfile" "%pack" "%folder" +rar5||rar a -rr5 -k -ma5 -r -z"%commentfile" "%pack" "%folder" +exe||rar a -rr5 -k -ma4 -r -sfx -z"%commentfile" "%pack" "%folder" +zoo||zoo -add "%pack" %filelist +zx||#tar --auto-compress -cf "%pack" "%folder" \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/packs-archiving.diz ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/packs-converted.diz =================================================================== --- XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/packs-converted.diz (rev 0) +++ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/packs-converted.diz 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,21 @@ +7z +ar +bz2 +gz +lzma +lz +tar +tar.7z +tar.Z +tar.bz2 +tar.gz +tar.lz +tar.lzma +tar.lzo +tar.xz +tgz +zip +rar +rar5 +zoo +zx \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/packs-converted.diz ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/packs-extracting.diz =================================================================== --- XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/packs-extracting.diz (rev 0) +++ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/packs-extracting.diz 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,23 @@ +7z||7z x -y -o"%path" "%pack" +tar||#tar -xf --directory="%path" "%pack" +tar.7z||#tar -xf --directory="%path" "%pack" +tar.Z||#tar -xf --directory="%path" "%pack" +tar.bz2||#tar -xf --directory="%path" "%pack" +tar.gz||#tar -xf --directory="%path" "%pack" +tar.lz||#tar -xf --directory="%path" "%pack" +tar.lzma||#tar -xf --directory="%path" "%pack" +tar.lzo||#tar -xf --directory="%path" "%pack" +tar.xz||#tar -xf --directory="%path" "%pack" +tgz||#tar -xf --directory="%path" "%pack" +zip||unzip "%pack" -d "%path" +rar||unrar x -y "%pack" "%path" +rar5||unrar x -y "%pack" "%path" +zoo||zoo -extract "%pack" "%path" +Z||#tar -xf --directory="%path" "%pack" +bz2||#tar -xf --directory="%path" "%pack" +gz||#tar -xf --directory="%path" "%pack" +lz||#tar -xf --directory="%path" "%pack" +lzma||#tar -xf --directory="%path" "%pack" +lzo||#tar -xf --directory="%path" "%pack" +xz||#tar -xf --directory="%path" "%pack" +ar||#tar -xf --directory="%path" "%pack" \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/packs-extracting.diz ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/stratas.diz =================================================================== --- XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/stratas.diz (rev 0) +++ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/stratas.diz 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,3 @@ +http://strata.labs.coop +http://strata.api.hempembassy.net +https://strata.ringwould.com.au \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/stratas.diz ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/whois.diz =================================================================== --- XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/whois.diz (rev 0) +++ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/whois.diz 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,3 @@ +http://whois.labs.coop/v1/%s/%s.api +http://whois.api.hempembassy.net/v1/%s/%s.api +https://whois.ringwould.com.au/v1/%s/%s.api \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/data/whois.diz ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/include/constants.php =================================================================== --- XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/include/constants.php (rev 0) +++ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/include/constants.php 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,37 @@ +<?php +/** + * Chronolabs Cooperatiev Fontier+ + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Cooperative http://labs.coop + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @package fontier+ + * @since 1.0.1 + * @author Simon Roberts <wis...@us...> + * @subpackage fontier+ + * @description XOOPS Client for Fonts REST API - http://fonts.labs.coop + * @link http://fonts.labs.coop + * @link http://sourceforge.net/projects/chronolabs + * @link http://cipher.labs.coop + */ + + + /** + * + * @var string + */ + define('FONTIER_VERSION', '1.0.1'); + define('MAXIMUM_QUERIES', 500); + + /******* DO NOT CHANGE THIS VARIABLE **** + * @var string + */ + define('FONTIER_API_NODE', 'http://fonts.labs.coop'); + +?> \ No newline at end of file Property changes on: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/include/constants.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/include/functions.php =================================================================== --- XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/include/functions.php (rev 0) +++ XoopsModules/fontier+/trunk/xoops_lib/modules/fontier/include/functions.php 2016-01-27 11:11:00 UTC (rev 13195) @@ -0,0 +1,1168 @@ +<?php +/** + * Chronolabs Cooperatiev Fontier+ + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Cooperative http://labs.coop + * @license General Public License version 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @package fontier+ + * @since 1.0.1 + * @author Simon Roberts <wis...@us...> + * @subpackage fontier+ + * @description XOOPS Client for Fonts REST API - http://fonts.labs.coop + * @link http://fonts.labs.coop + * @link http://sourceforge.net/projects/chronolabs + * @link http://cipher.labs.coop + */ + +require_once __DIR__.'/constants.php'; + +if (!function_exists("fontsUseragentSupportedArray")) { + function fontsUseragentSupportedArray() + { + $return = array(); + if (isset($_GET['version']) && !empty($_GET['version'])) + $version = (string)$_GET['version']; + else + $version = (string)"v2"; + $ua = explode( " " , str_replace(array("\"","'",";",":","(",")","\\","/"), " ", $_SERVER['HTTP_USER_AGENT']) ); + $fontlist = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'default-useragent-'.$version.'.diz'; + if (!isset($ua[0]) && empty($ua[0]) && !isset($ua[1]) && empty($ua[1]) && !file_exists($fontlist = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . strtolower($ua[0]).'-'.strtolower($ua[1]).'-useragent-'.$version.'.diz')) + { + foreach(cleanWhitespaces(file($fontlist)) as $out) + { + $puts = explode("||", $out); + $return[$puts[0]]=$puts[1]; + } + } + if (empty($return)) + foreach(cleanWhitespaces(file($fontlist)) as $out) + { + $puts = explode("||", $out); + $return[$puts[0]]=$puts[1]; + } + return $return; + } +} + + +if (!function_exists("setCallBackURI")) { + + /* function getURIData() + * + * cURL Routine + * @author Simon Roberts (Chronolabs) si...@la... + * + * @return float() + */ + function setCallBackURI($uri = '', $timeout = 65, $connectout = 65, $data = array(), $queries = array()) + { + list($when) = $GLOBALS['FontsDB']->fetchRow($GLOBALS['trackerDB']->queryF("SELECT `when` from `callbacks` ORDER BY `when` DESC LIMIT 1")); + if ($when<time()) + $when = $time(); + $when = $when + mt_rand(3, 14); + return $GLOBALS['FontsDB']->queryF("INSERT INTO `callbacks` (`when`, `uri`, `timeout`, `connection`, `data`, `queries`) VALUES(\"$when\", \"$uri\", \"$timeout\", \"$connectout\", \"" . mysql_real_escape_string(json_encode($data)) . "\",\"" . mysql_real_escape_string(json_encode($queries)) . "\")"); + } +} + +if (!function_exists("putRawFile")) { + /** + * + * @param string $file + * @param string $data + */ + function putRawFile($file = '', $data = '') + { + $lineBreak = "\n"; + if (substr(PHP_OS, 0, 3) == 'WIN') { + $lineBreak = "\r\n"; + } + if (!is_dir(dirname($file))) + if (strpos(' '.$file, FONTS_CACHE)) + mkdirSecure(dirname($file), 0777, true); + else + mkdir(dirname($file), 0777, true); + elseif (strpos(' '.$file, FONTS_CACHE) && !file_exists(FONTS_CACHE . DIRECTORY_SEPARATOR . '.htaccess')) + putRawFile(FONTS_CACHE . DIRECTORY_SEPARATOR . '.htaccess', "<Files ~ \"^.*$\">\n\tdeny from all\n</Files>"); + if (is_file($file)) + unlink($file); + $data = str_replace("\n", $lineBreak, $data); + $ff = fopen($file, 'w'); + fwrite($ff, $data, strlen($data)); + fclose($ff); + } +} + +if (!function_exists("whitelistGetIP")) { + + /* function whitelistGetIPAddy() + * + * provides an associative array of whitelisted IP Addresses + * @author Simon Roberts (Chronolabs) si...@la... + * + * @return array + */ + function whitelistGetIPAddy() { + return array_merge(whitelistGetNetBIOSIP(), file(dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'whitelist.txt')); + } +} + +if (!function_exists("whitelistGetNetBIOSIP")) { + + /* function whitelistGetNetBIOSIP() + * + * provides an associative array of whitelisted IP Addresses base on TLD and NetBIOS Addresses + * @author Simon Roberts (Chronolabs) si...@la... + * + * @return array + */ + function whitelistGetNetBIOSIP() { + $ret = array(); + foreach(file(dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'whitelist-domains.txt') as $domain) { + $ip = gethostbyname($domain); + $ret[$ip] = $ip; + } + return $ret; + } +} + +if (!function_exists("whitelistGetIP")) { + + /* function whitelistGetIP() + * + * get the True IPv4/IPv6 address of the client using the API + * @author Simon Roberts (Chronolabs) si...@la... + * + * @param $asString boolean Whether to return an address or network long integer + * + * @return mixed + */ + function whitelistGetIP($asString = true){ + // Gets the proxy ip sent by the user + $proxy_ip = ''; + if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { + $proxy_ip = $_SERVER['HTTP_X_FORWARDED_FOR']; + } else + if (!empty($_SERVER['HTTP_X_FORWARDED'])) { + $proxy_ip = $_SERVER['HTTP_X_FORWARDED']; + } else + if (! empty($_SERVER['HTTP_FORWARDED_FOR'])) { + $proxy_ip = $_SERVER['HTTP_FORWARDED_FOR']; + } else + if (!empty($_SERVER['HTTP_FORWARDED'])) { + $proxy_ip = $_SERVER['HTTP_FORWARDED']; + } else + if (!empty($_SERVER['HTTP_VIA'])) { + $proxy_ip = $_SERVER['HTTP_VIA']; + } else + if (!empty($_SERVER['HTTP_X_COMING_FROM'])) { + $proxy_ip = $_SERVER['HTTP_X_COMING_FROM']; + } else + if (!empty($_SERVER['HTTP_COMING_FROM'])) { + $proxy_ip = $_SERVER['HTTP_COMING_FROM']; + } + if (!empty($proxy_ip) && $is_ip = preg_match('/^([0-9]{1,3}.){3,3}[0-9]{1,3}/', $proxy_ip, $regs) && count($regs) > 0) { + $the_IP = $regs[0]; + } else { + $the_IP = $_SERVER['REMOTE_ADDR']; + } + + $the_IP = ($asString) ? $the_IP : ip2long($the_IP); + return $the_IP; + } +} + + +if (!function_exists("getIPIdentity")) { + /** + * + * @param string $ip + * @return string + */ + function getIPIdentity($ip = '', $sarray = false) + { + $sql = array(); + + if (empty($ip)) + $ip = whitelistGetIP(true); + + if (!filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) === false) + $sql['selecta'] = "SELECT * from `networking` WHERE `ipaddy` LIKE '" . $ip . "' AND `type` = 'ipv6'"; + else + $sql['selecta'] = "SELECT * from `networking` WHERE `ipaddy` LIKE '" . $ip . "' AND `type` = 'ipv4'"; + if (!$row = $GLOBALS['FontsDB']->fetchArray($GLOBALS['FontsDB']->queryF($sql['selecta']))) + if (($ipaddypart[0] === $serverpart[0] && $ipaddypart[1] === $serverpart[1]) ) + { + $uris = cleanWhitespaces(file($file = __DIR__ . DIRECTORY_SEPARATOR . "data" . DIRECTORY_SEPARATOR . "lookups.diz")); + shuffle($uris); shuffle($uris); shuffle($uris); shuffle($uris); + if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE || FILTER_FLAG_NO_RES_RANGE) === false) + { + $data = array(); + foreach($uris as $uri) + { + if ($data['ip']==$ip || $data['country']['iso'] == "-" || empty($data)) + $data = json_decode(getURIData(sprintf($uri, 'myself', 'json'), 120, 120), true); + if (count($data) > 0 && $data['country']['iso'] != "-") + continue; + } + } else{ + foreach($uris as $uri) + { + if ($data['ip']!=$ip || $data['country']['iso'] == "-" || empty($data)) + $data = json_decode(getURIData(sprintf($uri, $ip, 'json'), 120, 120), true); + if (count($data) > 0 && $data['country']['iso'] != "-") + continue; + } + } + if (!isset($data['ip']) && empty($data['ip'])) + $data['ip'] = $ip; + if (!filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) === false) + $sql['selectb'] = "SELECT * from `networking` WHERE `ipaddy` LIKE '" . $data['ip'] . "' AND `type` = 'ipv6'"; + else + $sql['selectb'] = "SELECT * from `networking` WHERE `ipaddy` LIKE '" . $data['ip'] . "' AND `type` = 'ipv4'"; + if (!$row = $GLOBALS['FontsDB']->fetchArray($GLOBALS['FontsDB']->queryF($sql['selectb']))) + { + $row = array(); + $row['ipaddy'] = $data['ip']; + if (!filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) === false) + $row['type'] = 'ipv6'; + else + $row['type'] = 'ipv4'; + $row['netbios'] = gethostbyaddr($row['ipaddy']); + $row['data'] = array('ipstack' => gethostbynamel($row['netbios'])); + $row['domain'] = getBaseDomain("http://".$row['netbios']); + $row['country'] = $data['country']['iso']; + $row['region'] = $data['location']['region']; + $row['city'] = $data['location']['city']; + $row['postcode'] = $data['location']['postcode']; + $row['timezone'] = "GMT " . $data['location']['gmt']; + $row['longitude'] = $data['location']['coordinates']['longitude']; + $row['latitude'] = $data['location']['coordinates']['latitude']; + $row['last'] = $row['created'] = time(); + $row['downloads'] = 0; + $row['uploads'] = 0; + + $row['fonts'] = 0; + $row['surveys'] = 0; + $whois = array(); + $whoisuris = cleanWhitespaces(file(__DIR__ . DIRECTORY_SEPARATOR . "data" . DIRECTORY_SEPARATOR . "whois.diz")); + shuffle($whoisuris); shuffle($whoisuris); shuffle($whoisuris); shuffle($whoisuris); + foreach($whoisuris as $uri) + { + if (empty($whois[$row['type']]) || !isset($whois[$row['type']])) + { + $whois[$row['type']] = json_decode(getURIData(sprintf($uri, $row['ipaddy'], 'json'), 120, 120), true); + } elseif (empty($whois['domain']) || !isset($whois['domain'])) + { + $whois['domain'] = json_decode(getURIData(sprintf($uri, $row['domain'], 'json'), 120, 120), true); + } else + continue; + } + $sql = "SELECT count(*) FROM `whois` WHERE `id` = '".$wsid = md5(json_encode($whois))."'"; + list($countb) = $GLOBALS['FontsDB']->fetchRow($GLOBALS['FontsDB']->queryF($sql)); + if ($countb == 0) + { + $wsdata = array(); + $wsdata['id'] = $wsid; + $wsdata['whois'] = mysql_real_escape_string(json_encode($whois)); + $wsdata['created'] = time(); + $wsdata['last'] = time(); + $wsdata['instances'] = 1; + if (!$GLOBALS['FontsDB']->queryF($sql = "INSERT INTO `whois` (`" . implode('`, `', array_keys($whois)) . "`) VALUES ('" . implode("', '", $whois) . "')")) + die("SQL Failed: $sql;"); + else + echo "."; + } else { + if (!$GLOBALS['FontsDB']->queryF($sql = "UPDATE `whois` SET `instances` = `instances` + 1, `last` = unix_timestamp() WHERE `id` = '$wsid'")) + die("SQL Failed: $sql;"); + else + echo "."; + } + $row['whois'] = $wsid; + $row['ip_id'] = md5(json_encode($row)); + $data = array(); + foreach($row as $key => $value) + if (is_array($value)) + $data[$key] = mysql_real_escape_string(json_encode($value)); + else + $data[$key] = mysql_real_escape_string($value); + $sql['inserta'] = "INSERT INTO `networking` (`" . implode("`, `", array_keys($data)) . "`) VALUES ('" . implode("', '", $data) . "')"; + $GLOBALS['FontsDB']->queryF($sql['inserta']); + } + } + $sql['updatea'] = "UPDATE `networking` SET `last` = '". time() . '\' WHERE `ip_id` = "' . $row['ip_id'] .'"'; + $GLOBALS['FontsDB']->queryF($sql['updatea']); + if ($sarray == false) + return $row['ip_id']; + else + return $row; + } +} + + +if (!function_exists("getBaseDomain")) { + /** + * getBaseDomain + * + * @param string $url + * @return string|unknown + */ + function getBaseDomain($url) + { + + static $fallout, $stratauris, $classes; + + if (empty($classes)) + { + if (empty($stratauris)) { + $stratauris = cleanWhitespaces(file(__DIR__ . DIRECTORY_SEPARATOR . "data" . DIRECTORY_SEPARATOR . "stratas.diz")); + shuffle($stratauris); shuffle($stratauris); shuffle($stratauris); shuffle($stratauris); + } + shuffle($stratauris); + $attempts = 0; + while(empty($classes) || $attempts <= (count($stratauris) * 1.65)) + { + $attempts++; + $classes = array_keys(unserialize(getURIData($stratauris[mt_rand(0, count($stratauris)-1)] ."/v1/strata/serial.api", 120, 120))); + } + } + if (empty($fallout)) + { + if (empty($stratauris)) { + $stratauris = cleanWhitespaces(file(__DIR__ . DIRECTORY_SEPARATOR . "data" . DIRECTORY_SEPARATOR . "stratas.diz")); + shuffle($stratauris); shuffle($stratauris); shuffle($stratauris); shuffle($stratauris); + } + shuffle($stratauris); + $attempts = 0; + while(empty($fallout) || $attempts <= (count($stratauris) * 1.65)) + { + $attempts++; + $fallout = array_keys(unserialize(getURIData($stratauris[mt_rand(0, count($stratauris)-1)] ."/v1/fallout/serial.api", 120, 120))); + } + } + + // Get Full Hostname + $url = strtolower($url); + $hostname = parse_url($url, PHP_URL_HOST); + if (!filter_var($hostname, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6 || FILTER_FLAG_IPV4) === false) + return $hostname; + + // break up domain, reverse + $elements = explode('.', $hostname); + $elements = array_reverse($elements); + + // Returns Base Domain + if (in_array($elements[0], $classes)) + return $elements[1] . '.' . $elements[0]; + elseif (in_array($elements[0], $fallout) && in_array($elements[1], $classes)) + return $elements[2] . '.' . $elements[1] . '.' . $elements[0]; + elseif (in_array($elements[0], $fallout)) + return $elements[1] . '.' . $elements[0]; + else + return $elements[1] . '.' . $elements[0]; + } +} + +if (!function_exists("generateCSS")) { + function generateCSS($fonts = array(), $name = '', $normal = 'no', $bold = 'no', $italic = 'no', $version = "v2") + { + if ($bold == 'yes') + $name .= ' Bold'; + if ($italic == 'yes') + $name .= ' Italic'; + $name = trim($name); + $typals = fontsUseragentSupportedArray(); + $buff = array(); + $keys = array_keys($fonts); + sort($keys); + foreach($keys as $type) + $buff[] = "local('".$fonts[$type]."') format('".$typals[$type]."')"; + foreach($keys as $type) + $buff[] = "url('".$fonts[$type]."') format('".$typals[$type]."')"; + $css = array(); + $css[] = ""; + $css[] = "/** Font: $name **/"; + $css[] = "@font-face {"; + $css[] = "\tfont-family: '$name';"; + $css[] = "\tsrc: url('".$fonts['woff']."');"; + $css[] = "\tsrc: ".implode(", ", $buff) .";"; + $css[] = "\tfont-weight: ".($bold=='yes'?'900':'normal') . ";"; + $css[] = "\tfont-style: ".($italic=='yes'?'italic':'normal') . ";"; + $css[] = "}"; + return implode("\n", $css); + } +} + +if (!function_exists("getRegionalFontName")) { + /** + * + * @param unknown_type $path + * @param unknown_type $perm + * @param unknown_type $secure + */ + function getRegionalFontName($fontid = '', $latitude = 0, $longitude = 0, $getGistance = false) + { + static $variables = array(); + if (!isset($variables[$fontid])) + { + if ($latitude==0 && $longitude == 0) + { + if (empty($iparray)) + $iparray = getIPIdentity(whitelistGetIP(true), true); + $latitude = $iparray['latitude']; + $longitude = $iparray['longitude']; + } + list($name, $distance) = $GLOBALS['FontsDB']->fetchRow($GLOBALS['FontsDB']->queryF("SELECT `name`, 3956 * 2 * ASIN(SQRT(POWER(SIN((" . abs($latitude) . " - abs(`latitude`)) * pi() / 180 / 2), 2) + COS(" . abs($latitude) . " * pi() / 180 ) * COS(abs(`latitude`) * pi() / 180) * POWER(SIN((" . $longitude . " - `longitude`) * pi() / 180 / 2), 2) )) as distance FROM `fonts_names` WHERE `font_id` = '$fontid' ORDER BY `distance` LIMIT 1")); + $variables[$fontid]['name'] = empty($name)?$fontid:$name; + $variables[$fontid]['distance'] = $distance; + } + return (!isset($variables[$fontid]['name'])||empty($variables[$fontid]['name'])?$fontid:($getGistance == false?$variables[$fontid]['name']:$variables[$fontid]['distance'])); + } +} + +if (!function_exists("getMimetype")) { + /** + * + * @param unknown_type $path + * @param unknown_type $perm + * @param unknown_type $secure + */ + function getMimetype($extension = '-=-') + { + $mimetypes = cleanWhitespaces(file(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'mimetypes.diz')); + foreach($mimetypes as $mimetype) + { + $parts = explode("||", $mimetype); + if (strtolower($extension) == strtolower($parts[0])) + return $parts[1]; + if (strtolower("-=-") == strtolower($parts[0])) + $final = $parts[1]; + } + return $final; + } +} + +if (!function_exists("mkdirSecure")) { + /** + * + * @param unknown_type $path + * @param unknown_type $perm + * @param unknown_type $secure + */ + function mkdirSecure($path = '', $perm = 0777, $secure = true) + { + if (!is_dir($path)) + { + mkdir($path, $perm, true); + if ($secure == true) + { + writeRawFile($path . DIRECTORY_SEPARATOR . '.htaccess', "<Files ~ \"^.*$\">\n\tdeny from all\n</Files>"); + } + return true; + } + return false; + } +} + +if (!function_exists("cleanWhitespaces")) { + /** + * + * @param array $array + */ + function cleanWhitespaces($array = array()) + { + foreach($array as $key => $value) + { + if (is_array($value)) + $array[$key] = cleanWhitespaces($value); + else { + $array[$key] = trim(str_replace(array("\n", "\r", "\t"), "", $value)); + } + } + return $array; + } +} + +if (!function_exists("getURIData")) { + + /* function getURIData() + * + * cURL Routine + * @author Simon Roberts (Chronolabs) si...@la... + * + * @return float() + */ + function getURIData($uri = '', $timeout = 65, $connectout = 65, $post_data = array()) + { + if (!function_exists("curl_init")) + { + return file_get_contents($uri); + } + if (!$btt = curl_init($uri)) { + return false; + } + curl_setopt($btt, CURLOPT_HEADER, 0); + curl_setopt($btt, CURLOPT_POST, (count($posts)==0?false:true)); + if (count($posts)!=0) + curl_setopt($btt, CURLOPT_POSTFIELDS, http_build_query($post_data)); + curl_setopt($btt, CURLOPT_CONNECTTIMEOUT, $connectout); + curl_setopt($btt, CURLOPT_TIMEOUT, $timeout); + curl_setopt($btt, CURLOPT_RETURNTRANSFER, true); + curl_setopt($btt, CURLOPT_VERBOSE, false); + curl_setopt($btt, CURLOPT_SSL_VERIFYHOST, false); + curl_setopt($btt, CURLOPT_SSL_VERIFYPEER, false); + $data = curl_exec($btt); + curl_close($btt); + return $data; + } +} + + +if (!function_exists("getFontUFORawData")) { + function getFontUFORawData($mode = '', $clause = '', $state = '', $output = '', $ufofile = '') + { + $sql = "SELECT * from `fonts_archiving` WHERE (`font_id` = '$clause' OR `fingerprint` = '$clause')"; + $result = $GLOBALS['FontsDB']->queryF($sql); + while($row = $GLOBALS['FontsDB']->fetchArray($result)) + { + $GLOBALS['FontsDB']->queryF($sql = "UPDATE `fonts` SET `hits` = `hits` + 1 WHERE `id` = '" . $row['font_id'] . "'"); + $sql = "SELECT * from `fonts` WHERE `id` = '" . $row['font_id'] . "'"; + $font = $GLOBALS['FontsDB']->fetchArray($GLOBALS['FontsDB']->queryF($sql)); + switch($font['medium']) + { + case FONT_RESOURCES_CACHE: + case FONT_RESOURCES_RESOURCE: + if ($font['medium'] == FONT_RESOURCES_CACHE) + { + $sessions = unserialize(file_get_contents(FONT_RESOURCES_CACHE . DIRECTORY_SEPARATOR . "file-store-sessions.serial")); + if... [truncated message content] |
From: <wis...@us...> - 2017-07-27 18:59:45
|
Revision: 13256 http://sourceforge.net/p/xoops/svn/13256 Author: wishcraft Date: 2017-07-27 18:59:40 +0000 (Thu, 27 Jul 2017) Log Message: ----------- languages control module for language manipulation ~ xoops releases portal! Added Paths: ----------- XoopsModules/languages/ XoopsModules/languages/trunk/ XoopsModules/languages/trunk/modules/ XoopsModules/languages/trunk/modules/languages/ XoopsModules/languages/trunk/modules/languages/admin/ XoopsModules/languages/trunk/modules/languages/admin/footer.php XoopsModules/languages/trunk/modules/languages/admin/header.php XoopsModules/languages/trunk/modules/languages/admin/htaccess.tag.php XoopsModules/languages/trunk/modules/languages/admin/index.html XoopsModules/languages/trunk/modules/languages/admin/index.php XoopsModules/languages/trunk/modules/languages/admin/languages.php XoopsModules/languages/trunk/modules/languages/admin/menu.php XoopsModules/languages/trunk/modules/languages/admin/requests.php XoopsModules/languages/trunk/modules/languages/class/ XoopsModules/languages/trunk/modules/languages/class/index.html XoopsModules/languages/trunk/modules/languages/class/languages.php XoopsModules/languages/trunk/modules/languages/class/requests.php XoopsModules/languages/trunk/modules/languages/class/users.php XoopsModules/languages/trunk/modules/languages/footer.php XoopsModules/languages/trunk/modules/languages/header.php XoopsModules/languages/trunk/modules/languages/images/ XoopsModules/languages/trunk/modules/languages/images/index.html XoopsModules/languages/trunk/modules/languages/images/mlogo.png XoopsModules/languages/trunk/modules/languages/include/ XoopsModules/languages/trunk/modules/languages/include/functions.php XoopsModules/languages/trunk/modules/languages/include/htaccess.txt XoopsModules/languages/trunk/modules/languages/include/index.html XoopsModules/languages/trunk/modules/languages/index.html XoopsModules/languages/trunk/modules/languages/index.php XoopsModules/languages/trunk/modules/languages/language/ XoopsModules/languages/trunk/modules/languages/language/english/ XoopsModules/languages/trunk/modules/languages/language/english/admin.php XoopsModules/languages/trunk/modules/languages/language/english/forms.php XoopsModules/languages/trunk/modules/languages/language/english/index.html XoopsModules/languages/trunk/modules/languages/language/english/mail_templates/ XoopsModules/languages/trunk/modules/languages/language/english/mail_templates/admin-email-language-request.html XoopsModules/languages/trunk/modules/languages/language/english/mail_templates/index.html XoopsModules/languages/trunk/modules/languages/language/english/main.php XoopsModules/languages/trunk/modules/languages/language/english/modinfo.php XoopsModules/languages/trunk/modules/languages/language/english/release.nfo XoopsModules/languages/trunk/modules/languages/language/english/release.xcode XoopsModules/languages/trunk/modules/languages/language/english/style.css XoopsModules/languages/trunk/modules/languages/language/index.html XoopsModules/languages/trunk/modules/languages/requests.php XoopsModules/languages/trunk/modules/languages/sql/ XoopsModules/languages/trunk/modules/languages/sql/index.html XoopsModules/languages/trunk/modules/languages/sql/mysql.sql XoopsModules/languages/trunk/modules/languages/templates/ XoopsModules/languages/trunk/modules/languages/templates/admin/ XoopsModules/languages/trunk/modules/languages/templates/admin/index.html XoopsModules/languages/trunk/modules/languages/templates/admin/languages_languages.html XoopsModules/languages/trunk/modules/languages/templates/index.html XoopsModules/languages/trunk/modules/languages/templates/languages_index.html XoopsModules/languages/trunk/modules/languages/xoops_version.php Added: XoopsModules/languages/trunk/modules/languages/admin/footer.php =================================================================== --- XoopsModules/languages/trunk/modules/languages/admin/footer.php (rev 0) +++ XoopsModules/languages/trunk/modules/languages/admin/footer.php 2017-07-27 18:59:40 UTC (rev 13256) @@ -0,0 +1,27 @@ +<?php +/** + * XOOPS Languages management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage languages + * @description Module for fitting languages on xoops + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/languages + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/languages + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/languages + * @link http://internetfounder.wordpress.com + */ + + +echo "<div class='adminfooter'>\n" . " <div style='text-align: center;'>\n" . " <a href='http://au.syd.labs.coop' rel='external'>Chronolabs Cooperative</a>\n" . " </div>\n" . '</div>'; + +xoops_cp_footer(); Property changes on: XoopsModules/languages/trunk/modules/languages/admin/footer.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/languages/trunk/modules/languages/admin/header.php =================================================================== --- XoopsModules/languages/trunk/modules/languages/admin/header.php (rev 0) +++ XoopsModules/languages/trunk/modules/languages/admin/header.php 2017-07-27 18:59:40 UTC (rev 13256) @@ -0,0 +1,83 @@ +<?php +/** + * XOOPS Languages management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage languages + * @description Module for fitting languages on xoops + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/languages + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/languages + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/languages + * @link http://internetfounder.wordpress.com + */ + +include_once dirname(__DIR__) . "/include/functions.php"; +$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; + +$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname'); + +//if functions.php file exist +//require_once dirname(__DIR__) . '/include/functions.php'; + +// Load language files +xoops_loadLanguage('admin', $thisModuleDir); +xoops_loadLanguage('modinfo', $thisModuleDir); +xoops_loadLanguage('main', $thisModuleDir); + +$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(); +} + +global $languagesModule, $languagesConfigsList, $languagesConfigs, $languagesConfigsOptions; + +if (empty($languagesModule)) +{ + if (is_a($languagesModule = xoops_getHandler('module')->getByDirname(basename(__DIR__)), "XoopsModule")) + { + if (empty($languagesConfigsList)) + { + $languagesConfigsList = languages_load_config(); + } + if (empty($languagesConfigs)) + { + $languagesConfigs = xoops_getHandler('config')->getConfigs(new Criteria('conf_modid', $languagesModule->getVar('mid'))); + } + if (empty($languagesConfigsOptions) && !empty($languagesConfigs)) + { + foreach($languagesConfigs as $key => $config) + $languagesConfigsOptions[$config->getVar('conf_name')] = $config->getConfOptions(); + } + } +} + +?> \ No newline at end of file Property changes on: XoopsModules/languages/trunk/modules/languages/admin/header.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/languages/trunk/modules/languages/admin/htaccess.tag.php =================================================================== --- XoopsModules/languages/trunk/modules/languages/admin/htaccess.tag.php (rev 0) +++ XoopsModules/languages/trunk/modules/languages/admin/htaccess.tag.php 2017-07-27 18:59:40 UTC (rev 13256) @@ -0,0 +1,45 @@ +<?php +/** + * XOOPS Languages management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage languages + * @description Module for fitting languages on xoops + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/languages + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/languages + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/languages + * @link http://internetfounder.wordpress.com + */ + + +global $tagModule, $tagConfigsList, $tagConfigs, $tagConfigsOptions; + +include_once __DIR__ . '/header.php'; +xoops_cp_header(); + +xoops_load("XoopsFormLoader"); + +$indexAdmin = new ModuleAdmin(); + +echo $indexAdmin->addNavigation(basename(__FILE__)); +echo $indexAdmin->renderIndex(); + +$htaccess = file_get_contents(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'htaccess.txt'); +$htaccess = str_replace("%base%", $tagConfigsList['base'], $htaccess); +$htaccess = str_replace("%html%", $tagConfigsList['html'], $htaccess); +$GLOBALS['xoopsTpl']->assign('htaccess', $htaccess); + +echo $GLOBALS['xoopsTpl']->display(dirname(__DIR__) . '/templates/admin/tag_htaccess.html'); + +include_once __DIR__ . '/footer.php'; +?> \ No newline at end of file Property changes on: XoopsModules/languages/trunk/modules/languages/admin/htaccess.tag.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: XoopsModules/languages/trunk/modules/languages/admin/index.html =================================================================== --- XoopsModules/languages/trunk/modules/languages/admin/index.html 2017-07-27 16:57:25 UTC (rev 13255) +++ XoopsModules/languages/trunk/modules/languages/admin/index.html 2017-07-27 18:59:40 UTC (rev 13256) Property changes on: XoopsModules/languages/trunk/modules/languages/admin/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/languages/trunk/modules/languages/admin/index.php =================================================================== --- XoopsModules/languages/trunk/modules/languages/admin/index.php (rev 0) +++ XoopsModules/languages/trunk/modules/languages/admin/index.php 2017-07-27 18:59:40 UTC (rev 13256) @@ -0,0 +1,97 @@ +<?php +/** + * XOOPS Languages management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage languages + * @description Module for fitting languages on xoops + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/languages + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/languages + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/languages + * @link http://internetfounder.wordpress.com + */ + + +include_once __DIR__ . '/header.php'; +xoops_cp_header(); + +$indexAdmin = new ModuleAdmin(); + +echo $indexAdmin->addNavigation(basename(__FILE__)); +echo $indexAdmin->renderIndex(); + +include XOOPS_ROOT_PATH . "/modules/tag/include/vars.php"; +echo function_exists("loadModuleAdminMenu") ? loadModuleAdminMenu(0) : ""; + +$tag_handler =& xoops_getmodulehandler("tag", $xoopsModule->getVar("dirname")); +$count_tag = $tag_handler->getCount(); + +$count_item = 0; +$sql = " SELECT COUNT(DISTINCT tl_id) FROM " . $xoopsDB->prefix("tag_link"); +if ( ($result = $xoopsDB->query($sql)) == false) { + xoops_error($xoopsDB->error()); +} else { + list($count_item) = $xoopsDB->fetchRow($result); +} + +$sql = " SELECT tag_modid, SUM(tag_count) AS count_item, COUNT(DISTINCT tag_id) AS count_tag"; +$sql .= " FROM " . $xoopsDB->prefix("tag_stats"); +$sql .= " GROUP BY tag_modid"; +$counts_module = array(); +if( ($result = $xoopsDB->query($sql)) == false) { + xoops_error($xoopsDB->error()); +} else { + while ($myrow = $xoopsDB->fetchArray($result)) { + $counts_module[$myrow["tag_modid"]] = array("count_item" => $myrow["count_item"], "count_tag" => $myrow["count_tag"]); + } + if (!empty($counts_module)) { + $module_handler =& xoops_gethandler("module"); + $module_list = $module_handler->getList(new Criteria("mid", "(" . implode(", ", array_keys($counts_module)) . ")", "IN")); + } +} + +$output= " + <style type=\"text/css\"> + label,text { + display: block; + float: left; + margin-bottom: 2px; + } + label { + text-align: right; + width: 150px; + padding-right: 20px; + } + br { + clear: left; + } + </style> +"; + +$output .= "<fieldset><legend style='font-weight: bold; color: #900;'>" . TAG_AM_STATS . "</legend>"; +$output .= "<div style='padding: 8px;'>"; +$output .= "<label><strong>" . TAG_AM_COUNT_TAG . ":</strong></label><text>" . $count_tag . "</text><br />"; +$output .= "<label><strong>" . TAG_AM_COUNT_ITEM . ":</strong></label><text>" . $count_item . "</text><br />"; +$output .= "</div>"; +$output .= "<div style='padding: 8px;'>"; +$output .= "<label><strong>" . TAG_AM_COUNT_MODULE . "</strong>:</label><text>" . TAG_AM_COUNT_TAG . " - " . TAG_AM_COUNT_ITEM . "</text><br />"; +foreach ($counts_module as $module => $count) { + $output .= "<label>" . $module_list[$module] . ":</label><text>" . $count["count_tag"] . " - " . $count["count_item"] . " [<a href=\"" . XOOPS_URL . "/modules/tag/admin/admin.tag.php?modid={$module}\">" . TAG_AM_EDIT . "</a>] [<a href=\"" . XOOPS_URL . "/modules/tag/admin/syn.tag.php?modid={$module}\">" . TAG_AM_SYNCHRONIZATION . "</a>] </text><br />"; +} +$output .= "</div>"; +$output .= "</fieldset>"; + +echo $output; + +include_once __DIR__ . '/footer.php'; +?> \ No newline at end of file Property changes on: XoopsModules/languages/trunk/modules/languages/admin/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/languages/trunk/modules/languages/admin/languages.php =================================================================== --- XoopsModules/languages/trunk/modules/languages/admin/languages.php (rev 0) +++ XoopsModules/languages/trunk/modules/languages/admin/languages.php 2017-07-27 18:59:40 UTC (rev 13256) @@ -0,0 +1,64 @@ +<?php +/** + * XOOPS Languages management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage languages + * @description Module for fitting languages on xoops + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/languages + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/languages + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/languages + * @link http://internetfounder.wordpress.com + */ + + +include_once __DIR__ . '/header.php'; +xoops_cp_header(); + +xoops_load("XoopsFormLoader"); +xoops_load('XoopsPageNav'); + +$indexAdmin = new ModuleAdmin(); + +echo $indexAdmin->addNavigation(basename(__FILE__)); +echo $indexAdmin->renderIndex(); + + +global $start, $limit; + +$start = intval( empty($_GET["start"]) ? 0 : $_GET["start"] ); +$limit = intval( empty($_GET["limit"]) ? $languagesConfigsList['items_perpage']: $_GET["limit"] ); + +$languages_handler = xoops_getmodulehandler("languages", "languages"); + +$criteria = new CriteriaCompo(new Criteria('1','1')); +$total = $languages_handler->getCount($criteria); +$criteria->setSort("`name`, `code`"); +$criteria->setOrder("ASC"); +$criteria->setLimit($limit); +$criteria->setStart($start); +$lang = array(); +foreach($languages_handler->getObjects($criteria) as $language) +{ + $lang[$language->getVar('lang_id')]['name'] = $language->getVar('name'); + $lang[$language->getVar('lang_id')]['code'] = $language->getVar('code'); + $lang[$language->getVar('lang_id')]['folder'] = (strlen($language->getVar('folder'))==0?strtolower($language->getVar('name')):$language->getVar('folder')); +} +$GLOBALS['xoopsTpl']->assign("languages", $lang); +$pagenav = new XoopsPageNav($total, $limit, $start, 'start', 'limit='.$limit); +$GLOBALS['xoopsTpl']->assign("pagenav", $pagenav->renderNav(5)); + +echo $GLOBALS['xoopsTpl']->display(dirname(__DIR__) . '/templates/admin/languages_languages.html'); + +include_once __DIR__ . '/footer.php'; +?> \ No newline at end of file Property changes on: XoopsModules/languages/trunk/modules/languages/admin/languages.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/languages/trunk/modules/languages/admin/menu.php =================================================================== --- XoopsModules/languages/trunk/modules/languages/admin/menu.php (rev 0) +++ XoopsModules/languages/trunk/modules/languages/admin/menu.php 2017-07-27 18:59:40 UTC (rev 13256) @@ -0,0 +1,46 @@ +<?php +/** + * XOOPS Languages management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage languages + * @description Module for fitting languages on xoops + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/languages + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/languages + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/languages + * @link http://internetfounder.wordpress.com + */ + +if (!defined('XOOPS_ROOT_PATH')) { exit(); } + +global $adminmenu; + +$adminmenu = array(); + +$adminmenu[]= array("link" => "admin/index.php", + "icon" => "home.png", + "image" => "home.png", + "title" => TAG_MI_ADMENU_INDEX); +$adminmenu[]= array("link" => "admin/languages.php", + "icon" => "edit.png", + "image" => "edit.png", + "title" => TAG_MI_ADMENU_EDIT); +$adminmenu[]= array("link" => "admin/requests.php", + "icon" => "export.png", + "imge" => "export.png", + "title" => TAG_MI_ADMENU_SYNCHRONIZATION); +$adminmenu[]= array("link" => "admin/htaccess.php", + "icon" => "content.png", + "image" => "content.png", + "title" => TAG_MI_ADMENU_HTACCESS); +?> \ No newline at end of file Property changes on: XoopsModules/languages/trunk/modules/languages/admin/menu.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/languages/trunk/modules/languages/admin/requests.php =================================================================== --- XoopsModules/languages/trunk/modules/languages/admin/requests.php (rev 0) +++ XoopsModules/languages/trunk/modules/languages/admin/requests.php 2017-07-27 18:59:40 UTC (rev 13256) @@ -0,0 +1,142 @@ +<?php +/** + * XOOPS Languages management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage languages + * @description Module for fitting languages on xoops + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/languages + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/languages + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/languages + * @link http://internetfounder.wordpress.com + */ + +include_once __DIR__ . '/header.php'; +xoops_cp_header(); + +xoops_load("XoopsFormLoader"); + +$indexAdmin = new ModuleAdmin(); + +echo $indexAdmin->addNavigation(basename(__FILE__)); +echo $indexAdmin->renderIndex(); + +$op = intval( empty($_REQUEST['op']) ? 'default' : $_REQUEST['modid'] ); +$filename = intval( empty($_REQUEST['filename']) ? '' : $_REQUEST['filename'] ); + +if (!empty($filename) && !file_exists(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'plugin' . DIRECTORY_SEPARATOR . $filename)) +{ + redirect_header($_SERVER['PHP_SELF']."?op=list", 4, TAG_AM_ERROR_NOPLUGINFOUND); + exit(0); +} +switch ($op) +{ + default: + case "default": + case "list": + xoops_load("XoopsLists"); + $module_handler = xoops_getHandler("module"); + $files = XoopsLists::getFileListAsArray(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'plugin'); + sort($files); + $plugins = array(); + foreach($files as $file) + { + if (substr($file, strlen($file)-3,3) = 'php') + { + $dirname = str_replace('.php', '', $file); + $plugins[$dirname]['filename'] = $file; + $mod = $module_handler->getByDirname($dirname); + if (is_object($mod) && is_a($mod, "XoopsModule")) + { + $plugins[$dirname]['module'] = TAG_AM_PLUGIN_MODULE_TRUE; + } else { + $plugins[$dirname]['module'] = TAG_AM_PLUGIN_MODULE_FALSE; + } + $source = file_get_contents(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'plugin' . DIRECTORY_SEPARATOR . $file); + if ( strpos($source, sprintf(TAG_AM_PLUGIN_FUNCTION_VERSION, $dirname)) > 0 && + strpos($source, sprintf(TAG_AM_PLUGIN_FUNCTION_SUPPORTED, $dirname))> 0 && + strpos($source, sprintf(TAG_AM_PLUGIN_FUNCTION_CATEGORY, $dirname))> 0 && + strpos($source, sprintf(TAG_AM_PLUGIN_FUNCTION_SYNCHRONIZATION, $dirname))> 0 && + strpos($source, sprintf(TAG_AM_PLUGIN_FUNCTION_ITEMINFO, $dirname))> 0) + { + $plugins[$dirname]['version'] = TAG_AM_PLUGIN_VERSION_301; + } else { + $plugins[$dirname]['version'] = TAG_AM_PLUGIN_VERSION_230; + } + $missing = array(); + if ( strpos($source, sprintf(TAG_AM_PLUGIN_FUNCTION_VERSION, $dirname)) == 0 ) + $missing[] = sprintf(TAG_AM_PLUGIN_MISSING_VERSION, $dirname); + if ( strpos($source, sprintf(TAG_AM_PLUGIN_FUNCTION_SUPPORTED, $dirname)) == 0 ) + $missing[] = sprintf(TAG_AM_PLUGIN_MISSING_SUPPORTED, $dirname); + if ( strpos($source, sprintf(TAG_AM_PLUGIN_FUNCTION_CATEGORY, $dirname)) == 0 ) + $missing[] = sprintf(TAG_AM_PLUGIN_MISSING_CATEGORYN, $dirname); + if ( strpos($source, sprintf(TAG_AM_PLUGIN_FUNCTION_SYNCHRONIZATION, $dirname)) == 0 ) + $missing[] = sprintf(TAG_AM_PLUGIN_MISSING_SYNCHRONIZATION, $dirname); + if ( strpos($source, sprintf(TAG_AM_PLUGIN_FUNCTION_ITEMINFO, $dirname)) == 0 ) + $missing[] = sprintf(TAG_AM_PLUGIN_MISSING_ITEMINFO, $dirname); + $plugins[$dirname]['missing'] = implode("<br />", $missing); + if ($plugins[$dirname]['version'] != TAG_AM_PLUGIN_VERSION_301) + { + $plugins[$dirname]['active'] = TAG_AM_PLUGIN_ACTIVE_MISSING; + } else { + eval($source); + if (function_exists($func = "$dirname_tag_supported")) + { + if ($func()==true) + { + $plugins[$dirname]['active'] = TAG_AM_PLUGIN_ACTIVE_TRUE; + } else { + $plugins[$dirname]['active'] = TAG_AM_PLUGIN_ACTIVE_FALSE; + } + } else + $plugins[$dirname]['active'] = TAG_AM_PLUGIN_ACTIVE_MISSING; + } + } + } + $GLOBALS['xoopsTpl']->assign('plugins', $plugins); + echo $GLOBALS['xoopsTpl']->display(dirname(__DIR__) . '/templates/admin/tag_plugins_list.html'); + break; + case "edit": + $GLOBALS['xoTheme']->addScript("", array(), XOOPS_URL . '/modules/tag/js/monaco/loader.js'); + $GLOBALS['xoTheme']->addScript("require.config({ paths: { 'vs': ".XOOPS_URL."./modules/tag/js/modules/tag/js/monaco' }}); + require(['".XOOPS_URL."./modules/tag/js/monaco/editor/editor.main'], function() { + var editor = monaco.editor.create(document.getElementById('source'), { + language: 'php' + }); + });", array()); + $GLOBALS['xoopsTpl']->assign('filename', $filename); + $GLOBALS['xoopsTpl']->assign('source', file_get_contents(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'plugin' . DIRECTORY_SEPARATOR . $filename)); + echo $GLOBALS['xoopsTpl']->display(dirname(__DIR__) . '/templates/admin/tag_plugins_edit.html'); + break; + case "save": + if (empty($_REQUEST['source'])) + { + redirect_header($_SERVER['PHP_SELF']."?op=edit&filename=$filename", 5, TAG_AM_ERROR_NOSOURCETOSAVE); + } + if (file_put_contents(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'plugin' . DIRECTORY_SEPARATOR . $filename, $_REQUEST['source'])) + redirect_header($_SERVER['PHP_SELF']."?op=edit&filename=$filename", 5, TAG_AM_ERROR_SAVEDSUCCESS); + else + redirect_header($_SERVER['PHP_SELF']."?op=edit&filename=$filename", 5, TAG_AM_ERROR_SAVEDFAILED); + exit(0); + break; + case "delete": + echo xoops_confirm(array('op'=>'confirm_delete', 'filename'=>$filename), $_SERVER['PHP_SELF'], sprintf(TAG_AM_ERROR_DELETEPLUGIN, $filename)); + break; + case "confirm_delete": + unlink(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'plugin' . DIRECTORY_SEPARATOR . $filename); + redirect_header($_SERVER['PHP_SELF']."?op=list", 0, ''); + exit(0); + break; +} +include_once __DIR__ . '/footer.php'; +?> \ No newline at end of file Property changes on: XoopsModules/languages/trunk/modules/languages/admin/requests.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: XoopsModules/languages/trunk/modules/languages/class/index.html =================================================================== --- XoopsModules/languages/trunk/modules/languages/class/index.html 2017-07-27 16:57:25 UTC (rev 13255) +++ XoopsModules/languages/trunk/modules/languages/class/index.html 2017-07-27 18:59:40 UTC (rev 13256) Property changes on: XoopsModules/languages/trunk/modules/languages/class/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/languages/trunk/modules/languages/class/languages.php =================================================================== --- XoopsModules/languages/trunk/modules/languages/class/languages.php (rev 0) +++ XoopsModules/languages/trunk/modules/languages/class/languages.php 2017-07-27 18:59:40 UTC (rev 13256) @@ -0,0 +1,72 @@ +<?php +/** + * XOOPS Languages management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage languages + * @description Module for fitting languages on xoops + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/languages + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/languages + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/languages + * @link http://internetfounder.wordpress.com + */ + + + +if (!defined("XOOPS_ROOT_PATH")) { + exit(); +} + +class LanguagesLanguages extends XoopsObject +{ + /** + * Constructor + * + * @param int $id ID of the tag, deprecated + */ + function __construct($id = null) + { + $this->initVar("lang_id", XOBJ_DTYPE_INT, null, false); + $this->initVar("name", XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar("code", XOBJ_DTYPE_TXTBOX, null, false, 6); + $this->initVar("folder", XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar("flag", XOBJ_DTYPE_TXTBOX, null, false, 255); + } +} + +/** + * Tag object handler class. + * + * @author Taiwen Jiang <ph...@us...> + * @copyright copyright © The XOOPS Project + * + * {@link XoopsPersistableObjectHandler} + * + */ + +class LanguagesLanguagesHandler extends XoopsPersistableObjectHandler +{ + + + /** + * Constructor + * + * @param object $db reference to the {@link XoopsDatabase} object + **/ + function __construct(&$db) + { + parent::__construct($db, "languages_languages", "LanguagesLanguages", "lang_id", "name"); + } + +} +?> \ No newline at end of file Property changes on: XoopsModules/languages/trunk/modules/languages/class/languages.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/languages/trunk/modules/languages/class/requests.php =================================================================== --- XoopsModules/languages/trunk/modules/languages/class/requests.php (rev 0) +++ XoopsModules/languages/trunk/modules/languages/class/requests.php 2017-07-27 18:59:40 UTC (rev 13256) @@ -0,0 +1,104 @@ +<?php +/** + * XOOPS Languages management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage languages + * @description Module for fitting languages on xoops + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/languages + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/languages + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/languages + * @link http://internetfounder.wordpress.com + */ + + + + +if (!defined("XOOPS_ROOT_PATH")) { + exit(); +} + +class LanguagesRequests extends XoopsObject +{ + /** + * Constructor + * + * @param int $id ID of the tag, deprecated + */ + function __construct($id = null) + { + $this->initVar("request_id", XOBJ_DTYPE_INT, null, false); + $this->initVar("name", XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar("code", XOBJ_DTYPE_TXTBOX, null, false, 6); + $this->initVar("folder", XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar("flag", XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar("uid", XOBJ_DTYPE_INT, null, false); + $this->initVar("when", XOBJ_DTYPE_INT, null, false); + $this->initVar("action", XOBJ_DTYPE_INT, null, false); + $this->initVar("status", XOBJ_DTYPE_ENUM, 'Waiting', false, 255, false, array('Approved','Declined','Waiting','Removed')); + $this->initVar("lang_id", XOBJ_DTYPE_INT, null, false); + } +} + +/** + * Tag object handler class. + * + * @author Taiwen Jiang <ph...@us...> + * @copyright copyright © The XOOPS Project + * + * {@link XoopsPersistableObjectHandler} + * + */ + +class LanguagesRequestsHandler extends XoopsPersistableObjectHandler +{ + + + /** + * Constructor + * + * @param object $db reference to the {@link XoopsDatabase} object + **/ + function __construct(&$db) + { + parent::__construct($db, "languages_requests", "LanguagesRequests", "request_id", "name"); + } + + + /** + * Gets the Request form + * + * @param number $request_id + * @param array $posts + */ + function getForm($request_id = 0, $posts = array()) + { + xoops_loadLanguage('forms', basename(dirname(__DIR__))); + xoops_load('XoopsFormLoader'); + + $form = new XoopsThemeForm(LANGS_FORMS_REQUESTS_TITLE, "request", $_SERVER['REQUEST_URI']); + $name = new XoopsFormText(LANGS_FORMS_REQUESTS_NAME, "name", 25, 255, $posts['name']); + $name->isRequired(true); + $form->addElement($name); + $form->addElement(new XoopsFormText(LANGS_FORMS_REQUESTS_FOLDER, "folder", 25, 255, $posts['folder'])); + $code = new XoopsFormText(LANGS_FORMS_REQUESTS_CODE, "code", 8, 6, $posts['code']); + $code->isRequired(true); + $form->addElement($code); + $formfile = new XoopsFormFile(LANGS_FORMS_REQUESTS_FLAG, "flag", 1024*796); + $formfile->setDescription(LANGS_FORMS_REQUESTS_FLAG_DESC); + $form->addElement($formfile); + $form->addElement(new XoopsFormHidden('op', "save")); + return $form->render(); + } +} +?> \ No newline at end of file Property changes on: XoopsModules/languages/trunk/modules/languages/class/requests.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/languages/trunk/modules/languages/class/users.php =================================================================== --- XoopsModules/languages/trunk/modules/languages/class/users.php (rev 0) +++ XoopsModules/languages/trunk/modules/languages/class/users.php 2017-07-27 18:59:40 UTC (rev 13256) @@ -0,0 +1,71 @@ +<?php +/** + * XOOPS Languages management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage languages + * @description Module for fitting languages on xoops + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/languages + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/languages + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/languages + * @link http://internetfounder.wordpress.com + */ + + + +if (!defined("XOOPS_ROOT_PATH")) { + exit(); +} + +class LanguagesUsers extends XoopsObject +{ + /** + * Constructor + * + * @param int $id ID of the tag, deprecated + */ + function __construct($id = null) + { + $this->initVar("ul_id", XOBJ_DTYPE_INT, null, false); + $this->initVar("lang_id", XOBJ_DTYPE_INT, null, false); + $this->initVar("uid", XOBJ_DTYPE_INT, null, false); + $this->initVar("when", XOBJ_DTYPE_INT, null, false); + } +} + +/** + * Tag object handler class. + * + * @author Taiwen Jiang <ph...@us...> + * @copyright copyright © The XOOPS Project + * + * {@link XoopsPersistableObjectHandler} + * + */ + +class LanguagesUsersHandler extends XoopsPersistableObjectHandler +{ + + + /** + * Constructor + * + * @param object $db reference to the {@link XoopsDatabase} object + **/ + function __construct(&$db) + { + parent::__construct($db, "tag_categories_link", "LanguagesUsers", "ul_id", "uid"); + } + +} +?> \ No newline at end of file Property changes on: XoopsModules/languages/trunk/modules/languages/class/users.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/languages/trunk/modules/languages/footer.php =================================================================== --- XoopsModules/languages/trunk/modules/languages/footer.php (rev 0) +++ XoopsModules/languages/trunk/modules/languages/footer.php 2017-07-27 18:59:40 UTC (rev 13256) @@ -0,0 +1,27 @@ +<?php +/** + * XOOPS Languages management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage languages + * @description Module for fitting languages on xoops + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/languages + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/languages + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/languages + * @link http://internetfounder.wordpress.com + */ + + + +include_once XOOPS_ROOT_PATH . "/footer.php"; +?> \ No newline at end of file Property changes on: XoopsModules/languages/trunk/modules/languages/footer.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/languages/trunk/modules/languages/header.php =================================================================== --- XoopsModules/languages/trunk/modules/languages/header.php (rev 0) +++ XoopsModules/languages/trunk/modules/languages/header.php 2017-07-27 18:59:40 UTC (rev 13256) @@ -0,0 +1,56 @@ +<?php +/** + * XOOPS Languages management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage languages + * @description Module for fitting languages on xoops + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/languages + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/languages + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/languages + * @link http://internetfounder.wordpress.com + */ + + +include_once '../../mainfile.php'; +include_once dirname(__FILE__) . "/include/functions.php"; + +$myts =& MyTextSanitizer::getInstance(); + +global $languagesModule, $languagesConfigsList, $languagesConfigs, $languagesConfigsOptions; + +if (empty($languagesModule)) +{ + if (is_a($languagesModule = xoops_getHandler('module')->getByDirname(basename(__DIR__)), "XoopsModule")) + { + if (empty($languagesConfigsList)) + { + $languagesConfigsList = languages_load_config(); + } + if (empty($languagesConfigs)) + { + $languagesConfigs = xoops_getHandler('config')->getConfigs(new Criteria('conf_modid', $languagesModule->getVar('mid'))); + } + if (empty($languagesConfigsOptions) && !empty($languagesConfigs)) + { + foreach($languagesConfigs as $key => $config) + $languagesConfigsOptions[$config->getVar('conf_name')] = $config->getConfOptions(); + } + } +} + +global $start, $limit, $op; + +$op = intval( empty($_REQUEST["op"]) ? 'default' : $_REQUEST["op"] ); +$start = intval( empty($_REQUEST["start"]) ? 0 : $_REQUEST["start"] ); +$limit = intval( empty($_REQUEST["limit"]) ? $languagesConfigsList['items_perpage']: $_REQUEST["limit"] ); Property changes on: XoopsModules/languages/trunk/modules/languages/header.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: XoopsModules/languages/trunk/modules/languages/images/index.html =================================================================== --- XoopsModules/languages/trunk/modules/languages/images/index.html 2017-07-27 16:57:25 UTC (rev 13255) +++ XoopsModules/languages/trunk/modules/languages/images/index.html 2017-07-27 18:59:40 UTC (rev 13256) Property changes on: XoopsModules/languages/trunk/modules/languages/images/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/languages/trunk/modules/languages/images/mlogo.png =================================================================== (Binary files differ) Index: XoopsModules/languages/trunk/modules/languages/images/mlogo.png =================================================================== --- XoopsModules/languages/trunk/modules/languages/images/mlogo.png 2017-07-27 16:57:25 UTC (rev 13255) +++ XoopsModules/languages/trunk/modules/languages/images/mlogo.png 2017-07-27 18:59:40 UTC (rev 13256) Property changes on: XoopsModules/languages/trunk/modules/languages/images/mlogo.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: XoopsModules/languages/trunk/modules/languages/include/functions.php =================================================================== --- XoopsModules/languages/trunk/modules/languages/include/functions.php (rev 0) +++ XoopsModules/languages/trunk/modules/languages/include/functions.php 2017-07-27 18:59:40 UTC (rev 13256) @@ -0,0 +1,57 @@ +<?php +/** + * XOOPS Languages management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage languages + * @description Module for fitting languages on xoops + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/languages + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/languages + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/languages + * @link http://internetfounder.wordpress.com + */ + + +function languages_load_config() +{ + global $xoopsModuleConfig; + static $moduleConfig; + + if (isset($moduleConfig)) { + return $moduleConfig; + } + + if (isset($GLOBALS["xoopsModule"]) && is_object($GLOBALS["xoopsModule"]) && $GLOBALS["xoopsModule"]->getVar("dirname", "n") == basename(dirname(__DIR__))) { + if (!empty($GLOBALS["xoopsModuleConfig"])) { + $moduleConfig = $GLOBALS["xoopsModuleConfig"]; + } else { + return null; + } + } else { + $module_handler =& xoops_gethandler('module'); + $module = $module_handler->getByDirname("tag"); + + $config_handler =& xoops_gethandler('config'); + $criteria = new CriteriaCompo(new Criteria('conf_modid', $module->getVar('mid'))); + $configs = $config_handler->getConfigs($criteria); + foreach (array_keys($configs) as $i) { + $moduleConfig[$configs[$i]->getVar('conf_name')] = $configs[$i]->getConfValueForOutput(); + } + unset($configs); + } + if (file_exists($cfile = XOOPS_ROOT_PATH . "/modules/" . basename(dirname(__DIR__)) . "/include/configs.php")) + if ($customConfig = @include $cfile) + $moduleConfig = array_merge($moduleConfig, $customConfig); + + return $moduleConfig; +} \ No newline at end of file Added: XoopsModules/languages/trunk/modules/languages/include/htaccess.txt =================================================================== --- XoopsModules/languages/trunk/modules/languages/include/htaccess.txt (rev 0) +++ XoopsModules/languages/trunk/modules/languages/include/htaccess.txt 2017-07-27 18:59:40 UTC (rev 13256) @@ -0,0 +1,3 @@ +RewriteEngine On +RewriteRule ^%base%/([0-9]+)/([0-9]+)/index%html% ./modules/languages/index.php?start=$1&limit=$2 +RewriteRule ^%base%/requests%html% ./modules/languages/requests.php [L,NC,QSA] Index: XoopsModules/languages/trunk/modules/languages/include/index.html =================================================================== --- XoopsModules/languages/trunk/modules/languages/include/index.html 2017-07-27 16:57:25 UTC (rev 13255) +++ XoopsModules/languages/trunk/modules/languages/include/index.html 2017-07-27 18:59:40 UTC (rev 13256) Property changes on: XoopsModules/languages/trunk/modules/languages/include/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: XoopsModules/languages/trunk/modules/languages/index.html =================================================================== --- XoopsModules/languages/trunk/modules/languages/index.html 2017-07-27 16:57:25 UTC (rev 13255) +++ XoopsModules/languages/trunk/modules/languages/index.html 2017-07-27 18:59:40 UTC (rev 13256) Property changes on: XoopsModules/languages/trunk/modules/languages/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/languages/trunk/modules/languages/index.php =================================================================== --- XoopsModules/languages/trunk/modules/languages/index.php (rev 0) +++ XoopsModules/languages/trunk/modules/languages/index.php 2017-07-27 18:59:40 UTC (rev 13256) @@ -0,0 +1,70 @@ +<?php +/** + * XOOPS Languages management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage languages + * @description Module for fitting languages on xoops + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/languages + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/languages + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/languages + * @link http://internetfounder.wordpress.com + */ + + + +global $languagesModule, $languagesConfigsList, $languagesConfigs, $languagesConfigsOptions; +global $start, $limit; + +include dirname(__FILE__) . "/header.php"; + +if ($languagesConfigsList['htaccess']) +{ + $url = XOOPS_URL . "/" . $languagesConfigsList['base'] . "/$start/$limit/index" . $languagesConfigsList['html']; + if (!strpos($url, $_SERVER["REQUEST_URI"])) + { + redirect_header($url, 0, ""); + exit(0); + } +} + +$xoopsOption["template_main"] = "languages_index.html"; +include XOOPS_ROOT_PATH . "/header.php"; +// Adds Stylesheet +$GLOBALS['xoTheme']->addStylesheet(XOOPS_URL."/modules/languages/language/".$GLOBALS['xoopsConfig']['language'].'/style.css'); + +$languages_handler = xoops_getmodulehandler("languages", "languages"); + +$criteria = new CriteriaCompo(new Criteria('1','1')); +$total = $languages_handler->getCount($criteria); +$criteria->setSort("`name`, `code`"); +$criteria->setOrder("ASC"); +$criteria->setLimit($limit); +$criteria->setStart($start); +$lang = array(); +foreach($languages_handler->getObjects($criteria) as $language) +{ + $lang[$language->getVar('lang_id')]['name'] = $language->getVar('name'); + $lang[$language->getVar('lang_id')]['code'] = $language->getVar('code'); + $lang[$language->getVar('lang_id')]['folder'] = (strlen($language->getVar('folder'))==0?strtolower($language->getVar('name')):$language->getVar('folder')); +} +$GLOBALS['xoopsTpl']->assign("languages", $lang); + +xoops_load('XoopsPageNav'); +$pagenav = new XoopsPageNav($total, $limit, $start, 'start', 'limit='.$limit); +$GLOBALS['xoopsTpl']->assign("pagenav", $pagenav->renderNav(5)); + +$GLOBALS['xoopsTpl']->assign("xoops_pagetitle", sprintf(LANGS_MN_INDEX_TITLE, count($lang), $total)); + +include_once "footer.php"; +?> \ No newline at end of file Property changes on: XoopsModules/languages/trunk/modules/languages/index.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/languages/trunk/modules/languages/language/english/admin.php =================================================================== --- XoopsModules/languages/trunk/modules/languages/language/english/admin.php (rev 0) +++ XoopsModules/languages/trunk/modules/languages/language/english/admin.php 2017-07-27 18:59:40 UTC (rev 13256) @@ -0,0 +1,31 @@ +<?php +/** + * XOOPS Languages management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage languages + * @description Module for fitting languages on xoops + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/languages + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/languages + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/languages + * @link http://internetfounder.wordpress.com + */ + +if (!defined('XOOPS_ROOT_PATH')) { exit(); } + +define("LANGS_MA_INDEX_H1","Languages Supported"); +define("LANGS_MA_INDEX_P1","This is a browsable list of the languages that are supported on the system, if you have a log in once your logged in you can place a request for any other languages you want to define and tabulate!"); +define("LANGS_MA_TD_NAME","Language"); +define("LANGS_MA_TD_FOLDER","Storage Folder/Path"); +define("LANGS_MA_TD_CODE","utf8 Code"); +?> \ No newline at end of file Property changes on: XoopsModules/languages/trunk/modules/languages/language/english/admin.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/languages/trunk/modules/languages/language/english/forms.php =================================================================== --- XoopsModules/languages/trunk/modules/languages/language/english/forms.php (rev 0) +++ XoopsModules/languages/trunk/modules/languages/language/english/forms.php 2017-07-27 18:59:40 UTC (rev 13256) @@ -0,0 +1,34 @@ +<?php +/** + * XOOPS Languages management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage languages + * @description Module for fitting languages on xoops + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/languages + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/languages + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/languages + * @link http://internetfounder.wordpress.com + */ + + +if (!defined('XOOPS_ROOT_PATH')) { exit(); } + +define("LANGS_FORMS_REQUESTS_TITLE", "Request new language to be added to supported types!"); +define("LANGS_FORMS_REQUESTS_NAME","Language Name"); +define("LANGS_FORMS_REQUESTS_FOLDER","Language Folder"); +define("LANGS_FORMS_REQUESTS_CODE","Language Code"); +define("LANGS_FORMS_REQUESTS_FLAG","Flag for Language"); +define("LANGS_FORMS_REQUESTS_FLAG_DESC","Must be an image file ie. JPG, PNG, GIF no more than: 796 Kb's!"); + +?> \ No newline at end of file Property changes on: XoopsModules/languages/trunk/modules/languages/language/english/forms.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/languages/trunk/modules/languages/language/english/index.html =================================================================== --- XoopsModules/languages/trunk/modules/languages/language/english/index.html (rev 0) +++ XoopsModules/languages/trunk/modules/languages/language/english/index.html 2017-07-27 18:59:40 UTC (rev 13256) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/languages/trunk/modules/languages/language/english/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/languages/trunk/modules/languages/language/english/mail_templates/admin-email-language-request.html =================================================================== --- XoopsModules/languages/trunk/modules/languages/language/english/mail_templates/admin-email-language-request.html (rev 0) +++ XoopsModules/languages/trunk/modules/languages/language/english/mail_templates/admin-email-language-request.html 2017-07-27 18:59:40 UTC (rev 13256) @@ -0,0 +1,15 @@ +<html> +<body> +<h1>New Language Requested: {NAME}</h1> +<p>The language was requested for addition to the site: {X_SITENAME} as an furth... [truncated message content] |
From: <wis...@us...> - 2017-07-30 10:15:19
|
Revision: 13261 http://sourceforge.net/p/xoops/svn/13261 Author: wishcraft Date: 2017-07-30 10:15:16 +0000 (Sun, 30 Jul 2017) Log Message: ----------- Webdav User Propogation & Management module! Added Paths: ----------- XoopsModules/webdav/ XoopsModules/webdav/trunk/ XoopsModules/webdav/trunk/modules/ XoopsModules/webdav/trunk/modules/webdav/ XoopsModules/webdav/trunk/modules/webdav/admin/ XoopsModules/webdav/trunk/modules/webdav/admin/index.html XoopsModules/webdav/trunk/modules/webdav/class/ XoopsModules/webdav/trunk/modules/webdav/class/index.html XoopsModules/webdav/trunk/modules/webdav/crons/ XoopsModules/webdav/trunk/modules/webdav/crons/index.html XoopsModules/webdav/trunk/modules/webdav/images/ XoopsModules/webdav/trunk/modules/webdav/images/index.html XoopsModules/webdav/trunk/modules/webdav/include/ XoopsModules/webdav/trunk/modules/webdav/include/data/ XoopsModules/webdav/trunk/modules/webdav/include/data/index.html XoopsModules/webdav/trunk/modules/webdav/include/index.html XoopsModules/webdav/trunk/modules/webdav/language/ XoopsModules/webdav/trunk/modules/webdav/language/english/ XoopsModules/webdav/trunk/modules/webdav/language/english/admin.php XoopsModules/webdav/trunk/modules/webdav/language/english/forms.php XoopsModules/webdav/trunk/modules/webdav/language/english/index.html XoopsModules/webdav/trunk/modules/webdav/language/english/mail_templates/ XoopsModules/webdav/trunk/modules/webdav/language/english/main.php XoopsModules/webdav/trunk/modules/webdav/language/english/modinfo.php XoopsModules/webdav/trunk/modules/webdav/language/english/release.nfo XoopsModules/webdav/trunk/modules/webdav/language/english/release.xcode XoopsModules/webdav/trunk/modules/webdav/language/english/style.css XoopsModules/webdav/trunk/modules/webdav/language/index.html XoopsModules/webdav/trunk/modules/webdav/sql/ XoopsModules/webdav/trunk/modules/webdav/sql/index.html XoopsModules/webdav/trunk/modules/webdav/templates/ XoopsModules/webdav/trunk/modules/webdav/templates/index.html XoopsModules/webdav/trunk/modules/webdav/xoops_version.php Added: XoopsModules/webdav/trunk/modules/webdav/admin/index.html =================================================================== --- XoopsModules/webdav/trunk/modules/webdav/admin/index.html (rev 0) +++ XoopsModules/webdav/trunk/modules/webdav/admin/index.html 2017-07-30 10:15:16 UTC (rev 13261) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/webdav/trunk/modules/webdav/admin/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/webdav/trunk/modules/webdav/class/index.html =================================================================== --- XoopsModules/webdav/trunk/modules/webdav/class/index.html (rev 0) +++ XoopsModules/webdav/trunk/modules/webdav/class/index.html 2017-07-30 10:15:16 UTC (rev 13261) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/webdav/trunk/modules/webdav/class/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/webdav/trunk/modules/webdav/crons/index.html =================================================================== --- XoopsModules/webdav/trunk/modules/webdav/crons/index.html (rev 0) +++ XoopsModules/webdav/trunk/modules/webdav/crons/index.html 2017-07-30 10:15:16 UTC (rev 13261) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/webdav/trunk/modules/webdav/crons/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/webdav/trunk/modules/webdav/images/index.html =================================================================== --- XoopsModules/webdav/trunk/modules/webdav/images/index.html (rev 0) +++ XoopsModules/webdav/trunk/modules/webdav/images/index.html 2017-07-30 10:15:16 UTC (rev 13261) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/webdav/trunk/modules/webdav/images/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/webdav/trunk/modules/webdav/include/data/index.html =================================================================== --- XoopsModules/webdav/trunk/modules/webdav/include/data/index.html (rev 0) +++ XoopsModules/webdav/trunk/modules/webdav/include/data/index.html 2017-07-30 10:15:16 UTC (rev 13261) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/webdav/trunk/modules/webdav/include/data/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/webdav/trunk/modules/webdav/include/index.html =================================================================== --- XoopsModules/webdav/trunk/modules/webdav/include/index.html (rev 0) +++ XoopsModules/webdav/trunk/modules/webdav/include/index.html 2017-07-30 10:15:16 UTC (rev 13261) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/webdav/trunk/modules/webdav/include/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/webdav/trunk/modules/webdav/language/english/admin.php =================================================================== --- XoopsModules/webdav/trunk/modules/webdav/language/english/admin.php (rev 0) +++ XoopsModules/webdav/trunk/modules/webdav/language/english/admin.php 2017-07-30 10:15:16 UTC (rev 13261) @@ -0,0 +1,53 @@ +<?php +/** + * XOOPS Webdav Propogating + Management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage webdav + * @description Module for controlling and propogating webdav resources for XOOPS Users + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/webdav + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/webdav + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/webdav + * @link http://internetfounder.wordpress.com + */ + + +if (!defined('XOOPS_ROOT_PATH')) { exit(); } + +define("LANGS_MA_INDEX_H1","Languages Supported"); +define("LANGS_MA_INDEX_P1","This is a browsable list of the languages that are supported on the system, if you have a log in once your logged in you can place a request for any other languages you want to define and tabulate!"); +define("LANGS_MA_TD_NAME","Language"); +define("LANGS_MA_TD_FOLDER","Storage Folder/Path"); +define("LANGS_MA_TD_CODE","utf8 Code"); +define("LANGS_MA_TD_SPOKEN","Users with Spoken"); +define("LANGS_MA_TD_WRITTEN","Users with Written"); +define("LANGS_MA_TD_ACTION","Maintenance Actions"); +define("LANGS_AM_HTACCESS_H1", "Apache2 ModRewrite .htaccess"); +define("LANGS_AM_HTACCESS_P1", "This is the apache2 module for URL rewriting this goes in your <strong>".XOOPS_ROOT_PATH.DIRECTORY_SEPARATOR.".htaccess</strong> file"); +define("LANGS_MA_ERROR_NOLANGUAGEFOUND", "Language not found under the identity number!"); +define("LANGS_MA_LANGUAGES_DELETE", "Are you sure you wish to delete the language %s?"); +define("LANGS_MA_DELETE_DONE","No trouble deleting the language %s!"); +define("LANGS_MA_DELETE_ERROR","There was an error deleting the language %s!"); +define("LANGS_MA_LANGUAGE_EDIT_H1", "Edit Language Resource"); +define("LANGS_MA_LANGUAGE_EDIT_P1", "With the form below you will be able to edit the language resource as well as define and image or flag for the language!"); +define("LANGS_MA_MISSINGNAMEORCODE","You must specify fields: <strong>name + code</strong> ~ intially the other fields are supplimentary!"); +define("LANGS_MA_SAVE_DONE","No trouble saving the language %s!"); +define("LANGS_MA_SAVE_ERROR","There was an error saving the language %s!"); +define("LANGS_MA_REQUESTS_H1","Requests Waiting for Action"); +define("LANGS_MA_REQUESTS_P1","These are the languages that are being requested to be added or declined on being supported by this portal!"); +define("LANGS_MA_ACTION_DECLINE", "Decline Request"); +define("LANGS_MA_ACTION_APPROVE", "Approve Request"); +define("LANGS_MA_REQUEST_DECLINED_SUBJECT", "%s been declined for language type resource!"); +define("LANGS_MA_REQUEST_APPROVED_SUBJECT", "%s been approved for language type resource!"); +define("LANGS_MA_ERROR_NOREQUESTSWAITING", "No Languages are currently waiting for approval or declination on the Language Request queue!"); +?> \ No newline at end of file Property changes on: XoopsModules/webdav/trunk/modules/webdav/language/english/admin.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/webdav/trunk/modules/webdav/language/english/forms.php =================================================================== --- XoopsModules/webdav/trunk/modules/webdav/language/english/forms.php (rev 0) +++ XoopsModules/webdav/trunk/modules/webdav/language/english/forms.php 2017-07-30 10:15:16 UTC (rev 13261) @@ -0,0 +1,40 @@ +<?php +/** + * XOOPS Webdav Propogating + Management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage webdav + * @description Module for controlling and propogating webdav resources for XOOPS Users + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/webdav + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/webdav + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/webdav + * @link http://internetfounder.wordpress.com + */ + + +if (!defined('XOOPS_ROOT_PATH')) { exit(); } + +define("LANGS_FORMS_REQUESTS_TITLE", "Request new language to be added to supported types!"); +define("LANGS_FORMS_REQUESTS_NAME","Language Name"); +define("LANGS_FORMS_REQUESTS_FOLDER","Language Folder"); +define("LANGS_FORMS_REQUESTS_CODE","Language Code"); +define("LANGS_FORMS_REQUESTS_FLAG","Flag for Language"); +define("LANGS_FORMS_REQUESTS_FLAG_DESC","Must be an image file ie. JPG, PNG, GIF no more than: 796 Kb's!"); + +define("LANGS_FORMS_LANGUAGE_TITLE", "Edit language within resource"); +define("LANGS_FORMS_LANGUAGE_NAME","Language Name"); +define("LANGS_FORMS_LANGUAGE_FOLDER","Language Folder"); +define("LANGS_FORMS_LANGUAGE_CODE","Language Code"); +define("LANGS_FORMS_LANGUAGE_FLAG","Flag for Language"); +define("LANGS_FORMS_LANGUAGE_FLAG_DESC","Must be an image file ie. JPG, PNG, GIF no more than: 796 Kb's!"); +?> \ No newline at end of file Property changes on: XoopsModules/webdav/trunk/modules/webdav/language/english/forms.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/webdav/trunk/modules/webdav/language/english/index.html =================================================================== --- XoopsModules/webdav/trunk/modules/webdav/language/english/index.html (rev 0) +++ XoopsModules/webdav/trunk/modules/webdav/language/english/index.html 2017-07-30 10:15:16 UTC (rev 13261) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/webdav/trunk/modules/webdav/language/english/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/webdav/trunk/modules/webdav/language/english/main.php =================================================================== --- XoopsModules/webdav/trunk/modules/webdav/language/english/main.php (rev 0) +++ XoopsModules/webdav/trunk/modules/webdav/language/english/main.php 2017-07-30 10:15:16 UTC (rev 13261) @@ -0,0 +1,43 @@ +<?php +/** + * XOOPS Webdav Propogating + Management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage webdav + * @description Module for controlling and propogating webdav resources for XOOPS Users + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/webdav + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/webdav + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/webdav + * @link http://internetfounder.wordpress.com + */ + + + +if (!defined('XOOPS_ROOT_PATH')) { exit(); } + +define("LANGS_MN_INDEX_TITLE", "Supported Languages: %s of %s"); +define("LANGS_MN_INDEX_H1","Languages Supported"); +define("LANGS_MN_INDEX_P1","This is a browsable list of the languages that are supported on the system, if you have a log in once your logged in you can place a request for any other languages you want to define and tabulate!"); +define("LANGS_MN_REQUESTS_H1","Request Additional Language"); +define("LANGS_MN_REQUESTS_P1","Fill out the form below to request a new language to be supported by this portal, you will have to wait till they are approved before it becomes available!"); +define("LANGS_MN_TD_NAME","Language"); +define("LANGS_MN_TD_FOLDER","Storage Folder/Path"); +define("LANGS_MN_TD_CODE","utf8 Code"); +define("LANGS_MN_TD_SPOKEN", "Users with Spoken"); +define("LANGS_MN_TD_WRITTEN", "Users with Written"); +define("LANGS_MN_NEEDTOLOGIN", "You need to be logged in to use this feature!"); +define("LANGS_MN_MISSINGNAMEORCODE","You must specify fields: <strong>name + code</strong> ~ intially the other fields are supplimentary!"); + +// Email Subjects +define("LANGS_MN_REQUEST_SUBJECT", "%s ~ Addition Languge Requested added to Portal"); +?> \ No newline at end of file Property changes on: XoopsModules/webdav/trunk/modules/webdav/language/english/main.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/webdav/trunk/modules/webdav/language/english/modinfo.php =================================================================== --- XoopsModules/webdav/trunk/modules/webdav/language/english/modinfo.php (rev 0) +++ XoopsModules/webdav/trunk/modules/webdav/language/english/modinfo.php 2017-07-30 10:15:16 UTC (rev 13261) @@ -0,0 +1,92 @@ +<?php +/** + * XOOPS Webdav Propogating + Management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage webdav + * @description Module for controlling and propogating webdav resources for XOOPS Users + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/webdav + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/webdav + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/webdav + * @link http://internetfounder.wordpress.com + */ + + + +if (!defined('XOOPS_ROOT_PATH')) { exit(); } + +// Module definition headers for xoops_version.php +define('WEBDAV_MI_NAME','Webdav Control'); +define('WEBDAV_MI_VERSION','1.01'); +define('WEBDAV_MI_RELEASEDATE','30-07-2017'); +define('WEBDAV_MI_STATUS','release'); +define('WEBDAV_MI_DESCRIPTION','User Webdav Controller'); +define('WEBDAV_MI_CREDITS','Mynamesnot, Wishcraft'); +define('WEBDAV_MI_AUTHORALIAS','wishcraft'); +define('WEBDAV_MI_HELP','page=help'); +define('WEBDAV_MI_LICENCE','gpl3+academic'); +define('WEBDAV_MI_OFFICAL','1'); +define('WEBDAV_MI_ICON','images/mlogo.png'); +define('WEBDAV_MI_WEBSITE','http://au.syd.snails.email'); +define('WEBDAV_MI_ADMINMODDIR','/Frameworks/moduleclasses/moduleadmin'); +define('WEBDAV_MI_ADMINICON16','../../Frameworks/moduleclasses/icons/16'); +define('WEBDAV_MI_ADMINICON32','../../Frameworks/moduleclasses/icons/32'); +define('WEBDAV_MI_RELEASEINFO',__DIR__ . DIRECTORY_SEPARATOR . 'release.nfo'); +define('WEBDAV_MI_RELEASEXCODE',__DIR__ . DIRECTORY_SEPARATOR . 'release.xcode'); +define('WEBDAV_MI_RELEASEFILE','https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/webdav/xoops2.5_webdav_1.03.7z/download'); +define('WEBDAV_MI_AUTHORREALNAME','Simon Antony Roberts'); +define('WEBDAV_MI_AUTHORWEBSITE','http://internetfounder.wordpress.com'); +define('WEBDAV_MI_AUTHORSITENAME','Exhumations from the desks of Chronographics'); +define('WEBDAV_MI_AUTHOREMAIL','simon@snails.email'); +define('WEBDAV_MI_AUTHORWORD',''); +define('WEBDAV_MI_WARNINGS',''); +define('WEBDAV_MI_DEMO_SITEURL',''); +define('WEBDAV_MI_DEMO_SITENAME',''); +define('WEBDAV_MI_SUPPORT_SITEURL',''); +define('WEBDAV_MI_SUPPORT_SITENAME',''); +define('WEBDAV_MI_SUPPORT_FEATUREREQUEST',''); +define('WEBDAV_MI_SUPPORT_BUGREPORTING',''); +define('WEBDAV_MI_DEVELOPERS','Simon Roberts (Wishcraft)'); // Sperated by a Pipe (|) +define('WEBDAV_MI_TESTERS',''); // Sperated by a Pipe (|) +define('WEBDAV_MI_TRANSLATERS',''); // Sperated by a Pipe (|) +define('WEBDAV_MI_DOCUMENTERS',''); // Sperated by a Pipe (|) +define('WEBDAV_MI_HASSEARCH',false); +define('WEBDAV_MI_HASMAIN',true); +define('WEBDAV_MI_HASADMIN',true); +define('WEBDAV_MI_HASCOMMENTS',false); + +// Admin Menu +define("WEBDAV_MI_ADMENU_INDEX","Admin Homepage"); +define("WEBDAV_MI_ADMENU_LANGUAGES","Languages Admin"); +define("WEBDAV_MI_ADMENU_REQUESTS","Language Requests"); +define("WEBDAV_MI_ADMENU_HTACCESS", ".htaccess Config"); +define("WEBDAV_MI_ADMENU_ABOUT", "About Languages"); + +//Main Menu +define("WEBDAV_MI_MENU_REQUESTS", "Request New Language"); + +// Configguration Categories +define('WEBDAV_MI_CONFCAT_SEO','Search Engine Optimization'); +define('WEBDAV_MI_CONFCAT_SEO_DESC',''); + +// Configuration Descriptions and Titles +define('WEBDAV_MI_HTACCESS','.htaccess SEO URL'); +define('WEBDAV_MI_HTACCESS_DESC',''); +define('WEBDAV_MI_BASE','Base .htaccess path'); +define('WEBDAV_MI_BASE_DESC',''); +define('WEBDAV_MI_HTML','Extension for HTML output with SEO URL'); +define('WEBDAV_MI_HTML_DESC',''); +define("WEBDAV_MI_ITEMSPERPAGE","Items per page"); +define("WEBDAV_MI_ITEMSPERPAGE_DESC",""); + +?> \ No newline at end of file Property changes on: XoopsModules/webdav/trunk/modules/webdav/language/english/modinfo.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/webdav/trunk/modules/webdav/language/english/release.nfo =================================================================== --- XoopsModules/webdav/trunk/modules/webdav/language/english/release.nfo (rev 0) +++ XoopsModules/webdav/trunk/modules/webdav/language/english/release.nfo 2017-07-30 10:15:16 UTC (rev 13261) @@ -0,0 +1,132 @@ + +--[ Release Information ]------------------------------------------------------------ + +hhhhhhhhhhhhhhhhhhhhhhhh- -hhhhhhhhhhhhhhhhhhhhhhhh +hh snails.email hhhhhhhh- -hhhhhhhhhhhhhhhhhhhhhhhh +hhhhhhhhhhhhhhhhhhhhhhys. `..------..` .syhhhhhhhhhhhhhhhhhhhhhh +hhhhhhhhhhhhhhhhhhhy+-` `.:/ooyhhhhhhhhhhhhhhyoo/:.` `-+yhhhhhhhhhhhhhhhhhhh +hhhhhhhhhhhhhhhhhhh: `-+shhhhhhhhhhhhhhhhhhhhhhhhhhhhs+-` :hhhhhhhhhhhhhhhhhhh +hhhhhhhhhhhhhhhhhhhhs:/shhhhy+yhhhhhhyyyyyyyyyyhhhhhhy+yhhhhs/:shhhhhhhhhhhhhhhhhhhh +hhhhhhhhhhhhhhhhhhhhhhhhhhhhs `/+/..` ``.-/+/` shhhhhhhhhhhhhhhhhhhhhhhhhhhh +hhhhhhhhhhhhhhhhhhhhhhhhhhyo: `.:+osyyyyyyso+:.` :oyhhhhhhhhhhhhhhhhhhhhhhhhhh +hhhhhhhhhhhhhhhhhhhhhhhy+- `-+ydmmmmmmmmmmmmmmmmmmdy+-` -+yhhhhhhhhhhhhhhhhhhhhhhh +hhhhhhhy/shhhhhhhhhhhs:` `:sdmmmmmmmmmmmmmmmmmmmmmmmmmmds:` `:shhhhhhhhhhhs/yhhhhhhh +hhhhhhs. -yhhhhhhhs- .odmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmdo. -shhhhhhhy- .shhhhhh +hhhhhs` -hhhhhhh: .smmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmms. :hhhhhhh- `shhhhh +````. :hhhhhhs` `ommmmmmmmmmdhyhmmmmmdhyhmmmmmhyhdmmmmmmmmmmo` `shhhhhh: .```` + :hddddh+ .hmmmmmmmmmo.``.``-s+. `. `/y/` .` .+dmmmmmmmmh. +hhhhdh: + -hdh+//: -dmmmmmmmmh. :ymmds` /hmmd+` odmmh/ `ymmmmmmmmd- ://+hdh- + `ydddh+` -dmmmmmmmmd. +mmmmmy` /mmmms ommmmms``hmmmmmmmmd- `+hdddy` + /dddddh` `hmmmmmmmmm+ .mmmmmm/ - hmmd` - .dmmmmm: -mmmmmmmmmh` `hddddd/ + `yddddd/ +mmmmmmmmmm- /mmmmmd. o` smmh `y` ymmmmms .mmmmmmmmmm+ /dddddy` + -dddddh. `dmmmmmmmmmm: :mmmmmm- +` smmh `o` hmmmmmo .mmmmmmmmmmd` .hddddh- + +dddddy :mmmmmmmmmmms .mmmmmm/ ` hmmd. ` -mmmmmm- :mmmmmmmmmmm: yddddd+ + oddddds /mmmmmmmmmmmd. +mmmmmy` +mmmms ommmmmy``hmmmmmmmmmmm/ sdddddo + oddddds /mmmmmmmmmmmmy` ommmmm- `ymmmmd` `hmmmmh. +mmmmmmmmmmmm/ sdddddo + +dddddy :mmmmmdo:ymmmmy` /dmh- . `omms. . .smdo` +mmmd//hmmmmmm: yddddd+ + -dddddh. `hmmdo` -ydddddh: `- +dy. `. `odo` .` -yddddh/ /hmmmd` .hddddd- + `yddddd/ +md: ``-.` ``--`` ``-.` `dmm+ /dddddy` + /dddddh` `hmd+` -yhhhhhhdmmmmmdhddmmmmmdhdmmmmmdhhhhhh/ /hmmh` `hddddd/ + `ydddh+` .dmmdo/smmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmh//hmmmd. `+hdddy` + -ddh+//: -hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmh- ://+hdd- + :ddddddo .ymmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmy. odddddd: +..... /ddddddy` `+dmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmd+ `ydddddd/ ..... +dddddy` :hdddddd/ .odmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmdo. /ddddddh: `yddddd +ddddddy. :hdddddddy: .+hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmh+. :ydddddddh: .ydddddd +dddddddh+ydddddddddddy/` -ohdddmmmmmmmmmmmmmmmmmmdmdddho- `/ydddddddddddy+hddddddd +mdddddmmmmmmmmmmmmmmmmddo- ./oyddddddddddddddddddyo/. -odmmmmmmmmmmmmmddmddmmmmd +mmmmmmmmmmmmmmmmmmmmmmmmmmds: ``-//+osssso+//-`` :sdmmmmmmmmmmmmmmmmmmmmmmmmmm +mmmmmmmmmmmmmmmmmmmmmmmmmmmmh `+o/-.`` ``.-/o+` hmmmmmmmmmmmmmmmmmmmmmmmmmmmm +mmmmmmmmmmmmmmmmmmmmy/+ydmmmdodmmmmmdddhhhhhhdddmmmmmdodmmmdy+/ymmmmmmmmmmmmmmmmmmmm +mmmmmmmmmmmmmmmmmmd: `:oydmmmmmmmmmmmmmmmmmmmmmmmmmmdyo:` :dmmmmmmmmmmmmmmmmmm +mmmmmmmmmmmmmmmmmmmds:` `.:+syhdmmmmmmmmmmmmdhys+:.` `:sdmmmmmmmmmmmmm au mm +mmmmmmmmmmmmmmmmmmmmmmdh. `.-::::::-.` .hdmmmmmmmmmmmmmm 2017 mm +mmmmmmmmmmmmmmmmmmmmmmmm: :mmmmmmmmmmm wishcraft mm +mmmmmmmmmmmmmmmmmmmmmmmm: :mmmmmmmmmmmmmmmmmmmmmmmm + +Chronolabs Cooperative Presents a Release for XOOPS 2.5; this is an module for addin +Tag, Nodes, Keywords based in categories and tags, and is based on phppp Tag 2.30... + +--[ Release Versioning ]------------------------------------------------------------ + +Licence: GPL3 + ACADEMIC +Frameworks: XOOPS 2.5.8, php7.0, mysql 5.x, ubuntu/debian +Type: XOOPS Module +Title: Tags +Description: Tagging content in nodes and keywords in the XOOPS System with Cat`s! +Version: 3.01 +Upgradable: +Status: Release +Commissioned: 1970-02-02 00:22:22 +1000 +Public: 1970-02-02 00:22:22 +1000 + +--[ Release Author Data ]------------------------------------------------------------ + +Name: Simon Antony Roberts +eMail: simon@snails.email +Skype: antony.cipher +Time-zone: Australia/Sydney +Location: Marrickville South, NSW, Australia +Aliases: wishcraft, mynamesnot +Blog: http://internetfounder.wordpress.com +Twitter: https://twitter.com/SimonASaies +Facebook: https://facebook.com/mynamesnot +Google+: https://plus.google.com/u/0/105256588269767640343 +Group Profile: http://snails.email/naut/au/syd/1 +XOOPS Profile: http://xoops.org/modules/profile/userinfo.php?uid=62352 +Sourceforge Profile: https://sourceforge.net/users/wishcraft/profile +GitHub Profile: http://github.com/Cipherhouse + +--[ Release Group Data ]---------------------------------------------------------- + +Icon: https://labs.partnerconsole.net/execute2/external/reseller-logo +Avatar: https://labs.partnerconsole.net/execute2/external/reseller-logo +Name: Chronolabs Cooperative +eMail: chronolabs@snails.email +Time-zone: Australia/Sydney +Location: Marrickville South, NSW, Australia +Registration: http://www.abr.business.gov.au/SearchByAbn.aspx?abn=41460248629 +Blog: http://internetfounder.wordpress.com +Twitter: https://twitter.com/ChronolabsCoop +Facebook: https://facebook.com/ChronolabsCoop +Google+: +Profile: http://au.syd.snails.email +Sourceforge Profile: https://sourceforge.net/projects/chronolabs +GitHub Profile: http://github.com/Chronolabs-Cooperative + +--[ Translation Author ]------------------------------------------------------------ + +Language: English +CharSet: UTF8 +LangCode: EN +Name: Simon Antony Roberts +eMail: simon@snails.email +Skype: antony.cipher +Time-zone: Australia/Sydney +Location: Marrickville South, NSW, Australia +Aliases: wishcraft, mynamesnot +Blog: http://internetfounder.wordpress.com +Twitter: https://twitter.com/SimonASaies +Facebook: https://facebook.com/mynamesnot +Google+: https://plus.google.com/u/0/105256588269767640343 +Group Profile: http://snails.email/naut/au/syd/1 +XOOPS Profile: http://xoops.org/modules/profile/userinfo.php?uid=62352 +Sourceforge Profile: https://sourceforge.net/users/wishcraft/profile +GitHub Profile: http://github.com/Cipherhouse + +--[ Release Resources ]------------------------------------------------------------ + +File ZIP: +File RAR: +File 7Z: +File TAR.GZ: +Git Pull: + +--[ Project Data ]---------------------------------------------------------------- + +Repository XOOPS: https://svn.code.sf.net/p/xoops/svn/XoopsModules/tag +Repository SVN: +Repository GIT: +Icon: +Avatar: +Banner: Added: XoopsModules/webdav/trunk/modules/webdav/language/english/release.xcode =================================================================== --- XoopsModules/webdav/trunk/modules/webdav/language/english/release.xcode (rev 0) +++ XoopsModules/webdav/trunk/modules/webdav/language/english/release.xcode 2017-07-30 10:15:16 UTC (rev 13261) @@ -0,0 +1,16 @@ +[center][img]https://labs.partnerconsole.net/execute2/external/reseller-logo[/img] +[i][b][size=large]Chronolabs Cooperative ~ Presents[/size][/b][/i] +[u][b][size=xlarge]Tags ~ Version 3.01[/size][/b][/u][/center] + + +[b][size=small]Description[/size][/b] + +Tags version 3.01 is based on phppp from China's Districts version 2.30 now with categories and process of importing and merging categories as well it offer a wide range of diverse browsing of tags in nodes of keywords and term. + +It is for use in other module with the extensions and plugins in place you can have a dynamic pillow book of tags. + + +[b][size=small]Downloads[/size][/b] + +You can download from: [b][u][url=https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/tag/xoops2.5_tag_3.01.7z/download]*.7z[/url], [url=https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/tag/xoops2.5_tag_3.01.zip/download +]*.zip[/url], [url=https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/tag/xoops2.5_tag_3.01.tar.gz/download]*.tar.gz[/url], [url=https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/tag/xoops2.5_tag_3.01.rar/download]*.rar[/url]![/u][/b] \ No newline at end of file Index: XoopsModules/webdav/trunk/modules/webdav/language/english/style.css =================================================================== --- XoopsModules/webdav/trunk/modules/webdav/language/english/style.css 2017-07-30 07:56:26 UTC (rev 13260) +++ XoopsModules/webdav/trunk/modules/webdav/language/english/style.css 2017-07-30 10:15:16 UTC (rev 13261) Property changes on: XoopsModules/webdav/trunk/modules/webdav/language/english/style.css ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/webdav/trunk/modules/webdav/language/index.html =================================================================== --- XoopsModules/webdav/trunk/modules/webdav/language/index.html (rev 0) +++ XoopsModules/webdav/trunk/modules/webdav/language/index.html 2017-07-30 10:15:16 UTC (rev 13261) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/webdav/trunk/modules/webdav/language/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/webdav/trunk/modules/webdav/sql/index.html =================================================================== --- XoopsModules/webdav/trunk/modules/webdav/sql/index.html (rev 0) +++ XoopsModules/webdav/trunk/modules/webdav/sql/index.html 2017-07-30 10:15:16 UTC (rev 13261) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/webdav/trunk/modules/webdav/sql/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/webdav/trunk/modules/webdav/templates/index.html =================================================================== --- XoopsModules/webdav/trunk/modules/webdav/templates/index.html (rev 0) +++ XoopsModules/webdav/trunk/modules/webdav/templates/index.html 2017-07-30 10:15:16 UTC (rev 13261) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/webdav/trunk/modules/webdav/templates/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/webdav/trunk/modules/webdav/xoops_version.php =================================================================== --- XoopsModules/webdav/trunk/modules/webdav/xoops_version.php (rev 0) +++ XoopsModules/webdav/trunk/modules/webdav/xoops_version.php 2017-07-30 10:15:16 UTC (rev 13261) @@ -0,0 +1,472 @@ +<?php +/** + * XOOPS Webdav Propogating + Management module + * + * 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 + * @author Simon Roberts <wis...@us...> + * @subpackage webdav + * @description Module for controlling and propogating webdav resources for XOOPS Users + * @version 1.0.1 + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.5/Modules/webdav + * @link https://sourceforge.net/projects/chronolabs/files/XOOPS%202.6/Modules/webdav + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/webdav + * @link http://internetfounder.wordpress.com + */ + + +if (!defined('XOOPS_ROOT_PATH')) { exit(); } + +$modversion = array(); +$modversion["name"] = WEBDAV_MI_NAME; +$modversion["version"] = WEBDAV_MI_VERSION; +$modversion["description"] = WEBDAV_MI_DESC; +$modversion["dirname"] = basename(__DIR__); +$modversion['releasedate'] = WEBDAV_MI_RELEASEDATE; +$modversion['status'] = WEBDAV_MI_STATUS; +$modversion['description'] = WEBDAV_MI_DESCRIPTION; +$modversion['credits'] = WEBDAV_MI_CREDITS; +$modversion['author'] = WEBDAV_MI_AUTHORALIAS; +$modversion['help'] = WEBDAV_MI_HELP; +$modversion['license'] = WEBDAV_MI_LICENCE; +$modversion['official'] = WEBDAV_MI_OFFICAL; +$modversion['image'] = WEBDAV_MI_ICON; +$modversion['module_status'] = WEBDAV_MI_STATUS; +$modversion['website'] = WEBDAV_MI_WEBSITE; +$modversion['dirmoduleadmin'] = WEBDAV_MI_ADMINMODDIR; +$modversion['icons16'] = WEBDAV_MI_ADMINICON16; +$modversion['icons32'] = WEBDAV_MI_ADMINICON32; +$modversion['release_info'] = WEBDAV_MI_RELEASEINFO; +$modversion['release_file'] = WEBDAV_MI_RELEASEFILE; +$modversion['release_date'] = WEBDAV_MI_RELEASEDATE; +$modversion['author_realname'] = WEBDAV_MI_AUTHORREALNAME; +$modversion['author_website_url'] = WEBDAV_MI_AUTHORWEBSITE; +$modversion['author_website_name'] = WEBDAV_MI_AUTHORSITENAME; +$modversion['author_email'] = WEBDAV_MI_AUTHOREMAIL; +$modversion['author_word'] = WEBDAV_MI_AUTHORWORD; +$modversion['status_version'] = WEBDAV_MI_VERSION; +$modversion['warning'] = WEBDAV_MI_WARNINGS; +$modversion['demo_site_url'] = WEBDAV_MI_DEMO_SITEURL; +$modversion['demo_site_name'] = WEBDAV_MI_DEMO_SITENAME; +$modversion['support_site_url'] = WEBDAV_MI_SUPPORT_SITEURL; +$modversion['support_site_name'] = WEBDAV_MI_SUPPORT_SITENAME; +$modversion['submit_feature'] = WEBDAV_MI_SUPPORT_FEATUREREQUEST; +$modversion['submit_bug'] = WEBDAV_MI_SUPPORT_BUGREPORTING; +$modversion['people']['developers'] = explode("|", WEBDAV_MI_DEVELOPERS); +$modversion['people']['testers'] = explode("|", WEBDAV_MI_TESTERS); +$modversion['people']['translaters'] = explode("|", WEBDAV_MI_TRANSLATERS); +$modversion['people']['documenters'] = explode("|", WEBDAV_MI_DOCUMENTERS); + +// Requirements +$modversion['min_php'] = '7.0'; +$modversion['min_xoops'] = '2.5.8'; +$modversion['min_db'] = array('mysql' => '5.0.7', 'mysqli' => '5.0.7'); +$modversion['min_admin'] = '1.1'; + +// database tables +$modversion["sqlfile"]["mysql"] = "sql/mysql.sql"; +$modversion["tables"] = array( + "languages_languages", + "languages_users" + ); + +// Main +$modversion['hasMain'] = WEBDAV_MI_HASMAIN; + +// Admin +$modversion['hasAdmin'] = WEBDAV_MI_HASADMIN; +$modversion['adminindex'] = "admin/index.php"; +$modversion['adminmenu'] = "admin/menu.php"; +$modversion['system_menu'] = 1; + +// Search +$modversion["hasSearch"] = WEBDAV_MI_HASSEARCH; +$modversion['search']['file'] = "include/search.inc.php"; +$modversion['search']['func'] = "languages_search"; + +// Comments +$modversion["hasComments"] = WEBDAV_MI_HASCOMMENTS; + +//$modversion["onInstall"] = "include/action.module.php"; +//$modversion["onUpdate"] = "include/action.module.php"; +//$modversion["onUninstall"] = "include/action.module.php"; + +// Use smarty +$modversion["use_smarty"] = true; + +// Add extra menu items +if (is_object($GLOBALS['xoopsUser'])) +{ + $modversion['sub'][1]['name'] = WEBDAV_MI_MENU_CLIENTS; + $modversion['sub'][1]['url'] = "clients.php"; +} + +/** +* Templates +*/ +$modversion['templates'] = array(); +$modversion['templates'][1] = array( + 'file' => 'webdav_index.html', + 'description' => 'Index page of webdav module' + ); + +$modversion['templates'][1] = array( + 'file' => 'webdav_clients.html', + 'description' => 'Client Management of a Webdav with Form' + ); +// Blocks +$modversion['blocks'] = array(); + +// Config categories +$modversion['configcat']['seo']['name'] = WEBDAV_MI_CONFCAT_SEO; +$modversion['configcat']['seo']['description'] = WEBDAV_MI_CONFCAT_SEO_DESC; +$modversion['configcat']['users']['name'] = WEBDAV_MI_CONFCAT_USERS; +$modversion['configcat']['users']['description'] = WEBDAV_MI_CONFCAT_USERS_DESC; +$modversion['configcat']['paths']['name'] = WEBDAV_MI_CONFCAT_PATHS; +$modversion['configcat']['paths']['description'] = WEBDAV_MI_CONFCAT_PATHS_DESC; + +// Configs +$modversion["config"] = array(); +$modversion["config"][] = array( + "name" => "htaccess", + "title" => "WEBDAV_MI_HTACCESS", + "description" => "WEBDAV_MI_HTACCESS_DESC", + "formtype" => "yesno", + "valuetype" => "int", + "default" => false, + "category" => "seo" + ); + +$modversion["config"][] = array( + "name" => "base", + "title" => "WEBDAV_MI_BASE", + "description" => "WEBDAV_MI_BASE_DESC", + "formtype" => "text", + "valuetype" => "text", + "default" => "webdav", + "category" => "seo" + ); + +$modversion["config"][] = array( + "name" => "html", + "title" => "WEBDAV_MI_HTML", + "description" => "WEBDAV_MI_HTML_DESC", + "formtype" => "text", + "valuetype" => "text", + "default" => ".html", + "category" => "seo" + ); + +$modversion["config"][] = array( + "name" => "items_perpage", + "title" => "WEBDAV_MI_ITEMSPERPAGE", + "description" => "WEBDAV_MI_ITEMSPERPAGE_DESC", + "formtype" => "textbox", + "valuetype" => "int", + "default" => 25, + "category" => "seo" + ); + +$modversion["config"][] = array( + "name" => "ssl_support", + "title" => "WEBDAV_MI_SSL_SUPPORT", + "description" => "WEBDAV_MI_SSL_SUPPORT_DESC", + "formtype" => "yesno", + "valuetype" => "int", + "default" => false, + "category" => "seo" + ); + +$modversion["config"][] = array( + "name" => "root_hostname", + "title" => "WEBDAV_MI_ROOT_HOSTNAME", + "description" => "WEBDAV_MI_ROOT_HOSTNAME_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => strtolower(basename(__DIR__) . '.' . parse_url(XOOPS_URL, PHP_URL_HOST)), + "category" => "paths" + ); + +$modversion["config"][] = array( + "name" => "root_path", + "title" => "WEBDAV_MI_ROOT_PATH", + "description" => "WEBDAV_MI_ROOT_PATH_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => strtolower('/var/www/'.basename(__DIR__) . '.' . parse_url(XOOPS_URL, PHP_URL_HOST)), + "category" => "paths" + ); + +$modversion["config"][] = array( + "name" => "sitesavailable_path", + "title" => "WEBDAV_MI_SITESAVAILABLE_PATH", + "description" => "WEBDAV_MI_SITESAVAILABLE_PATH_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => '/etc/apache2/sites-available', + "category" => "paths" + ); + +$modversion["config"][] = array( + "name" => "htpasswd_path", + "title" => "WEBDAV_MI_HTPASSWD_PATH", + "description" => "WEBDAV_MI_HTPASSWD_PATH_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => strtolower('/var/www/'.basename(__DIR__) . '.' . parse_url(XOOPS_URL, PHP_URL_HOST) . DIRECTORY_SEPARATOR . '.htpasswd'), + "category" => "paths" + ); + +$modversion["config"][] = array( + "name" => "temporary_path", + "title" => "WEBDAV_MI_TEMPORARY_PATH", + "description" => "WEBDAV_MI_TEMPORARY_PATH_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => '/tmp', + "category" => "paths" + ); + +$modversion["config"][] = array( + "name" => "folder_core", + "title" => "WEBDAV_MI_FOLDER_CORE", + "description" => "WEBDAV_MI_FOLDER_CORE_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => 'core', + "category" => "paths" + ); + +$modversion["config"][] = array( + "name" => "folder_modules", + "title" => "WEBDAV_MI_FOLDER_MODULES", + "description" => "WEBDAV_MI_FOLDER_MODULES_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => 'modules', + "category" => "paths" + ); + +$modversion["config"][] = array( + "name" => "folder_themes", + "title" => "WEBDAV_MI_FOLDER_THEMES", + "description" => "WEBDAV_MI_FOLDER_THEMES_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => 'themes', + "category" => "paths" + ); + +$modversion["config"][] = array( + "name" => "folder_documentation", + "title" => "WEBDAV_MI_FOLDER_DOCUMENTATION", + "description" => "WEBDAV_MI_FOLDER_DOCUMENTATION_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => 'documents', + "category" => "paths" + ); + +$modversion["config"][] = array( + "name" => "folder_languages", + "title" => "WEBDAV_MI_FOLDER_LANGUAGES", + "description" => "WEBDAV_MI_FOLDER_LANGUAGES_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => 'translating', + "category" => "paths" + ); + +$modversion["config"][] = array( + "name" => "folder_testing", + "title" => "WEBDAV_MI_FOLDER_TESTING", + "description" => "WEBDAV_MI_FOLDER_TESTING_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => 'testing', + "category" => "paths" + ); + +$modversion["config"][] = array( + "name" => "folder_core_verion", + "title" => "WEBDAV_MI_FOLDER_CORE_VERSION", + "description" => "WEBDAV_MI_FOLDER_CORE_VERSION_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => 'XOOPS %version%', + "category" => "paths" + ); + +$modversion["config"][] = array( + "name" => "folder_module_verion", + "title" => "WEBDAV_MI_FOLDER_MODULE_VERSION", + "description" => "WEBDAV_MI_FOLDER_MODULE_VERSION_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => '%name% %version%', + "category" => "paths" + ); + +$modversion["config"][] = array( + "name" => "folder_theme_verion", + "title" => "WEBDAV_MI_FOLDER_THEME_VERSION", + "description" => "WEBDAV_MI_FOLDER_THEME_VERSION_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => '%name% %version%', + "category" => "paths" + ); + +$modversion["config"][] = array( + "name" => "folder_staging", + "title" => "WEBDAV_MI_FOLDER_STAGING", + "description" => "WEBDAV_MI_FOLDER_STAGING_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => 'staging', + "category" => "paths" + ); + +$modversion["config"][] = array( + "name" => "pause_scan_file", + "title" => "WEBDAV_MI_PAUSE_SCAN_FILE", + "description" => "WEBDAV_MI_PAUSE_SCAN_FILE_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => '.offline', + "category" => "paths" + ); + +$modversion["config"][] = array( + "name" => "license_file", + "title" => "WEBDAV_MI_LICENSE_FILE", + "description" => "WEBDAV_MI_LICENSE_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => 'LICENSE', + "category" => "paths" + ); + +$modversion["config"][] = array( + "name" => "academic_license_file", + "title" => "WEBDAV_MI_ACADEMIC_LICENSE_FILE", + "description" => "WEBDAV_MI_ACADEMIC_LICENSE_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => 'ACADEMIC', + "category" => "paths" + ); + +$modversion["config"][] = array( + "name" => "readme_file", + "title" => "WEBDAV_MI_README_FILE", + "description" => "WEBDAV_MI_README_FILE_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => 'README.md', + "category" => "paths" + ); + +$modversion["config"][] = array( + "name" => "releases_project_file", + "title" => "WEBDAV_MI_RELEASES_PROJECT_FILE", + "description" => "WEBDAV_MI_RELEASES_PROJECT_FILE_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => 'xoops-releases.json', + "category" => "paths" + ); + +$modversion["config"][] = array( + "name" => "populate_groups", + "title" => "WEBDAV_MI_POPULATEGROUPS", + "description" => "WEBDAV_MI_POPULATEGROUPS_DESC", + "formtype" => "group_multi", + "valuetype" => "array", + "default" => explode(",", XOOPS_GROUPS_EXTRA), + "category" => "users" + ); + +$modversion["config"][] = array( + "name" => "webdav_htpasswd_title", + "title" => "WEBDAV_MI_WEBDAV_HTPASSWD_TITLE", + "description" => "WEBDAV_MI_WEBDAV_HTPASSWD_TITLE_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => "Username+Password set by '%s' on " . $GLOBALS['xoopsConfig']['sitename'], + "category" => "users" + ); + +$modversion["config"][] = array( + "name" => "path_element", + "title" => "WEBDAV_MI_PATHELEMENT", + "description" => "WEBDAV_MI_PATHELEMENT_DESC", + "formtype" => "radio", + "valuetype" => "text", + "default" => "hashinfo", + "options" => array( "hashinfo" => WEBDAV_MI_PATHELEMENT_HASHINFO, + "username" => WEBDAV_MI_PATHELEMENT_USERNAME ), + "category" => "users" + ); + +$modversion["config"][] = array( + "name" => "permissiables_mode", + "title" => "WEBDAV_MI_PERMISSIABLES_MODE", + "description" => "WEBDAV_MI_PERMISSIABLES_MODE_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => 'chmod -Rf 0777 %s', + "category" => "users" + ); + +$modversion["config"][] = array( + "name" => "permissiables_user", + "title" => "WEBDAV_MI_PERMISSIABLES_USER", + "description" => "WEBDAV_MI_PERMISSIABLES_USER_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => 'chown -Rf www-data:www-data %s', + "category" => "users" + ); + +$modversion["config"][] = array( + "name" => "permit_site_enabled", + "title" => "WEBDAV_MI_PERMIT_SITE_ENABLED", + "description" => "WEBDAV_MI_PERMIT_SITE_ENABLED_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => 'a2ensite %s', + "category" => "users" + ); + +$modversion["config"][] = array( + "name" => "permit_site_disabled", + "title" => "WEBDAV_MI_PERMIT_SITE_DISABLED", + "description" => "WEBDAV_MI_PERMIT_SITE_DISABLED_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => 'a2dissite %s', + "category" => "users" + ); + +$modversion["config"][] = array( + "name" => "reload_apache2", + "title" => "WEBDAV_MI_RELOAD_APACHE2", + "description" => "WEBDAV_MI_RELOAD_APACHE2_DESC", + "formtype" => "textbox", + "valuetype" => "text", + "default" => 'service apache2 reload', + "category" => "users" + ); +// Notification + +$modversion["hasNotification"] = 0; +$modversion["notification"] = array(); +?> \ No newline at end of file Property changes on: XoopsModules/webdav/trunk/modules/webdav/xoops_version.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property |