|
From: <be...@us...> - 2014-04-06 07:06:04
|
Revision: 12424
http://sourceforge.net/p/xoops/svn/12424
Author: beckmi
Date: 2014-04-06 07:05:59 +0000 (Sun, 06 Apr 2014)
Log Message:
-----------
Adding DH-Info 2.6
Added Paths:
-----------
XoopsModules/dh-info/
XoopsModules/dh-info/branches/
XoopsModules/dh-info/releases/
XoopsModules/dh-info/trunk/
XoopsModules/dh-info/trunk/info/
XoopsModules/dh-info/trunk/info/_htaccess
XoopsModules/dh-info/trunk/info/admin/
XoopsModules/dh-info/trunk/info/admin/about.php
XoopsModules/dh-info/trunk/info/admin/admin_categorie.php
XoopsModules/dh-info/trunk/info/admin/admin_header.php
XoopsModules/dh-info/trunk/info/admin/admin_permission.php
XoopsModules/dh-info/trunk/info/admin/admin_seiten.php
XoopsModules/dh-info/trunk/info/admin/index.html
XoopsModules/dh-info/trunk/info/admin/index.php
XoopsModules/dh-info/trunk/info/admin/menu.php
XoopsModules/dh-info/trunk/info/blocks/
XoopsModules/dh-info/trunk/info/blocks/index.html
XoopsModules/dh-info/trunk/info/blocks/info_freiblock.php
XoopsModules/dh-info/trunk/info/blocks/info_navigation.php
XoopsModules/dh-info/trunk/info/class/
XoopsModules/dh-info/trunk/info/class/category.php
XoopsModules/dh-info/trunk/info/class/index.html
XoopsModules/dh-info/trunk/info/class/info.php
XoopsModules/dh-info/trunk/info/class/infotree.php
XoopsModules/dh-info/trunk/info/comment_delete.php
XoopsModules/dh-info/trunk/info/comment_edit.php
XoopsModules/dh-info/trunk/info/comment_new.php
XoopsModules/dh-info/trunk/info/comment_post.php
XoopsModules/dh-info/trunk/info/comment_reply.php
XoopsModules/dh-info/trunk/info/comment_view.php
XoopsModules/dh-info/trunk/info/docs/
XoopsModules/dh-info/trunk/info/docs/changelog.txt
XoopsModules/dh-info/trunk/info/docs/index.html
XoopsModules/dh-info/trunk/info/docs/licence.txt
XoopsModules/dh-info/trunk/info/docs/liesmich.txt
XoopsModules/dh-info/trunk/info/images/
XoopsModules/dh-info/trunk/info/images/add.png
XoopsModules/dh-info/trunk/info/images/content.gif
XoopsModules/dh-info/trunk/info/images/delete.png
XoopsModules/dh-info/trunk/info/images/edit.png
XoopsModules/dh-info/trunk/info/images/email.png
XoopsModules/dh-info/trunk/info/images/index.html
XoopsModules/dh-info/trunk/info/images/logo.gif
XoopsModules/dh-info/trunk/info/images/print.png
XoopsModules/dh-info/trunk/info/images/top.png
XoopsModules/dh-info/trunk/info/include/
XoopsModules/dh-info/trunk/info/include/constants.php
XoopsModules/dh-info/trunk/info/include/form.php
XoopsModules/dh-info/trunk/info/include/function.php
XoopsModules/dh-info/trunk/info/include/index.html
XoopsModules/dh-info/trunk/info/include/mimes.php
XoopsModules/dh-info/trunk/info/include/plugin.tag.php
XoopsModules/dh-info/trunk/info/include/search.inc.php
XoopsModules/dh-info/trunk/info/index.php
XoopsModules/dh-info/trunk/info/language/
XoopsModules/dh-info/trunk/info/language/english/
XoopsModules/dh-info/trunk/info/language/english/admin.php
XoopsModules/dh-info/trunk/info/language/english/blocks.php
XoopsModules/dh-info/trunk/info/language/english/help/
XoopsModules/dh-info/trunk/info/language/english/help/help.html
XoopsModules/dh-info/trunk/info/language/english/help/index.html
XoopsModules/dh-info/trunk/info/language/english/index.html
XoopsModules/dh-info/trunk/info/language/english/main.php
XoopsModules/dh-info/trunk/info/language/english/modinfo.php
XoopsModules/dh-info/trunk/info/language/german/
XoopsModules/dh-info/trunk/info/language/german/admin.php
XoopsModules/dh-info/trunk/info/language/german/blocks.php
XoopsModules/dh-info/trunk/info/language/german/help/
XoopsModules/dh-info/trunk/info/language/german/help/help.html
XoopsModules/dh-info/trunk/info/language/german/help/index.html
XoopsModules/dh-info/trunk/info/language/german/index.html
XoopsModules/dh-info/trunk/info/language/german/main.php
XoopsModules/dh-info/trunk/info/language/german/modinfo.php
XoopsModules/dh-info/trunk/info/language/index.html
XoopsModules/dh-info/trunk/info/print.php
XoopsModules/dh-info/trunk/info/sql/
XoopsModules/dh-info/trunk/info/sql/index.html
XoopsModules/dh-info/trunk/info/sql/update.php
XoopsModules/dh-info/trunk/info/submit.php
XoopsModules/dh-info/trunk/info/templates/
XoopsModules/dh-info/trunk/info/templates/blocks/
XoopsModules/dh-info/trunk/info/templates/blocks/index.html
XoopsModules/dh-info/trunk/info/templates/blocks/info_freiblock.html
XoopsModules/dh-info/trunk/info/templates/blocks/info_nav_block.html
XoopsModules/dh-info/trunk/info/templates/index.html
XoopsModules/dh-info/trunk/info/templates/info_index.html
XoopsModules/dh-info/trunk/info/xoops_version.php
Added: XoopsModules/dh-info/trunk/info/_htaccess
===================================================================
--- XoopsModules/dh-info/trunk/info/_htaccess (rev 0)
+++ XoopsModules/dh-info/trunk/info/_htaccess 2014-04-06 07:05:59 UTC (rev 12424)
@@ -0,0 +1,4 @@
+RewriteEngine on
+# RewriteBase /modules/info/
+RewriteRule ^([0-9]*)\:([0-9]*)-(.*)\.html index.php?content=$1:$2 [L]
+RewriteRule ^p([0-9]*)\:([0-9]*)-(.*)\.html index.php?pid=$2 [L]
\ No newline at end of file
Added: XoopsModules/dh-info/trunk/info/admin/about.php
===================================================================
--- XoopsModules/dh-info/trunk/info/admin/about.php (rev 0)
+++ XoopsModules/dh-info/trunk/info/admin/about.php 2014-04-06 07:05:59 UTC (rev 12424)
@@ -0,0 +1,41 @@
+<?php
+// ------------------------------------------------------------------------ //
+// XOOPS - PHP Content Management System //
+// Copyright (c) 2000 xoops.org //
+// <http://www.xoops.org/> //
+// ------------------------------------------------------------------------ //
+// This program is free software; you can redistribute it and/or modify //
+// it under the terms of the GNU General Public License as published by //
+// the Free Software Foundation; either version 2 of the License, or //
+// (at your option) any later version. //
+// //
+// You may not change or alter any portion of this comment or credits //
+// of supporting developers from this source code or any supporting //
+// source code which is considered copyrighted (c) material of the //
+// original comment or credit authors. //
+// //
+// This program is distributed in the hope that it will be useful, //
+// but WITHOUT ANY WARRANTY; without even the implied warranty of //
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
+// GNU General Public License for more details. //
+// //
+// You should have received a copy of the GNU General Public License //
+// along with this program; if not, write to the Free Software //
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
+// ------------------------------------------------------------------------ //
+// @package about.php
+// @author Dirk Herrmann <al...@si...>
+// @version $Id$
+
+include '../../../include/cp_header.php';
+include( "admin_header.php" );
+xoops_cp_header();
+
+$module_info = $module_handler->get($xoopsModule->getVar("mid"));
+$aboutAdmin = new ModuleAdmin();
+echo $aboutAdmin->addNavigation('about.php');
+echo $aboutAdmin->renderabout('PBQZ7D6LT6UBC', true);
+
+xoops_cp_footer();
+
+?>
\ No newline at end of file
Property changes on: XoopsModules/dh-info/trunk/info/admin/about.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/dh-info/trunk/info/admin/admin_categorie.php
===================================================================
--- XoopsModules/dh-info/trunk/info/admin/admin_categorie.php (rev 0)
+++ XoopsModules/dh-info/trunk/info/admin/admin_categorie.php 2014-04-06 07:05:59 UTC (rev 12424)
@@ -0,0 +1,123 @@
+<?php
+// ------------------------------------------------------------------------ //
+// XOOPS - PHP Content Management System //
+// Copyright (c) 2000 xoops.org //
+// <http://www.xoops.org/> //
+// ------------------------------------------------------------------------ //
+// This program is free software; you can redistribute it and/or modify //
+// it under the terms of the GNU General Public License as published by //
+// the Free Software Foundation; either version 2 of the License, or //
+// (at your option) any later version. //
+// //
+// You may not change or alter any portion of this comment or credits //
+// of supporting developers from this source code or any supporting //
+// source code which is considered copyrighted (c) material of the //
+// original comment or credit authors. //
+// //
+// This program is distributed in the hope that it will be useful, //
+// but WITHOUT ANY WARRANTY; without even the implied warranty of //
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
+// GNU General Public License for more details. //
+// //
+// You should have received a copy of the GNU General Public License //
+// along with this program; if not, write to the Free Software //
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
+// ------------------------------------------------------------------------ //
+// @package admin_categorie.php
+// @author Dirk Herrmann <al...@si...>
+// @version $Id$
+
+include_once "admin_header.php";
+
+$op = ( isset($_REQUEST['op']) ) ? $_REQUEST['op'] : 'list';
+if (!in_array( $op, array('list','blockcat','blockcat_insert') )) $op = 'list';
+//$id = ( isset($_REQUEST['id']) ) ? intval($_REQUEST['id']) : 0;
+$cat = ( isset($_REQUEST['cat']) ) ? intval($_REQUEST['cat']) : 0;
+
+switch ($op) {
+ case "list":
+ default:
+ xoops_cp_header();
+ echo $indexAdmin->addNavigation('admin_categorie.php');
+ $catlist = $cat_handler->getObjects(null,true,false);
+ $cate = array();
+ foreach ( $catlist as $cats => $catr )
+ {
+ $cate[$catr['cat_id']] = $catr['title'];
+ }
+ $form = new XoopsThemeForm(_INFO_LISTBLOCKCAT, $xoopsModule->getVar('dirname')."_form_list", XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/admin/admin_categorie.php');
+ $form->setExtra('enctype="multipart/form-data"');
+ $form->addElement(new XoopsFormHidden('op', 'blockcat'));
+ $block_select = new XoopsFormSelect(_INFO_HOMEPAGE, "cat",0);
+ $block_select->addOptionArray($cate);
+ $form->addElement($block_select);
+ $submit = new XoopsFormElementTray("", "");
+ $submit->addElement(new XoopsFormButton('', 'post', _DELETE, 'submit'));
+ $submit->addElement(new XoopsFormButton('', 'post', _EDIT, 'submit'));
+ $form->addElement($submit);
+ $form->display();
+ makecat();
+ xoops_cp_footer();
+ break;
+ case "blockcat":
+ $cate = $cat_handler->get($cat);
+ if ($_REQUEST['post'] == _DELETE) {
+ xoops_cp_header();
+ echo $indexAdmin->addNavigation('admin_categorie.php');
+ if ($cat == 1) {
+ redirect_header('admin_categorie.php', 3, _INFO_ERROR_NODEFAULT);
+ } else {
+ $msg = _INFO_SETDELETE . "<br />".sprintf(_INFO_SETDELETE_FRAGE,$cate->getVar('title'));
+ $hiddens = array('op'=>'blockcat','cat'=>$cat,'post'=>'itsdelete');
+ xoops_confirm($hiddens, 'admin_categorie.php', $msg);
+ }
+ xoops_cp_footer();
+ } elseif ($_REQUEST['post'] == 'itsdelete') {
+ if ( $GLOBALS['xoopsSecurity']->check() ) {
+ if ($cat_handler->delete($cate)) {
+ redirect_header('admin_categorie.php', 2, _INFO_DBUPDATED);
+ } else {
+ redirect_header('admin_categorie.php', 3, _INFO_ERRORINSERT);
+ }
+ } else {
+ redirect_header('admin_categorie.php', 3, _AM_INFO_TOCKEN_MISSING);
+ }
+ } else {
+ xoops_cp_header();
+ echo $indexAdmin->addNavigation('admin_categorie.php');
+ makecat($cat);
+ xoops_cp_footer();
+ }
+ break;
+ case "blockcat_insert":
+ if ( $GLOBALS['xoopsSecurity']->check() ) {
+ $cate = $cat_handler->get($cat);
+ $title = $myts->htmlSpecialChars(trim($_POST['title']));
+ $cate->setVar('title',$title);
+ if ($cat_handler->insert($cate)) {
+ redirect_header('admin_categorie.php', 3, _INFO_DBUPDATED);
+ } else {
+ redirect_header('admin_categorie.php', 3, _INFO_ERRORINSERT);
+ }
+ } else {
+ redirect_header('admin_categorie.php', 3, _AM_INFO_TOCKEN_MISSING);
+ }
+ break;
+}
+
+function makecat($cat=0) {
+ global $cat_handler,$xoopsModule;
+
+ $cate = $cat_handler->get($cat);
+ $tueber = ($cat == 0) ? _INFO_ADDBLOCKCAT : _INFO_EDITBLOCKCAT;
+ $form = new XoopsThemeForm($tueber, $xoopsModule->getVar('dirname')."_form_edit", XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/admin/admin_categorie.php', 'post', true);
+ $form->setExtra('enctype="multipart/form-data"');
+ $form->addElement(new XoopsFormHidden('cat', $cate->getVar('cat_id')));
+ $form->addElement(new XoopsFormHidden('op', 'blockcat_insert'));
+ $form->addElement(new XoopsFormText(_INFO_HOMEPAGE, "title", 80, 255,$cate->getVar('title')),true);
+ $submit = new XoopsFormButton('', 'post', $tueber, 'submit');
+ $form->addElement($submit);
+ $form->display();
+}
+
+?>
\ No newline at end of file
Property changes on: XoopsModules/dh-info/trunk/info/admin/admin_categorie.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/dh-info/trunk/info/admin/admin_header.php
===================================================================
--- XoopsModules/dh-info/trunk/info/admin/admin_header.php (rev 0)
+++ XoopsModules/dh-info/trunk/info/admin/admin_header.php 2014-04-06 07:05:59 UTC (rev 12424)
@@ -0,0 +1,66 @@
+<?php
+// ------------------------------------------------------------------------ //
+// XOOPS - PHP Content Management System //
+// Copyright (c) 2000 xoops.org //
+// <http://www.xoops.org/> //
+// ------------------------------------------------------------------------ //
+// This program is free software; you can redistribute it and/or modify //
+// it under the terms of the GNU General Public License as published by //
+// the Free Software Foundation; either version 2 of the License, or //
+// (at your option) any later version. //
+// //
+// You may not change or alter any portion of this comment or credits //
+// of supporting developers from this source code or any supporting //
+// source code which is considered copyrighted (c) material of the //
+// original comment or credit authors. //
+// //
+// This program is distributed in the hope that it will be useful, //
+// but WITHOUT ANY WARRANTY; without even the implied warranty of //
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
+// GNU General Public License for more details. //
+// //
+// You should have received a copy of the GNU General Public License //
+// along with this program; if not, write to the Free Software //
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
+// ------------------------------------------------------------------------ //
+// @package admin_header.php
+// @author Dirk Herrmann <al...@si...>
+// @version $Id$
+
+require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php';
+require_once XOOPS_ROOT_PATH . '/include/cp_functions.php';
+require_once XOOPS_ROOT_PATH . '/include/cp_header.php';
+
+global $module_handler, $xoopsModule;
+$moduleInfo = $module_handler->get($xoopsModule->getVar('mid'));
+$module_name = $xoopsModule->getVar("dirname");
+include_once XOOPS_ROOT_PATH.'/modules/'.$module_name.'/include/function.php';
+
+
+if ( Info_checkXoopsVersion("2.6.0") ) {
+ // XOOPS ab 2.6.0
+ $xoops = Xoops::getInstance();
+ XoopsLoad::load('system', 'system');
+ $indexAdmin = new XoopsModuleAdmin();
+} else {
+ if ( !Info_checkModuleAdmin() ) {
+ redirect_header("../../../admin.php", 5, _AM_INFO_MODULEADMIN_MISSING, false);
+ }
+ $pathIcon16 = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16');
+ $pathIcon32 = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32');
+ $indexAdmin = new ModuleAdmin();
+}
+
+include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
+include_once XOOPS_ROOT_PATH.'/modules/'.$module_name.'/class/infotree.php';
+include_once XOOPS_ROOT_PATH.'/modules/'.$module_name.'/class/info.php';
+include_once XOOPS_ROOT_PATH.'/modules/'.$module_name.'/class/category.php';
+
+
+$info_handler = new InfoInfoHandler($xoopsDB,$module_name);
+$infowait_handler = new InfoInfoHandler($xoopsDB,$module_name . "_bak");
+$cat_handler = new InfoCategoryHandler($xoopsDB,$module_name);
+$info_tree = new InfoTree($xoopsDB->prefix($module_name), 'info_id', 'parent_id');
+
+$myts = MyTextSanitizer::getInstance();
+?>
\ No newline at end of file
Property changes on: XoopsModules/dh-info/trunk/info/admin/admin_header.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/dh-info/trunk/info/admin/admin_permission.php
===================================================================
--- XoopsModules/dh-info/trunk/info/admin/admin_permission.php (rev 0)
+++ XoopsModules/dh-info/trunk/info/admin/admin_permission.php 2014-04-06 07:05:59 UTC (rev 12424)
@@ -0,0 +1,58 @@
+<?php
+// ------------------------------------------------------------------------ //
+// XOOPS - PHP Content Management System //
+// Copyright (c) 2000 xoops.org //
+// <http://www.xoops.org/> //
+// ------------------------------------------------------------------------ //
+// This program is free software; you can redistribute it and/or modify //
+// it under the terms of the GNU General Public License as published by //
+// the Free Software Foundation; either version 2 of the License, or //
+// (at your option) any later version. //
+// //
+// You may not change or alter any portion of this comment or credits //
+// of supporting developers from this source code or any supporting //
+// source code which is considered copyrighted (c) material of the //
+// original comment or credit authors. //
+// //
+// This program is distributed in the hope that it will be useful, //
+// but WITHOUT ANY WARRANTY; without even the implied warranty of //
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
+// GNU General Public License for more details. //
+// //
+// You should have received a copy of the GNU General Public License //
+// along with this program; if not, write to the Free Software //
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
+// ------------------------------------------------------------------------ //
+// @package admin_permission.php
+// @author Dirk Herrmann <al...@si...>
+// @version $Id$
+
+include "admin_header.php";
+
+include_once XOOPS_ROOT_PATH.'/class/xoopsform/grouppermform.php';
+xoops_cp_header();
+echo $indexAdmin->addNavigation('admin_permission.php');
+
+$form = new XoopsGroupPermForm(_AM_INFO_PERMISSIONS, $xoopsModule->mid(), _CON_INFO_PERMNAME, '', '/admin/admin_permission.php', false);
+$form->addItem(_CON_INFO_CANCREATE, _AM_INFO_CANCREATE, 0);
+$form->addItem(_CON_INFO_CANUPDATE, _AM_INFO_CANUPDATE, 0);
+
+$form->addItem(_CON_INFO_ALLCANUPDATE_CAT, _AM_INFO_CANUPDATE_CAT, _CON_INFO_CANCREATE);
+$form->addItem(_CON_INFO_ALLCANUPDATE_POSITION, _AM_INFO_CANUPDATE_POSITION, _CON_INFO_CANCREATE);
+$form->addItem(_CON_INFO_ALLCANUPDATE_GROUPS, _AM_INFO_CANUPDATE_GROUPS, _CON_INFO_CANCREATE);
+$form->addItem(_CON_INFO_ALLCANUPDATE_SITEART, _AM_INFO_CANUPDATE_SITEART, _CON_INFO_CANCREATE);
+$form->addItem(_CON_INFO_ALLCANUPDATE_SITEFULL, _AM_INFO_CANUPDATE_SITEFULL, _CON_INFO_CANCREATE);
+$form->addItem(_CON_INFO_ALLCANUPDATE_HTML, _AM_INFO_CANALLOWHTML, _CON_INFO_CANCREATE);
+
+$form->addItem(_CON_INFO_CANUPDATE_CAT, _AM_INFO_CANUPDATE_CAT, _CON_INFO_CANUPDATE);
+$form->addItem(_CON_INFO_CANUPDATE_POSITION, _AM_INFO_CANUPDATE_POSITION, _CON_INFO_CANUPDATE);
+$form->addItem(_CON_INFO_CANUPDATE_GROUPS, _AM_INFO_CANUPDATE_GROUPS, _CON_INFO_CANUPDATE);
+$form->addItem(_CON_INFO_CANUPDATE_SITEART, _AM_INFO_CANUPDATE_SITEART, _CON_INFO_CANUPDATE);
+$form->addItem(_CON_INFO_CANUPDATE_SITEFULL, _AM_INFO_CANUPDATE_SITEFULL, _CON_INFO_CANUPDATE);
+$form->addItem(_CON_INFO_CANUPDATE_DELETE, _AM_INFO_CANDELETE, _CON_INFO_CANUPDATE);
+
+
+echo $form->render();
+unset ($form);
+xoops_cp_footer();
+?>
\ No newline at end of file
Property changes on: XoopsModules/dh-info/trunk/info/admin/admin_permission.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/dh-info/trunk/info/admin/admin_seiten.php
===================================================================
--- XoopsModules/dh-info/trunk/info/admin/admin_seiten.php (rev 0)
+++ XoopsModules/dh-info/trunk/info/admin/admin_seiten.php 2014-04-06 07:05:59 UTC (rev 12424)
@@ -0,0 +1,387 @@
+<?php
+// ------------------------------------------------------------------------ //
+// XOOPS - PHP Content Management System //
+// Copyright (c) 2000 xoops.org //
+// <http://www.xoops.org/> //
+// ------------------------------------------------------------------------ //
+// This program is free software; you can redistribute it and/or modify //
+// it under the terms of the GNU General Public License as published by //
+// the Free Software Foundation; either version 2 of the License, or //
+// (at your option) any later version. //
+// //
+// You may not change or alter any portion of this comment or credits //
+// of supporting developers from this source code or any supporting //
+// source code which is considered copyrighted (c) material of the //
+// original comment or credit authors. //
+// //
+// This program is distributed in the hope that it will be useful, //
+// but WITHOUT ANY WARRANTY; without even the implied warranty of //
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
+// GNU General Public License for more details. //
+// //
+// You should have received a copy of the GNU General Public License //
+// along with this program; if not, write to the Free Software //
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
+// ------------------------------------------------------------------------ //
+// @package admin_seiten.php
+// @author Dirk Herrmann <al...@si...>
+// @version $Id$
+
+include_once "admin_header.php";
+include_once "../include/function.php";
+
+global $xoopsUser, $indexAdmin;
+$op = info_cleanVars( $_REQUEST, 'op', 'show', 'string');
+$id = info_cleanVars( $_REQUEST, 'id', 0, 'int');
+$cat = info_cleanVars( $_REQUEST, 'cat', 1, 'int');
+$groupid = info_cleanVars( $_REQUEST, 'groupid', 0, 'int');
+$mod_isAdmin = ($xoopsUser && $xoopsUser->isAdmin()) ? true : false;
+
+$infothisgroups = (is_object($xoopsUser)) ? $xoopsUser->getGroups() : array(XOOPS_GROUP_ANONYMOUS);
+$infoperm_handler = xoops_gethandler('groupperm');
+$show_info_perm = $infoperm_handler->getItemIds('InfoPerm', $infothisgroups, $xoopsModule->getVar('mid'));
+
+xoops_load('XoopsCache');
+
+switch ($op) {
+ case "appdel":
+ if ($id > 0) {
+ $content = $infowait_handler->get($id);
+ xoops_cp_header();
+ echo $indexAdmin->addNavigation('admin_seiten.php');
+ $msg = sprintf(_INFO_INFODELETE_AENDERUNG,$content->getVar('title'));
+ $hiddens = array('op'=>'appdelok','cat'=>$cat,'id'=>$id);
+ xoops_confirm($hiddens, 'admin_seiten.php', $msg);
+ xoops_cp_footer();
+ }
+ break;
+ case "appdelok":
+ if ($id > 0) {
+ $content = $infowait_handler->get($id);
+ if ($infowait_handler->delete($content)) {
+ $key = $key = $xoopsModule->getVar('dirname') . "_" . "*";
+ clearInfoCache($key);
+ redirect_header("admin_seiten.php?op=approved", 1, _INFO_DBUPDATED);
+ } else {
+ redirect_header("admin_seiten.php?op=approved", 3, _INFO_ERRORINSERT);
+ }
+ exit();
+ }
+ break;
+ case "approved":
+ xoops_cp_header();
+ echo $indexAdmin->addNavigation('admin_seiten.php');
+ $infowait = $infowait_handler->getAll(null,array('info_id','title','edited_time','edited_user'),false,false);
+ $form = new XoopsThemeForm('', $xoopsModule->getVar('dirname')."_form_wait", XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/admin/admin_seiten.php?op=approved');
+ $form->setExtra('enctype="multipart/form-data"');
+ xoops_load('XoopsUserUtility');
+ foreach ($infowait as $t => $tc) {
+ $dellink = "<a href='admin_seiten.php?op=appdel&cat=" . $cat . "&id=".$tc['info_id']."'><img src='".$pathIcon16."/delete.png' title='"._DELETE."' alt='"._DELETE."'></a>";
+ $editlink = "<a href='admin_seiten.php?op=appedit&cat=" . $cat . "&id=".$tc['info_id']."'><img src='".$pathIcon16."/edit.png' title='"._EDIT."' alt='"._EDIT."'></a>";
+ $edittime = formatTimestamp($tc['edited_time'], 'l');
+ $form->addElement(new XoopsFormLabel($editlink . " | ".$dellink . " " . $tc['title'],_INFO_LAST_EDITED . ": ". sprintf(_INFO_LAST_EDITEDTEXT,XoopsUserUtility::getUnameFromId($tc['edited_user'], 0, false),$edittime)));
+ }
+ $form->display();
+ xoops_cp_footer();
+ break;
+ case "appedit":
+ $content = $infowait_handler->get($id);
+ if ( !empty($_POST['post']) ) {
+ $content = setPost($content,$_POST);
+ $oldstoryid = $content->getVar("info_id");
+ $content->setVar( 'info_id',$content->getVar("old_id") );
+ if ($content->getVar("info_id") == 0) $content->setNew();
+ $content->setVar('edited_time',time());
+ $content->setVar('edited_user',$xoopsUser->uid());
+ if ($info_handler->insert($content)) {
+ $content->setVar( 'info_id',$oldstoryid );
+ if ($infowait_handler->delete($content)) {
+ $key = $key = $xoopsModule->getVar('dirname') . "_" . "*";
+ clearInfoCache($key);
+ redirect_header("admin_seiten.php?op=approved", 1, _INFO_DBUPDATED);
+ } else {
+ redirect_header("admin_seiten.php?op=approved", 3, _INFO_ERRORINSERT);
+ }
+ } else {
+ redirect_header("admin_seiten.php?op=approved", 3, _INFO_ERRORINSERT);
+ }
+ exit();
+ } else {
+ xoops_cp_header();
+ echo $indexAdmin->addNavigation('admin_seiten.php');
+ $op = "appedit";
+ include_once "../include/form.php";
+ xoops_cp_footer();
+ }
+ break;
+ case "delete":
+ if ($id > 0) {
+ $content = $info_handler->get($id);
+ xoops_cp_header();
+ echo $indexAdmin->addNavigation('admin_seiten.php');
+ $msg = _INFO_SETDELETE . "<br /><br />".sprintf(_INFO_INFODELETE_FRAGE,$content->getVar('title'));
+ $hiddens = array('op'=>'info_delete','cat'=>$cat,'id'=>$id);
+ xoops_confirm($hiddens, 'admin_seiten.php', $msg);
+ xoops_cp_footer();
+ }
+ break;
+ case "info_delete":
+ if ($id > 0) {
+ $content = $info_handler->get($id);
+ if ($info_handler->delete($content)) {
+ $key = $key = $xoopsModule->getVar('dirname') . "_" . "*";
+ clearInfoCache($key);
+ redirect_header("admin_seiten.php?cat=" . $cat, 1, _INFO_DBUPDATED);
+ } else {
+ redirect_header("admin_seiten.php?cat=" . $cat, 3, _INFO_ERRORINSERT);
+ }
+ exit();
+ }
+ break;
+ case "delhp":
+ if ($id > 0) {
+ $content = $info_handler->get($id);
+ xoops_cp_header();
+ echo $indexAdmin->addNavigation('admin_seiten.php');
+ $msg = sprintf(_AM_INFO_SITEDEL_HP,$content->getVar('title'));
+ $hiddens = array('op'=>'info_delhp','cat'=>$cat,'id'=>$id);
+ xoops_confirm($hiddens, 'admin_seiten.php', $msg);
+ xoops_cp_footer();
+ }
+ break;
+ case "info_delhp":
+ if ($id > 0) {
+ if ($info_handler->del_startpage($id)) {
+ $key = $key = $xoopsModule->getVar('dirname') . "_" . "*";
+ clearInfoCache($key);
+ redirect_header("admin_seiten.php?cat=" . $cat, 1, _INFO_DBUPDATED);
+ } else {
+ redirect_header("admin_seiten.php?cat=" . $cat, 3, _INFO_ERRORINSERT);
+ }
+ exit();
+ }
+ break;
+ case "edit":
+ $content = $info_handler->get($id);
+ if (isset($_POST['post'])) {
+ $content->setVar('edited_time',time());
+ if (is_object($xoopsUser)) {
+ $content->setVar('edited_user',$xoopsUser->uid());
+ } else {
+ $content->setVar('edited_user','0');
+ }
+ if (!empty($_POST)) {
+ $content = setPost($content,$_POST);
+ }
+
+ if ($info_handler->insert($content)) {
+ $key = $key = $xoopsModule->getVar('dirname') . "_" . "*";
+ clearInfoCache($key);
+ redirect_header("admin_seiten.php?cat=" . $cat, 1, _INFO_DBUPDATED);
+ } else {
+ redirect_header("admin_seiten.php?cat=" . $cat, 3, _INFO_ERRORINSERT);
+ }
+ exit();
+ } else {
+ xoops_cp_header();
+ echo $indexAdmin->addNavigation('admin_seiten.php');
+ $indexAdmin->addItemButton(_MI_INFO_VIEWSITE, 'admin_seiten.php?cat='.$cat, $icon = 'index');
+ echo $indexAdmin->renderButton();
+ $ret = 0;
+ include_once "../include/form.php";
+ xoops_cp_footer();
+ }
+ break;
+ case "update":
+ if (isset($_POST['id'])) {
+ $id = $_POST['id'];
+ $parent_id = isset($_POST['parent_id']) ? $_POST['parent_id'] : array();
+ $blockid = $_POST['blockid'];
+ $visible = $_POST['visible'];
+ $title = $_POST['title'];
+ $hp = (isset($_POST['hp'][0])) ? intval($_POST['hp']) : 0;
+ $fp = (isset($_POST['fp'][0])) ? intval($_POST['fp'][0]) : 0;
+ $nocomments = $_POST['nocomments'];
+ $submenu = $_POST['submenu'];
+ foreach ($id as $storyid) {
+ if (intval($storyid) > 0) {
+ $fpp = ($storyid==$fp) ? 1:0;
+ if ($fpp==1) {
+ $sql="UPDATE ".$xoopsDB->prefix($xoopsModule->getVar('dirname'))." SET frontpage=0 WHERE frontpage>0";
+ $result=$xoopsDB->query($sql);
+ $key = $xoopsModule->getVar("dirname") . "_" . "startpage";
+ $data = array($storyid,$cat,$parent_id[$storyid],$title[$storyid]);
+ XoopsCache::write($key, $data);
+ }
+ if (!isset($parent_id[$storyid])) $parent_id[$storyid] = 0;
+ $sql="UPDATE ".$xoopsDB->prefix($xoopsModule->getVar('dirname'))." SET ";
+ $sql.="parent_id=" . intval($parent_id[$storyid]) . ",";
+ $sql.="blockid=".intval($blockid[$storyid]).",";
+ $sql.="visible=".intval($visible[$storyid]).",";
+ $sql.="cat=".$cat.",";
+ $sql.="nocomments=".intval($nocomments[$storyid]).",";
+ $sql.="submenu=".intval($submenu[$storyid]).",";
+ $sql.="frontpage=".$fpp."";
+ $sql.=" WHERE info_id='".intval($storyid)."'";
+ if ( !$result = $xoopsDB->queryF($sql) ) {
+ echo _INFO_ERRORINSERT."<br />[ ".$sql." ]<hr>";
+ }
+ }
+ }
+ $key = $key = $xoopsModule->getVar('dirname') . "_" . "*";
+ clearInfoCache($key);
+ redirect_header("admin_seiten.php?op=show&cat=$cat",1,_INFO_DBUPDATED);
+ exit();
+ } else {
+ redirect_header("admin_seiten.php?cat=op=show&$cat",2,_TAKINGBACK);
+ exit();
+ }
+ break;
+ default:
+ case "show":
+ xoops_cp_header();
+ $content = $info_handler->get($id);
+ echo $indexAdmin->addNavigation('admin_seiten.php?op=show');
+ $indexAdmin->addItemButton(_INFO_ADDCONTENT, 'admin_seiten.php?op=edit&cat='.$cat, $icon = 'add');
+ echo $indexAdmin->renderButton();
+ $sseite = _AM_HP_SEITE . " ";
+ $startpage = $info_handler->read_startpage();
+ if (is_array($startpage)) {
+ $sseite .= "<a href=\"admin_seiten.php?op=delhp&cat=" . $cat . "&id=" . $startpage['0'] . "\">" . $startpage['1'] . "</a>";
+ } else {
+ $sseite .= _AM_HP_SEITE_NODEF;
+ }
+ echo $sseite;
+ $form = new XoopsThemeForm('', $xoopsModule->getVar('dirname')."_form_groupcat", XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/admin/admin_seiten.php?op=show');
+ $form->setExtra('enctype="multipart/form-data"');
+ $option_tray = new XoopsFormElementTray('','');
+ $sql="SELECT cat_id,title FROM ".$xoopsDB->prefix($xoopsModule->getVar('dirname')."_cat")." ORDER BY title ASC";
+ $result=$xoopsDB->query($sql);
+ $blist=array();
+ if ($result) {
+ while($myrow = $xoopsDB->fetcharray($result)) {
+ $blist[$myrow['cat_id']] = $myrow['title'];
+ }
+ }
+ $block_select = new XoopsFormSelect(_INFO_HOMEPAGE, "cat",$cat);
+ $block_select->addOptionArray($blist);
+ $block_select->setextra('onchange="document.forms.'.$xoopsModule->getVar('dirname')."_form_groupcat".'.submit()"');
+ $option_tray->addElement($block_select);
+ $group_select = new XoopsFormSelectGroup(_INFO_AM_GROUP, 'groupid', true, $groupid, 1, false);
+ $group_select->addOptionArray(array(0=>_ALL));
+ $group_select->setextra('onchange="document.forms.'.$xoopsModule->getVar('dirname')."_form_groupcat".'.submit()"');
+ $option_tray->addElement($group_select);
+ $submit = new XoopsFormButton('', 'post', _SUBMIT, 'submit');
+ $option_tray->addElement($submit);
+ $form->addElement($option_tray);
+ $form->display();
+ echo "<form action='admin_seiten.php' method='post'>";
+ echo "<input type='hidden' name='op' value='update'>";
+
+ echo "<table border='1' cellpadding='0' cellspacing='1' width='100%' class='outer'>";
+ echo "<tr class='odd'>";
+ echo "<td width=\"1%\" nowrap><b>"._INFO_FRONTPAGE."</b></td>";
+ echo "<td width=\"1%\" nowrap><b>"._INFO_POSITION."</b></td>";
+ echo "<td width=\"93%\" nowrap><b>"._INFO_LINKNAME."</b></td>";
+ echo "<td width=\"1%\" nowrap><b>"._INFO_LINKID."</b></td>";
+ echo "<td width=\"1%\" nowrap><b>"._INFO_VISIBLE."</b></td>";
+ echo "<td width=\"1%\" nowrap><b>"._INFO_SUBMENU."</b></td>";
+ echo "<td width=\"1%\" nowrap><b>"._COMMENTS."</b></td>";
+ echo "<td width=\"1%\" nowrap><b>"._INFO_ACTION."</b></td></tr>";
+ echo "</tr>";
+ $info = show_list(0, $groupid, $cat, $id);
+ foreach ( $info as $z => $tcontent)
+ {
+ echo "<tr class='odd'>";
+ echo "<td>";
+ if (in_array($tcontent['link'],array(0,1,4,5))) {
+ $check = ($tcontent['frontpage'] == 1) ? "checked='checked'" : "";
+ echo "<input type='radio' name='fp[]' value='".$tcontent['info_id']."' ".$check." />";
+ } else {
+ echo " ";
+ }
+
+ echo "</td><td>";
+ $info_tree->makeMySelBox('title', "blockid", $tcontent['parent_id'], 1, "parent_id[".$tcontent['info_id']."]", '', ' AND cat='.$cat." AND info_id<>".$tcontent['info_id']);
+ echo "</td><td>";
+ $title = $myts->displayTarea($tcontent['title'], 0, 0, 0);
+ echo "<input type='hidden' name='title[".$tcontent['info_id']."]' value='" . $title . "' />";
+ if ($tcontent['st'] == 2 || $tcontent['st'] == 0) echo '<font color="red">'._MI_INFO_GESPERRT.'</font> ';
+ if ($tcontent['visible'] == 0 && $tcontent['submenu'] == 0) echo '<font color="red">'._AM_INFO_INAKTIVE.'</font> ';
+ if ($tcontent['link'] == 3) { //kategorie
+ echo "<b>".$title."</b>";
+ } else {
+ echo "<a href='".XOOPS_URL."/modules/".$xoopsModule->dirname()."/index.php?content=".$tcontent['info_id']."'>".$title."</a>";
+ }
+ echo "</td><td>";
+ echo "<input type='hidden' name='id[".$tcontent['info_id']."]' value='".$tcontent['info_id']."' /><input type='text' name='blockid[".$tcontent['info_id']."]' size='5' maxlength='5' value='".$tcontent['blockid']."'/>";
+ echo "</td>";
+ $check1 = "selected='selected'";
+ $check2 = "";
+ if ($tcontent['visible'] == '1') {
+ $check1 = "";
+ $check2 = "selected='selected'";
+ }
+ if ($tcontent['nocomments'] == '1') {
+ $check4 = "selected='selected'";
+ $check5 = "";
+ } else {
+ $check4 = "";
+ $check5 = "selected='selected'";
+ }
+ if ($tcontent['submenu'] == '0') {
+ $check6 = "selected='selected'";
+ $check7 = "";
+ } else {
+ $check6 = "";
+ $check7 = "selected='selected'";
+ }
+ echo "<td width=\"1%\" nowrap><select name='visible[".$tcontent['info_id']."]'><option value='0' ".$check1." />"._NO."</option><option value='1' ".$check2." />"._YES."</option></select></td>";
+ echo "<td width=\"1%\" nowrap> ";
+ if ($tcontent['link'] != 3) {
+ echo "<select name='submenu[".$tcontent['info_id']."]'><option value='0' ".$check5." />"._NO."</option><option value='1' ".$check7." />"._YES."</option></select>";
+ } else {
+ echo "<input type=\"hidden\" name=\"submenu[".$tcontent['info_id']."]\" value=\"".$tcontent['submenu']."\">";
+ }
+ echo "</td>";
+ echo "<td width=\"1%\" nowrap> ";
+ if ($tcontent['link'] == 0 || $tcontent['link'] == 4 || $tcontent['link'] == 5) {
+ echo "<select name='nocomments[".$tcontent['info_id']."]'><option value='1' ".$check4." />"._NO."</option><option value='0' ".$check5." />"._YES."</option></select>";
+ } else {
+ echo "<input type='hidden' name='nocomments[".$tcontent['info_id']."]' value='".$tcontent['nocomments']."'>";
+ }
+ echo "</td>";
+ echo "<td width=\"1%\" nowrap><a href='admin_seiten.php?op=edit&cat=$cat&id=".$tcontent['info_id']."'><img src='".$pathIcon16."/edit.png' title='"._EDIT."' alt='"._EDIT."'></a>";
+ echo " | <a href='admin_seiten.php?op=delete&cat=$cat&id=".$tcontent['info_id']."'><img src='".$pathIcon16."/delete.png' title='"._DELETE."' alt='"._DELETE."'></a></td></tr>";
+ unset($tcontent);
+ echo "</tr>";
+ }
+ echo "</table>";
+ echo " <input type='hidden' name='op' value='update' />
+ <input type='hidden' name='cat' value='".$cat."' />
+ <input type='submit' name='start' value="._SUBMIT." />
+ ";
+
+ echo "</form>";
+ xoops_cp_footer();
+ break;
+}
+
+function show_list($cat=0, $groupid=0, $cat=0, $aktuell=0)
+{
+ global $info_tree;
+ $infolist = $info_tree->getAllChild(0, 'blockid', array(), " AND cat=".$cat." AND info_id<>".$aktuell);
+
+ $info=array();
+ foreach ( $infolist as $s => $t)
+ {
+ if ($t['cat'] != $cat) continue;
+ $groups = explode(",",$t['visible_group']);
+ if ( $groupid == 0 )
+ $info[$s] = $t;
+ else if (in_array($groupid,$groups)) $info[$s] = $t;
+ }
+ return $info;
+}
+
+?>
Property changes on: XoopsModules/dh-info/trunk/info/admin/admin_seiten.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/dh-info/trunk/info/admin/index.html
===================================================================
--- XoopsModules/dh-info/trunk/info/admin/index.html (rev 0)
+++ XoopsModules/dh-info/trunk/info/admin/index.html 2014-04-06 07:05:59 UTC (rev 12424)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/dh-info/trunk/info/admin/index.php
===================================================================
--- XoopsModules/dh-info/trunk/info/admin/index.php (rev 0)
+++ XoopsModules/dh-info/trunk/info/admin/index.php 2014-04-06 07:05:59 UTC (rev 12424)
@@ -0,0 +1,48 @@
+<?php
+// ------------------------------------------------------------------------ //
+// XOOPS - PHP Content Management System //
+// Copyright (c) 2000 xoops.org //
+// <http://www.xoops.org/> //
+// ------------------------------------------------------------------------ //
+// This program is free software; you can redistribute it and/or modify //
+// it under the terms of the GNU General Public License as published by //
+// the Free Software Foundation; either version 2 of the License, or //
+// (at your option) any later version. //
+// //
+// You may not change or alter any portion of this comment or credits //
+// of supporting developers from this source code or any supporting //
+// source code which is considered copyrighted (c) material of the //
+// original comment or credit authors. //
+// //
+// This program is distributed in the hope that it will be useful, //
+// but WITHOUT ANY WARRANTY; without even the implied warranty of //
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
+// GNU General Public License for more details. //
+// //
+// You should have received a copy of the GNU General Public License //
+// along with this program; if not, write to the Free Software //
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
+// ------------------------------------------------------------------------ //
+// @package index.php
+// @author Dirk Herrmann <al...@si...>
+// @version $Id$
+
+include_once "admin_header.php";
+xoops_cp_header();
+
+$anz_cat = $cat_handler->getCount();
+$anz_site = $info_handler->getCount();
+$wait_site = $infowait_handler->getCount();
+
+$indexAdmin->addInfoBox(_INFO_ADMINTITLE) ;
+
+$indexAdmin->addInfoBoxLine(_INFO_ADMINTITLE, "<infotext>" . sprintf(_AM_INFO_INFOBOX_CAT,$anz_cat) ."</infotext>") ;
+$indexAdmin->addInfoBoxLine(_INFO_ADMINTITLE, "<infotext>" . sprintf(_AM_INFO_INFOBOX_SITE,$anz_site) ."</infotext>") ;
+$indexAdmin->addInfoBoxLine(_INFO_ADMINTITLE, "<infotext></infotext>") ;
+$indexAdmin->addInfoBoxLine(_INFO_ADMINTITLE, "<infotext>" . _AM_INFO_INFOBOX_WAITSITE ."</infotext>", $wait_site, 'Red') ;
+
+echo $indexAdmin->addNavigation('index.php');
+echo $indexAdmin->renderIndex();
+
+xoops_cp_footer();
+?>
Property changes on: XoopsModules/dh-info/trunk/info/admin/index.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/dh-info/trunk/info/admin/menu.php
===================================================================
--- XoopsModules/dh-info/trunk/info/admin/menu.php (rev 0)
+++ XoopsModules/dh-info/trunk/info/admin/menu.php 2014-04-06 07:05:59 UTC (rev 12424)
@@ -0,0 +1,69 @@
+<?php
+// ------------------------------------------------------------------------ //
+// XOOPS - PHP Content Management System //
+// Copyright (c) 2000 xoops.org //
+// <http://www.xoops.org/> //
+// ------------------------------------------------------------------------ //
+// This program is free software; you can redistribute it and/or modify //
+// it under the terms of the GNU General Public License as published by //
+// the Free Software Foundation; either version 2 of the License, or //
+// (at your option) any later version. //
+// //
+// You may not change or alter any portion of this comment or credits //
+// of supporting developers from this source code or any supporting //
+// source code which is considered copyrighted (c) material of the //
+// original comment or credit authors. //
+// //
+// This program is distributed in the hope that it will be useful, //
+// but WITHOUT ANY WARRANTY; without even the implied warranty of //
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
+// GNU General Public License for more details. //
+// //
+// You should have received a copy of the GNU General Public License //
+// along with this program; if not, write to the Free Software //
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
+// ------------------------------------------------------------------------ //
+// @package menu.php
+// @author Dirk Herrmann <al...@si...>
+// @version $Id$
+
+$module_name = basename( dirname(dirname( __FILE__ ))) ;
+$module_handler = xoops_gethandler('module');
+$xoopsModule = XoopsModule::getByDirname($module_name);
+$moduleInfo = $module_handler->get($xoopsModule->getVar('mid'));
+$pathIcon32 = $moduleInfo->getInfo('icons32');
+
+include_once dirname(dirname(__FILE__))."/include/constants.php";
+include_once dirname(dirname(__FILE__))."/class/info.php";
+$infowait_handler = new InfoInfoHandler($GLOBALS["xoopsDB"],$module_name . "_bak");
+$wait_site = $infowait_handler->getCount();
+
+$adminmenu = array();
+$i=0;
+$adminmenu[$i]['title'] = _MI_INFO_INDEX;
+$adminmenu[$i]['link'] = "admin/index.php";
+$adminmenu[$i++]['icon'] = '../../'.$pathIcon32.'/home.png' ;
+
+
+$adminmenu[$i]['title'] = _MI_INFO_ADMENU2;
+$adminmenu[$i]['link'] = "admin/admin_categorie.php";
+$adminmenu[$i++]['icon'] = '../../'.$pathIcon32.'/category.png';
+
+$adminmenu[$i]['title'] = _MI_INFO_ADMENU3;
+$adminmenu[$i]['link'] = "admin/admin_seiten.php";
+$adminmenu[$i++]['icon'] = '../../'.$pathIcon32.'/view_detailed.png';
+
+$adminmenu[$i]['title'] = "(". $wait_site .") " . _MI_INFO_ADMENU5;
+$adminmenu[$i]['link'] = "admin/admin_seiten.php?op=approved";
+$adminmenu[$i++]['icon'] = '../../'.$pathIcon32.'/manage.png';
+
+$adminmenu[$i]['title'] = _MI_INFO_ADMENU4;
+$adminmenu[$i]['link'] = "admin/admin_permission.php";
+$adminmenu[$i++]['icon'] = '../../'.$pathIcon32.'/permissions.png';
+
+$adminmenu[$i]['title'] = _MI_INFO_ADMENU_ABOUT;
+$adminmenu[$i]['link'] = "admin/about.php";
+$adminmenu[$i++]['icon'] = '../../'.$pathIcon32.'/about.png';
+
+unset($i);
+?>
\ No newline at end of file
Property changes on: XoopsModules/dh-info/trunk/info/admin/menu.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/dh-info/trunk/info/blocks/index.html
===================================================================
--- XoopsModules/dh-info/trunk/info/blocks/index.html (rev 0)
+++ XoopsModules/dh-info/trunk/info/blocks/index.html 2014-04-06 07:05:59 UTC (rev 12424)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/dh-info/trunk/info/blocks/info_freiblock.php
===================================================================
--- XoopsModules/dh-info/trunk/info/blocks/info_freiblock.php (rev 0)
+++ XoopsModules/dh-info/trunk/info/blocks/info_freiblock.php 2014-04-06 07:05:59 UTC (rev 12424)
@@ -0,0 +1,117 @@
+<?php
+// ------------------------------------------------------------------------ //
+// XOOPS - PHP Content Management System //
+// Copyright (c) 2000 xoops.org //
+// <http://www.xoops.org/> //
+// ------------------------------------------------------------------------ //
+// This program is free software; you can redistribute it and/or modify //
+// it under the terms of the GNU General Public License as published by //
+// the Free Software Foundation; either version 2 of the License, or //
+// (at your option) any later version. //
+// //
+// You may not change or alter any portion of this comment or credits //
+// of supporting developers from this source code or any supporting //
+// source code which is considered copyrighted (c) material of the //
+// original comment or credit authors. //
+// //
+// This program is distributed in the hope that it will be useful, //
+// but WITHOUT ANY WARRANTY; without even the implied warranty of //
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
+// GNU General Public License for more details. //
+// //
+// You should have received a copy of the GNU General Public License //
+// along with this program; if not, write to the Free Software //
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
+// ------------------------------------------------------------------------ //
+// @package info_freiblock.php
+// @author Dirk Herrmann <al...@si...>
+// @version $Id$
+
+
+if( ! defined( 'XOOPS_ROOT_PATH' ) ) die("XOOPS_ROOT_PATH not defined!");
+
+if (!function_exists("info_freiblock_show"))
+{
+
+ function info_freiblock_show($options)
+ {
+ global $xoopsDB,$xoopsUser;
+ $myts = MyTextSanitizer::getInstance();
+ include_once XOOPS_ROOT_PATH."/modules/".$options[0]."/include/constants.php";
+ $block = array();
+ $result = $xoopsDB->query("SELECT * FROM ".$xoopsDB->prefix($options[0])." WHERE info_id=".$options[1]);
+ $row = $xoopsDB->fetchArray($result);
+ $text = trim($row['text']);
+ if (intval($row['info_id']) != 0) {
+ $xoopsOption['template_main'] = $options[0].'_startblock.html';
+ if ($row['link'] == 6) {
+ ob_start();
+ echo eval($text);
+ $text = ob_get_contents();
+ ob_end_clean();
+ $row['nohtml'] = 0;
+ }
+ $html = (intval($row['nohtml']) == 1) ? 0 : 1;
+ $smiley = (intval($row['nosmiley']) == 1) ? 0 : 1;
+ $breaks = ($html == 1) ? 0 : 1;
+ if (intval($row['link']) == 4) {
+ if (substr($row['address'],"/",0,1) || substr($row['address'],"\\",0,1)) $row['address']=substr($address,1);
+ $file = XOOPS_ROOT_PATH."/".$row['address'];
+ if (file_exists($file)) {
+ ob_start();
+ include($file);
+ $file = ob_get_contents();
+ ob_end_clean();
+ $text=$file;
+ }
+ } elseif (intval($row['link']) == 5) {
+ $iframe=unserialize($row['frame']);
+ if (!isset($iframe['width']) || $iframe['width']<1 || $iframe['width']>100) $iframe['width']=100;
+ $text.= "<iframe width='".$iframe['width']."%' height='".$iframe['height']."px' align='".$iframe['align']."' name='".$row['title']."' scrolling='auto' frameborder='".$iframe['border']."' src='".$row['address']."'></iframe>";
+ $html = 1;
+ $breaks = 0;
+ }
+ $text = str_replace('{X_XOOPSURL}', XOOPS_URL.'/', $text);
+ $text = str_replace('{X_SITEURL}', XOOPS_URL . '/', $text);
+ if (is_object($xoopsUser)) {
+ $text = str_replace('{X_XOOPSUSER}', $xoopsUser->getVar('uname'), $text);
+ $text = str_replace('{X_XOOPSUSERID}', $xoopsUser->getVar('uid'), $text);
+ } else {
+ $text = str_replace('{X_XOOPSUSER}',_GUESTS, $text);
+ $text = str_replace('{X_XOOPSUSERID}', '0', $text);
+ }
+ if ( trim($text) != '' ) {
+ $text = str_replace('<div style="page-break-after: always;"><span style="display: none;"> </span></div>','[pagebreak]',$text);
+ $infotext = explode("[pagebreak]", $text);
+ $info_pages = count($infotext);
+ if ($info_pages > 1) $text = $infotext[0];
+ }
+ $text = $myts->displayTarea($text, $html, $smiley, 1, 1, $breaks);
+ $block['content'] = $text;
+
+ $block['id'] = $options[1];
+ }
+ return $block;
+ }
+}
+
+if (!function_exists("info_freiblock_edit")) {
+ function info_freiblock_edit($options) {
+ global $xoopsDB;
+ $module_name = $options[0];
+ $result=$xoopsDB->queryF("SELECT info_id,title FROM ".$xoopsDB->prefix($module_name)." WHERE link !=1 && link !=2 && link !=3 && link !=4");
+ if ($result) {
+ $form = "" . _INFO_BL_OPTION . " ";
+ $form .= "<input type='hidden' name='options[0]' value='".$module_name."'>";
+ $form .= "<select name='options[1]' size='1'>";
+ while ($row=$xoopsDB->fetcharray($result)) {
+ $form .= "<option value='".$row['info_id']."'";
+ if ($options[1] == $row['info_id']) $form .= " selected";
+ $form .="> " . $row['title'] . " </option>";
+ }
+ $form .= "</select>";
+ return $form;
+ }
+ }
+}
+?>
\ No newline at end of file
Property changes on: XoopsModules/dh-info/trunk/info/blocks/info_freiblock.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/dh-info/trunk/info/blocks/info_navigation.php
===================================================================
--- XoopsModules/dh-info/trunk/info/blocks/info_navigation.php (rev 0)
+++ XoopsModules/dh-info/trunk/info/blocks/info_navigation.php 2014-04-06 07:05:59 UTC (rev 12424)
@@ -0,0 +1,157 @@
+<?php
+// ------------------------------------------------------------------------ //
+// XOOPS - PHP Content Management System //
+// Copyright (c) 2000 xoops.org //
+// <http://www.xoops.org/> //
+// ------------------------------------------------------------------------ //
+// This program is free software; you can redistribute it and/or modify //
+// it under the terms of the GNU General Public License as published by //
+// the Free Software Foundation; either version 2 of the License, or //
+// (at your option) any later version. //
+// //
+// You may not change or alter any portion of this comment or credits //
+// of supporting developers from this source code or any supporting //
+// source code which is considered copyrighted (c) material of the //
+// original comment or credit authors. //
+// //
+// This program is distributed in the hope that it will be useful, //
+// but WITHOUT ANY WARRANTY; without even the implied warranty of //
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
+// GNU General Public License for more details. //
+// //
+// You should have received a copy of the GNU General Public License //
+// along with this program; if not, write to the Free Software //
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
+// ------------------------------------------------------------------------ //
+// @package info_navigation.php
+// @author Dirk Herrmann <al...@si...>
+// @version $Id$
+
+if( ! defined( 'XOOPS_ROOT_PATH' ) ) die();
+
+include_once dirname(dirname(__FILE__))."/include/function.php";
+
+if (!function_exists("info_navblock_edit")) {
+ function info_navblock_edit($options) {
+ global $xoopsDB;
+ $module_name = basename( dirname(dirname( __FILE__ ))) ;
+ $sql="SELECT cat_id,title FROM ".$xoopsDB->prefix($module_name.'_cat')." ORDER BY title";
+ $result=$xoopsDB->query($sql);
+ if ($result && $xoopsDB->getRowsNum($result)>0) {
+ $form = "" . _INFO_BL_OPTION . " ";
+ $form .= "<input type='hidden' name='options[0]' value='".$module_name."'>";
+ $form .= "<select name='options[1]' size='1'>";
+ while ($row...
[truncated message content] |