From: <luc...@us...> - 2012-08-06 19:45:40
|
Revision: 9996 http://xoops.svn.sourceforge.net/xoops/?rev=9996&view=rev Author: luciorota Date: 2012-08-06 19:45:30 +0000 (Mon, 06 Aug 2012) Log Message: ----------- Added Paths: ----------- XoopsModules/xhttperror/ XoopsModules/xhttperror/branches/ XoopsModules/xhttperror/releases/ XoopsModules/xhttperror/trunk/ XoopsModules/xhttperror/trunk/xhttperror/ XoopsModules/xhttperror/trunk/xhttperror/admin/ XoopsModules/xhttperror/trunk/xhttperror/admin/about.php XoopsModules/xhttperror/trunk/xhttperror/admin/admin_footer.php XoopsModules/xhttperror/trunk/xhttperror/admin/admin_header.php XoopsModules/xhttperror/trunk/xhttperror/admin/errors.php XoopsModules/xhttperror/trunk/xhttperror/admin/index.html XoopsModules/xhttperror/trunk/xhttperror/admin/index.php XoopsModules/xhttperror/trunk/xhttperror/admin/menu.php XoopsModules/xhttperror/trunk/xhttperror/admin/reports.php XoopsModules/xhttperror/trunk/xhttperror/class/ XoopsModules/xhttperror/trunk/xhttperror/class/error.php XoopsModules/xhttperror/trunk/xhttperror/class/index.html XoopsModules/xhttperror/trunk/xhttperror/class/report.php XoopsModules/xhttperror/trunk/xhttperror/css/ XoopsModules/xhttperror/trunk/xhttperror/css/index.html XoopsModules/xhttperror/trunk/xhttperror/css/style.css XoopsModules/xhttperror/trunk/xhttperror/docs/ XoopsModules/xhttperror/trunk/xhttperror/docs/CHANGELOG.txt XoopsModules/xhttperror/trunk/xhttperror/docs/INSTALL.txt XoopsModules/xhttperror/trunk/xhttperror/docs/LANGUAGES.txt XoopsModules/xhttperror/trunk/xhttperror/docs/LANG_DIFF.txt XoopsModules/xhttperror/trunk/xhttperror/docs/LICENSE.txt XoopsModules/xhttperror/trunk/xhttperror/docs/README1st.txt XoopsModules/xhttperror/trunk/xhttperror/docs/SMARTY_DIFF.txt XoopsModules/xhttperror/trunk/xhttperror/docs/UPGRADE.txt XoopsModules/xhttperror/trunk/xhttperror/docs/index.html XoopsModules/xhttperror/trunk/xhttperror/error.php XoopsModules/xhttperror/trunk/xhttperror/header.php XoopsModules/xhttperror/trunk/xhttperror/images/ XoopsModules/xhttperror/trunk/xhttperror/images/bg.png XoopsModules/xhttperror/trunk/xhttperror/images/bookmarks/ XoopsModules/xhttperror/trunk/xhttperror/images/bookmarks/bookmarks/ XoopsModules/xhttperror/trunk/xhttperror/images/bookmarks/bookmarks/index.html XoopsModules/xhttperror/trunk/xhttperror/images/bookmarks/index.html XoopsModules/xhttperror/trunk/xhttperror/images/bulb-grey.png XoopsModules/xhttperror/trunk/xhttperror/images/bulb-yell.png XoopsModules/xhttperror/trunk/xhttperror/images/del3.png XoopsModules/xhttperror/trunk/xhttperror/images/edit3.png XoopsModules/xhttperror/trunk/xhttperror/images/icons/ XoopsModules/xhttperror/trunk/xhttperror/images/icons/16x16/ XoopsModules/xhttperror/trunk/xhttperror/images/icons/16x16/index.html XoopsModules/xhttperror/trunk/xhttperror/images/icons/32x32/ XoopsModules/xhttperror/trunk/xhttperror/images/icons/32x32/error.png XoopsModules/xhttperror/trunk/xhttperror/images/icons/32x32/house.png XoopsModules/xhttperror/trunk/xhttperror/images/icons/32x32/index.html XoopsModules/xhttperror/trunk/xhttperror/images/icons/32x32/information.png XoopsModules/xhttperror/trunk/xhttperror/images/icons/32x32/report.png XoopsModules/xhttperror/trunk/xhttperror/images/icons/32x32/report_error.png XoopsModules/xhttperror/trunk/xhttperror/images/icons/arrow.gif XoopsModules/xhttperror/trunk/xhttperror/images/icons/index.html XoopsModules/xhttperror/trunk/xhttperror/images/icons/off.png XoopsModules/xhttperror/trunk/xhttperror/images/icons/on.png XoopsModules/xhttperror/trunk/xhttperror/images/index.html XoopsModules/xhttperror/trunk/xhttperror/images/left_both.png XoopsModules/xhttperror/trunk/xhttperror/images/menu/ XoopsModules/xhttperror/trunk/xhttperror/images/menu/index.html XoopsModules/xhttperror/trunk/xhttperror/images/right_both.png XoopsModules/xhttperror/trunk/xhttperror/images/xhttperror_slogo.png XoopsModules/xhttperror/trunk/xhttperror/images/xhttperror_slogo.xcf XoopsModules/xhttperror/trunk/xhttperror/images/xoopsmicrobutton.gif XoopsModules/xhttperror/trunk/xhttperror/include/ XoopsModules/xhttperror/trunk/xhttperror/include/config.php XoopsModules/xhttperror/trunk/xhttperror/include/functions.php XoopsModules/xhttperror/trunk/xhttperror/include/index.html XoopsModules/xhttperror/trunk/xhttperror/include/install_function.php XoopsModules/xhttperror/trunk/xhttperror/include/uninstall_function.php XoopsModules/xhttperror/trunk/xhttperror/include/update_function.php XoopsModules/xhttperror/trunk/xhttperror/index.html XoopsModules/xhttperror/trunk/xhttperror/index.php XoopsModules/xhttperror/trunk/xhttperror/js/ XoopsModules/xhttperror/trunk/xhttperror/js/index.html XoopsModules/xhttperror/trunk/xhttperror/js/script.js XoopsModules/xhttperror/trunk/xhttperror/language/ XoopsModules/xhttperror/trunk/xhttperror/language/english/ XoopsModules/xhttperror/trunk/xhttperror/language/english/admin.php XoopsModules/xhttperror/trunk/xhttperror/language/english/help/ XoopsModules/xhttperror/trunk/xhttperror/language/english/help/help.html XoopsModules/xhttperror/trunk/xhttperror/language/english/help/index.html XoopsModules/xhttperror/trunk/xhttperror/language/english/index.html XoopsModules/xhttperror/trunk/xhttperror/language/english/mail_template/ XoopsModules/xhttperror/trunk/xhttperror/language/english/mail_template/index.html XoopsModules/xhttperror/trunk/xhttperror/language/english/main.php XoopsModules/xhttperror/trunk/xhttperror/language/english/modinfo.php XoopsModules/xhttperror/trunk/xhttperror/language/index.html XoopsModules/xhttperror/trunk/xhttperror/sql/ XoopsModules/xhttperror/trunk/xhttperror/sql/index.html XoopsModules/xhttperror/trunk/xhttperror/sql/mysql.sql XoopsModules/xhttperror/trunk/xhttperror/templates/ XoopsModules/xhttperror/trunk/xhttperror/templates/admin/ XoopsModules/xhttperror/trunk/xhttperror/templates/admin/index.html XoopsModules/xhttperror/trunk/xhttperror/templates/blocks/ XoopsModules/xhttperror/trunk/xhttperror/templates/blocks/index.html XoopsModules/xhttperror/trunk/xhttperror/templates/index.html XoopsModules/xhttperror/trunk/xhttperror/templates/xhttperror_admin_errors_list.html XoopsModules/xhttperror/trunk/xhttperror/templates/xhttperror_admin_reports_list.html XoopsModules/xhttperror/trunk/xhttperror/templates/xhttperror_index.html XoopsModules/xhttperror/trunk/xhttperror/xoops_version.php Added: XoopsModules/xhttperror/trunk/xhttperror/admin/about.php =================================================================== --- XoopsModules/xhttperror/trunk/xhttperror/admin/about.php (rev 0) +++ XoopsModules/xhttperror/trunk/xhttperror/admin/about.php 2012-08-06 19:45:30 UTC (rev 9996) @@ -0,0 +1,36 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * XHTTPERROR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * + * 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. + * --------------------------------------------------------------------------- + * @copyright Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * @license GNU General Public License v3.0 + * @package xhttperror + * @author Rota Lucio ( luc...@gm... ) + * + * $Rev$: Revision of last commit + * $Author$: Author of last commit + * $Date$: Date of last commit + * **************************************************************************** + */ + +include "admin_header.php"; +xoops_cp_header(); +$aboutAdmin = new ModuleAdmin(); +echo $aboutAdmin->addNavigation("about.php"); +echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false); +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/xhttperror/trunk/xhttperror/admin/admin_footer.php =================================================================== --- XoopsModules/xhttperror/trunk/xhttperror/admin/admin_footer.php (rev 0) +++ XoopsModules/xhttperror/trunk/xhttperror/admin/admin_footer.php 2012-08-06 19:45:30 UTC (rev 9996) @@ -0,0 +1,37 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * XHTTPERROR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * + * 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. + * --------------------------------------------------------------------------- + * @copyright Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * @license GNU General Public License v3.0 + * @package xhttperror + * @author Rota Lucio ( luc...@gm... ) + * + * $Rev$: Revision of last commit + * $Author$: Author of last commit + * $Date$: Date of last commit + * **************************************************************************** + */ + +global $pathImageAdmin; +echo "<div align='center'><a href='http://www.xoops.org' target='_blank'> + <img src='".$pathImageModule."/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a></div>"; +echo "<div class='center small italic pad5'> + <strong>" . $xoopsModule->getVar('name') . "</strong> "._AM_XHTTPERR_MAINTAINEDBY." + <a href='IN PROGRESS' title='Visit IN PROGRESS' class='tooltip' rel='external'>IN PROGRESS</a></div>"; +xoops_cp_footer(); Added: XoopsModules/xhttperror/trunk/xhttperror/admin/admin_header.php =================================================================== --- XoopsModules/xhttperror/trunk/xhttperror/admin/admin_header.php (rev 0) +++ XoopsModules/xhttperror/trunk/xhttperror/admin/admin_header.php 2012-08-06 19:45:30 UTC (rev 9996) @@ -0,0 +1,99 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * XHTTPERROR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * + * 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. + * --------------------------------------------------------------------------- + * @copyright Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * @license GNU General Public License v3.0 + * @package xhttperror + * @author Rota Lucio ( luc...@gm... ) + * + * $Rev$: Revision of last commit + * $Author$: Author of last commit + * $Date$: Date of last commit + * **************************************************************************** + */ + +include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php'; +$dirname = basename(dirname(dirname( __FILE__ ) )); + +// Include xoops admin header +include_once XOOPS_ROOT_PATH . '/include/cp_header.php'; +include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; +include_once XOOPS_ROOT_PATH . '/class/tree.php'; +include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; +xoops_load ('XoopsUserUtility'); + +$module_handler =& xoops_gethandler('module'); +$xoopsModule = & $module_handler->getByDirname($dirname); +$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid')); +$pathImageIcon = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16'); +$pathImageAdmin = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32'); +$pathImageModule = XOOPS_URL . '/modules/'. $GLOBALS['xoopsModule']->getVar('dirname') .'/images'; + +// Include module functions +include_once XOOPS_ROOT_PATH . "/modules/{$dirname}/include/config.php"; +include_once XOOPS_ROOT_PATH . "/modules/{$dirname}/include/functions.php"; + + + +// Check and load moduleadmin classes +$pathDir = $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin'); +$globalLanguage = $GLOBALS['xoopsConfig']['language']; +if ( file_exists($pathDir . '/language/' . $globalLanguage . '/main.php')){ + include_once $pathDir . '/language/' . $globalLanguage . '/main.php'; +} else { + include_once $pathDir . '/language/english/main.php'; +} +if ( file_exists($pathDir . '/moduleadmin.php')){ + include_once $pathDir . '/moduleadmin.php'; + //return true; +} else { + xoops_cp_header(); + echo xoops_error(_AM_XADDRESSES_NOFRAMEWORKS); + xoops_cp_footer(); + //return false; +} + +$myts =& MyTextSanitizer::getInstance(); + +// Get user groups +$groupPermHandler =& xoops_gethandler('groupperm'); +if ($xoopsUser) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar( 'mid' ), $xoopsUser->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); +} + +if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $xoopsTpl = new XoopsTpl(); +} + +$xoopsTpl->assign('pathImageIcon', $pathImageIcon); +$xoopsTpl->assign('pathImageAdmin', $pathImageAdmin); +//xoops_cp_header(); + +//Load module languages +xoops_loadLanguage('admin', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('main', $xoopsModule->getVar("dirname")); Added: XoopsModules/xhttperror/trunk/xhttperror/admin/errors.php =================================================================== --- XoopsModules/xhttperror/trunk/xhttperror/admin/errors.php (rev 0) +++ XoopsModules/xhttperror/trunk/xhttperror/admin/errors.php 2012-08-06 19:45:30 UTC (rev 9996) @@ -0,0 +1,152 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * XHTTPERROR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * + * 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. + * --------------------------------------------------------------------------- + * @copyright Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * @license GNU General Public License v3.0 + * @package xhttperror + * @author Rota Lucio ( luc...@gm... ) + * + * $Rev$: Revision of last commit + * $Author$: Author of last commit + * $Date$: Date of last commit + * **************************************************************************** + */ + +$currentFile = basename(__FILE__); +include 'admin_header.php'; +$op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['error_id']) ? "edit_error" : 'list_errors'); + +// load classes +$errorHandler =& xoops_getModuleHandler('error', 'xhttperror'); +$reportHandler =& xoops_getModuleHandler('report', 'xhttperror'); + +// count errors +$countErrors = $errorHandler->getCount(); + + +switch($op ) { + default: + case 'list_errors' : + // render start here + xoops_cp_header(); + // render submenu + $modcreate_admin = new ModuleAdmin(); + echo $modcreate_admin->addNavigation('errors.php'); + $modcreate_admin->addItemButton(_AM_XHTTPERR_ERROR_ADD, '' . $currentFile . '?op=edit_error', 'add'); + echo $modcreate_admin->renderButton(); + + if($countErrors > 0) { + $criteria = new CriteriaCompo(); + $criteria->setSort('error_statuscode'); + $criteria->setOrder('ASC'); + $errors = $errorHandler->getObjects($criteria, true, false); + + $GLOBALS['xoopsTpl']->assign('errors', $errors); + $GLOBALS['xoopsTpl']->assign('token', $GLOBALS['xoopsSecurity']->getTokenHTML() ); + $GLOBALS['xoopsTpl']->display("db:xhttperror_admin_errors_list.html"); + } else { + echo _AM_XHTTPERR_ERROR_NOERRORS; + } + + include "admin_footer.php"; + break; + + + + case 'edit_error' : + case 'new_error' : + // render start here + xoops_cp_header(); + // render submenu + $modcreate_admin = new ModuleAdmin(); + echo $modcreate_admin->addNavigation('errors.php'); + $modcreate_admin->addItemButton(_AM_XHTTPERR_ERROR_LIST, '' . $currentFile . '?op=list_errors', 'list'); + echo $modcreate_admin->renderButton(); + + if (isset($_REQUEST['error_id'])) { + $error = $errorHandler->get($_REQUEST['error_id']); + } else { + $error = $errorHandler->create(); + + } + $form = $error->getForm(); + $form->display(); + + include "admin_footer.php"; + break; + + + + case 'save_error' : + if ( !$GLOBALS['xoopsSecurity']->check() ) { + redirect_header($currentFile, 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors() )); + } + if ( isset($_REQUEST['error_id']) ) { + $error =& $errorHandler->get($_REQUEST['error_id']); + } else { + $error =& $errorHandler->create(); + } + // Check statuscode + if ( isset($_REQUEST['error_statuscode']) ) { + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('error_statuscode', $_REQUEST['error_statuscode'])); + if ($errorHandler->getCount($criteria) > 0) { + redirect_header($currentFile, 3, _AM_XHTTPERR_STATUSCODE_EXISTS ); + } else { + $error->setVar('error_statuscode', $_REQUEST['error_statuscode']); + } + } + $error->setVar('error_title', $_REQUEST['error_title']); + $error->setVar('error_text', $_REQUEST['error_text']); + $error->setVar('error_text_html', $_REQUEST['error_text_html']); + $error->setVar('error_text_smiley', $_REQUEST['error_text_smiley']); + $error->setVar('error_text_breaks', $_REQUEST['error_text_breaks']); + $error->setVar('error_showme', $_REQUEST['error_showme']); + $error->setVar('error_redirect', $_REQUEST['error_redirect']); + $error->setVar('error_redirect_time', (int)$_REQUEST['error_redirect_time']); + $error->setVar('error_redirect_uri', $_REQUEST['error_redirect_uri']); + + if ( $errorHandler->insert($error) ) { + redirect_header($currentFile, 3, _AM_XHTTPERR_SAVEDSUCCESS ); + } else { + redirect_header($currentFile, 3, _AM_XHTTPERR_NOTSAVED ); + } + break; + + + + case 'delete_error' : + $error =& $errorHandler->get($_REQUEST['error_id']); + if ( isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1 ) { + if ( !$GLOBALS['xoopsSecurity']->check() ) { + redirect_header($currentFile, 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors() )); + } + if ( $errorHandler->delete($error) ) { + redirect_header($currentFile, 3, _AM_XHTTPERR_DELETEDSUCCESS ); + } else { + echo $error->getHtmlErrors(); + } + } else { + // render start here + xoops_cp_header(); + xoops_confirm(array('ok' => 1, 'error_id' => $_REQUEST['error_id'], 'op' => 'delete_error'), $_SERVER['REQUEST_URI'], sprintf(_AM_XHTTPERR_ERROR_RUSUREDEL, $error->getVar('error_title') )); + xoops_cp_footer(); + } + break; +} Added: XoopsModules/xhttperror/trunk/xhttperror/admin/index.html =================================================================== --- XoopsModules/xhttperror/trunk/xhttperror/admin/index.html (rev 0) +++ XoopsModules/xhttperror/trunk/xhttperror/admin/index.html 2012-08-06 19:45:30 UTC (rev 9996) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/xhttperror/trunk/xhttperror/admin/index.php =================================================================== --- XoopsModules/xhttperror/trunk/xhttperror/admin/index.php (rev 0) +++ XoopsModules/xhttperror/trunk/xhttperror/admin/index.php 2012-08-06 19:45:30 UTC (rev 9996) @@ -0,0 +1,75 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * XHTTPERROR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * + * 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. + * --------------------------------------------------------------------------- + * @copyright Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * @license GNU General Public License v3.0 + * @package xhttperror + * @author Rota Lucio ( luc...@gm... ) + * + * $Rev$: Revision of last commit + * $Author$: Author of last commit + * $Date$: Date of last commit + * **************************************************************************** + */ + +include "admin_header.php"; +xoops_cp_header(); + +define('_RED', '#FF0000'); // Red +define('_GREEN', '#00AA00'); // Green + +// load classes +$errorHandler =& xoops_getModuleHandler('error', 'xhttperror'); +$reportHandler =& xoops_getModuleHandler('report', 'xhttperror'); + +// count errors +$countErrors = $errorHandler->getCount(); +// count msgs +$countReports = $reportHandler->getCount(); + + + +if (xhttperror_checkModuleAdmin()) { + $indexAdmin = new ModuleAdmin(); + $indexAdmin->addInfoBox(_AM_XHTTPERR_INTRO); + $indexAdmin->addInfoBoxLine(_AM_XHTTPERR_INTRO, _AM_XHTTPERR_INFO); + if( file_exists(XOOPS_ROOT_PATH . "/.htaccess")) { + $htaccessCheck = _AM_XHTTPERR_FILECHK . XOOPS_ROOT_PATH ."/.htaccess " . "<br />" . _AM_XHTTPERR_FILEEXISTS; + } else { + $htaccessCheck = _AM_XHTTPERR_FILECHK . XOOPS_ROOT_PATH ."/.htaccess " . "<br />" . _AM_XHTTPERR_FILENOEXIST; + } + $indexAdmin->addInfoBoxLine(_AM_XHTTPERR_INTRO, $htaccessCheck); + $indexAdmin->addInfoBoxLine(_AM_XHTTPERR_INTRO, _AM_XHTTPERR_ADDCODE); + if ($countErrors == 0) { + $indexAdmin->addInfoBoxLine(_AM_XHTTPERR_INTRO, _AM_XHTTPERR_NOCODE); + } else { + // get errors + $criteria = new CriteriaCompo(); + $errors = $errorHandler->getObjects($criteria); + foreach ($errors as $error) { + $msg_id = $error->getVar('error_id'); + $error_statuscode = $error->getVar('error_statuscode'); + $hmtl = "ErrorDocument " . $error_statuscode . " " . XOOPS_URL . "/modules/" . $xoopsModule->getVar('dirname') . "/index.php?error=" . $error_statuscode . ""; + $indexAdmin->addInfoBoxLine(_AM_XHTTPERR_INTRO, $hmtl); + } + } + echo $indexAdmin->addNavigation('index.php'); + echo $indexAdmin->renderIndex(); +} +include "admin_footer.php"; Added: XoopsModules/xhttperror/trunk/xhttperror/admin/menu.php =================================================================== --- XoopsModules/xhttperror/trunk/xhttperror/admin/menu.php (rev 0) +++ XoopsModules/xhttperror/trunk/xhttperror/admin/menu.php 2012-08-06 19:45:30 UTC (rev 9996) @@ -0,0 +1,63 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * XHTTPERROR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * + * 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. + * --------------------------------------------------------------------------- + * @copyright Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * @license GNU General Public License v3.0 + * @package xhttperror + * @author Rota Lucio ( luc...@gm... ) + * + * $Rev$: Revision of last commit + * $Author$: Author of last commit + * $Date$: Date of last commit + * **************************************************************************** + */ + +$dirname = basename( dirname( dirname( __FILE__ ) ) ) ; +$module_handler =& xoops_gethandler("module"); +$xoopsModule =& XoopsModule::getByDirname($dirname); +$moduleInfo =& $module_handler->get($xoopsModule->getVar("mid")); +$pathImageAdmin = $moduleInfo->getInfo("icons32"); + +$adminmenu = array(); +$i = 1; +$i++; +$adminmenu[$i]['name'] = 'Index'; +$adminmenu[$i]['title'] = _MI_XHTTPERR_ADMENU_INDEX; +$adminmenu[$i]['link'] = "admin/index.php"; +$adminmenu[$i]['desc'] = _MI_XHTTPERR_ADMENU_INDEX_DESC; +$adminmenu[$i]['icon'] = "../../{$pathImageAdmin}/house.png"; +$i++; +$adminmenu[$i]['name'] = 'Errors'; +$adminmenu[$i]['title'] = _MI_XHTTPERR_ADMENU_ERRORS; +$adminmenu[$i]['link'] = "admin/errors.php"; +$adminmenu[$i]['desc'] = _MI_XHTTPERR_ADMENU_ERRORS_DESC; +$adminmenu[$i]['icon'] = "../../{$pathImageAdmin}/error.png"; +$i++; +$adminmenu[$i]['name'] = 'Reports'; +$adminmenu[$i]['title'] = _MI_XHTTPERR_ADMENU_REPORTS; +$adminmenu[$i]['link'] = "admin/reports.php"; +$adminmenu[$i]['desc'] = _MI_XHTTPERR_ADMENU_REPORTS_DESC; +$adminmenu[$i]['icon'] = "../../{$pathImageAdmin}/report_error.png"; +$i++; +$adminmenu[$i]['name'] = 'About'; +$adminmenu[$i]['title'] = _MI_XHTTPERR_ADMENU_ABOUT; +$adminmenu[$i]['link'] = "admin/about.php"; +$adminmenu[$i]['desc'] = _MI_XHTTPERR_ADMENU_ABOUT_DESC; +$adminmenu[$i]['icon'] = "../../{$pathImageAdmin}/information.png"; +unset( $i ); Added: XoopsModules/xhttperror/trunk/xhttperror/admin/reports.php =================================================================== --- XoopsModules/xhttperror/trunk/xhttperror/admin/reports.php (rev 0) +++ XoopsModules/xhttperror/trunk/xhttperror/admin/reports.php 2012-08-06 19:45:30 UTC (rev 9996) @@ -0,0 +1,93 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * XHTTPERROR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * + * 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. + * --------------------------------------------------------------------------- + * @copyright Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * @license GNU General Public License v3.0 + * @package xhttperror + * @author Rota Lucio ( luc...@gm... ) + * + * $Rev$: Revision of last commit + * $Author$: Author of last commit + * $Date$: Date of last commit + * **************************************************************************** + */ + +$currentFile = basename(__FILE__); +include 'admin_header.php'; +$op = isset($_REQUEST['op']) ? $_REQUEST['op'] : 'list_reports'; + +// load classes +$reportHandler =& xoops_getModuleHandler('report', 'xhttperror'); + +// count reports +$countReports = $reportHandler->getCount(); + + + +switch($op ) { + default: + case 'list_reports' : + // render start here + xoops_cp_header(); + // render submenu + $modcreate_admin = new ModuleAdmin(); + echo $modcreate_admin->addNavigation('reports.php'); + + if($countReports > 0) { + $criteria = new CriteriaCompo(); + $criteria->setSort('report_date'); + $criteria->setOrder('ASC'); + $criteria->setLimit($GLOBALS['xoopsModuleConfig']['reports_per_page']); + $reports = $reportHandler->getObjects($criteria, true, false); + + foreach ($reports as $key=>$report) { + $reports[$key]['report_user'] = XoopsUserUtility::getUnameFromId($report['report_uid'], false, true); + $reports[$key]['report_date'] = formatTimeStamp($report['report_date'], _DATESTRING); + } + + $GLOBALS['xoopsTpl']->assign('reports', $reports); + $GLOBALS['xoopsTpl']->assign('token', $GLOBALS['xoopsSecurity']->getTokenHTML() ); + $GLOBALS['xoopsTpl']->display("db:xhttperror_admin_reports_list.html"); + } else { + echo _AM_XHTTPERR_REPORT_NOREPORTS; + } + include "admin_footer.php"; + break; + + + + case 'delete_report' : + $report =& $reportHandler->get($_REQUEST['report_id']); + if ( isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1 ) { + if ( !$GLOBALS['xoopsSecurity']->check() ) { + redirect_header($currentFile, 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors() )); + } + if ( $reportHandler->delete($report) ) { + redirect_header($currentFile, 3, _AM_XHTTPERR_DELETEDSUCCESS ); + } else { + echo $report->getHtmlErrors(); + } + } else { + // render start here + xoops_cp_header(); + xoops_confirm(array('ok' => 1, 'report_id' => $_REQUEST['report_id'], 'op' => 'delete_report'), $_SERVER['REQUEST_URI'], sprintf(_AM_XHTTPERR_REPORT_RUSUREDEL, $report->getVar('report_id'))); + xoops_cp_footer(); + } + break; +} Added: XoopsModules/xhttperror/trunk/xhttperror/class/error.php =================================================================== --- XoopsModules/xhttperror/trunk/xhttperror/class/error.php (rev 0) +++ XoopsModules/xhttperror/trunk/xhttperror/class/error.php 2012-08-06 19:45:30 UTC (rev 9996) @@ -0,0 +1,155 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * XHTTPERROR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * + * 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. + * --------------------------------------------------------------------------- + * @copyright Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * @license GNU General Public License v3.0 + * @package xhttperror + * @author Rota Lucio ( luc...@gm... ) + * + * $Rev$: Revision of last commit + * $Author$: Author of last commit + * $Date$: Date of last commit + * **************************************************************************** + */ + +if (!defined("XOOPS_ROOT_PATH")) { + die("XOOPS root path not defined"); +} + +class XhttperrorError extends XoopsObject +{ + + // constructor + function __construct() + { + $this->XoopsObject(); + $this->initVar("error_id", XOBJ_DTYPE_INT, null, false, 5); + $this->initVar("error_title", XOBJ_DTYPE_TXTBOX, null, true); + $this->initVar("error_statuscode", XOBJ_DTYPE_TXTBOX, '000', true); + $this->initVar("error_text", XOBJ_DTYPE_TXTAREA, null, false, ''); + $this->initVar('error_text_html', XOBJ_DTYPE_INT, true, false); // default: true + $this->initVar('error_text_smiley', XOBJ_DTYPE_INT, true, false); // default: true + $this->initVar('error_text_breaks', XOBJ_DTYPE_INT, false, false); // default: false + $this->initVar("error_showme", XOBJ_DTYPE_INT, true, false); // default: true + $this->initVar("error_redirect", XOBJ_DTYPE_INT, false, false); // default: false + $this->initVar("error_redirect_time", XOBJ_DTYPE_INT, 3, false); // default: 3 seconds + $this->initVar("error_redirect_message", XOBJ_DTYPE_TXTBOX, '', false); // IN PROGRESS + $this->initVar("error_redirect_uri", XOBJ_DTYPE_URL, XOOPS_URL, false); // default XOOPS_URL + } + + function getForm($action = false) + { + global $xoopsDB, $xoopsModule, $xoopsModuleConfig; + + if ($action === false) { + $action = $_SERVER['REQUEST_URI']; + } + $title = $this->isNew() ? sprintf(_AM_XHTTPERR_ERROR_ADD) : sprintf(_AM_XHTTPERR_ERROR_EDIT); + + include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); + + $form = new XoopsThemeForm($title, 'form_error', $action, 'post', true); + $form->setExtra('enctype="multipart/form-data"'); + + // Title + $title = new XoopsFormText(_AM_XHTTPERR_ERROR_TITLE, 'error_title', 40, 255, $this->getVar('error_title')); + $form->addElement($title, true); + unset($title); + // Error number + if ($this->isNew()) { + $errorStatuscode = new XoopsFormText(_AM_XHTTPERR_ERROR_STATUSCODE, 'error_statuscode', 3, 3, $this->getVar('error_statuscode')); + } else { + $errorStatuscode = new XoopsFormLabel (_AM_XHTTPERR_ERROR_STATUSCODE, $this->getVar('error_statuscode')); + } + $form->addElement($errorStatuscode, true); + unset($errorStatuscode); + // Text + $editor_configs=array(); + $editor_configs["name"] ="error_text"; + $editor_configs["value"] = $this->getVar('error_text', 'e'); + $editor_configs["rows"] = 10; + $editor_configs["cols"] = 50; + $editor_configs["width"] = "100%"; + $editor_configs["height"] = "100px"; + $editor_configs["editor"] = $GLOBALS['xoopsModuleConfig']['text_editor']; + $errorText = new XoopsFormEditor(_AM_XHTTPERR_ERROR_TEXT, "error_text", $editor_configs); + $errorText->setDescription(_AM_XHTTPERR_ERROR_TEXT_DESC); + $form->addElement($errorText); + // Text options + $errorTextOptions = new XoopsFormElementTray (_AM_XHTTPERR_ERROR_TEXT_OPTIONS, '|', ''); + $errorTextOptions->addElement(new XoopsFormRadioYN(_AM_XHTTPERR_ERROR_TEXT_HTML, 'error_text_html', $this->getVar('error_text_html'), _YES, _NO)); + $errorTextOptions->addElement(new XoopsFormRadioYN(_AM_XHTTPERR_ERROR_TEXT_SMILEY, 'error_text_smiley', $this->getVar('error_text_smiley'), _YES, _NO)); + $errorTextOptions->addElement(new XoopsFormRadioYN(_AM_XHTTPERR_ERROR_TEXT_BREAKS, 'error_text_breaks', $this->getVar('error_text_breaks'), _YES, _NO)); + $form->addElement($errorTextOptions); + unset($errorTextOptions); + // Showme + $errorShowme = new XoopsFormRadioYN(_AM_XHTTPERR_ERROR_STATUS, 'error_showme', $this->getVar('error_showme'), _YES, _NO); + $errorShowme->setDescription(_AM_XHTTPERR_ERROR_STATUS_DESC); + $form->addElement($errorShowme); + unset($errorShowme); + + $form->addElement(new XoopsFormLabel(_AM_XHTTPERR_ERROR_REDIRECT_OPTIONS, '', '')); + // Redirect + $errorRedirect = new XoopsFormRadioYN(_AM_XHTTPERR_ERROR_REDIRECT, 'error_redirect', $this->getVar('error_redirect'), _YES, _NO); + $errorRedirect->setDescription(_AM_XHTTPERR_ERROR_REDIRECT_DESC); + $form->addElement($errorRedirect); + unset($errorRedirect); + // Redirect time + $errorRedirectTime = new XoopsFormText(_AM_XHTTPERR_ERROR_REDIRECT_TIME, 'error_redirect_time', 2, 2, $this->getVar('error_redirect_time')); + $errorRedirectTime->setDescription(_AM_XHTTPERR_ERROR_REDIRECT_TIME_DESC); + $form->addElement($errorRedirectTime); + unset($errorRedirectTime); + // Redirect message + // IN PROGRESS + // Redirect uri + $errorRedirectUri = new XoopsFormText(_AM_XHTTPERR_ERROR_REDIRECT_URI, 'error_redirect_uri', 40, 255, $this->getVar('error_redirect_uri')); + $errorRedirectUri->setDescription(_AM_XHTTPERR_ERROR_REDIRECT_URI_DESC); + $form->addElement($errorRedirectUri); + unset($errorRedirectUri); + + // Captcha + xoops_load('xoopscaptcha'); + $form->addElement(new XoopsFormCaptcha(), true); + // Hidden Fields + $form->addElement(new XoopsFormHidden('op', 'save_error')); + if ($this->isNew()) { + // NOP + } else { + $form->addElement(new XoopsFormHidden('error_id', $this->getVar('error_id'))); + } + // Submit button + $button_tray = new XoopsFormElementTray(_AM_XHTTPERR_ACTION, '' ,''); + $button_tray->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit')); + $button_tray->addElement(new XoopsFormButton('', 'reset', _RESET, 'reset')); + $cancel_button = new XoopsFormButton('', 'cancel', _CANCEL, 'button'); + $cancel_button->setExtra("onclick='javascript:history.back();'"); + $button_tray->addElement($cancel_button); + $form->addElement($button_tray); + return $form; + } +} + +class XhttperrorErrorHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + parent::__construct($db, "xhttperror_errors", 'xhttperrorerror', 'error_id', 'error_title'); + } + +} Added: XoopsModules/xhttperror/trunk/xhttperror/class/index.html =================================================================== --- XoopsModules/xhttperror/trunk/xhttperror/class/index.html (rev 0) +++ XoopsModules/xhttperror/trunk/xhttperror/class/index.html 2012-08-06 19:45:30 UTC (rev 9996) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/xhttperror/trunk/xhttperror/class/report.php =================================================================== --- XoopsModules/xhttperror/trunk/xhttperror/class/report.php (rev 0) +++ XoopsModules/xhttperror/trunk/xhttperror/class/report.php 2012-08-06 19:45:30 UTC (rev 9996) @@ -0,0 +1,59 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * XHTTPERROR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * + * 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. + * --------------------------------------------------------------------------- + * @copyright Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * @license GNU General Public License v3.0 + * @package xhttperror + * @author Rota Lucio ( luc...@gm... ) + * + * $Rev$: Revision of last commit + * $Author$: Author of last commit + * $Date$: Date of last commit + * **************************************************************************** + */ + +if (!defined('XOOPS_ROOT_PATH')) { + die('XOOPS root path not defined'); +} + +class XhttperrorReport extends XoopsObject +{ + + // constructor + function __construct() + { + $this->XoopsObject(); + $this->initVar('report_id', XOBJ_DTYPE_INT, null, false, 5); + $this->initVar('report_uid', XOBJ_DTYPE_INT, null, true); // user id + $this->initVar('report_statuscode', XOBJ_DTYPE_TXTBOX, null, false); + $this->initVar('report_date', XOBJ_DTYPE_INT, time(), false); + $this->initVar('report_referer', XOBJ_DTYPE_TXTBOX, null, false); + $this->initVar('report_useragent', XOBJ_DTYPE_TXTBOX, null, false); + $this->initVar('report_remoteaddr', XOBJ_DTYPE_TXTBOX, null, false); + $this->initVar('report_requesteduri', XOBJ_DTYPE_TXTBOX, null, false); + } +} + +class XhttperrorReportHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + parent::__construct($db, 'xhttperror_reports', 'xhttperrorreport', 'report_id', 'report_date'); + } +} Added: XoopsModules/xhttperror/trunk/xhttperror/css/index.html =================================================================== --- XoopsModules/xhttperror/trunk/xhttperror/css/index.html (rev 0) +++ XoopsModules/xhttperror/trunk/xhttperror/css/index.html 2012-08-06 19:45:30 UTC (rev 9996) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/xhttperror/trunk/xhttperror/css/style.css =================================================================== --- XoopsModules/xhttperror/trunk/xhttperror/css/style.css (rev 0) +++ XoopsModules/xhttperror/trunk/xhttperror/css/style.css 2012-08-06 19:45:30 UTC (rev 9996) @@ -0,0 +1,36 @@ +@charset "UTF-8"; +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * XHTTPERROR - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * + * 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. + * --------------------------------------------------------------------------- + * @copyright Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * @license GPL see LICENSE + * @package xhttperror + * @author Rota Lucio ( luc...@gm... ) + * + * Version : 1.0 Mon 2012/07/23 14:17:52 : XOOPS Exp $ + * **************************************************************************** + */ + + +.box-header { + margin: 2px; + padding: 5px; + background-color: #ccc; + width: 100%; + height: 50px; +} Added: XoopsModules/xhttperror/trunk/xhttperror/docs/CHANGELOG.txt =================================================================== --- XoopsModules/xhttperror/trunk/xhttperror/docs/CHANGELOG.txt (rev 0) +++ XoopsModules/xhttperror/trunk/xhttperror/docs/CHANGELOG.txt 2012-08-06 19:45:30 UTC (rev 9996) @@ -0,0 +1,13 @@ +xHttpError History + +Key: ++ Added feature. +- Removed. +! Bug fix. +o General comment. + + +version 1.00 (Released: 2012/08/06) +=================================== + +o First public release. Added: XoopsModules/xhttperror/trunk/xhttperror/docs/INSTALL.txt =================================================================== --- XoopsModules/xhttperror/trunk/xhttperror/docs/INSTALL.txt (rev 0) +++ XoopsModules/xhttperror/trunk/xhttperror/docs/INSTALL.txt 2012-08-06 19:45:30 UTC (rev 9996) @@ -0,0 +1,41 @@ +Installing this module + +1) Installing on web site: + ======================= + + Via FTP: + ======== + Most people will want to use this method... + + 1.1) Unarchive the module archive on your computer using your favourite + archive utility (such as WinRAR - http://www.rarlabs.com/rar_archiver.htm). + 1.2) Upload the folder module's folder (do not rename it, or change the case!) + and its contents to the "modules" folder on your web site using your FTP + client. + 1.3) Go to section 2.1. + + + Via SSH/Shell: + ============== + If your ISP provides you with SSH access, you can use this method. More + experienced Linux/FreeBSD users may find it quicker. + + 1.1) Download the module archive (or upload from your computer) to + somewhere on your web site. You can do this easily using "wget" + e.g., wget http://www.urltoarchive.com/filename.tar.gz + 1.2) Go to the XOOPS module directory, e.g., "cd /path/to/xoops/modules" + 1.3) Extract the archive, if you downloaded the *.tar.gz version, + this can be done by "tar zxvf articles_archivename.tar.gz". If you + have the *.zip archive, use "unzip articles_archivename.zip". + 1.4) Delete the archive if you no longer need it, to save web space. + 1.5) Go to section 2.1. + +2) Installing into the XOOPS system: + ================================= + + 2.1) Report in to your XOOPS web site as an administrator, and navigate to the + modules admin area ("system admin -> modules"). Scroll to the lower + section of the page where the modules that are not installed are listed. + 2.2) Click on the "Install" icon for the module's listing and follow the + instructions. + 2.3) Click on the module's icon in the left to go to its admin area. Added: XoopsModules/xhttperror/trunk/xhttperror/docs/LANGUAGES.txt =================================================================== --- XoopsModules/xhttperror/trunk/xhttperror/docs/LANGUAGES.txt (rev 0) +++ XoopsModules/xhttperror/trunk/xhttperror/docs/LANGUAGES.txt 2012-08-06 19:45:30 UTC (rev 9996) @@ -0,0 +1,24 @@ +LANGUAGES.txt + +I have allowed for this module to be localised - or to be translated to +your local language. This basically means that all captions, text and titles +can easily be translated and displayed in your language. + +The default language for the this module is English as that is my primary +language and the default for XOOPS itself. And unfortunately, while I know a +little French, I am generally useless at learning foreign languages... + +If you wish to translate this module to your language, please first of all: + + 1) Check to see if it's already been done (and maybe just needs updating?). + 2) Make sure you have the latest version. + 3) Consider obtaining the latest development version... + 4) Bear in mind that the files may change constantly during its development. + +To translate this module to your language, go to the "languages" folder, copy +the folder called "english" (along with any files it contains) and rename it to +the name of your language. Make sure that you use the English version of its +name and, don't use capital letters and don't use any spaces. + +Edit the files contained within your new language files - it should (in theory) +be fairly obvious as to what you need to change. Added: XoopsModules/xhttperror/trunk/xhttperror/docs/LANG_DIFF.txt =================================================================== --- XoopsModules/xhttperror/trunk/xhttperror/docs/LANG_DIFF.txt (rev 0) +++ XoopsModules/xhttperror/trunk/xhttperror/docs/LANG_DIFF.txt 2012-08-06 19:45:30 UTC (rev 9996) @@ -0,0 +1,5 @@ +Module Name : xHttpError +Module developer : Rota Lucio luc...@gm... + +version 1.00 +============ Added: XoopsModules/xhttperror/trunk/xhttperror/docs/LICENSE.txt =================================================================== --- XoopsModules/xhttperror/trunk/xhttperror/docs/LICENSE.txt (rev 0) +++ XoopsModules/xhttperror/trunk/xhttperror/docs/LICENSE.txt 2012-08-06 19:45:30 UTC (rev 9996) @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +yo... [truncated message content] |