|
From: <luc...@us...> - 2014-10-22 22:51:07
|
Revision: 12819
http://sourceforge.net/p/xoops/svn/12819
Author: luciorota
Date: 2014-10-22 22:51:01 +0000 (Wed, 22 Oct 2014)
Log Message:
-----------
standardize
Added Paths:
-----------
XoopsModules/xhttperror/branches/luciorota/
XoopsModules/xhttperror/branches/luciorota/xhttperror/
XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/
XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/about.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/admin_footer.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/admin_header.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/error.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/index.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/menu.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/report.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/css/
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/css/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/css/style.css
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bg.png
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bookmarks/
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bookmarks/bookmarks/
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bookmarks/bookmarks/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bookmarks/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bulb-grey.png
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bulb-yell.png
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/del3.png
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/edit3.png
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/16x16/
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/16x16/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/error.png
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/house.png
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/information.png
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/report.png
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/report_error.png
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/arrow.gif
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/off.png
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/on.png
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/left_both.png
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/menu/
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/menu/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/module_logo.png
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/module_logo.xcf
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/right_both.png
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/xoopsmicrobutton.gif
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/js/
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/js/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/js/script.js
XoopsModules/xhttperror/branches/luciorota/xhttperror/class/
XoopsModules/xhttperror/branches/luciorota/xhttperror/class/breadcrumb.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/class/error.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/class/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/class/report.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/class/request.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/class/session.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/class/xhttperror.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/docs/
XoopsModules/xhttperror/branches/luciorota/xhttperror/docs/CHANGELOG.txt
XoopsModules/xhttperror/branches/luciorota/xhttperror/docs/INSTALL.txt
XoopsModules/xhttperror/branches/luciorota/xhttperror/docs/LANGUAGES.txt
XoopsModules/xhttperror/branches/luciorota/xhttperror/docs/LANG_DIFF.txt
XoopsModules/xhttperror/branches/luciorota/xhttperror/docs/LICENSE.txt
XoopsModules/xhttperror/branches/luciorota/xhttperror/docs/README1st.txt
XoopsModules/xhttperror/branches/luciorota/xhttperror/docs/SMARTY_DIFF.txt
XoopsModules/xhttperror/branches/luciorota/xhttperror/docs/UPGRADE.txt
XoopsModules/xhttperror/branches/luciorota/xhttperror/docs/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/error.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/header.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/include/
XoopsModules/xhttperror/branches/luciorota/xhttperror/include/common.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/include/config.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/include/constants.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/include/functions.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/include/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/include/oninstall.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/include/onuninstall.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/include/onupdate.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/index.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/language/
XoopsModules/xhttperror/branches/luciorota/xhttperror/language/english/
XoopsModules/xhttperror/branches/luciorota/xhttperror/language/english/admin.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/language/english/help/
XoopsModules/xhttperror/branches/luciorota/xhttperror/language/english/help/help.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/language/english/help/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/language/english/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/language/english/mail_template/
XoopsModules/xhttperror/branches/luciorota/xhttperror/language/english/mail_template/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/language/english/main.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/language/english/modinfo.php
XoopsModules/xhttperror/branches/luciorota/xhttperror/language/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/sql/
XoopsModules/xhttperror/branches/luciorota/xhttperror/sql/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/sql/mysql.sql
XoopsModules/xhttperror/branches/luciorota/xhttperror/templates/
XoopsModules/xhttperror/branches/luciorota/xhttperror/templates/admin/
XoopsModules/xhttperror/branches/luciorota/xhttperror/templates/admin/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/templates/admin/xhttperror_admin_errors_list.tpl
XoopsModules/xhttperror/branches/luciorota/xhttperror/templates/admin/xhttperror_admin_reports_list.tpl
XoopsModules/xhttperror/branches/luciorota/xhttperror/templates/blocks/
XoopsModules/xhttperror/branches/luciorota/xhttperror/templates/blocks/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/templates/index.html
XoopsModules/xhttperror/branches/luciorota/xhttperror/templates/xhttperror_common_breadcrumb.tpl
XoopsModules/xhttperror/branches/luciorota/xhttperror/templates/xhttperror_index.tpl
XoopsModules/xhttperror/branches/luciorota/xhttperror/xoops_version.php
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/about.php
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/about.php (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/about.php 2014-10-22 22:51:01 UTC (rev 12819)
@@ -0,0 +1,21 @@
+<?php
+/*
+ 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.
+ */
+
+include_once dirname(__FILE__) . '/admin_header.php';
+
+xoops_cp_header();
+
+$aboutAdmin = new ModuleAdmin();
+
+echo $aboutAdmin->addNavigation('about.php');
+echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false);
+
+include 'admin_footer.php';
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/admin_footer.php
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/admin_footer.php (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/admin_footer.php 2014-10-22 22:51:01 UTC (rev 12819)
@@ -0,0 +1,19 @@
+<?php
+/*
+ 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.
+ */
+
+echo "<div class='adminfooter'>\n";
+echo " <div style='text-align: center;'>\n";
+echo " <a href='http://www.xoops.org' rel='external'><img src='" . XHTTPERROR_IMAGES_URL . "/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n";
+echo " </div>\n";
+echo "" . _AM_MODULEADMIN_ADMIN_FOOTER . "\n";
+echo "</div>";
+
+xoops_cp_footer();
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/admin_header.php
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/admin_header.php (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/admin_header.php 2014-10-22 22:51:01 UTC (rev 12819)
@@ -0,0 +1,111 @@
+<?php
+/*
+ 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.
+ */
+
+include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php';
+include_once dirname(dirname(__FILE__)) . '/include/common.php';
+
+// Include xoops admin header
+include_once XOOPS_ROOT_PATH . '/include/cp_header.php';
+
+$pathIcon16 = XOOPS_URL . '/' . $xhttperror->getModule()->getInfo('icons16');
+$pathIcon32 = XOOPS_URL . '/' . $xhttperror->getModule()->getInfo('icons32');
+$pathModuleAdmin = XOOPS_ROOT_PATH . '/' . $xhttperror->getModule()->getInfo('dirmoduleadmin');
+require_once $pathModuleAdmin . '/moduleadmin/moduleadmin.php';
+
+// Load language files
+xoops_loadLanguage('admin', $xhttperror->getModule()->dirname());
+xoops_loadLanguage('modinfo', $xhttperror->getModule()->dirname());
+xoops_loadLanguage('main', $xhttperror->getModule()->dirname());
+
+if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
+ include_once(XOOPS_ROOT_PATH . '/class/template.php');
+ $xoopsTpl = new XoopsTpl();
+}
+/*
+
+
+
+
+
+
+
+
+
+
+
+
+// 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"));
+*/
\ No newline at end of file
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/error.php
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/error.php (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/error.php 2014-10-22 22:51:01 UTC (rev 12819)
@@ -0,0 +1,142 @@
+<?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');
+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_XHTTPERROR_ERROR_ADD, '' . $currentFile . '?op=edit_error', 'add');
+ echo $modcreate_admin->renderButton();
+
+ $errorCount = $xhttperror->getHandler('error')->getCount();
+ if($errorCount > 0) {
+ $criteria = new CriteriaCompo();
+ $criteria->setSort('error_statuscode');
+ $criteria->setOrder('ASC');
+ $errorObjs = $xhttperror->getHandler('error')->getObjects($criteria, true, false);
+
+ $GLOBALS['xoopsTpl']->assign('errors', $errorObjs);
+ $GLOBALS['xoopsTpl']->assign('token', $GLOBALS['xoopsSecurity']->getTokenHTML() );
+ $GLOBALS['xoopsTpl']->display("db:{$xhttperror->getModule()->dirname()}_admin_errors_list.tpl");
+ } else {
+ echo _AM_XHTTPERROR_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_XHTTPERROR_ERROR_LIST, '' . $currentFile . '?op=list_errors', 'list');
+ echo $modcreate_admin->renderButton();
+
+ if (isset($_REQUEST['error_id'])) {
+ $errorObj = $xhttperror->getHandler('error')->get($_REQUEST['error_id']);
+ } else {
+ $errorObj = $xhttperror->getHandler('error')->create();
+
+ }
+ $form = $errorObj->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']) ) {
+ $errorObj = $xhttperror->getHandler('error')->get($_REQUEST['error_id']);
+ } else {
+ $errorObj = $xhttperror->getHandler('error')->create();
+ }
+ // Check statuscode
+ if ( isset($_REQUEST['error_statuscode']) ) {
+ $criteria = new CriteriaCompo();
+ $criteria->add(new Criteria('error_statuscode', $_REQUEST['error_statuscode']));
+ if ($xhttperror->getHandler('error')->getCount($criteria) > 0) {
+ redirect_header($currentFile, 3, _AM_XHTTPERROR_STATUSCODE_EXISTS );
+ } else {
+ $errorObj->setVar('error_statuscode', $_REQUEST['error_statuscode']);
+ }
+ }
+ $errorObj->setVar('error_title', $_REQUEST['error_title']);
+ $errorObj->setVar('error_text', $_REQUEST['error_text']);
+ $errorObj->setVar('error_text_html', $_REQUEST['error_text_html']);
+ $errorObj->setVar('error_text_smiley', $_REQUEST['error_text_smiley']);
+ $errorObj->setVar('error_text_breaks', $_REQUEST['error_text_breaks']);
+ $errorObj->setVar('error_showme', $_REQUEST['error_showme']);
+ $errorObj->setVar('error_redirect', $_REQUEST['error_redirect']);
+ $errorObj->setVar('error_redirect_time', (int)$_REQUEST['error_redirect_time']);
+ /* IN PROGRESS
+ $errorObj->setVar('error_redirect_message', (int)$_REQUEST['error_redirect_message']);
+ */
+ $errorObj->setVar('error_redirect_uri', $_REQUEST['error_redirect_uri']);
+
+ if ( $xhttperror->getHandler('error')->insert($errorObj) ) {
+ redirect_header($currentFile, 3, _AM_XHTTPERROR_SAVEDSUCCESS );
+ } else {
+ redirect_header($currentFile, 3, _AM_XHTTPERROR_NOTSAVED );
+ }
+ break;
+
+ case 'delete_error' :
+ $errorObj = $xhttperror->getHandler('error')->get($_REQUEST['error_id']);
+ if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) {
+ if (!$GLOBALS['xoopsSecurity']->check()) {
+ redirect_header($currentFile, 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
+ }
+ if ($xhttperror->getHandler('error')->delete($errorObj)) {
+ redirect_header($currentFile, 3, _AM_XHTTPERROR_DELETEDSUCCESS);
+ } else {
+ echo $errorObj->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_XHTTPERROR_ERROR_RUSUREDEL, $errorObj->getVar('error_title')));
+ xoops_cp_footer();
+ }
+ break;
+}
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/index.html
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/index.html (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/index.html 2014-10-22 22:51:01 UTC (rev 12819)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/index.php
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/index.php (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/index.php 2014-10-22 22:51:01 UTC (rev 12819)
@@ -0,0 +1,60 @@
+<?php
+/*
+ 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.
+ */
+/**
+ * Module_skeleton module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @package module_skeleton
+ * @since 1.00
+ * @author Xoops Development Team
+ * @version svn:$id$
+ */
+
+$currentFile = basename(__FILE__);
+include_once dirname(__FILE__) . '/admin_header.php';
+
+define('_RED', '#FF0000'); // Red
+define('_GREEN', '#00AA00'); // Green
+
+xoops_cp_header();
+$indexAdmin = new ModuleAdmin();
+
+//--------------------------
+$errorCount = $xhttperror->getHandler('error')->getCount();
+$reportCount = $xhttperror->getHandler('report')->getCount();
+
+$indexAdmin->addInfoBox(_AM_XHTTPERROR_INTRO);
+$indexAdmin->addInfoBoxLine(_AM_XHTTPERROR_INTRO, _AM_XHTTPERROR_INFO);
+ if( file_exists(XOOPS_ROOT_PATH . "/.htaccess")) {
+ $htaccessCheck = _AM_XHTTPERROR_FILECHK . XOOPS_ROOT_PATH ."/.htaccess " . "<br />" . _AM_XHTTPERROR_FILEEXISTS;
+} else {
+ $htaccessCheck = _AM_XHTTPERROR_FILECHK . XOOPS_ROOT_PATH ."/.htaccess " . "<br />" . _AM_XHTTPERROR_FILENOEXIST;
+}
+$indexAdmin->addInfoBoxLine(_AM_XHTTPERROR_INTRO, $htaccessCheck);
+$indexAdmin->addInfoBoxLine(_AM_XHTTPERROR_INTRO, _AM_XHTTPERROR_ADDCODE);
+if ($errorCount == 0) {
+ $indexAdmin->addInfoBoxLine(_AM_XHTTPERROR_INTRO, _AM_XHTTPERROR_NOCODE);
+} else {
+ // get errors
+ $criteria = new CriteriaCompo();
+ $errors = $xhttperror->getHandler('error')->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_XHTTPERROR_INTRO, $hmtl);
+ }
+}
+echo $indexAdmin->addNavigation('index.php');
+echo $indexAdmin->renderIndex();
+
+include 'admin_footer.php';
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/menu.php
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/menu.php (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/menu.php 2014-10-22 22:51:01 UTC (rev 12819)
@@ -0,0 +1,52 @@
+<?php
+/*
+ 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.
+ */
+/**
+ * xhttperror module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @package xhttperror
+ * @since 1.00
+ * @author Xoops Development Team
+ * @version svn:$id$
+ */
+
+defined('XOOPS_ROOT_PATH') || die('XOOPS root path not defined');
+
+$module_handler = xoops_gethandler('module');
+$module = $module_handler->getByDirname(basename(dirname(dirname(__FILE__))));
+$pathIcon32 = '../../' . $module->getInfo('icons32');
+
+$adminmenu = array();
+$i=0;
+//$adminmenu[$i]['name'] = 'Index';
+$adminmenu[$i]['title'] = _MI_XHTTPERROR_ADMENU_INDEX;
+$adminmenu[$i]['link'] = "admin/index.php";
+$adminmenu[$i]['icon'] = $pathIcon32 . '/house.png';
+//$adminmenu[$i]['desc'] = _MI_XHTTPERROR_ADMENU_INDEX_DESC;
+++$i;
+//$adminmenu[$i]['name'] = 'Errors';
+$adminmenu[$i]['title'] = _MI_XHTTPERROR_ADMENU_ERRORS;
+$adminmenu[$i]['link'] = "admin/error.php";
+$adminmenu[$i]['icon'] = $pathIcon32 . '/error.png';
+//$adminmenu[$i]['desc'] = _MI_XHTTPERROR_ADMENU_ERRORS_DESC;
+++$i;
+//$adminmenu[$i]['name'] = 'Reports';
+$adminmenu[$i]['title'] = _MI_XHTTPERROR_ADMENU_REPORTS;
+$adminmenu[$i]['link'] = "admin/report.php";
+$adminmenu[$i]['icon'] = $pathIcon32 . '/report_error.png';
+//$adminmenu[$i]['desc'] = _MI_XHTTPERROR_ADMENU_REPORTS_DESC;
+++$i;
+//$adminmenu[$i]['name'] = 'About';
+$adminmenu[$i]['title'] = _MI_XHTTPERROR_ADMENU_ABOUT;
+$adminmenu[$i]['link'] = "admin/about.php";
+$adminmenu[$i]['icon'] = $pathIcon32 . '/information.png';
+//$adminmenu[$i]['desc'] = _MI_XHTTPERROR_ADMENU_ABOUT_DESC;
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/report.php
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/report.php (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/admin/report.php 2014-10-22 22:51:01 UTC (rev 12819)
@@ -0,0 +1,81 @@
+<?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';
+switch($op ) {
+ default:
+ case 'list_reports' :
+ // render start here
+ xoops_cp_header();
+ // render submenu
+ $modcreate_admin = new ModuleAdmin();
+ echo $modcreate_admin->addNavigation('reports.php');
+
+ $reportCount = $xhttperror->getHandler('report')->getCount();
+ if($reportCount > 0) {
+ $criteria = new CriteriaCompo();
+ $criteria->setSort('report_date');
+ $criteria->setOrder('ASC');
+ $criteria->setLimit($xhttperror->getConfig('reports_perpage'));
+ $reportObjs = $xhttperror->getHandler('report')->getObjects($criteria, true, false);
+ foreach ($reportObjs as $key => $reportObj) {
+ $reportObjs[$key]['report_user'] = XoopsUserUtility::getUnameFromId($reportObj['report_uid'], false, true);
+ $reportObjs[$key]['report_date'] = formatTimeStamp($reportObj['report_date'], _DATESTRING);
+ }
+ $GLOBALS['xoopsTpl']->assign('reports', $reportObjs);
+ $GLOBALS['xoopsTpl']->assign('token', $GLOBALS['xoopsSecurity']->getTokenHTML() );
+ $GLOBALS['xoopsTpl']->display("db:{$xhttperror->getModule()->dirname()}_admin_reports_list.html");
+ } else {
+ echo _AM_XHTTPERROR_REPORT_NOREPORTS;
+ }
+ include "admin_footer.php";
+ break;
+ case 'delete_report' :
+ $reportObj = $xhttperror->getHandler('report')->get($_REQUEST['report_id']);
+ if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) {
+ if ( !$GLOBALS['xoopsSecurity']->check() ) {
+ redirect_header($currentFile, 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
+ }
+ if ( $xhttperror->getHandler('report')->delete($reportObj)) {
+ redirect_header($currentFile, 3, _AM_XHTTPERROR_DELETEDSUCCESS );
+ } else {
+ echo $reportObj->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_XHTTPERROR_REPORT_RUSUREDEL, $reportObj->getVar('report_id')));
+ xoops_cp_footer();
+ }
+ break;
+}
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/css/index.html
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/css/index.html (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/css/index.html 2014-10-22 22:51:01 UTC (rev 12819)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/css/style.css
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/css/style.css (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/css/style.css 2014-10-22 22:51:01 UTC (rev 12819)
@@ -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/branches/luciorota/xhttperror/assets/images/bg.png
===================================================================
(Binary files differ)
Index: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bg.png
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bg.png 2014-10-20 11:53:00 UTC (rev 12818)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bg.png 2014-10-22 22:51:01 UTC (rev 12819)
Property changes on: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bg.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bookmarks/bookmarks/index.html
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bookmarks/bookmarks/index.html (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bookmarks/bookmarks/index.html 2014-10-22 22:51:01 UTC (rev 12819)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bookmarks/index.html
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bookmarks/index.html (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bookmarks/index.html 2014-10-22 22:51:01 UTC (rev 12819)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bulb-grey.png
===================================================================
(Binary files differ)
Index: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bulb-grey.png
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bulb-grey.png 2014-10-20 11:53:00 UTC (rev 12818)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bulb-grey.png 2014-10-22 22:51:01 UTC (rev 12819)
Property changes on: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bulb-grey.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bulb-yell.png
===================================================================
(Binary files differ)
Index: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bulb-yell.png
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bulb-yell.png 2014-10-20 11:53:00 UTC (rev 12818)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bulb-yell.png 2014-10-22 22:51:01 UTC (rev 12819)
Property changes on: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/bulb-yell.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/del3.png
===================================================================
(Binary files differ)
Index: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/del3.png
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/del3.png 2014-10-20 11:53:00 UTC (rev 12818)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/del3.png 2014-10-22 22:51:01 UTC (rev 12819)
Property changes on: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/del3.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/edit3.png
===================================================================
(Binary files differ)
Index: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/edit3.png
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/edit3.png 2014-10-20 11:53:00 UTC (rev 12818)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/edit3.png 2014-10-22 22:51:01 UTC (rev 12819)
Property changes on: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/edit3.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/16x16/index.html
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/16x16/index.html (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/16x16/index.html 2014-10-22 22:51:01 UTC (rev 12819)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/error.png
===================================================================
(Binary files differ)
Index: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/error.png
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/error.png 2014-10-20 11:53:00 UTC (rev 12818)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/error.png 2014-10-22 22:51:01 UTC (rev 12819)
Property changes on: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/error.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/house.png
===================================================================
(Binary files differ)
Index: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/house.png
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/house.png 2014-10-20 11:53:00 UTC (rev 12818)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/house.png 2014-10-22 22:51:01 UTC (rev 12819)
Property changes on: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/house.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/index.html
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/index.html (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/index.html 2014-10-22 22:51:01 UTC (rev 12819)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/information.png
===================================================================
(Binary files differ)
Index: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/information.png
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/information.png 2014-10-20 11:53:00 UTC (rev 12818)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/information.png 2014-10-22 22:51:01 UTC (rev 12819)
Property changes on: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/information.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/report.png
===================================================================
(Binary files differ)
Index: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/report.png
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/report.png 2014-10-20 11:53:00 UTC (rev 12818)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/report.png 2014-10-22 22:51:01 UTC (rev 12819)
Property changes on: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/report.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/report_error.png
===================================================================
(Binary files differ)
Index: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/report_error.png
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/report_error.png 2014-10-20 11:53:00 UTC (rev 12818)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/report_error.png 2014-10-22 22:51:01 UTC (rev 12819)
Property changes on: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/32x32/report_error.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/arrow.gif
===================================================================
(Binary files differ)
Index: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/arrow.gif
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/arrow.gif 2014-10-20 11:53:00 UTC (rev 12818)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/arrow.gif 2014-10-22 22:51:01 UTC (rev 12819)
Property changes on: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/arrow.gif
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/index.html
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/index.html (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/index.html 2014-10-22 22:51:01 UTC (rev 12819)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/off.png
===================================================================
(Binary files differ)
Index: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/off.png
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/off.png 2014-10-20 11:53:00 UTC (rev 12818)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/off.png 2014-10-22 22:51:01 UTC (rev 12819)
Property changes on: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/off.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/on.png
===================================================================
(Binary files differ)
Index: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/on.png
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/on.png 2014-10-20 11:53:00 UTC (rev 12818)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/on.png 2014-10-22 22:51:01 UTC (rev 12819)
Property changes on: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/icons/on.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/index.html
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/index.html (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/index.html 2014-10-22 22:51:01 UTC (rev 12819)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/left_both.png
===================================================================
(Binary files differ)
Index: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/left_both.png
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/left_both.png 2014-10-20 11:53:00 UTC (rev 12818)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/left_both.png 2014-10-22 22:51:01 UTC (rev 12819)
Property changes on: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/left_both.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/menu/index.html
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/menu/index.html (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/menu/index.html 2014-10-22 22:51:01 UTC (rev 12819)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/module_logo.png
===================================================================
(Binary files differ)
Index: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/module_logo.png
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/module_logo.png 2014-10-20 11:53:00 UTC (rev 12818)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/module_logo.png 2014-10-22 22:51:01 UTC (rev 12819)
Property changes on: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/module_logo.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/module_logo.xcf
===================================================================
(Binary files differ)
Index: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/module_logo.xcf
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/module_logo.xcf 2014-10-20 11:53:00 UTC (rev 12818)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/module_logo.xcf 2014-10-22 22:51:01 UTC (rev 12819)
Property changes on: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/module_logo.xcf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/right_both.png
===================================================================
(Binary files differ)
Index: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/right_both.png
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/right_both.png 2014-10-20 11:53:00 UTC (rev 12818)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/right_both.png 2014-10-22 22:51:01 UTC (rev 12819)
Property changes on: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/right_both.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/xoopsmicrobutton.gif
===================================================================
(Binary files differ)
Index: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/xoopsmicrobutton.gif
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/xoopsmicrobutton.gif 2014-10-20 11:53:00 UTC (rev 12818)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/xoopsmicrobutton.gif 2014-10-22 22:51:01 UTC (rev 12819)
Property changes on: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/images/xoopsmicrobutton.gif
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/js/index.html
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/js/index.html (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/js/index.html 2014-10-22 22:51:01 UTC (rev 12819)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/js/script.js
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/js/script.js (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/assets/js/script.js 2014-10-22 22:51:01 UTC (rev 12819)
@@ -0,0 +1,34 @@
+
+/**
+ * ****************************************************************************
+ * - 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 $
+ * ****************************************************************************
+ */
+
+$(document).ready(function(){
+ $( "button, input:button, input:submit, input:file, input:reset" ).css("color","inherit").button();
+ $( ".check" ).css("color","#fff").button();
+ $( ".radio" ).css("color","#fff").buttonset();
+ $( ".toolbar" ).css("color","#000").buttonset();
+});
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/class/breadcrumb.php
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/class/breadcrumb.php (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/class/breadcrumb.php 2014-10-22 22:51:01 UTC (rev 12819)
@@ -0,0 +1,79 @@
+<?php
+/*
+ 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.
+ */
+/**
+ * XhttperrorBreadcrumb Class
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @author Lucio Rota <luc...@gm...>
+ * @package Xhttperror
+ * @since 1.01
+ * @version $Id:$
+ *
+ * Example:
+ * $breadcrumb = new XhttperrorBreadcrumb();
+ * $breadcrumb->addLink( 'bread 1', 'index1.php' );
+ * $breadcrumb->addLink( 'bread 2', '' );
+ * $breadcrumb->addLink( 'bread 3', 'index3.php' );
+ * echo $breadcrumb->render();
+ */
+defined('XOOPS_ROOT_PATH') || die('XOOPS root path not defined');
+
+/**
+ * Class XhttperrorBreadcrumb
+ */
+class XhttperrorBreadcrumb
+{
+ var $dirname;
+ var $_bread = array();
+
+ /**
+ *
+ */
+ function __construct()
+ {
+ $this->dirname = basename(dirname(dirname(__FILE__)));
+ }
+
+ /**
+ * Add link to breadcrumb
+ *
+ * @param string $title
+ * @param string $link
+ */
+ function addLink( $title='', $link='' )
+ {
+ $this->_bread[] = array(
+ 'link' => $link,
+ 'title' => $title
+ );
+ }
+
+ /**
+ * Render Xhttperror BreadCrumb
+ *
+ */
+ function render()
+ {
+ if ( !isset($GLOBALS['xoTheme']) || !is_object($GLOBALS['xoTheme']) ) {
+ include_once $GLOBALS['xoops']->path( "/class/theme.php" );
+ $GLOBALS['xoTheme'] = new xos_opal_Theme();
+ }
+
+ require_once $GLOBALS['xoops']->path('class/template.php');
+ $breadcrumbTpl = new XoopsTpl();
+ $breadcrumbTpl->assign('breadcrumb', $this->_bread);
+ $html = $breadcrumbTpl->fetch("db:" . $this->dirname . "_common_breadcrumb.tpl");
+ unset($breadcrumbTpl);
+
+ return $html;
+ }
+}
Added: XoopsModules/xhttperror/branches/luciorota/xhttperror/class/error.php
===================================================================
--- XoopsModules/xhttperror/branches/luciorota/xhttperror/class/error.php (rev 0)
+++ XoopsModules/xhttperror/branches/luciorota/xhttperror/class/error.php 2014-10-22 22:51:01 UTC (rev 12819)
@@ -0,0 +1,180 @@
+<?php
+/*
+ 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.
+ */
+/**
+ * Xhttperror module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @package xhttperror
+ * @since 1.00
+ * @author Xoops Development Team
+ * @version svn:$id$
+ */
+defined('XOOPS_ROOT_PATH') || die('XOOPS root path not defined');
+include_once dirname(dirname(__FILE__)) . '/include/common.php';
+
+define('XHTTPERR_REDIRECT_NO', 0);
+define('XHTTPERR_REDIRECT_URI', 1);
+define('XHTTPERR_REDIRECT_PREVIOUS', 2);
+
+/**
+ * Class XhttperrorError
+ */
+class XhttperrorError extends XoopsObject
+{
+ /**
+ * @var XhttperrorXhttperror
+ * @access private
+ */
+ private $xhttperror = null;
+
+ /**
+ * constructor
+ */
+ public function __construct()
+ {
+ $this->xhttperror = XhttperrorXhttperror::getInstance();
+ $this->db = XoopsDatabaseFactory::getDatabaseConnection();
+ $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->init...
[truncated message content] |