From: <txm...@us...> - 2012-05-07 18:29:11
|
Revision: 9450 http://xoops.svn.sourceforge.net/xoops/?rev=9450&view=rev Author: txmodxoops Date: 2012-05-07 18:29:00 +0000 (Mon, 07 May 2012) Log Message: ----------- Updated to GUI 2.5 Added Paths: ----------- XoopsModules/imprint/releases/1.02/ XoopsModules/imprint/releases/1.02/imprint/ XoopsModules/imprint/releases/1.02/imprint/admin/ XoopsModules/imprint/releases/1.02/imprint/admin/about.php XoopsModules/imprint/releases/1.02/imprint/admin/admin_footer.php XoopsModules/imprint/releases/1.02/imprint/admin/admin_header.php XoopsModules/imprint/releases/1.02/imprint/admin/imp.php XoopsModules/imprint/releases/1.02/imprint/admin/index.html XoopsModules/imprint/releases/1.02/imprint/admin/index.php XoopsModules/imprint/releases/1.02/imprint/admin/menu.php XoopsModules/imprint/releases/1.02/imprint/blocks/ XoopsModules/imprint/releases/1.02/imprint/blocks/blocks_imp.php XoopsModules/imprint/releases/1.02/imprint/blocks/index.html XoopsModules/imprint/releases/1.02/imprint/class/ XoopsModules/imprint/releases/1.02/imprint/class/imprint_imp.php XoopsModules/imprint/releases/1.02/imprint/class/index.html XoopsModules/imprint/releases/1.02/imprint/css/ XoopsModules/imprint/releases/1.02/imprint/css/index.html XoopsModules/imprint/releases/1.02/imprint/css/style.css XoopsModules/imprint/releases/1.02/imprint/docs/ XoopsModules/imprint/releases/1.02/imprint/docs/changelog.txt XoopsModules/imprint/releases/1.02/imprint/docs/credits.txt XoopsModules/imprint/releases/1.02/imprint/docs/index.html XoopsModules/imprint/releases/1.02/imprint/docs/install.txt XoopsModules/imprint/releases/1.02/imprint/docs/lang_diff.txt XoopsModules/imprint/releases/1.02/imprint/docs/licence.txt XoopsModules/imprint/releases/1.02/imprint/docs/readme.txt XoopsModules/imprint/releases/1.02/imprint/header.php XoopsModules/imprint/releases/1.02/imprint/images/ XoopsModules/imprint/releases/1.02/imprint/images/16/ XoopsModules/imprint/releases/1.02/imprint/images/16/index.html XoopsModules/imprint/releases/1.02/imprint/images/32/ XoopsModules/imprint/releases/1.02/imprint/images/32/index.html XoopsModules/imprint/releases/1.02/imprint/images/bookmarks/ XoopsModules/imprint/releases/1.02/imprint/images/bookmarks/index.html XoopsModules/imprint/releases/1.02/imprint/images/icons/ XoopsModules/imprint/releases/1.02/imprint/images/icons/arrow.gif XoopsModules/imprint/releases/1.02/imprint/images/icons/index.html XoopsModules/imprint/releases/1.02/imprint/images/icons/off.png XoopsModules/imprint/releases/1.02/imprint/images/icons/on.png XoopsModules/imprint/releases/1.02/imprint/images/imprint_slogo.png XoopsModules/imprint/releases/1.02/imprint/images/index.html XoopsModules/imprint/releases/1.02/imprint/images/menu/ XoopsModules/imprint/releases/1.02/imprint/images/menu/bg.png XoopsModules/imprint/releases/1.02/imprint/images/menu/index.html XoopsModules/imprint/releases/1.02/imprint/images/menu/left_both.png XoopsModules/imprint/releases/1.02/imprint/images/menu/right_both.png XoopsModules/imprint/releases/1.02/imprint/images/society_logo.png XoopsModules/imprint/releases/1.02/imprint/images/txmodxoops_logo.png XoopsModules/imprint/releases/1.02/imprint/imp.php XoopsModules/imprint/releases/1.02/imprint/include/ XoopsModules/imprint/releases/1.02/imprint/include/config.php XoopsModules/imprint/releases/1.02/imprint/include/functions.php XoopsModules/imprint/releases/1.02/imprint/include/index.html XoopsModules/imprint/releases/1.02/imprint/include/install.php XoopsModules/imprint/releases/1.02/imprint/index.php XoopsModules/imprint/releases/1.02/imprint/js/ XoopsModules/imprint/releases/1.02/imprint/js/index.html XoopsModules/imprint/releases/1.02/imprint/js/script.js XoopsModules/imprint/releases/1.02/imprint/language/ XoopsModules/imprint/releases/1.02/imprint/language/english/ XoopsModules/imprint/releases/1.02/imprint/language/english/admin.php XoopsModules/imprint/releases/1.02/imprint/language/english/blocks.php XoopsModules/imprint/releases/1.02/imprint/language/english/help/ XoopsModules/imprint/releases/1.02/imprint/language/english/help/help.html XoopsModules/imprint/releases/1.02/imprint/language/english/help/index.html XoopsModules/imprint/releases/1.02/imprint/language/english/index.html XoopsModules/imprint/releases/1.02/imprint/language/english/main.php XoopsModules/imprint/releases/1.02/imprint/language/english/modinfo.php XoopsModules/imprint/releases/1.02/imprint/language/index.html XoopsModules/imprint/releases/1.02/imprint/sql/ XoopsModules/imprint/releases/1.02/imprint/sql/index.html XoopsModules/imprint/releases/1.02/imprint/sql/mysql.sql XoopsModules/imprint/releases/1.02/imprint/templates/ XoopsModules/imprint/releases/1.02/imprint/templates/admin/ XoopsModules/imprint/releases/1.02/imprint/templates/admin/index.html XoopsModules/imprint/releases/1.02/imprint/templates/blocks/ XoopsModules/imprint/releases/1.02/imprint/templates/blocks/imprint_imp_block_day.html XoopsModules/imprint/releases/1.02/imprint/templates/blocks/imprint_imp_block_random.html XoopsModules/imprint/releases/1.02/imprint/templates/blocks/imprint_imp_block_recent.html XoopsModules/imprint/releases/1.02/imprint/templates/blocks/index.html XoopsModules/imprint/releases/1.02/imprint/templates/imprint_footer.html XoopsModules/imprint/releases/1.02/imprint/templates/imprint_header.html XoopsModules/imprint/releases/1.02/imprint/templates/imprint_imp.html XoopsModules/imprint/releases/1.02/imprint/templates/imprint_index.html XoopsModules/imprint/releases/1.02/imprint/templates/index.html XoopsModules/imprint/releases/1.02/imprint/xoops_version.php Added: XoopsModules/imprint/releases/1.02/imprint/admin/about.php =================================================================== --- XoopsModules/imprint/releases/1.02/imprint/admin/about.php (rev 0) +++ XoopsModules/imprint/releases/1.02/imprint/admin/about.php 2012-05-07 18:29:00 UTC (rev 9450) @@ -0,0 +1,34 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * IMPRINT - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @package imprint + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.02 Mon 2012/05/07 15:11:04 : Timgno Exp $ + * **************************************************************************** + */ + +include "admin_header.php"; +xoops_cp_header(); +$aboutAdmin = new ModuleAdmin(); +echo $aboutAdmin->addNavigation("about.php"); +echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false); +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/imprint/releases/1.02/imprint/admin/admin_footer.php =================================================================== --- XoopsModules/imprint/releases/1.02/imprint/admin/admin_footer.php (rev 0) +++ XoopsModules/imprint/releases/1.02/imprint/admin/admin_footer.php 2012-05-07 18:29:00 UTC (rev 9450) @@ -0,0 +1,35 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * IMPRINT - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @package imprint + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.02 Mon 2012/05/07 15:11:04 : Timgno Exp $ + * **************************************************************************** + */ + +global $pathImageAdmin; +echo "<div align='center'><a href='http://www.xoops.org' target='_blank'> + <img src='".$pathImageAdmin."/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a></div>"; +echo "<div class='center small italic pad5'> + <strong>" . $xoopsModule->getVar('name') . "</strong> "._AM_IMPRINT_MAINTAINEDBY." + <a href='http://www.txmodxoops.org/modules/newbb' title='Visit TXMod Xoops Community' class='tooltip' rel='external'>TXMod Xoops Community</a></div>"; +xoops_cp_footer(); Added: XoopsModules/imprint/releases/1.02/imprint/admin/admin_header.php =================================================================== --- XoopsModules/imprint/releases/1.02/imprint/admin/admin_header.php (rev 0) +++ XoopsModules/imprint/releases/1.02/imprint/admin/admin_header.php 2012-05-07 18:29:00 UTC (rev 9450) @@ -0,0 +1,86 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * IMPRINT - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @package imprint + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.02 Mon 2012/05/07 15:11:04 : Timgno Exp $ + * **************************************************************************** + */ + +include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php'; +include_once XOOPS_ROOT_PATH . '/include/cp_header.php'; +include_once '../include/config.php'; +include_once '../include/functions.php'; + +$pathDir = $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin'); +$globlang = $GLOBALS['xoopsConfig']['language']; + +if ( file_exists($pathDir.'/language/'.$globlang.'/main.php')){ + include_once $pathDir.'/language/'.$globlang.'/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_IMPRINT_NOFRAMEWORKS); + xoops_cp_footer(); + //return false; +} + +$dirname = basename(dirname(dirname( __FILE__ ) )); +$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'); + +$impHandler=& xoops_getModuleHandler('imprint_imp', $dirname); +$myts =& MyTextSanitizer::getInstance(); + +if ($xoopsUser) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar( 'mid' ), $xoopsUser->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } +} 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 languages +xoops_loadLanguage('admin', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('main', $xoopsModule->getVar("dirname")); Added: XoopsModules/imprint/releases/1.02/imprint/admin/imp.php =================================================================== --- XoopsModules/imprint/releases/1.02/imprint/admin/imp.php (rev 0) +++ XoopsModules/imprint/releases/1.02/imprint/admin/imp.php 2012-05-07 18:29:00 UTC (rev 9450) @@ -0,0 +1,243 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * IMPRINT - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @package imprint + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.02 Mon 2012/05/07 15:11:04 : Timgno Exp $ + * **************************************************************************** + */ + +include "admin_header.php"; +xoops_cp_header(); +global $pathImageIcon; +// We recovered the value of the argument op in the URL$ +$op = imprint_CleanVars($_REQUEST, 'op', 'list', 'string'); + +$impAdmin = new ModuleAdmin(); +switch ($op) +{ + case "list": + default: + echo $impAdmin->addNavigation('imp.php'); + $impAdmin->addItemButton(_AM_IMPRINT_NEWIMP, 'imp.php?op=new_imp', 'add'); + echo $impAdmin->renderButton(); + $limit = $GLOBALS['xoopsModuleConfig']['adminperpage']; + $criteria = new CriteriaCompo(); + $criteria->setSort("imp_id ASC, imp_title"); + $criteria->setOrder("ASC"); + $numrows = $impHandler->getCount(); + $start = imprint_CleanVars ( $_REQUEST, 'start', 0, 'int' ); + $criteria->setStart($start); + $criteria->setLimit($limit); + $imp_arr = $impHandler->getall($criteria); + if ( $numrows > $limit ) { + include_once XOOPS_ROOT_PATH . "/class/pagenav.php"; + $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=list'); + $pagenav = $pagenav->renderNav(4); + } else { + $pagenav = ''; + } + + // View Table + if ($numrows>0) + { + echo "<table class='outer width100' cellspacing='1'> + <tr> + <th class='center width2'>"._AM_IMPRINT_IMP_ID."</th> + <th class='center'>"._AM_IMPRINT_IMP_TITLE."</th> + <th class='center'>"._AM_IMPRINT_IMP_NAME."</th> + <th class='center'>"._AM_IMPRINT_IMP_ADDRESS."</th> + <th class='center'>"._AM_IMPRINT_IMP_POSTALCODE."</th> + <th class='center'>"._AM_IMPRINT_IMP_CITY."</th> + <th class='center'>"._AM_IMPRINT_IMP_PHONE."</th> + <th class='center'>"._AM_IMPRINT_IMP_FAX."</th> + <th class='center'>"._AM_IMPRINT_IMP_SUBMITTER."</th> + <th class='center'>"._AM_IMPRINT_IMP_CREATED."</th> + <th class='center'>"._AM_IMPRINT_IMP_ONLINE."</th> + <th class='center width5'>"._AM_IMPRINT_FORMACTION."</th> + </tr>"; + + $class = "odd"; + foreach (array_keys($imp_arr) as $i) + { + echo "<tr class='".$class."'>"; + $class = ($class == "even") ? "odd" : "even"; + echo "<td class='center'>".$i."</td>"; + echo "<td class='center'>".$imp_arr[$i]->getVar("imp_title")."</td>"; + echo "<td class='center'>".$imp_arr[$i]->getVar("imp_name")."</td>"; + echo "<td class='center'>".$imp_arr[$i]->getVar("imp_address")."</td>"; + echo "<td class='center'>".$imp_arr[$i]->getVar("imp_postalcode")."</td>"; + echo "<td class='center'>".$imp_arr[$i]->getVar("imp_city")."</td>"; + echo "<td class='center'>".$imp_arr[$i]->getVar("imp_phone")."</td>"; + echo "<td class='center'>".$imp_arr[$i]->getVar("imp_fax")."</td>"; + echo "<td class='center'>".XoopsUser::getUnameFromId($imp_arr[$i]->getVar("imp_submitter"),"S")."</td>"; + echo "<td class='center'>".formatTimeStamp($imp_arr[$i]->getVar("imp_created"),"S")."</td>"; + + if( $imp_arr[$i]->getVar("imp_online") == 1 ) { + echo "<td align='center'><a href='./imp.php?op=update_online_imp&imp_id=".$imp_arr[$i]->getVar("imp_id")."&imp_online=0'><img src='".$pathImageIcon."/on.png' border='0' alt='"._AM_IMPRINT_ON."' title='"._AM_IMPRINT_ON."'></a></td>"; + } else { + echo "<td align='center'><a href='./imp.php?op=update_online_imp&imp_id=".$imp_arr[$i]->getVar("imp_id")."&imp_online=1'><img src='".$pathImageIcon."/off.png' border='0' alt='"._AM_IMPRINT_OFF."' title='"._AM_IMPRINT_OFF."'></a></td>"; + } + + echo "<td class='center width5'> + <a href='imp.php?op=edit_imp&imp_id=".$i."'><img src='".$pathImageIcon."/edit.png' alt='"._EDIT."' title='"._EDIT."'></a> + <a href='imp.php?op=delete_imp&imp_id=".$i."'><img src='".$pathImageIcon."/delete.png' alt='"._DELETE."' title='"._DELETE."'></a> + </td>"; + echo "</tr>"; + } + echo "</table><br /><br />"; + echo "<br /><div class='center'>" . $pagenav . "</div><br />"; + } else { + echo "<table class='outer width100' cellspacing='1'> + <tr> + <th class='center width2'>"._AM_IMPRINT_IMP_ID."</th> + <th class='center'>"._AM_IMPRINT_IMP_TITLE."</th> + <th class='center'>"._AM_IMPRINT_IMP_NAME."</th> + <th class='center'>"._AM_IMPRINT_IMP_ADDRESS."</th> + <th class='center'>"._AM_IMPRINT_IMP_POSTALCODE."</th> + <th class='center'>"._AM_IMPRINT_IMP_CITY."</th> + <th class='center'>"._AM_IMPRINT_IMP_PHONE."</th> + <th class='center'>"._AM_IMPRINT_IMP_FAX."</th> + <th class='center'>"._AM_IMPRINT_IMP_SUBMITTER."</th> + <th class='center'>"._AM_IMPRINT_IMP_CREATED."</th> + <th class='center'>"._AM_IMPRINT_IMP_ONLINE."</th> + <th class='center width5'>"._AM_IMPRINT_FORMACTION."</th> + </tr>"; + echo "</table><br /><br />"; + } + + break; + + case "new_imp": + echo $impAdmin->addNavigation("imp.php"); + $impAdmin->addItemButton(_AM_IMPRINT_IMPLIST, 'imp.php?op=list', 'list'); + echo $impAdmin->renderButton(); + + $obj =& $impHandler->create(); + $form = $obj->getForm(); + $form->display(); + break; + + case "save_imp": + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("imp.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if (isset($_REQUEST["imp_id"])) { + $obj =& $impHandler->get($_REQUEST["imp_id"]); + } else { + $obj =& $impHandler->create(); + } + + //Form imp_title + $obj->setVar("imp_title", $_REQUEST["imp_title"]); + //Form imp_name + $obj->setVar("imp_name", $_REQUEST["imp_name"]); + //Form imp_address + $obj->setVar("imp_address", $_REQUEST["imp_address"]); + //Form imp_postalcode + $obj->setVar("imp_postalcode", $_REQUEST["imp_postalcode"]); + //Form imp_city + $obj->setVar("imp_city", $_REQUEST["imp_city"]); + //Form imp_phone + $obj->setVar("imp_phone", $_REQUEST["imp_phone"]); + //Form imp_fax + $obj->setVar("imp_fax", $_REQUEST["imp_fax"]); + //Form imp_email + $obj->setVar("imp_email", $_REQUEST["imp_email"]); + //Form imp_image + include_once XOOPS_ROOT_PATH."/class/uploader.php"; + $uploaddir = XOOPS_UPLOAD_PATH."/imprint/images/"; + $uploader = new XoopsMediaUploader($uploaddir, $GLOBALS['xoopsModuleConfig']['mimetypes'], + $GLOBALS['xoopsModuleConfig']['maxsize'], null, null); + if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) { + $uploader->setPrefix("imp_image_") ; + $uploader->fetchMedia($_POST['xoops_upload_file'][0]); + if (!$uploader->upload()) { + $errors = $uploader->getErrors(); + redirect_header("javascript:history.go(-1)",3, $errors); + } else { + $obj->setVar("imp_image", $uploader->getSavedFileName()); + } + } else { + $obj->setVar("imp_image", $_REQUEST["imp_image"]); + } + //Form imp_title_desclaimer + $obj->setVar("imp_title_desclaimer", $_REQUEST["imp_title_desclaimer"]); + //Form imp_disclaimer + $obj->setVar("imp_disclaimer", $_REQUEST["imp_disclaimer"]); + //Form imp_submitter + $obj->setVar("imp_submitter", $_REQUEST["imp_submitter"]); + //Form imp_created + $obj->setVar("imp_created", imprint_convertDate($_REQUEST["imp_created"])); + //Form imp_online + $verif_imp_online = ($_REQUEST["imp_online"] == 1) ? "1" : "0"; + $obj->setVar("imp_online", $verif_imp_online); + + if ($impHandler->insert($obj)) { + redirect_header("imp.php?op=list", 2, _AM_IMPRINT_FORMOK); + } + + echo $obj->getHtmlErrors(); + $form =& $obj->getForm(); + $form->display(); + break; + + case "edit_imp": + echo $impAdmin->addNavigation("imp.php"); + $impAdmin->addItemButton(_AM_IMPRINT_NEWIMP, 'imp.php?op=new_imp', 'add'); + $impAdmin->addItemButton(_AM_IMPRINT_IMPLIST, 'imp.php?op=list', 'list'); + echo $impAdmin->renderButton(); + $obj = $impHandler->get($_REQUEST["imp_id"]); + $form = $obj->getForm(); + $form->display(); + break; + + case "delete_imp": + $obj =& $impHandler->get($_REQUEST["imp_id"]); + if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) { + if ( !$GLOBALS["xoopsSecurity"]->check() ) { + redirect_header("imp.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors())); + } + if ($impHandler->delete($obj)) { + redirect_header("imp.php", 3, _AM_IMPRINT_FORMDELOK); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array("ok" => 1, "imp_id" => $_REQUEST["imp_id"], "op" => "delete_imp"), $_SERVER["REQUEST_URI"], sprintf(_AM_IMPRINT_FORMSUREDEL, $obj->getVar("imp_title"))); + } + break; + + case "update_online_imp": + if (isset($_REQUEST["imp_id"])) { + $obj =& $impHandler->get($_REQUEST["imp_id"]); + } + $obj->setVar("imp_online", $_REQUEST["imp_online"]); + + if ($impHandler->insert($obj)) { + redirect_header("imp.php", 3, _AM_IMPRINT_FORMOK); + } + echo $obj->getHtmlErrors(); + break; +} +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/imprint/releases/1.02/imprint/admin/index.html =================================================================== --- XoopsModules/imprint/releases/1.02/imprint/admin/index.html (rev 0) +++ XoopsModules/imprint/releases/1.02/imprint/admin/index.html 2012-05-07 18:29:00 UTC (rev 9450) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/imprint/releases/1.02/imprint/admin/index.php =================================================================== --- XoopsModules/imprint/releases/1.02/imprint/admin/index.php (rev 0) +++ XoopsModules/imprint/releases/1.02/imprint/admin/index.php 2012-05-07 18:29:00 UTC (rev 9450) @@ -0,0 +1,53 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * IMPRINT - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @package imprint + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.02 Mon 2012/05/07 15:11:04 : Timgno Exp $ + * **************************************************************************** + */ + +include "admin_header.php"; +xoops_cp_header(); + $indexAdmin = new ModuleAdmin(); + //count "total" + $count_imp = $impHandler->getCount(); + //count "online" + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria("imp_online", 1)); + $imp_online = $impHandler->getCount($criteria); + $criteria->add(new Criteria("imp_pending", 1)); + $imp_pending = $impHandler->getCount($criteria); + unset($criteria); + + $r = '#FF0000'; // Red + $g = '#00AA00'; // Green + + $indexAdmin->addInfoBox(_AM_IMPRINT_IMP); + $indexAdmin->addInfoBoxLine(_AM_IMPRINT_IMP,_AM_IMPRINT_THEREARE_IMP, $count_imp, ($count_imp == 0) ? $r : $g); + $indexAdmin->addInfoBoxLine(_AM_IMPRINT_IMP,_AM_IMPRINT_THEREARE_IMP_ONLINE, $imp_online, ($count_imp == 0) ? $r : $g); + $indexAdmin->addInfoBoxLine(_AM_IMPRINT_IMP,_AM_IMPRINT_THEREARE_IMP_PENDING, $imp_pending, ($count_imp == 0) ? $r : $g); + + echo $indexAdmin->addNavigation("index.php") ; + echo $indexAdmin->renderIndex(); +include "admin_footer.php"; +?> \ No newline at end of file Added: XoopsModules/imprint/releases/1.02/imprint/admin/menu.php =================================================================== --- XoopsModules/imprint/releases/1.02/imprint/admin/menu.php (rev 0) +++ XoopsModules/imprint/releases/1.02/imprint/admin/menu.php 2012-05-07 18:29:00 UTC (rev 9450) @@ -0,0 +1,49 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * IMPRINT - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @package imprint + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.02 Mon 2012/05/07 15:11:04 : Timgno Exp $ + * **************************************************************************** + */ + +$dirname = basename( dirname( dirname( __FILE__ ) ) ) ; +$module_handler =& xoops_gethandler("module"); +$xoopsModule =& XoopsModule::getByDirname($dirname); +$moduleInfo =& $module_handler->get($xoopsModule->getVar("mid")); +$pathImageAdmin = $moduleInfo->getInfo("icons32"); + +$adminmenu = array(); +$i = 1; +$adminmenu[$i]["title"] = _MI_IMPRINT_ADMENU1; +$adminmenu[$i]["link"] = "admin/index.php"; +$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/home.png"; +$i++; +$adminmenu[$i]["title"] = _MI_IMPRINT_ADMENU2; +$adminmenu[$i]["link"] = "admin/imp.php"; +$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/identity.png"; +$i++; +$adminmenu[$i]["title"] = _MI_IMPRINT_ADMENU3; +$adminmenu[$i]["link"] = "admin/about.php"; +$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/about.png"; +unset( $i ); +?> \ No newline at end of file Added: XoopsModules/imprint/releases/1.02/imprint/blocks/blocks_imp.php =================================================================== --- XoopsModules/imprint/releases/1.02/imprint/blocks/blocks_imp.php (rev 0) +++ XoopsModules/imprint/releases/1.02/imprint/blocks/blocks_imp.php 2012-05-07 18:29:00 UTC (rev 9450) @@ -0,0 +1,99 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * IMPRINT - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @package imprint + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.02 Mon 2012/05/07 15:11:04 : Timgno Exp $ + * **************************************************************************** + */ + +include_once XOOPS_ROOT_PATH."/modules/imprint/include/functions.php"; + +function b_imprint_imp($options) { +include_once XOOPS_ROOT_PATH."/modules/imprint/class/imp.php"; +$myts =& MyTextSanitizer::getInstance(); + +$imp = array(); +$type_block = $options[0]; +$nb_imp = $options[1]; +$lenght_title = $options[2]; + +$impHandler =& xoops_getModuleHandler("imprint_imp", "imprint"); +$criteria = new CriteriaCompo(); +array_shift($options); +array_shift($options); +array_shift($options); + +switch ($type_block) +{ + // For the block: imp recents + case "recent": + $criteria->add(new Criteria("imp_online", 1)); + $criteria->setSort("imp_created"); + $criteria->setOrder("DESC"); + break; + // For the block: imp of today + case "day": + $criteria->add(new Criteria("imp_online", 1)); + $criteria->add(new Criteria("imp_created", strtotime(date("Y/m/d")), ">=")); + $criteria->add(new Criteria("imp_created", strtotime(date("Y/m/d"))+86400, "<=")); + $criteria->setSort("imp_created"); + $criteria->setOrder("ASC"); + break; + // For the block: imp random + case "random": + $criteria->add(new Criteria("imp_online", 1)); + $criteria->setSort("RAND()"); + break; +} + +$criteria->setLimit($nb_imp); +$imp_arr = $impHandler->getall($criteria); + foreach (array_keys($imp_arr) as $i) + { + $imp[$i]["imp_id"] = $imp_arr[$i]->getVar("imp_id"); + $imp[$i]["imp_submitter"] = $imp_arr[$i]->getVar("imp_submitter"); + $imp[$i]["imp_created"] = $imp_arr[$i]->getVar("imp_created"); + $imp[$i]["imp_online"] = $imp_arr[$i]->getVar("imp_online"); + + } +return $imp; +} + +function b_imprint_imp_edit($options) { + $form = ""._MB_IMPRINT_IMP_DISPLAY."\n"; + $form .= "<input type=\"hidden\" name=\"options[0]\" value=\"".$options[0]."\" />"; + $form .= "<input name=\"options[1]\" size=\"5\" maxlength=\"255\" value=\"".$options[1]."\" type=\"text\" /> <br />"; + $form .= ""._MB_IMPRINT_IMP_TITLELENGTH." : <input name=\"options[2]\" size=\"5\" maxlength=\"255\" value=\"".$options[2]."\" type=\"text\" /><br /><br />"; + array_shift($options); + array_shift($options); + array_shift($options); + $form .= ""._MB_IMPRINT_IMP_CATTODISPLAY."<br /><select name=\"options[]\" multiple=\"multiple\" size=\"5\">"; + $form .= "<option value=\"0\" " . (array_search(0, $options) === false ? "" : "selected=\"selected\"") . ">" ._MB_IMPRINT_IMP_ALLCAT . "</option>"; + foreach (array_keys($topic_arr) as $i) { + $form .= "<option value=\"" . $topic_arr[$i]->getVar("topic_id") . "\" " . (array_search($topic_arr[$i]->getVar("topic_id"), $options) === false ? "" : "selected=\"selected\"") . ">".$topic_arr[$i]->getVar("topic_title")."</option>"; + } + $form .= "</select>"; + + return $form; +} +?> \ No newline at end of file Added: XoopsModules/imprint/releases/1.02/imprint/blocks/index.html =================================================================== --- XoopsModules/imprint/releases/1.02/imprint/blocks/index.html (rev 0) +++ XoopsModules/imprint/releases/1.02/imprint/blocks/index.html 2012-05-07 18:29:00 UTC (rev 9450) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/imprint/releases/1.02/imprint/class/imprint_imp.php =================================================================== --- XoopsModules/imprint/releases/1.02/imprint/class/imprint_imp.php (rev 0) +++ XoopsModules/imprint/releases/1.02/imprint/class/imprint_imp.php 2012-05-07 18:29:00 UTC (rev 9450) @@ -0,0 +1,142 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * IMPRINT - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @package imprint + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.02 Mon 2012/05/07 15:11:04 : Timgno Exp $ + * **************************************************************************** + */ + +if (!defined("XOOPS_ROOT_PATH")) { + die("XOOPS root path not defined"); +} + +class imprint_imp extends XoopsObject +{ + //Constructor + function __construct() + { + $this->XoopsObject(); + $this->initVar("imp_id", XOBJ_DTYPE_INT, null, false, 8); + $this->initVar("imp_title", XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar("imp_name", XOBJ_DTYPE_TXTBOX, null, false, 155); + $this->initVar("imp_address", XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar("imp_postalcode", XOBJ_DTYPE_TXTBOX, null, false, 30); + $this->initVar("imp_city", XOBJ_DTYPE_TXTBOX, null, false, 155); + $this->initVar("imp_phone", XOBJ_DTYPE_INT, null, false, 50); + $this->initVar("imp_fax", XOBJ_DTYPE_INT, null, false, 50); + $this->initVar("imp_email", XOBJ_DTYPE_TXTBOX, null, false, 100); + $this->initVar("imp_image", XOBJ_DTYPE_TXTBOX, null, false, 155); + $this->initVar("imp_title_desclaimer", XOBJ_DTYPE_TXTBOX, null, false, 155); + $this->initVar("imp_disclaimer", XOBJ_DTYPE_TXTAREA, null, false); + $this->initVar("imp_submitter", XOBJ_DTYPE_INT, null, false, 10); + $this->initVar("imp_created", XOBJ_DTYPE_INT, null, false, 10); + $this->initVar("imp_online", XOBJ_DTYPE_INT, null, false, 1); + } + + function imprint_imp() + { + $this->__construct(); + } + + function getForm($action = false) + { + global $xoopsDB, $xoopsModuleConfig; + + if ($action === false) { + $action = $_SERVER["REQUEST_URI"]; + } + + $title = $this->isNew() ? sprintf(_AM_IMPRINT_IMP_ADD) : sprintf(_AM_IMPRINT_IMP_EDIT); + + include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); + $form = new XoopsThemeForm($title, "form", $action, "post", true); + $form->setExtra('enctype="multipart/form-data"'); + + $form->addElement(new XoopsFormText(_AM_IMPRINT_IMP_TITLE, "imp_title", 50, 255, $this->getVar("imp_title")), true); + + $form->addElement(new XoopsFormText(_AM_IMPRINT_IMP_NAME, "imp_name", 50, 255, $this->getVar("imp_name")), true); + + $form->addElement(new XoopsFormText(_AM_IMPRINT_IMP_ADDRESS, "imp_address", 50, 255, $this->getVar("imp_address")), true); + + $form->addElement(new XoopsFormText(_AM_IMPRINT_IMP_POSTALCODE, "imp_postalcode", 50, 255, $this->getVar("imp_postalcode")), true); + + $form->addElement(new XoopsFormText(_AM_IMPRINT_IMP_CITY, "imp_city", 50, 255, $this->getVar("imp_city")), true); + + $form->addElement(new XoopsFormText(_AM_IMPRINT_IMP_PHONE, "imp_phone", 50, 255, $this->getVar("imp_phone")), true); + + $form->addElement(new XoopsFormText(_AM_IMPRINT_IMP_FAX, "imp_fax", 50, 255, $this->getVar("imp_fax")), true); + + $form->addElement(new XoopsFormText(_AM_IMPRINT_IMP_EMAIL, "imp_email", 50, 255, $this->getVar("imp_email")), true); + + $imp_image = $this->getVar("imp_image") ? $this->getVar("imp_image") : 'blank.gif'; + + $uploadirectory = '/uploads/imprint/images'; + $imgtray = new XoopsFormElementTray(_AM_IMPRINT_IMP_IMAGE,'<br />'); + $imgpath = sprintf(_AM_IMPRINT_FORMIMAGE_PATH, ".".$uploadirectory."/"); + $imageselect = new XoopsFormSelect($imgpath, 'imp_image', $imp_image); + $image_array = XoopsLists :: getImgListAsArray( XOOPS_ROOT_PATH.$uploadirectory ); + foreach( $image_array as $image ) { + $imageselect->addOption("$image", $image); + } + $imageselect->setExtra( "onchange='showImgSelected(\"image1\", \"imp_image\", \"".$uploadirectory."\", \"\", \"".XOOPS_URL."\")'" ); + $imgtray->addElement($imageselect, false); + $imgtray->addElement( new XoopsFormLabel( '', "<br /><img src='".XOOPS_URL."/".$uploadirectory."/".$imp_image."' name='image1' id='image1' alt='' />" ) ); + $fileseltray = new XoopsFormElementTray('','<br />'); + $fileseltray->addElement(new XoopsFormFile(_AM_IMPRINT_FORMUPLOAD , "imp_image", $GLOBALS['xoopsModuleConfig']['maxsize']),false); + $fileseltray->addElement(new XoopsFormLabel(''), false); + $imgtray->addElement($fileseltray); + $form->addElement($imgtray); + + $form->addElement(new XoopsFormText(_AM_IMPRINT_IMP_TITLE_DESCLAIMER, "imp_title_desclaimer", 50, 255, $this->getVar("imp_title_desclaimer")), true); + + $editor_configs=array(); + $editor_configs["name"] ="imp_disclaimer"; + $editor_configs["value"] = $this->getVar("imp_disclaimer", "e"); + $editor_configs["rows"] = 10; + $editor_configs["cols"] = 80; + $editor_configs["width"] = "100%"; + $editor_configs["height"] = "400px"; + $editor_configs["editor"] = $GLOBALS["xoopsModuleConfig"]["imprint_editor"]; + $form->addElement( new XoopsFormEditor(_AM_IMPRINT_IMP_DISCLAIMER, "imp_disclaimer", $editor_configs), true ); + + $form->addElement(new XoopsFormSelectUser(_AM_IMPRINT_IMP_SUBMITTER, "imp_submitter", false, $this->getVar("imp_submitter"), 1, false), true); + $form->addElement(new XoopsFormTextDateSelect(_AM_IMPRINT_IMP_CREATED, "imp_created", "", $this->getVar("imp_created"))); + + $imp_online = $this->isNew() ? 0 : $this->getVar("imp_online"); + $check_imp_online = new XoopsFormCheckBox(_AM_IMPRINT_IMP_ONLINE, "imp_online", $imp_online); + $check_imp_online->addOption(1, " "); + $form->addElement($check_imp_online); + + $form->addElement(new XoopsFormHidden("op", "save_imp")); + $form->addElement(new XoopsFormButton("", "submit", _SUBMIT, "submit")); + return $form; + } +} +class imprintimprint_impHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + parent::__construct($db, "imprint_imp", "imprint_imp", "imp_id", "imp_title"); + } +} +?> \ No newline at end of file Added: XoopsModules/imprint/releases/1.02/imprint/class/index.html =================================================================== --- XoopsModules/imprint/releases/1.02/imprint/class/index.html (rev 0) +++ XoopsModules/imprint/releases/1.02/imprint/class/index.html 2012-05-07 18:29:00 UTC (rev 9450) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/imprint/releases/1.02/imprint/css/index.html =================================================================== --- XoopsModules/imprint/releases/1.02/imprint/css/index.html (rev 0) +++ XoopsModules/imprint/releases/1.02/imprint/css/index.html 2012-05-07 18:29:00 UTC (rev 9450) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/imprint/releases/1.02/imprint/css/style.css =================================================================== --- XoopsModules/imprint/releases/1.02/imprint/css/style.css (rev 0) +++ XoopsModules/imprint/releases/1.02/imprint/css/style.css 2012-05-07 18:29:00 UTC (rev 9450) @@ -0,0 +1,36 @@ +@charset "UTF-8"; +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * IMPRINT - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * + * 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 TXMod Xoops (Timgno) ( http://www.txmodxoops.org ) + * @license GNU GPL see License + * @package imprint + * @author TXMod Xoops (Timgno) ( su...@tx... ) + * + * Version : 1.02 Mon 2012/05/07 15:11:04 : Timgno Exp $ + * **************************************************************************** + */ + + +.box-header { + margin: 2px; + padding: 5px; + background-color: #ccc; + width: 100%; + height: 50px; +} Added: XoopsModules/imprint/releases/1.02/imprint/docs/changelog.txt =================================================================== --- XoopsModules/imprint/releases/1.02/imprint/docs/changelog.txt (rev 0) +++ XoopsModules/imprint/releases/1.02/imprint/docs/changelog.txt 2012-05-07 18:29:00 UTC (rev 9450) @@ -0,0 +1,10 @@ + +==================================== + 2012/05/07 15:11:04 Version 1.02 +==================================== + - Added admin GUI 2.5 (TXMod Xoops (Timgno)) + +==================================== + 2011/02/01 10:14:08 Version 1.01 +==================================== + - Original release imprint (TXMod Xoops (Timgno)) Added: XoopsModules/imprint/releases/1.02/imprint/docs/credits.txt =================================================================== --- XoopsModules/imprint/releases/1.02/imprint/docs/credits.txt (rev 0) +++ XoopsModules/imprint/releases/1.02/imprint/docs/credits.txt 2012-05-07 18:29:00 UTC (rev 9450) @@ -0,0 +1,4 @@ +Read Me First +============= + +Please make sure that you download the XOOPS Icon Set, and upload it to uploads/images directory \ No newline at end of file Added: XoopsModules/imprint/releases/1.02/imprint/docs/index.html =================================================================== --- XoopsModules/imprint/releases/1.02/imprint/docs/index.html (rev 0) +++ XoopsModules/imprint/releases/1.02/imprint/docs/index.html 2012-05-07 18:29:00 UTC (rev 9450) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/imprint/releases/1.02/imprint/docs/install.txt =================================================================== --- XoopsModules/imprint/releases/1.02/imprint/docs/install.txt (rev 0) +++ XoopsModules/imprint/releases/1.02/imprint/docs/install.txt 2012-05-07 18:29:00 UTC (rev 9450) @@ -0,0 +1,3 @@ +Read Me First +============= +Install this module usually in system/modules \ No newline at end of file Added: XoopsModules/imprint/releases/1.02/imprint/docs/lang_diff.txt =================================================================== --- XoopsModules/imprint/releases/1.02/imprint/docs/lang_diff.txt (rev 0) +++ XoopsModules/imprint/releases/1.02/imprint/docs/lang_diff.txt 2012-05-07 18:29:00 UTC (rev 9450) @@ -0,0 +1,3 @@ +Read Me First +============= +There aren't difference of language between v1.37 and v1.38 \ No newline at end of file Added: XoopsModules/imprint/releases/1.02/imprint/docs/licence.txt =================================================================== --- XoopsModules/imprint/releases/1.02/imprint/docs/licence.txt (rev 0) +++ XoopsModules/imprint/releases/1.02/imprint/docs/licence.txt 2012-05-07 18:29:00 UTC (rev 9450) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version,... [truncated message content] |