You can subscribe to this list here.
2012 |
Jan
|
Feb
(214) |
Mar
(139) |
Apr
(198) |
May
(187) |
Jun
(151) |
Jul
(210) |
Aug
(169) |
Sep
(58) |
Oct
(53) |
Nov
(54) |
Dec
(301) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2013 |
Jan
(348) |
Feb
(178) |
Mar
(219) |
Apr
(154) |
May
(117) |
Jun
(194) |
Jul
(61) |
Aug
(132) |
Sep
(121) |
Oct
(110) |
Nov
(11) |
Dec
(18) |
2014 |
Jan
(34) |
Feb
(50) |
Mar
(82) |
Apr
(98) |
May
(39) |
Jun
(111) |
Jul
(67) |
Aug
(36) |
Sep
(33) |
Oct
(26) |
Nov
(53) |
Dec
(44) |
2015 |
Jan
(29) |
Feb
(47) |
Mar
(25) |
Apr
(19) |
May
(23) |
Jun
(20) |
Jul
(49) |
Aug
(7) |
Sep
(10) |
Oct
(10) |
Nov
(4) |
Dec
(25) |
2016 |
Jan
(8) |
Feb
(7) |
Mar
(1) |
Apr
|
May
(3) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(7) |
Dec
(5) |
2017 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
(15) |
Jun
|
Jul
(18) |
Aug
(24) |
Sep
|
Oct
(14) |
Nov
|
Dec
|
2018 |
Jan
|
Feb
(22) |
Mar
|
Apr
(11) |
May
(1) |
Jun
(17) |
Jul
(2) |
Aug
(2) |
Sep
|
Oct
(6) |
Nov
(5) |
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
From: <be...@us...> - 2012-04-11 07:03:57
|
Revision: 9299 http://xoops.svn.sourceforge.net/xoops/?rev=9299&view=rev Author: beckmi Date: 2012-04-11 07:03:43 +0000 (Wed, 11 Apr 2012) Log Message: ----------- Updating TDMCreate to 1.38 RC Modified Paths: -------------- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/about.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/admin_footer.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/admin_header.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/building.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/includes.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/index.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/menu.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/modules.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/tables.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/constArchitecture.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/tdmcreate_modules.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/tdmcreate_tables.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_admin_about.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_admin_footer.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_admin_header.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_admin_help.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_admin_index.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_admin_language.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_admin_menu.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_admin_pages.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_admin_permissions.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_architecture.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_blocks.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_blocks_language.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_blocks_templates.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_class.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_entete.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_help_language.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_include_coms.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_include_configs.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_include_functions.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_include_install.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_include_search.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_languages.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_main_header.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_main_index.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_main_language.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_modinfo_language.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_sql.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_templates.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_templates_admin_about.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_templates_admin_help.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_templates_footer.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_templates_header.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_templates_index.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_templates_pages.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_user_header.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_user_index.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_user_pages.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_xoopsversion.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/docs/changelog.txt XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/icons/off.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/icons/on.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/include/functions.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/include/functions_const.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/arabic/help/help.html XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/arabic/modinfo.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/bulgarian/help/help.html XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/bulgarian/modinfo.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/english/admin.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/english/help/help.html XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/english/modinfo.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/french/admin.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/french/help/help.html XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/french/modinfo.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/italian/admin.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/italian/help/help.html XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/italian/modinfo.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/update language 1.37 to 1.38.txt XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/sql/mysql.sql XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/xoops_version.php Added Paths: ----------- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_css_style.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_header.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_include_jquery.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/deco/ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/deco/arrow.gif XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/deco/index.html XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/deco/loading.gif XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/deco/off.gif XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/deco/off.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/deco/on.gif XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/deco/on.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/loading.gif XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/logo.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/update language 1.1 to 1.37.txt XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/update language 1.38 to 1.39.txt Removed Paths: ------------- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/filesmanager.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/jquery.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/languages.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/tdmcreate_languages.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_about_language.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/TDMLogo.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/Test1Logo.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/ams_slogo.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/blank.gif XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/feedsLogo.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/gearthLogo.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/gearth_slogo.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/gviewLogo.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/imprintLogo.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/mytubeLogo.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/partadsLogo.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/passgenLogo.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/radiostreamLogo.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/videostreamLogo.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/xcvLogo.txt XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/xnews_slogo.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/xsitemapLogo.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/ads.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/blank.gif XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/broken.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/cat.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/contact.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/feed.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/links.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/param.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/plugin.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/radio.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/shoutbox.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/topic.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/video.png XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/include/jq.init.js XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/js/ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/arabic/help.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/templates/admin/tdmcreate_filemanager.html Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/about.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/about.php 2012-04-11 04:13:25 UTC (rev 9298) +++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/about.php 2012-04-11 07:03:43 UTC (rev 9299) @@ -1,49 +1,29 @@ <?php /** - * **************************************************************************** - * - Original Copyright (TDM) - * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS - * - Licence GPL Copyright (c) (http://www.tdmxoops.net) - * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) - * **************************************************************************** - * TDMCREATE - MODULE FOR XOOPS - * Copyright (c) 2007 - 2011 - * TXMod Xoops (http://www.txmodxoops.org) + * TDMCreate module * - * 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. * - * 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 (http://www.txmodxoops.org) - * @license GPL see LICENSE - * @package TDMCreate - * @since 2.5.0 - * @author Mage, Mamba - * @author TXMod Xoops (in...@tx...) - * - * Version : 1.38 Sat 2011/10/22 9:52:18 : Timgno Exp $ - * **************************************************************************** - */ + * @copyright The XOOPS Project (http://www.xoops.org) + * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/) + * @package TDMCreate + * @since 2.5.0 + * @author Mage, Mamba + * @version $Id $ + **/ -include "admin_header.php"; +include '../../../include/cp_header.php'; +include 'admin_header.php'; xoops_cp_header(); $aboutAdmin = new ModuleAdmin(); -echo $aboutAdmin->addNavigation("about.php"); +echo $aboutAdmin->addNavigation('about.php'); echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false); -include "admin_footer.php"; \ No newline at end of file +include 'admin_footer.php'; \ No newline at end of file Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/admin_footer.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/admin_footer.php 2012-04-11 04:13:25 UTC (rev 9298) +++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/admin_footer.php 2012-04-11 07:03:43 UTC (rev 9299) @@ -1,46 +1,24 @@ <?php /** - * **************************************************************************** - * - Original Copyright (TDM) - * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS - * - Licence GPL Copyright (c) (http://www.tdmxoops.net) - * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) - * **************************************************************************** - * TDMCREATE - MODULE FOR XOOPS - * Copyright (c) 2007 - 2011 - * TXMod Xoops (http://www.txmodxoops.org) + * XoopsPoll module * - * 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. * - * 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 (http://www.txmodxoops.org) - * @license GPL see LICENSE - * @package TDMCreate - * @author Mamba (www.xoops.org) - * @author TXMod Xoops (in...@tx...) - * - * Version : 1.38 Sat 2011/10/22 9:52:18 : 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 smallsmall italic pad5'> - <strong>" . $xoopsModule->getVar('name') . "</strong> "._AM_TDMCREATE_MAINTAINEDBY." - <a href='http://www.xoops.org/modules/newbb/' title='Visit Xoops Community' class='tooltip' rel='external'>Xoops Community</a></div>"; -xoops_cp_footer(); + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package XoopsPoll + * @since 2.5.0 + * @author Mamba (www.xoops.org) + * @version $Id $ +**/ +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 smallsmall italic pad5'><strong>" . $xoopsModule->getVar("name") . "</strong> is maintained by the <a class='tooltip' rel='external' href='http://www.xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>"; + +xoops_cp_footer(); \ No newline at end of file Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/admin_header.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/admin_header.php 2012-04-11 04:13:25 UTC (rev 9298) +++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/admin_header.php 2012-04-11 07:03:43 UTC (rev 9299) @@ -1,73 +1,40 @@ -<?php +<?php /** - * **************************************************************************** - * - Original Copyright (TDM) - * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS - * - Licence GPL Copyright (c) (http://www.tdmxoops.net) - * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) - * **************************************************************************** - * TDMCREATE - MODULE FOR XOOPS - * Copyright (c) 2007 - 2011 - * TXMod Xoops (http://www.txmodxoops.org) + * Marquee module * - * 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. * - * 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 (http://www.txmodxoops.org) - * @license GPL see LICENSE - * @package TDMCreate - * @author TXMod Xoops (in...@tx...) - * - * Version : 1.38 Sat 2011/10/22 9:52:18 : Timgno Exp $ - * **************************************************************************** - */ - + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Marquee + * @since 2.5.0 + * @author XOOPS Module Team + * @version $Id $ +**/ include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php'; include_once XOOPS_ROOT_PATH . '/include/cp_functions.php'; -include_once '../include/functions.php'; +include_once("../include/functions.php"); include_once 'includes.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'; +if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); //return true; }else{ - xoops_cp_header(); - echo xoops_error(_AM_ERROR_NOFRAMEWORKS); - xoops_cp_footer(); + echo xoops_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); //return false; } -$dirname = basename(dirname(dirname( __FILE__ ) )); -$module_handler =& xoops_gethandler('module'); -$xoopsModule = & $module_handler->getByDirname($dirname); +//load class +$modulesHandler =& xoops_getModuleHandler('tdmcreate_modules', 'TDMCreate'); +$tablesHandler =& xoops_getModuleHandler('tdmcreate_tables', 'TDMCreate'); + $moduleInfo =& $module_handler->get($xoopsModule->getVar('mid')); $pathImageIcon = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16'); $pathImageAdmin = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32'); -$modulesHandler=& xoops_getModuleHandler('TDMCreate_modules', $dirname); -$tablesHandler=& xoops_getModuleHandler('TDMCreate_tables', $dirname); -$languagesHandler=& xoops_getModuleHandler('TDMCreate_languages', $dirname); $myts =& MyTextSanitizer::getInstance(); @@ -94,4 +61,4 @@ //Load languages xoops_loadLanguage('admin', $xoopsModule->getVar("dirname")); xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname")); -xoops_loadLanguage('main', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('main', $xoopsModule->getVar("dirname")); \ No newline at end of file Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/building.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/building.php 2012-04-11 04:13:25 UTC (rev 9298) +++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/building.php 2012-04-11 07:03:43 UTC (rev 9299) @@ -3,8 +3,9 @@ * **************************************************************************** * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * - Revision Copyright (c) (http://www.txmodxoops.org) * - * Cette licence, contient des limitations!!! + * This license contains restrictions!!! * * You may not change or alter any portion of this comment or credits * of supporting developers from this source code or any supporting source code @@ -15,180 +16,195 @@ * * @license TDM GPL license * @author TDM TEAM DEV MODULE + * @author TXMod Xoops (in...@tx...) * + * Version : 1.39 Tue 2012/02/14 16:20:18 : Timgno Exp $ * **************************************************************************** */ - include 'admin_header.php'; xoops_cp_header(); $indexAdmin = new ModuleAdmin(); -echo $indexAdmin->addNavigation('const.php'); +echo $indexAdmin->addNavigation('building.php'); $op = TDMCreate_CleanVars($_REQUEST, 'op', 'default', 'string'); -$modPath = XOOPS_ROOT_PATH.'/modules/TDMCreate'; - switch ($op) { case "creation": - $modules =& $modulesHandler->get($_REQUEST['modules_name']); - $modules_name = $modules->getVar('modules_name'); - $modules_desc = $modules->getVar('modules_description'); - $modules_author_website_name = $modules->getVar('modules_author_website_name'); - $modules_author_website_url = $modules->getVar('modules_author_website_url'); - $modules_image = $modules->getVar('modules_image'); - //Effacer repertoire du nouveau module s'il existe - clearDir($modPath.'/modules/'.$modules_name); + $mods =& $modsHandler->get($_REQUEST['modules_name']); + $mods_name = $mods->getVar('modules_name'); + //$mods_fname = $mods->getVar('modules_fname'); + $mods_desc = $mods->getVar('modules_description'); + $mods_author_website_name = $mods->getVar('modules_author_website_name'); + $mods_author_website_url = $mods->getVar('modules_author_website_url'); + $mods_image = $mods->getVar('modules_image'); + $mods_display_admin = $mods->getVar('modules_display_admin'); + $mods_display_user = $mods->getVar('modules_display_user'); + //Remove the new module directory if it exists + //clearDir($modPath.'/modules/'.$modules_fname); //Nom des tables et combien de tables $criteria = new CriteriaCompo(); $criteria->add(new Criteria('tables_modules', $_REQUEST['modules_name'])); - $nb_tables = $tablesHandler->getCount($criteria); - $tables_arr = $tablesHandler->getall($criteria); + $nb_tables = $tblsHandler->getCount($criteria); + $tbls_arr = $tblsHandler->getall($criteria); //Debut - echo '<table width="100%" cellspacing="1" class="outer">'; + echo '<table width="100%" cellspacing="1" style="background: #fff;"> + <tr class="marg2"> + <td class="ui-corner-all">'; /************************************************/ /*Structure*/ /************************************************/ //Creation de l'architecture - const_architecture($modules_name, $modules_image); + const_architecture($mods_name, $mods_image); //Creation du changelog.txt - const_changelog($modules, $modules_name); - //Creation de admin index.php - const_admin_index($modules, $modules_name, $tables_arr); - //const_class_admin($modules, $modules_name); - - foreach (array_keys($tables_arr) as $i) + const_changelog($mods, $mods_name); + + // Files cicles + foreach (array_keys($tbls_arr) as $i) { //Variables - $tables_id = $tables_arr[$i]->getVar('tables_id'); - $tables_name = $tables_arr[$i]->getVar('tables_name'); - $tables_module_table = $tables_arr[$i]->getVar('tables_module_table'); - $tables_img = $tables_arr[$i]->getVar('tables_img'); - $tables_champs = $tables_arr[$i]->getVar('tables_champs'); - $tables_parametres = $tables_arr[$i]->getVar('tables_parametres'); - $tables_blocks = $tables_arr[$i]->getVar('tables_blocks'); - $tables_display_admin = $tables_arr[$i]->getVar('tables_display_admin'); - $tables_display_user = $tables_arr[$i]->getVar('tables_display_user'); - $tables_search = $tables_arr[$i]->getVar('tables_search'); - $tables_coms = $tables_arr[$i]->getVar('tables_coms'); + $tbls_id = $tbls_arr[$i]->getVar('tables_id'); + $tbls_name = $tbls_arr[$i]->getVar('tables_name'); + $tbls_module_table = $tbls_arr[$i]->getVar('tables_module_table'); + $tbls_img = $tbls_arr[$i]->getVar('tables_img'); + $tbls_champs = $tbls_arr[$i]->getVar('tables_champs'); + $tbls_parametres = $tbls_arr[$i]->getVar('tables_parametres'); + $tbls_blocks = $tbls_arr[$i]->getVar('tables_blocks'); + $tbls_display_admin = $tbls_arr[$i]->getVar('tables_display_admin'); + $tbls_display_user = $tbls_arr[$i]->getVar('tables_display_user'); + $tbls_online = $tbls_arr[$i]->getVar('tables_online'); + $tbls_pending = $tbls_arr[$i]->getVar('tables_pending'); + $tbls_search = $tbls_arr[$i]->getVar('tables_search'); + $tbls_coms = $tbls_arr[$i]->getVar('tables_coms'); //Fabrication //Copie of images tables - $tables_img1 = $modPath."/images/uploads/tables/".$tables_img; - if (file_exists($tables_img1)) { - copy($tables_img1, $modPath."/modules/".$modules_name."/images/deco/".$tables_img); + $tbls_img1 = $modPath."/images/uploads/tables/".$tbls_img; + if (file_exists($tbls_img1)) { + copy($tbls_img1, $modPath."/modules/".$mods_name."/images/deco/".$tbls_img); } //Creation des classes - const_class($modules, $modules_name, $tables_module_table, $tables_name, $tables_champs, $tables_parametres); + const_class($mods, $mods_name, $tbls_module_table, $tbls_name, $tbls_champs, $tbls_parametres); //Creation of pages admin - if ( $tables_display_admin == 1 ) { - const_admin_pages($modules, $modules_name, $tables_id, $tables_module_table, $tables_name, $tables_img, $tables_champs, $tables_parametres); + if ( $mods_display_admin == 1 ) { + const_admin_pages($mods, $mods_name, $tbls_id, $tbls_module_table, $tbls_name, $tbls_img, $tbls_champs, $tbls_parametres, $tbls_online, $tbls_pending); } //Creation of pages and templates user - if ( $tables_display_user == 1 && $tables_module_table != null ) { - //const_user_pages($modules, $modules_name, $tables_id, $tables_module_table, $tables_name, $champs_param_display_user, $champs_param_type, $tables_img, $tables_champs, $tables_parametres); - } - //Creation de search - if ( $tables_search == 1 ) { - const_include_search($modules, $modules_name, $tables_name, $tables_module_table, $tables_champs, $tables_parametres, $tables_img); + if ( $mods_display_user == 1 ) { + const_user_pages($mods, $mods_name, $tbls_name, $tbls_champs, $tbls_champs, $tbls_parametres); + // Creation of templates pages + const_templates_pages($mods, $mods_name, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres); + } + //Creation of search + if ( $tbls_search == 1 ) { + const_include_search($mods, $mods_name, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres, $tbls_img); } - //Creation des coms - if ( $tables_coms == 1 ) { - const_include_coms($modules, $modules_name, $tables_name, $tables_module_table, $tables_champs, $tables_parametres, $tables_img); + //Creation of the comments + if ( $tbls_coms == 1 ) { + const_include_coms($mods, $mods_name, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres); } //Creation of the file mysql.sql - const_sql($modules_name, $tables_module_table, $tables_name, $tables_champs); - - $result = $xoopsDB->queryF("SELECT COUNT(*) FROM " . $xoopsDB->prefix("tdmcreate_tables")." WHERE tables_name = 'topic'"); + const_sql($mods_name, $tbls_module_table, $tbls_name, $tbls_champs); + $result = $xoopsDB->queryF("SELECT COUNT(*) FROM " . $xoopsDB->prefix("tdmcreate_tables"). + " WHERE tables_name = 'topic' OR tables_name = '".$tbls_name."_topic' + OR tables_name = 'cat' + OR tables_name = 'category' + OR tables_name = 'categories' + OR tables_name = '".$tbls_name."_cat' + OR tables_name = '".$tbls_name."_category' + OR tables_name = '".$tbls_name."_categories' "); list( $topic ) = $xoopsDB->fetchRow($result); - //Creation des blocs - if ( $tables_blocks == 1 ) { - const_blocks($modules, $modules_name, $tables_module_table, $tables_name, $tables_champs, $tables_parametres, $topic); - //Creation du template des blocks - const_blocks_templates($modules, $modules_name, $tables_name, $tables_module_table, $tables_champs, $tables_parametres); + //Creation of the blocks + if ( $tbls_blocks != 1 ) { + const_blocks($mods, $mods_name, $tbls_module_table, $tbls_name, $tbls_champs, $tbls_parametres, $topic); + //Creation of template blocks + const_blocks_templates($mods, $mods_name, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres); } } //Variables - $tables_id = $tablesHandler->getVar('tables_id'); - $tables_name = $tablesHandler->getVar('tables_name'); - $tables_module_table = $tablesHandler->getVar('tables_module_table'); - $tables_img = $tablesHandler->getVar('tables_img'); - $tables_champs = $tablesHandler->getVar('tables_champs'); - $tables_parametres = $tablesHandler->getVar('tables_parametres'); - $tables_blocks = $tablesHandler->getVar('tables_blocks'); - $tables_display_admin = $tablesHandler->getVar('tables_display_admin'); - $tables_display_user = $tablesHandler->getVar('tables_display_user'); - $tables_search = $tablesHandler->getVar('tables_search'); - $tables_coms = $tablesHandler->getVar('tables_coms'); - //Creation de xoopsversion.php - /*Mettre xoops version vers la fin pour integrer les bloc, etc*/ - const_xoopsversion($modules, $modules_name, $tables_blocks, $tables_arr, $tables_module_table, $tables_parametres); - // Creation of template index - const_templates_index($modules, $modules_name, $tables_name, $tables_module_table, $tables_champs, $tables_parametres); - // Creation of template header - const_templates_header($modules, $modules_name); - // Creation of template footer - const_templates_footer($modules, $modules_name, $tables_module_table); - // Creation of template admin about - const_templates_admin_about($modules, $modules_name); - // Creation of template admin help - const_templates_admin_help($modules, $modules_name); - //Creation du fichier permissions + $tbls_id = $tblsHandler->getVar('tables_id'); + $tbls_name = $tblsHandler->getVar('tables_name'); + $tbls_module_table = $tblsHandler->getVar('tables_module_table'); + $tbls_img = $tblsHandler->getVar('tables_img'); + $tbls_champs = $tblsHandler->getVar('tables_champs'); + $tbls_parametres = $tblsHandler->getVar('tables_parametres'); + $tbls_blocks = $tblsHandler->getVar('tables_blocks'); + $tbls_display_admin = $tblsHandler->getVar('tables_display_admin'); + $tbls_display_user = $tblsHandler->getVar('tables_display_user'); + $tbls_online = $tblsHandler->getVar('tables_online'); + $tbls_pending = $tblsHandler->getVar('tables_pending'); + $tbls_search = $tblsHandler->getVar('tables_search'); + $tbls_coms = $tblsHandler->getVar('tables_coms'); + //Creation of xoopsversion.php file + //Xoops version set to integrate the end of the block, etc. + const_xoopsversion($mods, $mods_name, $tbls_arr, $tbls_module_table, $tbls_blocks); + if($mods_display_user == 1){ + // Creation of template index + const_templates_index($mods, $mods_name, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres); + // Creation of template header + const_templates_header($mods, $mods_name); + // Creation of template footer + const_templates_footer($mods, $mods_name, $tbls_module_table); + } + //Creation of the file permissions $topic = 0; - if ( $topic == 1 || $tables_module_table != null) { // - const_admin_permissions($modules, $modules_name, $tables_arr, $topic); + if ( $topic == 1 || $tbls_module_table != null) { // + const_admin_permissions($mods, $mods_name, $tbls_name, $topic); } //Include + const_include_jquery($mods, $mods_name); //Configs - const_include_configs($modules, $modules_name, $modules_author_website_name, $modules_author_website_url); + const_include_configs($mods, $mods_name, $mods_author_website_name, $mods_author_website_url); //Style - //const_css_admin($modules, $modules_name); - //const_include_style($modules, $modules_name); + const_css_admin($mods, $mods_name); + const_css_style($mods, $mods_name); //Functions - const_include_functions($modules, $modules_name); - //Creation du fichier install pour l'uploads - const_include_install($modules, $modules_name, $tables_arr); + const_include_functions($mods, $mods_name); + //Creation of the install file for uploads + const_include_install($mods, $mods_name, $tbls_arr); //Language /////////////////////////////////////////////////////////////////////// - //Creation du language main.php - const_main_language($modules, $modules_name, $modules_desc); - //Creation du language modinfo.php - const_modinfo_language($modules, $modules_name, $modules_desc); - //Creation du language admin.php - const_admin_language($modules, $modules_name, $modules_desc); - //Creation du language blocks.php - const_blocks_language($modules, $modules_name); - //Creation du language help.php - const_help_language($modules, $modules_name); - /////////////////////////////////////////////////////////////////////// - //Creation de la class menu - //const_class_menu($modules, $modules_name); - + //Creation of language main.php + const_main_language($mods, $mods_name, $mods_desc); + //Creation of language modinfo.php + const_modinfo_language($mods, $mods_name, $tbls_arr, $mods_desc); + //Creation of language admin.php + const_admin_language($mods, $mods_name, $mods_desc, $tbls_name, $tbls_arr, $tbls_pending); + //Creation of language blocks.php + const_blocks_language($mods, $mods_name); + //Creation of language help.php + const_help_language($mods, $mods_name, $mods_desc); + //Creation of language + //const_language($mods, $mods_name); + /////////////////////////////////////////////////////////////////////// /************************************************/ /*Admin*/ /************************************************/ - //Creation de admin header.php - const_admin_header($modules, $modules_name, $tables_arr); - //Creation de admin footer.php - const_admin_footer($modules, $modules_name, $tables_arr); - //Creation de admin menu.php - const_admin_menu($modules, $modules_name, $tables_arr, $topic); - //Creation de admin about.php - //$menu++; - const_admin_about($modules, $modules_name); + if ( $mods_display_admin == 1 ) { + //Creation of admin file admin_header.php + const_admin_header($mods, $mods_name, $tbls_arr); + //Creation of admin file admin_footer.php + const_admin_footer($mods, $mods_name, $tbls_arr); + //Creation of admin file menu.php + const_admin_menu($mods, $mods_name, $tbls_arr, $topic); + //Creation of admin file about.php + const_admin_about($mods, $mods_name); + //Creation of admin file index.php + const_admin_index($mods, $mods_name, $tbls_arr, $tbls_online, $tbls_pending); + } /************************************************/ - /*Admin*/ + /*User*/ /************************************************/ - if ( $tables_display_user == 1 && $tables_module_table != null ) { - const_user_header($modules, $modules_name, $tables_id, $tables_module_table, $tables_name); - const_user_index($modules, $modules_name, $tables_id, $tables_module_table, $tables_name, $tables_champs, $tables_parametres); + if ( $mods_display_user == 1 ) { + const_user_header($mods, $mods_name, $tbls_arr, $tbls_name, $tbls_module_table); + const_user_index($mods, $mods_name); } - echo '</table>'; + echo '</td></tr></table>'; break; @@ -200,19 +216,22 @@ $form = new XoopsThemeForm(_AM_TDMCREATE_ADMIN_CONST, 'form_creation', $action, 'post', true); - $modules_select = new XoopsFormSelect(_AM_TDMCREATE_CONST_MODULES, 'modules_name', 'modules_name'); - $modules_select->addOptionArray($modulesHandler->getList()); - $form->addElement($modules_select, true); - - /*foreach (array_keys($tables_arr) as $i) + $mods_select = new XoopsFormSelect(_AM_TDMCREATE_CONST_MODULES, 'modules_name', 'modules_name', 10); + $mods_select->addOptionArray($modsHandler->getList()); + $form->addElement($mods_select, true); + + $modules_name = xoops_getModuleHandler('tdmcreate_modules', 'TDMCreate'); + $criteria = new CriteriaCompo(new Criteria('modules_name', $modules_name)); + $criteria->setSort('tables_name'); + $criteria->setOrder('ASC'); + $tbls_name_arr = $tblsHandler->getAll($criteria); + foreach (array_keys($tbls_name_arr) as $i) { - //Variables - $tables_name = $tables_arr[$i]->getVar('tables_name'); - }*/ - $tables_name = $tablesHandler->getVar('tables_name'); - $tables_select = new XoopsFormSelect(_AM_TDMCREATE_CONST_TABLES, 'tables_name', $tables_name, 4); - $tables_select->addOptionArray($tablesHandler->getList()); - $form->addElement($tables_select, false); + $tbls_option_name = $tbls_name_arr[$i]->getVar('tables_name'); + } + $tbls_select = new XoopsFormSelect(_AM_TDMCREATE_CONST_TABLES, 'tables_name', 'tables_name', 4, true); + $tbls_select->addOptionArray($tblsHandler->getList($criteria)); // $tbls_option_name + $form->addElement($tbls_select, false); $form->addElement(new XoopsFormHidden('op', 'creation')); $form->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit')); Deleted: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/filesmanager.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/filesmanager.php 2012-04-11 04:13:25 UTC (rev 9298) +++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/filesmanager.php 2012-04-11 07:03:43 UTC (rev 9299) @@ -1,256 +0,0 @@ -<?php -/** - * **************************************************************************** - * - Original Copyright (TDM) - * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS - * - Licence GPL Copyright (c) (http://www.tdmxoops.net) - * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) - * **************************************************************************** - * TDMCREATE - MODULE FOR XOOPS - * Copyright (c) 2007 - 2011 - * TXMod Xoops (http://www.txmodxoops.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. - * - * ------------------------------------------------------------------------ - * - * @copyright TXMod Xoops (http://www.txmodxoops.org) - * @license GPL see LICENSE - * @package TDMCreate - * @author TXMod Xoops (in...@tx...) - * - * Version : 1.38 Sat 2011/10/22 9:52:18 : Timgno Exp $ - * **************************************************************************** - */ -include 'admin_header.php'; -// Get Action type -$op = TDMCreate_CleanVars( $_REQUEST, 'op', 'default', 'string' ); -// Define main template -$xoopsOption['template_main'] = 'tdmcreate_filemanager.html'; -// Call Header -xoops_cp_header(); - -$xoTheme->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js'); -$xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js'); -$xoTheme->addScript('modules/system/js/jquery.easing.js'); -$xoTheme->addScript('modules/TDMCreate/js/jqueryFileTree.js'); -$xoTheme->addScript('modules/TDMCreate/js/filemanager.js'); -// Define Stylesheet -$xoTheme->addStylesheet( XOOPS_URL . '/modules/system/css/admin.css'); -$xoTheme->addStylesheet( XOOPS_URL . '/modules/system/css/code_mirror/docs.css'); -$xoTheme->addStylesheet( XOOPS_URL . '/modules/system/css/ui/' . xoops_getModuleOption('jquery_theme', 'system') . '/ui.all.css'); - -xoops_load('XoopsFile'); -XoopsFile::load('file'); - -switch ($op) { - default: - $nbcolonnes_file = 4; - $width = 100/$nbcolonnes_file; - $root = XOOPS_ROOT_PATH.'/modules/TDMCreate/modules/'; - $url_file = XOOPS_URL.'/modules/TDMCreate/modules/'; - $xoopsTpl->assign('width', $width); - - if( file_exists($root) ) - { - $files = scandir($root); - natcasesort($files); - if( count($files) > 2 ) - { - $count_file = 1; - $file_arr = array(); - $edit = false; - // All files - foreach( $files as $file ) - { - if (!preg_match('#.back#', $file)) - { - if( file_exists($root . $file) && $file != '.' && $file != '..' && !is_dir($root . $file) ) - { - $folder = XoopsFile::getHandler('file', $root.$file); - $extension_verif = $folder->ext(); - - switch ( $extension_verif ) { - case 'ico': case 'png': case 'gif': case 'jpg': case 'jpeg': - $extension_verif = 'picture'; - break; - case 'html': case 'htm': - $extension_verif = 'html'; - $edit = true; - break; - case 'zip': case 'rar': case 'tar': case 'gz': - $extension_verif = 'rar'; - $edit = true; - $unzip = '<img class="cursorpointer" src="./images/icons/untar.png" onclick=\'filemanager_unzip_file("'.$path_file . $file.'", "'.$path_file.'", "'.$file.'");\' width="16" alt="edit" /> '; - break; - case 'css': - $extension_verif = 'css'; - $edit = true; - break; - case 'avi': case 'mov': case 'real': case 'flv': case 'swf': - $extension_verif = 'movie'; - break; - case 'log': - $extension_verif = 'log'; - $edit = true; - break; - case 'php': - $extension_verif = 'php'; - $edit = true; - break; - case 'info': case 'htaccess': - $extension_verif = 'info'; - break; - case 'sql': - $extension_verif = 'sql'; - $edit = true; - break; - default: - $extension_verif = 'file'; - $edit = true; - break; - } - - //Edit ? - $file_arr['edit'] = $edit; - //File - $file_arr['path_file'] = $root.$file; - $file_arr['path'] = $root; - //Chmod - $file_arr['chmod'] = substr($folder->perms(), 1); - - $file_arr['chmod'] = modify_chmod($file_arr['chmod'], $file_arr['path_file'], $count_file); - - if($extension_verif == 'picture') { - list($width, $height) = getimagesize($root . $file); - if($height > 60){ - $file_arr['img'] = '<img src="'.$url_file.$file.'" height="47" title="" alt="" />'; - } else { - $file_arr['img'] = '<img src="'.$url_file.$file.'" title="" alt="" />'; - } - } else { - $file_arr['img'] = '<img src="'.XOOPS_URL.'/modules/system/images/mimetypes/'.$extension_verif.'_48.png" title="" alt="" />'; - } - $file_arr['extension'] = $extension_verif; - $file_arr['file'] = htmlentities($file); - $count_file++; - $file_arr['newline'] = ($count_file % $nbcolonnes_file == 1) ? true : false; - $xoopsTpl->assign('newline', $file_arr['newline']); - $xoopsTpl->append('files', $file_arr); - } - $edit = false; - } - } - } - } - break; - - //save - case 'filemanager_save': - //Save the file or restore file - if(isset($_REQUEST['path_file'])) - { - //save file - $copy_file = $_REQUEST['path_file']; - copy($copy_file, $_REQUEST['path'].$_REQUEST['file'].'.back'); - //Save modif - if(isset($_REQUEST['filemanager'])) - { - $open = fopen("".$_REQUEST['path_file']."","w+"); - if(!fwrite($open, utf8_encode(stripslashes($_REQUEST['filemanager'])))) - { - redirect_header("filemanager.php", 2, _AM_TDMCREATE_FILEMANAGER_ERROR); - } - fclose($open); - } - redirect_header("filemanager.php", 2, _AM_TDMCREATE_DBUPDATED); - } else { - //restore - $old_file = $_REQUEST['path_file'].'.back'; - //echo $old_file; - $new_file = $_REQUEST['path_file']; - //echo $new_file; - if(file_exists($old_file)) - { - if(unlink($new_file)) - { - if(rename($old_file, $new_file)) - { - redirect_header("filemanager.php", 2, _AM_TDMCREATE_DBUPDATED); - }else{ - redirect_header("filemanager.php", 2, _AM_TDMCREATE_FILEMANAGER_RESTORE_ERROR_FILE_RENAME); - } - }else{ - redirect_header("filemanager.php", 2, _AM_TDMCREATE_FILEMANAGER_RESTORE_ERROR_FILE_DELETE); - } - }else{ - redirect_header("filemanager.php", 2, _AM_TDMCREATE_FILEMANAGER_RESTORE_ERROR_FILE_EXISTS); - } - } - break; - - case 'filemanager_upload_save': - if($_REQUEST['path'] != '') { - $path = trim($_REQUEST['path']); - } else { - $path = XOOPS_ROOT_PATH.'/'; - } - include_once XOOPS_ROOT_PATH . '/class/uploader.php'; - $mimetypes = include $GLOBALS['xoops']->path('include/mimetypes.inc.php'); - $uploader = new XoopsMediaUploader( $path, $mimetypes, 500000); - if ($uploader->fetchMedia('upload_file')) { - - if (!$uploader->upload()) { - $err[] = $uploader->getErrors(); - } - } - if ( isset($err) ) { - foreach ( $err as $line ){ - echo $line; - } - } - redirect_header("filemanager.php", 2, _AM_TDMCREATE_FILEMANAGER_UPLOAD_FILE); - break; - - case 'filemanager_add_dir_save': - $path = TDMCreate_CleanVars ( $_REQUEST, 'path', XOOPS_ROOT_PATH . '/modules/TDMCreate/modules/', 'string' ); - - xoops_load('XoopsFile'); - XoopsFile::load('folder'); - $folder = XoopsFile::getHandler('folder'); - if ($folder->create ($path . $_REQUEST['dir_name'], 0777)) { - $indexFile = XOOPS_ROOT_PATH."/modules/TDMCreate/index.html"; - copy($indexFile, $path.$_REQUEST['dir_name']."/index.html"); - redirect_header( 'filemanager.php', 2, _AM_TDMCREATE_FILEMANAGER_DIR_SUCCESS ); - } else { - redirect_header( 'filemanager.php', 2, _AM_TDMCREATE_FILEMANAGER_DIR_ERROR ); - } - break; - - case 'filemanager_add_file_save': - $path = TDMCreate_CleanVars ( $_REQUEST, 'path', XOOPS_ROOT_PATH . '/', 'string' ); - if ( $path == '' ) $path = XOOPS_ROOT_PATH . '/modules/TDMCreate/modules/'; - $open = fopen($path . $_REQUEST['file_name'],"w+"); - fclose($open); - redirect_header( 'filemanager.php', 2, _AM_TDMCREATE_FILEMANAGER_FILE_SUCCESS ); - //if ($file->create ($path . $_REQUEST['file_name'])) { - // redirect_header( 'filemanager.php', 2, _AM_TDMCREATE_FILEMANAGER_DIR_SUCCESS ); - //} else { - // redirect_header( 'filemanager.php', 2, _AM_TDMCREATE_FILEMANAGER_DIR_ERROR ); - //} - break; -} -include "admin_footer.php"; \ No newline at end of file Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/includes.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/includes.php 2012-04-11 04:13:25 UTC (rev 9298) +++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/includes.php 2012-04-11 07:03:43 UTC (rev 9299) @@ -21,38 +21,46 @@ include '../../../include/cp_header.php'; include_once("../include/functions.php"); -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_architecture.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_xoopsversion.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_changelog.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_include_search.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_include_coms.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_include_configs.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_include_functions.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_include_install.php'; -//include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_include_style.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_sql.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_blocks.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_blocks_templates.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_class.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_admin_header.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_admin_footer.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_admin_menu.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_admin_index.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_admin_pages.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_admin_about.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_admin_permissions.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_admin_language.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_modinfo_language.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_help_language.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_blocks_language.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_main_language.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_user_header.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_user_index.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_user_pages.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_templates_header.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_templates_index.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_templates_footer.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_templates_admin_about.php'; -include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_templates_admin_help.php'; +$modPath = XOOPS_ROOT_PATH.'/modules/TDMCreate'; +$cPath = $modPath.'/const'; +include_once $cPath.'/const_architecture.php'; +include_once $cPath.'/const_xoopsversion.php'; +include_once $cPath.'/const_changelog.php'; +include_once $cPath.'/const_include_search.php'; +include_once $cPath.'/const_include_coms.php'; +include_once $cPath.'/const_include_configs.php'; +include_once $cPath.'/const_include_functions.php'; +include_once $cPath.'/const_include_install.php'; +//include_once $cPath.'/const_include_style.php'; +include_once $cPath.'/const_sql.php'; +include_once $cPath.'/const_blocks.php'; +include_once $cPath.'/const_blocks_templates.php'; +include_once $cPath.'/const_class.php'; +include_once $cPath.'/const_class_admin.php'; +//include_once $cPath.'/const_class_menu.php'; + +include_once $cPath.'/const_admin_header.php'; +include_once $cPath.'/const_admin_footer.php'; +include_once $cPath.'/const_admin_menu.php'; +include_once $cPath.'/const_admin_index.php'; +include_once $cPath.'/const_admin_pages.php'; +include_once $cPath.'/const_admin_about.php'; +include_once $cPath.'/const_admin_permissions.php'; +include_once $cPath.'/const_admin_language.php'; +include_once $cPath.'/const_modinfo_language.php'; +include_once $cPath.'/const_about_language.php'; +include_once $cPath.'/const_help_language.php'; +include_once $cPath.'/const_blocks_language.php'; +include_once $cPath.'/const_main_language.php'; +include_once $cPath.'/const_user_header.php'; +include_once $cPath.'/const_user_index.php'; +include_once $cPath.'/const_user_pages.php'; +include_once $cPath.'/const_templates_header.php'; +include_once $cPath.'/const_templates_index.php'; +include_once $cPath.'/const_templates_pages.php'; +include_once $cPath.'/const_templates_footer.php'; +include_once $cPath.'/const_templates_admin_about.php'; +include_once $cPath.'/const_templates_admin_help.php'; + ?> \ No newline at end of file Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/index.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/index.php 2012-04-11 04:13:25 UTC (rev 9298) +++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/index.php 2012-04-11 07:03:43 UTC (rev 9299) @@ -1,63 +1,46 @@ -<?php +<?php /** * **************************************************************************** - * - Original Copyright (TDM) - * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS - * - Licence GPL Copyright (c) (http://www.tdmxoops.net) - * - Developers TEAM TDMCreate Xoops - (http://www.xoops.org) - * **************************************************************************** - * TDMCREATE - MODULE FOR XOOPS - * Copyright (c) 2007 - 2011 - * TXMod Xoops (http://www.txmodxoops.org) + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) * - * 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. + * Cette licence, contient des limitations!!! * - * 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. + * 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. * - * 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. + * @license TDM GPL license + * @author TDM TEAM DEV MODULE * - * --------------------------... [truncated message content] |
From: <be...@us...> - 2012-04-11 04:13:33
|
Revision: 9298 http://xoops.svn.sourceforge.net/xoops/?rev=9298&view=rev Author: beckmi Date: 2012-04-11 04:13:25 +0000 (Wed, 11 Apr 2012) Log Message: ----------- Adding release 3.1 from Roby73 Modified Paths: -------------- XoopsModules/backup/trunk/backup/admin/admin_header.php XoopsModules/backup/trunk/backup/admin/backup.php XoopsModules/backup/trunk/backup/admin/cache.php XoopsModules/backup/trunk/backup/admin/index.php XoopsModules/backup/trunk/backup/admin/restore.php XoopsModules/backup/trunk/backup/images/slogo.png XoopsModules/backup/trunk/backup/include/build_dump.lib.php XoopsModules/backup/trunk/backup/include/defines.lib.php XoopsModules/backup/trunk/backup/include/functions.php XoopsModules/backup/trunk/backup/include/zip.lib.php XoopsModules/backup/trunk/backup/language/english/admin.php XoopsModules/backup/trunk/backup/language/english/modinfo.php XoopsModules/backup/trunk/backup/language/schinese/admin.php XoopsModules/backup/trunk/backup/language/schinese/modinfo.php XoopsModules/backup/trunk/backup/xoops_version.php Added Paths: ----------- XoopsModules/backup/trunk/backup/admin/about.php XoopsModules/backup/trunk/backup/admin/admin_footer.php XoopsModules/backup/trunk/backup/admin/main.php XoopsModules/backup/trunk/backup/admin/menu.php XoopsModules/backup/trunk/backup/admin/other.php XoopsModules/backup/trunk/backup/docs/ XoopsModules/backup/trunk/backup/docs/index.html XoopsModules/backup/trunk/backup/docs/readme.txt XoopsModules/backup/trunk/backup/images/admin/ XoopsModules/backup/trunk/backup/images/admin/database.png XoopsModules/backup/trunk/backup/images/admin/database_add.png XoopsModules/backup/trunk/backup/images/admin/delete.png XoopsModules/backup/trunk/backup/images/admin/index.html XoopsModules/backup/trunk/backup/images/admin/restore.png XoopsModules/backup/trunk/backup/language/english/changelog.txt XoopsModules/backup/trunk/backup/language/english/main.php XoopsModules/backup/trunk/backup/language/french/ XoopsModules/backup/trunk/backup/language/french/admin.php XoopsModules/backup/trunk/backup/language/french/index.html XoopsModules/backup/trunk/backup/language/french/modinfo.php Removed Paths: ------------- XoopsModules/backup/trunk/backup/admin/index.html XoopsModules/backup/trunk/backup/readme.txt Added: XoopsModules/backup/trunk/backup/admin/about.php =================================================================== --- XoopsModules/backup/trunk/backup/admin/about.php (rev 0) +++ XoopsModules/backup/trunk/backup/admin/about.php 2012-04-11 04:13:25 UTC (rev 9298) @@ -0,0 +1,15 @@ +<?php +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('6KJ7RW5DR3VTJ', false); + +include 'admin_footer.php'; + +?> Added: XoopsModules/backup/trunk/backup/admin/admin_footer.php =================================================================== --- XoopsModules/backup/trunk/backup/admin/admin_footer.php (rev 0) +++ XoopsModules/backup/trunk/backup/admin/admin_footer.php 2012-04-11 04:13:25 UTC (rev 9298) @@ -0,0 +1,24 @@ +<?php +/** + * MyLinks module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright:: The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license:: http://www.fsf.org/copyleft/gpl.html GNU public license + * @package:: mylinks + * @subpackage:: admin + * @since: 2.5.0 + * @author:: Magic.Shao <mag...@gm...> - Susheng Yang <ezs...@gm...> + * @version:: $Id $ +**/ +global $moduleInfo; +echo "<div align=\"center\"><a href=\"http://www.xoops.org\" target=\"_blank\"><img src=" . XOOPS_URL ."/". $moduleInfo->getInfo("icons32")."/xoopsmicrobutton.gif"." alt=\"XOOPS\" title=\"XOOPS\"></a></div>"; +echo "<div class='center smallsmall italic pad5'><strong>" . $xoopsModule->getVar("name") . "</strong> is maintained by the <a class='tooltip' rel='external' href='http://www.xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>"; + +xoops_cp_footer(); Modified: XoopsModules/backup/trunk/backup/admin/admin_header.php =================================================================== --- XoopsModules/backup/trunk/backup/admin/admin_header.php 2012-04-11 04:10:37 UTC (rev 9297) +++ XoopsModules/backup/trunk/backup/admin/admin_header.php 2012-04-11 04:13:25 UTC (rev 9298) @@ -1,3 +1,31 @@ -<?php -include("../../../include/cp_header.php"); -?> \ No newline at end of file +<?php +include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php'; +include_once XOOPS_ROOT_PATH . '/include/cp_functions.php'; +include("../../../include/cp_header.php"); + +//defined ('FRAMEWORKS_ART_FUNCTIONS_INI') || include_once XOOPS_ROOT_PATH . '/Frameworks/art/functions.ini.php' ; +if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + //return true; + }else{ + echo xoops_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); + //return false; + } + + +$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid')); +$pathIcon16 = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16'); +$pathIcon32 = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32'); + +$myts =& MyTextSanitizer::getInstance(); + +if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { + include_once XOOPS_ROOT_PATH . '/class/template.php' ; + $xoopsTpl = new XoopsTpl() ; +} + +//Load languages +xoops_loadLanguage('admin', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('main', $xoopsModule->getVar("dirname")); +?> Modified: XoopsModules/backup/trunk/backup/admin/backup.php =================================================================== --- XoopsModules/backup/trunk/backup/admin/backup.php 2012-04-11 04:10:37 UTC (rev 9297) +++ XoopsModules/backup/trunk/backup/admin/backup.php 2012-04-11 04:13:25 UTC (rev 9298) @@ -1,228 +1,243 @@ -<?php -// ------------------------------------------------------------------------ // -// Author: D.J.(phppp) ph...@ho... // -// URL: http://xoops.org.cn // -// ------------------------------------------------------------------------- // - -include("../../../mainfile.php"); -$module_handler =& xoops_gethandler('module'); -$xoopsModule =& $module_handler->getByDirname('backup'); -$config_handler = & xoops_gethandler( 'config' ); -$xoopsModuleConfig = & $config_handler->getConfigsByCat( 0, $xoopsModule->getVar( 'mid' ) ); -if ( file_exists( XOOPS_ROOT_PATH."/modules/backup/language/" . $xoopsConfig['language'] . "/admin.php" ) ) { - include XOOPS_ROOT_PATH."/modules/backup/language/" . $xoopsConfig['language'] . "/admin.php"; -} -elseif ( file_exists( XOOPS_ROOT_PATH."/modules/backup/language/english/admin.php" ) ) { - include XOOPS_ROOT_PATH."/modules/backup/language/english/admin.php"; -} - -include_once(XOOPS_ROOT_PATH.'/modules/backup/include/defines.lib.php'); -include_once(XOOPS_ROOT_PATH.'/modules/backup/include/build_dump.lib.php'); -include_once(XOOPS_ROOT_PATH.'/modules/backup/include/zip.lib.php'); -include_once(XOOPS_ROOT_PATH."/class/xoopslists.php"); - -$cfgBackupTarget = $xoopsModuleConfig['cfgBackupTarget']; -$drop = $xoopsModuleConfig['drop']; -$cfgZipType = $xoopsModuleConfig['cfgZipType']; -$cfgExecTimeLimit = $xoopsModuleConfig['cfgExecTimeLimit']; -$use_backquotes = $xoopsModuleConfig['use_backquotes']; - -$server = XOOPS_DB_NAME; - -function PMA_myHandler($sql_insert) -{ - global $tmp_buffer; - $eol_dlm = (isset($GLOBALS['extended_ins']) && ($GLOBALS['current_row'] < $GLOBALS['rows_cnt'])) - ? ',' - : ';'; - $tmp_buffer .= $sql_insert . $eol_dlm . $GLOBALS['crlf']; -} - -function PMA_whichCrlf() -{ - $the_crlf = "\n"; - if (PMA_USR_OS == 'Win') { - $the_crlf = "\r\n"; - } - else if (PMA_USR_OS == 'Mac') { - $the_crlf = "\r"; - } - else { - $the_crlf = "\n"; - } - return $the_crlf; -} - -$err_url = XOOPS_URL; - -@set_time_limit($cfgExecTimeLimit); -$crlf = PMA_whichCrlf(); - -if (($cfgZipType == 'bzip') && (PMA_PHP_INT_VERSION >= 40004 && @function_exists('bzcompress'))) { - $ext = 'bz2'; - $mime_type = 'application/x-bzip'; -} else if (($cfgZipType == 'gzip') &&(PMA_PHP_INT_VERSION >= 40004 && @function_exists('gzencode'))) { - $ext = 'gz'; - $mime_type = 'application/x-gzip'; -} else if (($cfgZipType == 'zip') && (PMA_PHP_INT_VERSION >= 40000 && @function_exists('gzcompress'))) { - $ext = 'zip'; - $mime_type = 'application/x-zip'; -} else { - $ext = 'sql'; - $cfgZipType = 'none'; - $mime_type = (PMA_USR_BROWSER_AGENT == 'IE' || PMA_USR_BROWSER_AGENT == 'OPERA') - ? 'application/octetstream' - : 'application/octet-stream'; -} - -$tables = mysql_list_tables($db = XOOPS_DB_NAME); -$num_tables = @mysql_numrows($tables); - -$dirname = XOOPS_ROOT_PATH.'/'.$xoopsModuleConfig["dbfiles_path"]; -$prefix = 'bkp'; - -if ($num_tables == 0) { - echo '# ' ._DB_NOTABLESFOUND; - if(isset($_GET['oldurl'])){ - redirect_header($_GET['oldurl'], 3, _DB_BACKUP_READY ); - }else{ - redirect_header("javascript:history.go(-1)", 1, _DB_BACKUP_READY ); - } - exit; -} - -$filename_prefix = $prefix.date('ymdHi'); -$split = (is_array($xoopsModuleConfig["dbfiles_split"])&&count($xoopsModuleConfig["dbfiles_split"])>0)?$xoopsModuleConfig["dbfiles_split"]:array("1"); -$files_backup=array(); -for($i=0; $i<$num_tables; $i++){ - $name = mysql_tablename($tables, $i); - if(in_array("1",$split)||in_array($name, $split)){ - $files_backup[$name] = array($name); - }else{ - $files_backup["body"][] = $name; - } -} -$formatted_db_name = (isset($use_backquotes)) - ? PMA_backquote($db) - : '\'' . $db . '\''; -foreach($files_backup as $fl => $names){ - $filename = ($fl == "body")?$filename_prefix:$filename_prefix."_".$fl; - $dump_buffer = '# Backup for MySQL' . $crlf - . '#' . $crlf; - foreach ($names as $table) { - $formatted_table_name = (isset($use_backquotes)) - ? PMA_backquote($table) - : '\'' . $table . '\''; - $dump_buffer .= '# --------------------------------------------------------' . $crlf - . $crlf . '#' . $crlf - . '# ' ._DB_TABLESTRUCTURE. ' ' . $formatted_table_name . $crlf - . '#' . $crlf . $crlf - . PMA_getTableDef($db, $table, $crlf, $err_url) . ';' . $crlf; - - $tcmt = $crlf . '#' . $crlf - . '# ' ._DB_DUMPINGDATA. ' ' . $formatted_table_name . $crlf - . '#' . $crlf .$crlf; - $dump_buffer .= $tcmt; - $tmp_buffer = ''; - if (!isset($limit_from) || !isset($limit_to)) { - $limit_from = $limit_to = 0; - } - PMA_getTableContent($db, $table, $limit_from, $limit_to, 'PMA_myHandler', $err_url); - $dump_buffer .= $tmp_buffer; - } - $dump_buffer .= $crlf; - - - if ($cfgZipType == 'zip') { - if (PMA_PHP_INT_VERSION >= 40000 && @function_exists('gzcompress')) { - $extbis = '.sql'; - $zipfile = new zipfile(); - $zipfile -> addFile($dump_buffer, $filename . $extbis); - $dump_buffer = $zipfile -> file(); - } - } - else if ($cfgZipType == 'bzip') { - if (PMA_PHP_INT_VERSION >= 40004 && @function_exists('bzcompress')) { - $dump_buffer = bzcompress($dump_buffer); - } - } - else if ($cfgZipType == 'gzip') { - if (PMA_PHP_INT_VERSION >= 40004 && @function_exists('gzencode')) { - // without the optional parameter level because it bug - $dump_buffer = gzencode($dump_buffer); - } - } - - $fp = fopen($dirname.'/'. $filename . '.' . $ext,'w'); - fwrite($fp, $dump_buffer); - fclose($fp); - - if ($cfgBackupTarget == 'download') { - if(!is_object($xoopsUser)||!$xoopsUser->isAdmin()){ - redirect_header("javascript:history.go(-1)", 1, _NOPERM ); - exit; - } - header('Content-Type: ' . $mime_type); - if (PMA_USR_BROWSER_AGENT == 'IE') { - header('Content-Disposition: inline; filename="' . $filename . '.' . $ext . '"'); - header('Expires: 0'); - header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); - header('Pragma: public'); - } else { - header('Content-Disposition: attachment; filename="' . $filename . '.' . $ext . '"'); - header('Expires: 0'); - header('Pragma: no-cache'); - } - echo $dump_buffer; - } elseif ($cfgBackupTarget == 'email') { - $subject = sprintf(_DB_BACKUP_FOR, $xoopsConfig['sitename']) ; - $message = _DB_CREATEON.': '.date('H:i D d-M-Y')." \n" ; - $message .= _DB_DOWNLOAD.":\n"; - $message .= XOOPS_URL."/modules/backup/cache/".$filename.'.'.$ext."\n\n"; - $message .= "------------------\n"; - $message .= $xoopsConfig['sitename']."\n".$xoopsConfig['xoops_url']."/"; - $xoopsMailer =& getMailer(); - $xoopsMailer->useMail(); - $emails = explode(',',$xoopsModuleConfig['email_to']); - foreach ($emails as $key=>$value) { $emails[$key]=trim($value); } - $xoopsMailer->setToEmails($emails); - $xoopsMailer->setFromEmail($xoopsConfig['adminmail']); - $xoopsMailer->setFromName($xoopsConfig['sitename']); - $xoopsMailer->setSubject($subject); - $xoopsMailer->setBody($message); - if($xoopsModuleConfig['email_attach']){ - $xoopsMailer->multimailer->AddAttachment($dirname.'/'.$filename.'.'.$ext); - } - $xoopsMailer->send(); - } -} - -$db_files =& XoopsLists::getFileListAsArray($dirname); -$dbfiles = array(); -$dbprefix = array(); -foreach($db_files as $_file => $_filename){ - if(preg_match("/(^".$prefix."[^_]*)(_.*)?\.(.*)/i", $_filename, $matches)){ - $dbprefix[$matches[1]] = 1; - $dbfiles[]=$_filename; - } -} - -$dbpre = array_keys($dbprefix); -arsort($dbpre); -reset($dbpre); -$dbpre_valid = array_slice($dbpre, 0, $xoopsModuleConfig['dbfiles_store']); -foreach($dbfiles as $dbfile){ - if(!preg_match("/^(".implode("|",$dbpre_valid).")(_.*)?\.(.*)/i", $dbfile, $matches)){ - unlink($dirname.'/'.$dbfile); - } -} - - -if ($cfgBackupTarget != 'download') { - if(isset($_GET['oldurl'])){ - redirect_header($_GET['oldurl'], 3, _DB_BACKUP_READY ); - }else{ - redirect_header("javascript:history.go(-1)", 1, _DB_BACKUP_READY ); - } -} -?> \ No newline at end of file +<?php +// ------------------------------------------------------------------------ // +// Author: D.J.(phppp) ph...@ho... // +// URL: http://xoops.org.cn // +// ------------------------------------------------------------------------- // + +include 'admin_header.php'; +$module_handler =& xoops_gethandler('module'); +$xoopsModule =& $module_handler->getByDirname('backup'); +$config_handler = & xoops_gethandler( 'config' ); +$xoopsModuleConfig = & $config_handler->getConfigsByCat( 0, $xoopsModule->getVar( 'mid' ) ); + +include_once(XOOPS_ROOT_PATH.'/modules/backup/include/defines.lib.php'); +include_once(XOOPS_ROOT_PATH.'/modules/backup/include/build_dump.lib.php'); +include_once(XOOPS_ROOT_PATH.'/modules/backup/include/zip.lib.php'); +include_once(XOOPS_ROOT_PATH."/class/xoopslists.php"); + +$cfgBackupTarget = $xoopsModuleConfig['cfgBackupTarget']; +$drop = $xoopsModuleConfig['drop']; +$cfgZipType = $xoopsModuleConfig['cfgZipType']; +$cfgExecTimeLimit = $xoopsModuleConfig['cfgExecTimeLimit']; +$use_backquotes = $xoopsModuleConfig['use_backquotes']; + +$other_tables = (!isset($_POST['tables']))?false:$_POST['tables']; +$db_name = (!isset($_GET['db_name']))?XOOPS_DB_NAME:$_GET['db_name']; + +if ($db_name) { +$db_selected = mysql_select_db($db_name); + if (!$db_selected) { + redirect_header('index.php', 3, 'Database not exist'); + exit; + } +} + +$server = $db_name; +function PMA_myHandler($sql_insert) +{ + global $tmp_buffer; + $eol_dlm = (isset($GLOBALS['extended_ins']) && ($GLOBALS['current_row'] < $GLOBALS['rows_cnt'])) + ? ',' + : ';'; + $tmp_buffer .= $sql_insert . $eol_dlm . $GLOBALS['crlf']; +} + +function PMA_whichCrlf() +{ + $the_crlf = "\n"; + if (PMA_USR_OS == 'Win') { + $the_crlf = "\r\n"; + } + else if (PMA_USR_OS == 'Mac') { + $the_crlf = "\r"; + } + else { + $the_crlf = "\n"; + } + return $the_crlf; +} + +$err_url = XOOPS_URL; + +@set_time_limit($cfgExecTimeLimit); +$crlf = PMA_whichCrlf(); + +if (($cfgZipType == 'bzip') && (PMA_PHP_INT_VERSION >= 40004 && @function_exists('bzcompress'))) { + $ext = 'bz2'; + $mime_type = 'application/x-bzip'; +} else if (($cfgZipType == 'gzip') &&(PMA_PHP_INT_VERSION >= 40004 && @function_exists('gzencode'))) { + $ext = 'gz'; + $mime_type = 'application/x-gzip'; +} else if (($cfgZipType == 'zip') && (PMA_PHP_INT_VERSION >= 40000 && @function_exists('gzcompress'))) { + $ext = 'zip'; + $mime_type = 'application/x-zip'; +} else { + $ext = 'sql'; + $cfgZipType = 'none'; + $mime_type = (PMA_USR_BROWSER_AGENT == 'IE' || PMA_USR_BROWSER_AGENT == 'OPERA') + ? 'application/octetstream' + : 'application/octet-stream'; +} +$db = $db_name; +$sql = "SHOW TABLES FROM $db"; +$tables = mysql_query($sql); +$num_tables = @mysql_numrows($tables); + +$dirname = XOOPS_ROOT_PATH.'/'.$xoopsModuleConfig["dbfiles_path"]; +$prefix = 'bkp'; + +if ($num_tables == 0) { + echo '# ' ._DB_NOTABLESFOUND; + if(isset($_GET['oldurl'])){ + redirect_header($_GET['oldurl'], 3, _DB_BACKUP_READY ); + }else{ + redirect_header("javascript:history.go(-1)", 1, _DB_BACKUP_READY ); + } + exit; +} + +$filename_prefix = $prefix.'_'.$db.'-'.date('ymdHi'); +if (!$other_tables) { +$split = (is_array($xoopsModuleConfig["dbfiles_split"])&&count($xoopsModuleConfig["dbfiles_split"])>0)?$xoopsModuleConfig["dbfiles_split"]:array("1"); +} else { +$split = (is_array($other_tables)&&count($other_tables)>0)?$other_tables:array("1"); +} +$files_backup=array(); +for($i=0; $i<$num_tables; $i++){ + $name = mysql_tablename($tables, $i); + if(in_array("1",$split)||in_array($name, $split)){ + $files_backup[$name] = array($name); + }else{ + if ($xoopsModuleConfig['split']==1) $files_backup["body"][] = $name; + } +} + +$formatted_db_name = (isset($use_backquotes)) + ? PMA_backquote($db) + : '\'' . $db . '\''; +foreach($files_backup as $fl => $names){ + if ($xoopsModuleConfig['split']==1) { + $filename = ($fl == "body")?$filename_prefix:$filename_prefix."_".$fl; + } else { + $filename = $filename_prefix."_".$fl; + } + $dump_buffer = '# Backup for MySQL' . $crlf + . '#' . $crlf; + foreach ($names as $table) { + $formatted_table_name = (isset($use_backquotes)) + ? PMA_backquote($table) + : '\'' . $table . '\''; + $dump_buffer .= '# --------------------------------------------------------' . $crlf + . $crlf . '#' . $crlf + . '# ' ._DB_TABLESTRUCTURE. ' ' . $formatted_table_name . $crlf + . '#' . $crlf . $crlf + . PMA_getTableDef($db, $table, $crlf, $err_url) . ';' . $crlf; + + $tcmt = $crlf . '#' . $crlf + . '# ' ._DB_DUMPINGDATA. ' ' . $formatted_table_name . $crlf + . '#' . $crlf .$crlf; + $dump_buffer .= $tcmt; + $tmp_buffer = ''; + if (!isset($limit_from) || !isset($limit_to)) { + $limit_from = $limit_to = 0; + } + PMA_getTableContent($db, $table, $limit_from, $limit_to, 'PMA_myHandler', $err_url); + $dump_buffer .= $tmp_buffer; + } + $dump_buffer .= $crlf; + + + if ($cfgZipType == 'zip') { + if (PMA_PHP_INT_VERSION >= 40000 && @function_exists('gzcompress')) { + $extbis = '.sql'; + $zipfile = new zipfile(); + $zipfile -> addFile($dump_buffer, $filename . $extbis); + $dump_buffer = $zipfile -> file(); + } + } + else if ($cfgZipType == 'bzip') { + if (PMA_PHP_INT_VERSION >= 40004 && @function_exists('bzcompress')) { + $dump_buffer = bzcompress($dump_buffer); + } + } + else if ($cfgZipType == 'gzip') { + if (PMA_PHP_INT_VERSION >= 40004 && @function_exists('gzencode')) { + // without the optional parameter level because it bug + $dump_buffer = gzencode($dump_buffer); + } + } + + $fp = fopen($dirname.'/'. $filename . '.' . $ext,'w'); + fwrite($fp, $dump_buffer); + fclose($fp); + + if ($cfgBackupTarget == 'download') { + if(!is_object($xoopsUser)||!$xoopsUser->isAdmin()){ + redirect_header("javascript:history.go(-1)", 1, _NOPERM ); + exit; + } + header('Content-Type: ' . $mime_type); + if (PMA_USR_BROWSER_AGENT == 'IE') { + header('Content-Disposition: inline; filename="' . $filename . '.' . $ext . '"'); + header('Expires: 0'); + header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); + header('Pragma: public'); + } else { + header('Content-Disposition: attachment; filename="' . $filename . '.' . $ext . '"'); + header('Expires: 0'); + header('Pragma: no-cache'); + } + echo $dump_buffer; + } elseif ($cfgBackupTarget == 'email') { + $subject = sprintf(_DB_BACKUP_FOR, $xoopsConfig['sitename']) ; + $message = _DB_CREATEON.': '.date('H:i D d-M-Y')." \n" ; + $message .= _DB_DOWNLOAD.":\n"; + $message .= XOOPS_URL."/uploads/backup/".$filename.'.'.$ext."\n\n"; + $message .= "------------------\n"; + $message .= $xoopsConfig['sitename']."\n".$xoopsConfig['xoops_url']."/"; + $xoopsMailer =& xoops_getMailer(); + $xoopsMailer->useMail(); + $emails = explode(',',$xoopsModuleConfig['email_to']); + foreach ($emails as $key=>$value) { $emails[$key]=trim($value); } + $xoopsMailer->setToEmails($emails); + $xoopsMailer->setFromEmail($xoopsConfig['adminmail']); + $xoopsMailer->setFromName($xoopsConfig['sitename']); + $xoopsMailer->setSubject($subject); + $xoopsMailer->setBody($message); + if($xoopsModuleConfig['email_attach']){ + $xoopsMailer->multimailer->AddAttachment($dirname.'/'.$filename.'.'.$ext); + } + $xoopsMailer->send(); + } +} + +$db_files =& XoopsLists::getFileListAsArray($dirname); +$dbfiles = array(); +$dbprefix = array(); +foreach($db_files as $_file => $_filename){ + if(preg_match("/(^".$prefix."[^_]*)(_.*)?\.(.*)/i", $_filename, $matches)){ + $dbprefix[$matches[1]] = 1; + $dbfiles[]=$_filename; + } +} + +$dbpre = array_keys($dbprefix); +arsort($dbpre); +reset($dbpre); +$dbpre_valid = array_slice($dbpre, 0, $xoopsModuleConfig['dbfiles_store']); +foreach($dbfiles as $dbfile){ + if(!preg_match("/^(".implode("|",$dbpre_valid).")(_.*)?\.(.*)/i", $dbfile, $matches)){ + unlink($dirname.'/'.$dbfile); + } +} + + +if ($cfgBackupTarget != 'download') { + if(isset($_GET['oldurl'])){ + redirect_header($_GET['oldurl'], 3, _DB_BACKUP_READY ); + }else{ + redirect_header("javascript:history.go(-1)", 1, _DB_BACKUP_READY ); + } +} +include "admin_footer.php"; +?> Modified: XoopsModules/backup/trunk/backup/admin/cache.php =================================================================== --- XoopsModules/backup/trunk/backup/admin/cache.php 2012-04-11 04:10:37 UTC (rev 9297) +++ XoopsModules/backup/trunk/backup/admin/cache.php 2012-04-11 04:13:25 UTC (rev 9298) @@ -1,7 +1,7 @@ -<?php -include ('admin_header.php'); -require_once(XOOPS_ROOT_PATH.'/modules/backup/include/functions.php'); -$res = backup_export(); -redirect_header('index.php', 2, empty($res)?"configs backup error":"configs backup over!" ); -exit(); +<?php +include ('admin_header.php'); +require_once(XOOPS_ROOT_PATH.'/modules/backup/include/functions.php'); +$res = backup_export(); +redirect_header('index.php', 2, empty($res)?"configs backup error":"configs backup over!" ); +exit(); ?> \ No newline at end of file Deleted: XoopsModules/backup/trunk/backup/admin/index.html =================================================================== --- XoopsModules/backup/trunk/backup/admin/index.html 2012-04-11 04:10:37 UTC (rev 9297) +++ XoopsModules/backup/trunk/backup/admin/index.html 2012-04-11 04:13:25 UTC (rev 9298) @@ -1 +0,0 @@ - <script>history.go(-1);</script> \ No newline at end of file Modified: XoopsModules/backup/trunk/backup/admin/index.php =================================================================== --- XoopsModules/backup/trunk/backup/admin/index.php 2012-04-11 04:10:37 UTC (rev 9297) +++ XoopsModules/backup/trunk/backup/admin/index.php 2012-04-11 04:13:25 UTC (rev 9298) @@ -1,35 +1,52 @@ -<?php -include ('admin_header.php'); - -$op = 'Choice'; - -if ( isset($HTTP_POST_VARS['op']) ) { - $op = trim($HTTP_POST_VARS['op']); -} elseif ( isset($HTTP_GET_VARS['op']) ) { - $op = trim($HTTP_GET_VARS['op']); -} - -function Choice() { - global $xoopsModule; - xoops_cp_header(); - - OpenTable(); - echo "- <a href='".XOOPS_URL."/modules/system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule->getVar('mid')."'>"._DB_CONFIG."</a><br /><br />"; - echo "- <a href='".XOOPS_URL."/modules/backup/admin/backup.php?oldurl=".$_SERVER['PHP_SELF']."'>"._DB_BACKUP."</a><br /><br />"; - echo "- <a href='".XOOPS_URL."/modules/backup/admin/restore.php'>"._DB_RESTORE."</a> |"; - echo " <a href='".XOOPS_URL."/modules/backup/admin/restore.php?NA=1'>"._DB_NOADMIN."</a><br /><br />"; - echo "- <a href='".XOOPS_URL."/modules/backup/admin/cache.php'>"._DB_CACHE."</a><br />"; - echo "<br/><hr><br/><small>"._DB_README."</small>"; - CloseTable(); - xoops_cp_footer(); -} - -switch($op) { - case "Config": - Config(); - break; - default: - Choice(); - break; -} -?> \ No newline at end of file +<?php +/** + * **************************************************************************** + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright XOOPS Project + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package + * @author metalslug + * + * Version : $Id: + * **************************************************************************** + */ + +require_once '../../../include/cp_header.php'; +include 'admin_header.php'; +xoops_cp_header(); +$indexadmin = new ModuleAdmin(); +$tot_file=0; + if ($handle = opendir(XOOPS_ROOT_PATH.'/uploads/backup/')) { + while (false !== ($file = readdir($handle))) { + if ( $file == ".." || $file == "." || substr($file,0,1)=='.' ) continue; + $tot_file++; + } + closedir($handle); +} + $sql = "SHOW TABLES"; + $result = mysql_query($sql); + $tot_tables = mysql_num_rows($result); + $indexadmin->addInfoBox(_DB_BACKUP_BOX1); + if ( 0 < $tot_file ) { + $indexadmin->addInfoBoxLine(_DB_BACKUP_BOX1, _MD_BACKUP_TOTALFILES, $tot_file, 'Red'); + } else { + $indexadmin->addInfoBoxLine(_DB_BACKUP_BOX1, _MD_BACKUP_TOTALFILES, $tot_file, 'Green'); + } + + $indexadmin->addInfoBox(_DB_BACKUP_BOX2); + if ( 0 == $tot_tables ) { + $indexadmin->addInfoBoxLine(_DB_BACKUP_BOX2, _MD_BACKUP_TOTALDB_TABLES, $tot_tables, 'Red'); + } else { + $indexadmin->addInfoBoxLine(_DB_BACKUP_BOX2, _MD_BACKUP_TOTALDB_TABLES, $tot_tables, 'Green'); + } + echo $indexadmin->addNavigation('index.php') ; + echo $indexadmin->renderIndex(); + +include "admin_footer.php"; Added: XoopsModules/backup/trunk/backup/admin/main.php =================================================================== --- XoopsModules/backup/trunk/backup/admin/main.php (rev 0) +++ XoopsModules/backup/trunk/backup/admin/main.php 2012-04-11 04:13:25 UTC (rev 9298) @@ -0,0 +1,52 @@ +<?php +include_once '../../../include/cp_header.php'; +include_once 'admin_header.php'; +include_once XOOPS_ROOT_PATH."/modules/" . $xoopsModule->getVar("dirname") . "/include/functions.php"; +if ( file_exists("../language/".$xoopsConfig['language']."/admin.php") ) { + include_once "../language/".$xoopsConfig['language']."/admin.php"; +} else { +include_once "../language/english/admin.php"; +} + +$op = !empty( $_GET[ 'op' ] ) ? $_GET['op'] :"index"; + +switch ($op) +{ + case "backup": + xoops_cp_header(); + $index_admin = new ModuleAdmin(); + echo $index_admin->addNavigation('main.php?op=backup'); + if (isset($_POST['backup']) && $_POST['backup']=="confirm_backup") + { + header ('location: backup.php?oldurl='.$_SERVER['PHP_SELF']); + exit(); + } + xoops_confirm(array( 'backup' => "confirm_backup" ), 'main.php?op=backup', _AM_DBASE_BACKUP); + break; + + case "delete": + xoops_cp_header(); + $index_admin = new ModuleAdmin(); + echo $index_admin->addNavigation('main.php?op=delete'); + if (isset($_POST['delete']) && $_POST['delete']=="confirm_delete") + { + $dirpath=XOOPS_ROOT_PATH.'/'.$xoopsModuleConfig['dbfiles_path'].'/'; + $handle = opendir($dirpath); + while (($file = readdir($handle)) !== false) { + if ( $file != ".." && $file != "." && substr($file,0,1)!='.' ) + @unlink($dirpath . $file); + } + closedir($handle); + redirect_header("index.php", 2, _AM_DBASE_FILES_DELETED); + exit(); + } + xoops_confirm(array( 'delete' => "confirm_delete" ), 'main.php?op=delete', _AM_DBASE_DELETE); + break; + + case "index": + header ('location: index.php'); + exit(); + break; +} + +include "admin_footer.php"; Added: XoopsModules/backup/trunk/backup/admin/menu.php =================================================================== --- XoopsModules/backup/trunk/backup/admin/menu.php (rev 0) +++ XoopsModules/backup/trunk/backup/admin/menu.php 2012-04-11 04:13:25 UTC (rev 9298) @@ -0,0 +1,59 @@ +<?php +// $Id: menu.php,v 1.7 2003/04/17 12:45:28 okazu Exp $ +// ------------------------------------------------------------------------ // +// 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 // +// ------------------------------------------------------------------------ // + +$module_handler =& xoops_gethandler('module'); +$xoopsModule =& XoopsModule::getByDirname('profile'); +$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid')); +$pathIcon32 = $moduleInfo->getInfo('icons32'); + +$i = 1; +$adminmenu[$i]['title'] = _MI_BACKUP_ADMIN_HOME; +$adminmenu[$i]['link'] = 'admin/index.php'; +$adminmenu[$i]['desc'] = _MI_BACKUP_ADMIN_HOME_DESC; +$adminmenu[$i]['icon'] = '../../'.$pathIcon32.'/home.png' ; +$i++; +$adminmenu[$i]['title'] = _MI_BACKUP_ADMENU2; +$adminmenu[$i]['link'] = "admin/main.php?op=backup"; +$adminmenu[$i]['icon'] = 'images/admin/database.png'; +$i++; +$adminmenu[$i]['title'] = _MI_BACKUP_ADMENU3; +$adminmenu[$i]['link'] = "admin/other.php"; +$adminmenu[$i]['icon'] = 'images/admin/database_add.png'; +$i++; +$adminmenu[$i]['title'] = _MI_BACKUP_ADMENU4; +$adminmenu[$i]['link'] = "admin/restore.php"; +$adminmenu[$i]['icon'] = 'images/admin/restore.png'; +$i++; +$adminmenu[$i]['title'] = _MI_BACKUP_ADMENU5; +$adminmenu[$i]['link'] = "admin/main.php?op=delete"; +$adminmenu[$i]['icon'] = 'images/admin/delete.png'; +$i++; +$adminmenu[$i]['title'] = _MI_BACKUP_ADMIN_ABOUT; +$adminmenu[$i]['link'] = 'admin/about.php'; +$adminmenu[$i]['desc'] = _MI_BACKUP_ADMIN_ABOUT_DESC; +$adminmenu[$i]['icon'] = '../../'.$pathIcon32.'/about.png'; +?> Added: XoopsModules/backup/trunk/backup/admin/other.php =================================================================== --- XoopsModules/backup/trunk/backup/admin/other.php (rev 0) +++ XoopsModules/backup/trunk/backup/admin/other.php 2012-04-11 04:13:25 UTC (rev 9298) @@ -0,0 +1,78 @@ +<?php +// $Id: admin_forum_prune.php,v 1.3 2005/10/19 17:20:32 phppp Exp $ +// ------------------------------------------------------------------------ // +// 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 // +// ------------------------------------------------------------------------ // +include_once '../../../include/cp_header.php'; +include 'admin_header.php'; +include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; + + xoops_cp_header(); + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation('other.php'); + if (!empty($_POST['db_name'])) { + $db = $_POST['db_name']; + + $db_selected = mysql_select_db($db); + if (!$db_selected) { + redirect_header('other.php', 3, 'Database not exist'); + } + + $sql = "SHOW TABLES FROM $db"; + $tables = mysql_query($sql); + $num_tables = @mysql_numrows($tables); + + $options = array(0=>_NONE, 1=>_ALL); + for($i=0; $i<$num_tables; $i++){ + $name = mysql_tablename($tables, $i); + $options[$name] = $name; + } + + $sform = new XoopsThemeForm(_DB_BACKUP_TITLE, 'name', 'backup.php?oldurl='.$_SERVER['PHP_SELF'].'&db_name='.$db, 'post'); + $tab_select = new XoopsFormSelect(_DB_TABLES, 'tables', null, 6,true); + $tab_select->addOptionArray($options); + $sform->addElement($tab_select, true); + $button_tray = new XoopsFormElementTray('' ,''); + $submit_btn = new XoopsFormButton('', 'post', _SUBMIT, 'submit'); + $button_tray->addElement($submit_btn); + $sform->addElement($button_tray); + $sform->display(); + + } else { + + $sform = new XoopsThemeForm(_DB_BACKUP_TITLE, 'name', 'other.php', 'post'); + $sform->addElement(new XoopsFormText(_DB_DBASE, 'db_name', 50, 255, ""), true); + $button_tray = new XoopsFormElementTray('' ,''); + $submit_btn = new XoopsFormButton('', 'post', _SUBMIT, 'submit'); + $button_tray->addElement($submit_btn); + $sform->addElement($button_tray); + $sform->display(); + } + //$submit_btn = new XoopsFormButton('', 'post', _SUBMIT, 'submit'); + //$button_tray->addElement($submit_btn); + //$sform->addElement($button_tray); + //$sform->display(); +include 'admin_footer.php'; + +?> Modified: XoopsModules/backup/trunk/backup/admin/restore.php =================================================================== --- XoopsModules/backup/trunk/backup/admin/restore.php 2012-04-11 04:10:37 UTC (rev 9297) +++ XoopsModules/backup/trunk/backup/admin/restore.php 2012-04-11 04:13:25 UTC (rev 9298) @@ -1,298 +1,287 @@ -<?php - -// BigDump ver. 0.21b from 2005-02-08 -// Staggered import of an large MySQL Dump (like phpMyAdmin 2.x Dump) -// Even through the webservers with hard runtime limit and those in safe mode -// Works fine with Internet Explorer 6.0 SP1, Mozilla 1.x and even Netscape 4.8 - -// Author: Alexey Ozerov (alexey at ozerov dot de) -// Copyright: GPL (C) 2003-2005 -// More Infos: http://www.ozerov.de/bigdump - - -// ------------------------------------------------------------------------ // -// Author: D.J.(phppp) ph...@ho... // -// URL: http://xoops.org.cn // -// ------------------------------------------------------------------------- // - -ini_set("auto_detect_line_endings", true); - -$linespersession = 5000; // Lines to be executed per one import session -$delaypersession = 2000; // You can specify a sleep time in milliseconds after each session - // Works only if JavaScript is activated. Use to reduce server overrun - -// Allowed comment delimiters: lines starting with these strings will be dropped by BigDump - -$comment[0]="#"; // Standard comment lines are dropped by default -$comment[1]="-- "; -// $comment[2]="---"; // Uncomment this line if using proprietary dump created by outdated mysqldump -// $comment[3]=""; // Or add your own string to leave out other proprietary things - -define ("MAX_LINE_LENGTH",65536); -define ("MAX_QUERY_LINES",300); - -include("../../../mainfile.php"); -require_once(XOOPS_ROOT_PATH . "/include/cp_functions.php"); -require_once(XOOPS_ROOT_PATH . "/modules/backup/include/functions.php"); -require_once(XOOPS_ROOT_PATH.'/class/xoopslists.php'); // Merci, christian -$_REQUEST["NA"] = empty($_REQUEST["NA"])?0:1; -if(empty($_REQUEST["NA"])){ - include ('admin_header.php'); - $module_handler =& xoops_gethandler('module'); - $xoopsModule =& $module_handler->getByDirname('backup'); - $config_handler = & xoops_gethandler( 'config' ); - $xoopsModuleConfig = & $config_handler->getConfigsByCat( 0, $xoopsModule->getVar( 'mid' ) ); -}else{ - $xoopsModuleConfig = & backup_import(); - if(empty($xoopsModuleConfig["restore_nonadmin"])){ - include('admin_header.php'); - }else{ - if ( file_exists( XOOPS_ROOT_PATH."/modules/backup/language/" . $xoopsConfig['language'] . "/admin.php" ) ) { - include XOOPS_ROOT_PATH."/modules/backup/language/" . $xoopsConfig['language'] . "/admin.php"; - } - elseif ( file_exists( XOOPS_ROOT_PATH."/modules/backup/language/english/admin.php" ) ) { - include XOOPS_ROOT_PATH."/modules/backup/language/english/admin.php"; - } - } -} - -xoops_cp_header(); - -$dirname = XOOPS_ROOT_PATH.'/'.$xoopsModuleConfig["dbfiles_path"]; - -if(empty($_REQUEST["fn"])){ - $db_files =& XoopsLists::getFileListAsArray($dirname); - echo "<form method=\"post\">\n"; - echo _DB_SELECTFILE.": <select name=\"fn\" id=\"fn\">\n"; - foreach($db_files as $_file => $_filename){ - if (eregi("\.sql$",$_file) || (eregi("\.gz$",$_file) && function_exists("gzopen"))){ - echo "<option value=\"".$_file."\">".$_file."</option>\n"; - } - } - echo "</select>\n"; - echo "<input type=\"hidden\" name=\"NA\" value=".$_REQUEST["NA"].">\n"; - echo "<input type=\"submit\" value=\""._GO."\">\n"; - echo "</form>\n"; -}else{ - - $error=false; - // Recognize GZip filename - - if (eregi("\.gz$",$_REQUEST["fn"])) - $gzipmode=true; - else - $gzipmode=false; - - if ((!$gzipmode && !$file=fopen($dirname."/".$_REQUEST["fn"],"rt")) || ($gzipmode && !$file=gzopen($dirname."/".$_REQUEST["fn"],"rt"))) - { - echo ("<p class=\"error\">Can't open ".$_REQUEST["fn"]." for import</p>\n"); - $error=true; - } - - // Get the file size (can't do it fast on gzipped files, no idea how) - - else if ((!$gzipmode && fseek($file, 0, SEEK_END)==0) || ($gzipmode && gzseek($file, 0, SEEK_SET)==0)) - { if (!$gzipmode) $filesize = ftell($file); - else $filesize = gztell($file); // Always zero, ignore - } - else - { echo ("<p class=\"error\">I can't get the filesize of ".$_REQUEST["fn"]."</p>\n"); - $error=true; - } - - - $dbconnection=$xoopsDB->conn; - // **************************************************** - // START IMPORT SESSION HERE - // **************************************************** - - $_REQUEST["start"] = isset($_REQUEST["start"])?intval($_REQUEST["start"]):1; - $_REQUEST["foffset"] = isset($_REQUEST["foffset"])?intval($_REQUEST["foffset"]):0; - $_REQUEST["totalqueries"] = isset($_REQUEST["totalqueries"])?intval($_REQUEST["totalqueries"]):0; - - if (!$error) - { - echo ("<p>Processing file: ".$_REQUEST["fn"]."</p>\n"); - echo ("<p>Starting at the line: ".$_REQUEST["start"]."</p>\n"); - - // Check $_REQUEST["foffset"] upon $filesize (can't do it on gzipped files) - - if (!$gzipmode && $_REQUEST["foffset"]>$filesize) - { echo ("<p class=\"error\">UNEXPECTED: Can't set file pointer behind the end of file</p>\n"); - $error=true; - } - - // Set file pointer to $_REQUEST["foffset"] - - if(empty($xoopsModuleConfig["pos_line"])){ - if (!$error && ((!$gzipmode && fseek($file, $_REQUEST["foffset"])!=0) || ($gzipmode && gzseek($file, $_REQUEST["foffset"])!=0))) - { echo ("<p class=\"error\">UNEXPECTED: Can't set file pointer to offset: ".$_REQUEST["foffset"]."</p>\n"); - $error=true; - } - $linenumber=$_REQUEST["start"]; - }else{ - if (!$error && ((!$gzipmode && fseek($file, 0)!=0) || ($gzipmode && gzseek($file, 0)!=0))) - { echo ("<p class=\"error\">UNEXPECTED: Can't set file pointer to offset: ".$_REQUEST["foffset"]."</p>\n"); - $error=true; - } - $linenumber = 1; - } - - - // Start processing queries from $file - - if (!$error) - { - $query=""; - $queries=0; - $totalqueries=$_REQUEST["totalqueries"]; - //$linenumber=$_REQUEST["start"]; - $querylines=0; - $inparents=false; - - //echo "<br />ln: ".$linenumber."; totalqueries: ".$_REQUEST["totalqueries"]; - while (($linenumber<$_REQUEST["start"]+$linespersession || $query!="") - && ((!$gzipmode && $dumpline=fgets($file, MAX_LINE_LENGTH)) || ($gzipmode && $dumpline=gzgets($file, MAX_LINE_LENGTH)))) - { - if(!empty($xoopsModuleConfig["pos_line"]) && $linenumber<$_REQUEST["start"]){ - $linenumber++; - continue; - } - //echo "<br />ln: ".$linenumber."; start: ".$_REQUEST["start"]; - - // Handle DOS and Mac encoded linebreaks (I don't know if it will work on Win32 or Mac Servers) - - $dumpline=ereg_replace("\r\n$", "\n", $dumpline); - $dumpline=ereg_replace("\r$", "\n", $dumpline); - - // DIAGNOSTIC - // echo ("<p>Line $linenumber: $dumpline</p>\n"); - - // Skip comments and blank lines only if NOT in parents - - if (!$inparents) - { $skipline=false; - reset($comment); - foreach ($comment as $comment_value) - { if (!$inparents && (trim($dumpline)=="" || strpos ($dumpline, $comment_value) === 0)) - { $skipline=true; - break; - } - } - if ($skipline) - { $linenumber++; - continue; - } - } - - // Remove double back-slashes from the dumpline prior to count the quotes ('\\' can only be within strings) - - $dumpline_deslashed = str_replace ("\\\\","",$dumpline); - - // Count ' and \' in the dumpline to avoid query break within a text field ending by ; - // Please don't use double quotes ('"')to surround strings, it wont work - - $parents=substr_count ($dumpline_deslashed, "'")-substr_count ($dumpline_deslashed, "\\'"); - if ($parents % 2 != 0) - $inparents=!$inparents; - - // Add the line to query - - $query .= $dumpline; - - // Don't count the line if in parents (text fields may include unlimited linebreaks) - - if (!$inparents) - $querylines++; - - // Stop if query contains more lines as defined by MAX_QUERY_LINES - - if ($querylines>MAX_QUERY_LINES) - { - echo ("<p class=\"error\">Stopped at the line $linenumber. </p>"); - echo ("<p>At this place the current query includes more than ".MAX_QUERY_LINES." dump lines. That can happen if your dump file was "); - echo ("created by some tool which doesn't place a semicolon followed by a linebreak at the end of each query, or if your dump contains "); - echo ("extended inserts. Please read the BigDump FAQs for more infos.</p>\n"); - $error=true; - break; - } - - // Execute query if end of query detected (; as last character) AND NOT in parents - - if (ereg(";$",trim($dumpline)) && !$inparents) - { - if (!mysql_query(trim($query), $dbconnection)) - //if (false) - { - echo ("<p>Error at the line $linenumber: ". trim($dumpline)."</p>\n"); - echo ("<p>Query: ".trim($query)."</p>\n"); - echo ("<p>MySQL: ".mysql_error()."</p>\n"); - $error=true; - break; - }else{ - //echo ("<p>line #".$linenumber.": ".trim($query)."<br />dumpline: ".$dumpline."</p>\n"); - } - //echo "<br />query: ".$query; - $totalqueries++; - $queries++; - $query=""; - $querylines=0; - } - $linenumber++; - } - } - - // Get the current file position - - if (!$error) - { if (!$gzipmode) - $foffset = ftell($file); - else - $foffset = gztell($file); - if (!$foffset) - { echo ("<p class=\"error\">UNEXPECTED: Can't read the file pointer offset</p>\n"); - $error=true; - } - } - - // Finish message and restart the script - - if (!$error) - { echo ("<p>Stopping at the line: ".($linenumber-1)."</p>\n"); - echo ("<p>Queries performed (this session/total): $queries/$totalqueries</p>\n"); - echo ("<p>Total bytes processed: $foffset (".round($foffset/1024)." KB)</p>\n"); - if ($linenumber<$_REQUEST["start"]+$linespersession) - { - echo ("<p class=\"success\">Congratulations: End of file reached, assuming OK</p>\n"); - $over=true; - } - else - { - if ($delaypersession!=0){ - echo ("<p>Now I'm <b>waiting $delaypersession milliseconds</b> before starting next session...</p>\n"); - } - echo ("<script language=\"JavaScript\" type=\"text/javascript\">window.setTimeout('location.href=\"".$_SERVER["PHP_SELF"]."?start=$linenumber&fn=".$_REQUEST["fn"]."&foffset=$foffset&totalqueries=$totalqueries&NA=".$_REQUEST["NA"]."\";',500+$delaypersession);</script>\n"); - echo ("<noscript>\n"); - echo ("<p><a href=\"".$_SERVER["PHP_SELF"]."?start=$linenumber&fn=".$_REQUEST["fn"]."&foffset=$foffset&totalqueries=$totalqueries\">Continue from the line $linenumber</a> (Enable JavaScript to do it automatically)</p>\n"); - echo ("</noscript>\n"); - echo ("<p>Press <a href=\"".$_SERVER["PHP_SELF"]."\">STOP</a> to abort the import <b>OR WAIT!</b></p>\n"); - } - } - else - echo ("<p class=\"error\">Stopped on error</p>\n"); - } - - if ($error){ - echo ("<p><a href=\"".$_SERVER["PHP_SELF"]."?&NA=".$_REQUEST["NA"]."\">Start from the beginning</a> (DROP the old tables before restarting)</p>\n"); - }elseif(!empty($over)){ - echo ("<p><a href=\"".$_SERVER["PHP_SELF"]."?&NA=".$_REQUEST["NA"]."\">Start another file</a></p>\n"); - echo ("<p><a href=\"".XOOPS_URL."/modules/backup/admin/index.php\">Back to index page</a></p>\n"); - //unlink($dirname."/".$_REQUEST["fn"]); - } - - if ($file && !$gzipmode) fclose($file); - else if ($file && $gzipmode) gzclose($file); - -} -xoops_cp_footer(); -?> \ No newline at end of file +<?php + +// BigDump ver. 0.21b from 2005-02-08 +// Staggered import of an large MySQL Dump (like phpMyAdmin 2.x Dump) +// Even through the webservers with hard runtime limit and those in safe mode +// Works fine with Internet Explorer 6.0 SP1, Mozilla 1.x and even Netscape 4.8 + +// Author: Alexey Ozerov (alexey at ozerov dot de) +// Copyright: GPL (C) 2003-2005 +// More Infos: http://www.ozerov.de/bigdump + + +// ------------------------------------------------------------------------ // +// Author: D.J.(phppp) ph...@ho... // +// URL: http://xoops.org.cn // +// ------------------------------------------------------------------------- // + +ini_set("auto_detect_line_endings", true); + +$linespersession = 5000; // Lines to be executed per one import session +$delaypersession = 2000; // You can specify a sleep time in milliseconds after each session + // Works only if JavaScript is activated. Use to reduce server overrun + +// Allowed comment delimiters: lines starting with these strings will be dropped by BigDump + +$comment[0]="#"; // Standard comment lines are dropped by default +$comment[1]="-- "; +// $comment[2]="---"; // Uncomment this line if using proprietary dump created by outdated mysqldump +// $comment[3]=""; // Or add your own string to leave out other proprietary things + +define ("MAX_LINE_LENGTH",65536); +define ("MAX_QUERY_LINES",300); +include('admin_header.php'); +require_once(XOOPS_ROOT_PATH . "/include/cp_functions.php"); +require_once(XOOPS_ROOT_PATH . "/modules/backup/include/functions.php"); +require_once(XOOPS_ROOT_PATH.'/class/xoopslists.php'); // Merci, christian + + $xoopsModuleConfig = & backup_import(); + +xoops_cp_header(); +$indexAdmin = new ModuleAdmin(); +echo $indexAdmin->addNavigation('restore.php'); +$dirname = XOOPS_ROOT_PATH.'/'.$xoopsModuleConfig["dbfiles_path"]; +$db_name=(empty($_POST['db_name']))?XOOPS_DB_NAME:$_POST['db_name']; + +if(empty($_REQUEST["fn"])){ + $db_files =& XoopsLists::getFileListAsArray($dirname); + echo "<form method=\"post\">\n"; + echo _DB_INSERT.": <input type=\"text\" name=\"db_name\" value=\"".XOOPS_DB_NAME."\">\n"; + echo _DB_SELECTFILE.": <select name=\"fn\" id=\"fn\">\n"; + foreach($db_files as $_file => $_filename){ + if (preg_match("/\.sql$/i",$_file) || (preg_match("/\.gz$/i",$_file) && function_exists("gzopen"))){ + echo "<option value=\"".$_file."\">".$_file."</option>\n"; + } + } + echo "</select>\n"; + echo "<input type=\"submit\" value=\""._GO."\">\n"; + echo "</form>\n"; +}else{ + + $error=false; + // Recognize GZip filename + + if (preg_match("/\.gz$/i",$_REQUEST["fn"])) + $gzipmode=true; + else + $gzipmode=false; + + if ((!$gzipmode && !$file=fopen($dirname."/".$_REQUEST["fn"],"rt")) || ($gzipmode && !$file=gzopen($dirname."/".$_REQUEST["fn"],"rt"))) + { + echo ("<p class=\"error\">Can't open ".$_REQUEST["fn"]." for import</p>\n"); + $error=true; + } + + // Get the file size (can't do it fast on gzipped files, no idea how) + + else if ((!$gzipmode && fseek($file, 0, SEEK_END)==0) || ($gzipmode && gzseek($file, 0, SEEK_SET)==0)) + { if (!$gzipmode) $filesize = ftell($file); + else $filesize = gztell($file); // Always zero, ignore + } + else + { echo ("<p class=\"error\">I can't get the filesize of ".$_REQUEST["fn"]."</p>\n"); + $error=true; + } + + + $dbconnection=$xoopsDB->conn; + if (!mysql_select_db($db_name)) { + redirect_header('index.php', 3, 'Database not exist'); + exit; + } + @mysql_select_db($db_name, $dbconnection); + + // **************************************************** + // START IMPORT SESSION HERE + // **************************************************** + + $_REQUEST["start"] = isset($_REQUEST["start"])?intval($_REQUEST["start"]):1; + $_REQUEST["foffset"] = isset($_REQUEST["foffset"])?intval($_REQUEST["foffset"]):0; + $_REQUEST["totalqueries"] = isset($_REQUEST["totalqueries"])?intval($_REQUEST["totalqueries"]):0; + + if (!$error) + { + echo ("<p>Processing file: ".$_REQUEST["fn"]."</p>\n"); + echo ("<p>Starting at the line: ".$_REQUEST["start"]."</p>\n"); + + // Check $_REQUEST["foffset"] upon $filesize (can't do it on gzipped files) + + if (!$gzipmode && $_REQUEST["foffset"]>$filesize) + { echo ("<p class=\"error\">UNEXPECTED: Can't set file pointer behind the end of file</p>\n"); + $error=true; + } + + // Set file pointer to $_REQUEST["foffset"] + + if(empty($xoopsModuleConfig["pos_line"])){ + if (!$error && ((!$gzipmode && fseek($file, $_REQUEST["foffset"])!=0) || ($gzipmode && gzseek($file, $_REQUEST["foffset"])!=0))) + { echo ("<p class=\"error\">UNEXPECTED: Can't set file pointer to offset: ".$_REQUEST["foffset"]."</p>\n"); + $error=true; + } + $linenumber=$_REQUEST["start"]; + }else{ + if (!$error && ((!$gzipmode && fseek($file, 0)!=0) || ($gzipmode && gzseek($file, 0)!=0))) + { echo ("<p class=\"error\">UNEXPECTED: Can't set file pointer to offset: ".$_REQUEST["foffset"]."</p>\n"); + $error=true; + } + $linenumber = 1; + } + + + // Start processing queries from $file + + if (!$error) + { + $query=""; + $queries=0; + $totalqueries=$_REQUEST["totalqueries"]; + //$linenumber=$_REQUEST["start"]; + $querylines=0; + $inparents=false; + + //echo "<br />ln: ".$linenumber."; totalqueries: ".$_REQUEST["totalqueries"]; + while (($linenumber<$_REQUEST["start"]+$linespersession || $query!="") + && ((!$gzipmode && $dumpline=fgets($file, MAX_LINE_LENGTH)) || ($gzipmode && $dumpline=gzgets($file, MAX_LINE_LENGTH)))) + { + if(!empty($xoopsModuleConfig["pos_line"]) && $linenumber<$_REQUEST["start"]){ + $linenumber++; + continue; + } + //echo "<br />ln: ".$linenumber."; start: ".$_REQUEST["start"]; + + // Handle DOS and Mac encoded linebreaks (I don't know if it will work on Win32 or Mac Servers) + + $dumpline=preg_replace("/\r\n$/", "\n", $dumpline); + $dumpline=preg_replace("/\r$/", "\n", $dumpline); + + // DIAGNOSTIC + // echo ("<p>Line $linenumber: $dumpline</p>\n"); + + // Skip comments and blank lines only if NOT in parents + + if (!$inparents) + { $skipline=false; + reset($comment); + foreach ($comment as $comment_value) + { if (!$inparents && (trim($dumpline)=="" || strpos ($dumpline, $comment_value) === 0)) + { $skipline=true; + break; + } + } + if ($skipline) + { $linenumber++; + continue; + } + } + + // Remove double back-slashes from the dumpline prior to count the quotes ('\\' can only be within strings) + + $dumpline_deslashed = str_replace ("\\\\","",$dumpline); + + // Count ' and \' in the dumpline to avoid query break within a text field ending by ; + // Please don't use double quotes ('"')to surround strings, it wont work + + $parents=substr_count ($dumpline_deslashed, "'")-substr_count ($dumpline_deslashed, "\\'"); + if ($parents % 2 != 0) + $inparents=!$inparents; + + // Add the line to query + + $query .= $dumpline; + + // Don't count the line if in parents (text fields may include unlimited linebreaks) + + if (!$inparents) + $querylines++; + + // Stop if query contains more lines as defined by MAX_QUERY_LINES + + if ($querylines>MAX_QUERY_LINES) + { + echo ("<p class=\"error\">Stopped at the line $linenumber. </p>"); + echo ("<p>At this place the current query includes more than ".MAX_QUERY_LINES." dump lines. That can happen if your dump file was "); + echo ("created by some tool which doesn't place a semicolon followed by a linebreak at the end of each query, or if your dump contains "); + echo ("extended inserts. Please read the BigDump FAQs for more infos.</p>\n"); + $error=true; + break; + } + + // Execute query if end of query detected (; as last character) AND NOT in parents + + if (preg_match("/;$/",trim($dumpline)) && !$inparents) + { + if (!mysql_query(trim($query), $dbconnection)) + //if (false) + { + echo ("<p>Error at the line $linenumber: ". trim($dumpline)."</p>\n"); + echo ("<p>Query: ".trim($query)."</p>\n"); + echo ("<p>MySQL: ".mysql_error()."</p>\n"); + $error=true; + break; + }else{ + //echo ("<p>line #".$linenumber.": ".trim($query)."<br />dumpline: ".$dumpline."</p>\n"); + } + //echo "<br />query: ".$query; + $totalqueries++; + $queries++; + $query=""; + $querylines=0; + } + $linenumber++; + } + } + + // Get the current file position + + if (!$error) + { if (!$gzipmode) + $foffset = ftell($file); + else + $foffset = gztell($file); + if (!$foffset) + { echo ("<p class=\"error\">UNEXPECTED: Can't read the file pointer offset</p>\n"); + $error=true; + } + } + + // Finish message and restart the script + + if (!$error) + { echo ("<p>Stopping at the line: ".($linenumber-1)."</p>\n"); + echo ("<p>Queries performed (this session/total): $queries/$totalqueries</p>\n"); + echo ("<p>Total bytes processed: $foffset (".round($foffset/1024)." KB)</p>\n"); + if ($linenumber<$_REQUEST["start"]+$linespersession) + { + echo ("<p class=\"success\">Congratulations: End of file reached, assuming OK</p>\n"); + $over=true; + } + else + { + if ($delaypersession!=0){ + echo ("<p>Now I'm <b>waiting $delaypersession milliseconds</b> before starting next session...</p>\n"); + } + echo ("<script language=\"JavaScript\" type=\"text/javascript\">window.setTimeout('location.href=\"".$_SERVER["PHP_SELF"]."?start=$linenumber&fn=".$_REQUEST["fn"]."&foffset=$foffset&totalqueries=$totalqueries&NA=".$_REQUEST["NA"]."\";',500+$delaypersession);</script>\n"); + echo ("<noscript>\n"); + echo (... [truncated message content] |
From: <be...@us...> - 2012-04-11 04:10:43
|
Revision: 9297 http://xoops.svn.sourceforge.net/xoops/?rev=9297&view=rev Author: beckmi Date: 2012-04-11 04:10:37 +0000 (Wed, 11 Apr 2012) Log Message: ----------- create release 3.0 Added Paths: ----------- XoopsModules/backup/releases/3.0/backup/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-04-11 04:08:55
|
Revision: 9296 http://xoops.svn.sourceforge.net/xoops/?rev=9296&view=rev Author: beckmi Date: 2012-04-11 04:08:46 +0000 (Wed, 11 Apr 2012) Log Message: ----------- Adding Backup module Added Paths: ----------- XoopsModules/Backup-readme.txt XoopsModules/backup/ XoopsModules/backup/branches/ XoopsModules/backup/releases/ XoopsModules/backup/releases/3.0/ XoopsModules/backup/trunk/ XoopsModules/backup/trunk/backup/ XoopsModules/backup/trunk/backup/admin/ XoopsModules/backup/trunk/backup/admin/admin_header.php XoopsModules/backup/trunk/backup/admin/backup.php XoopsModules/backup/trunk/backup/admin/cache.php XoopsModules/backup/trunk/backup/admin/index.html XoopsModules/backup/trunk/backup/admin/index.php XoopsModules/backup/trunk/backup/admin/restore.php XoopsModules/backup/trunk/backup/images/ XoopsModules/backup/trunk/backup/images/index.html XoopsModules/backup/trunk/backup/images/slogo.png XoopsModules/backup/trunk/backup/include/ XoopsModules/backup/trunk/backup/include/build_dump.lib.php XoopsModules/backup/trunk/backup/include/defines.lib.php XoopsModules/backup/trunk/backup/include/functions.php XoopsModules/backup/trunk/backup/include/index.html XoopsModules/backup/trunk/backup/include/zip.lib.php XoopsModules/backup/trunk/backup/index.html XoopsModules/backup/trunk/backup/language/ XoopsModules/backup/trunk/backup/language/english/ XoopsModules/backup/trunk/backup/language/english/admin.php XoopsModules/backup/trunk/backup/language/english/index.html XoopsModules/backup/trunk/backup/language/english/modinfo.php XoopsModules/backup/trunk/backup/language/index.html XoopsModules/backup/trunk/backup/language/schinese/ XoopsModules/backup/trunk/backup/language/schinese/admin.php XoopsModules/backup/trunk/backup/language/schinese/index.html XoopsModules/backup/trunk/backup/language/schinese/modinfo.php XoopsModules/backup/trunk/backup/readme.txt XoopsModules/backup/trunk/backup/xoops_version.php Added: XoopsModules/Backup-readme.txt =================================================================== --- XoopsModules/Backup-readme.txt (rev 0) +++ XoopsModules/Backup-readme.txt 2012-04-11 04:08:46 UTC (rev 9296) @@ -0,0 +1,40 @@ +The place for XOOPS modules maintained by XOOPS Dev Team. +Each module is managed as a sub-project by lead authors. + +Structure: + +XoopsModules +-- dirname +----- branches +----- releases +----- trunk +-------- yourmodule (dirname of your module) +-- dirname +----- branches +----- releases +----- trunk +-------- yourmodule (dirname of your module) + + + +SVN Related links: + +1) SVN Best Practices: +http://svn.apache.org/repos/asf/subversion/trunk/doc/user/svn-best-practices.html + +2) TortoiseSVN (best Windows client for SVN): +http://tortoisesvn.net/ + +2) Using Subversion at PLU with Tortoise SVN +http://www.cs.plu.edu/~dwolff/svn-tutorial/svn-tutorial.html + +3) How to use TortoiseSVN: Tutorials +http://www.youtube.com/watch?v=fPUdXvjY_G4 (video) +http://baltimorehackerspace.com/2009/07/sourceforge-and-tortoisesvn-tutorial/ +http://www.igorexchange.com/node/87 + +4) Version Control with Subversion +http://svnbook.red-bean.com/ + +5) For file comparison, WinMerge works with Tortoise SVN +http://winmerge.org/ \ No newline at end of file Added: XoopsModules/backup/trunk/backup/admin/admin_header.php =================================================================== --- XoopsModules/backup/trunk/backup/admin/admin_header.php (rev 0) +++ XoopsModules/backup/trunk/backup/admin/admin_header.php 2012-04-11 04:08:46 UTC (rev 9296) @@ -0,0 +1,3 @@ +<?php +include("../../../include/cp_header.php"); +?> \ No newline at end of file Added: XoopsModules/backup/trunk/backup/admin/backup.php =================================================================== --- XoopsModules/backup/trunk/backup/admin/backup.php (rev 0) +++ XoopsModules/backup/trunk/backup/admin/backup.php 2012-04-11 04:08:46 UTC (rev 9296) @@ -0,0 +1,228 @@ +<?php +// ------------------------------------------------------------------------ // +// Author: D.J.(phppp) ph...@ho... // +// URL: http://xoops.org.cn // +// ------------------------------------------------------------------------- // + +include("../../../mainfile.php"); +$module_handler =& xoops_gethandler('module'); +$xoopsModule =& $module_handler->getByDirname('backup'); +$config_handler = & xoops_gethandler( 'config' ); +$xoopsModuleConfig = & $config_handler->getConfigsByCat( 0, $xoopsModule->getVar( 'mid' ) ); +if ( file_exists( XOOPS_ROOT_PATH."/modules/backup/language/" . $xoopsConfig['language'] . "/admin.php" ) ) { + include XOOPS_ROOT_PATH."/modules/backup/language/" . $xoopsConfig['language'] . "/admin.php"; +} +elseif ( file_exists( XOOPS_ROOT_PATH."/modules/backup/language/english/admin.php" ) ) { + include XOOPS_ROOT_PATH."/modules/backup/language/english/admin.php"; +} + +include_once(XOOPS_ROOT_PATH.'/modules/backup/include/defines.lib.php'); +include_once(XOOPS_ROOT_PATH.'/modules/backup/include/build_dump.lib.php'); +include_once(XOOPS_ROOT_PATH.'/modules/backup/include/zip.lib.php'); +include_once(XOOPS_ROOT_PATH."/class/xoopslists.php"); + +$cfgBackupTarget = $xoopsModuleConfig['cfgBackupTarget']; +$drop = $xoopsModuleConfig['drop']; +$cfgZipType = $xoopsModuleConfig['cfgZipType']; +$cfgExecTimeLimit = $xoopsModuleConfig['cfgExecTimeLimit']; +$use_backquotes = $xoopsModuleConfig['use_backquotes']; + +$server = XOOPS_DB_NAME; + +function PMA_myHandler($sql_insert) +{ + global $tmp_buffer; + $eol_dlm = (isset($GLOBALS['extended_ins']) && ($GLOBALS['current_row'] < $GLOBALS['rows_cnt'])) + ? ',' + : ';'; + $tmp_buffer .= $sql_insert . $eol_dlm . $GLOBALS['crlf']; +} + +function PMA_whichCrlf() +{ + $the_crlf = "\n"; + if (PMA_USR_OS == 'Win') { + $the_crlf = "\r\n"; + } + else if (PMA_USR_OS == 'Mac') { + $the_crlf = "\r"; + } + else { + $the_crlf = "\n"; + } + return $the_crlf; +} + +$err_url = XOOPS_URL; + +@set_time_limit($cfgExecTimeLimit); +$crlf = PMA_whichCrlf(); + +if (($cfgZipType == 'bzip') && (PMA_PHP_INT_VERSION >= 40004 && @function_exists('bzcompress'))) { + $ext = 'bz2'; + $mime_type = 'application/x-bzip'; +} else if (($cfgZipType == 'gzip') &&(PMA_PHP_INT_VERSION >= 40004 && @function_exists('gzencode'))) { + $ext = 'gz'; + $mime_type = 'application/x-gzip'; +} else if (($cfgZipType == 'zip') && (PMA_PHP_INT_VERSION >= 40000 && @function_exists('gzcompress'))) { + $ext = 'zip'; + $mime_type = 'application/x-zip'; +} else { + $ext = 'sql'; + $cfgZipType = 'none'; + $mime_type = (PMA_USR_BROWSER_AGENT == 'IE' || PMA_USR_BROWSER_AGENT == 'OPERA') + ? 'application/octetstream' + : 'application/octet-stream'; +} + +$tables = mysql_list_tables($db = XOOPS_DB_NAME); +$num_tables = @mysql_numrows($tables); + +$dirname = XOOPS_ROOT_PATH.'/'.$xoopsModuleConfig["dbfiles_path"]; +$prefix = 'bkp'; + +if ($num_tables == 0) { + echo '# ' ._DB_NOTABLESFOUND; + if(isset($_GET['oldurl'])){ + redirect_header($_GET['oldurl'], 3, _DB_BACKUP_READY ); + }else{ + redirect_header("javascript:history.go(-1)", 1, _DB_BACKUP_READY ); + } + exit; +} + +$filename_prefix = $prefix.date('ymdHi'); +$split = (is_array($xoopsModuleConfig["dbfiles_split"])&&count($xoopsModuleConfig["dbfiles_split"])>0)?$xoopsModuleConfig["dbfiles_split"]:array("1"); +$files_backup=array(); +for($i=0; $i<$num_tables; $i++){ + $name = mysql_tablename($tables, $i); + if(in_array("1",$split)||in_array($name, $split)){ + $files_backup[$name] = array($name); + }else{ + $files_backup["body"][] = $name; + } +} +$formatted_db_name = (isset($use_backquotes)) + ? PMA_backquote($db) + : '\'' . $db . '\''; +foreach($files_backup as $fl => $names){ + $filename = ($fl == "body")?$filename_prefix:$filename_prefix."_".$fl; + $dump_buffer = '# Backup for MySQL' . $crlf + . '#' . $crlf; + foreach ($names as $table) { + $formatted_table_name = (isset($use_backquotes)) + ? PMA_backquote($table) + : '\'' . $table . '\''; + $dump_buffer .= '# --------------------------------------------------------' . $crlf + . $crlf . '#' . $crlf + . '# ' ._DB_TABLESTRUCTURE. ' ' . $formatted_table_name . $crlf + . '#' . $crlf . $crlf + . PMA_getTableDef($db, $table, $crlf, $err_url) . ';' . $crlf; + + $tcmt = $crlf . '#' . $crlf + . '# ' ._DB_DUMPINGDATA. ' ' . $formatted_table_name . $crlf + . '#' . $crlf .$crlf; + $dump_buffer .= $tcmt; + $tmp_buffer = ''; + if (!isset($limit_from) || !isset($limit_to)) { + $limit_from = $limit_to = 0; + } + PMA_getTableContent($db, $table, $limit_from, $limit_to, 'PMA_myHandler', $err_url); + $dump_buffer .= $tmp_buffer; + } + $dump_buffer .= $crlf; + + + if ($cfgZipType == 'zip') { + if (PMA_PHP_INT_VERSION >= 40000 && @function_exists('gzcompress')) { + $extbis = '.sql'; + $zipfile = new zipfile(); + $zipfile -> addFile($dump_buffer, $filename . $extbis); + $dump_buffer = $zipfile -> file(); + } + } + else if ($cfgZipType == 'bzip') { + if (PMA_PHP_INT_VERSION >= 40004 && @function_exists('bzcompress')) { + $dump_buffer = bzcompress($dump_buffer); + } + } + else if ($cfgZipType == 'gzip') { + if (PMA_PHP_INT_VERSION >= 40004 && @function_exists('gzencode')) { + // without the optional parameter level because it bug + $dump_buffer = gzencode($dump_buffer); + } + } + + $fp = fopen($dirname.'/'. $filename . '.' . $ext,'w'); + fwrite($fp, $dump_buffer); + fclose($fp); + + if ($cfgBackupTarget == 'download') { + if(!is_object($xoopsUser)||!$xoopsUser->isAdmin()){ + redirect_header("javascript:history.go(-1)", 1, _NOPERM ); + exit; + } + header('Content-Type: ' . $mime_type); + if (PMA_USR_BROWSER_AGENT == 'IE') { + header('Content-Disposition: inline; filename="' . $filename . '.' . $ext . '"'); + header('Expires: 0'); + header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); + header('Pragma: public'); + } else { + header('Content-Disposition: attachment; filename="' . $filename . '.' . $ext . '"'); + header('Expires: 0'); + header('Pragma: no-cache'); + } + echo $dump_buffer; + } elseif ($cfgBackupTarget == 'email') { + $subject = sprintf(_DB_BACKUP_FOR, $xoopsConfig['sitename']) ; + $message = _DB_CREATEON.': '.date('H:i D d-M-Y')." \n" ; + $message .= _DB_DOWNLOAD.":\n"; + $message .= XOOPS_URL."/modules/backup/cache/".$filename.'.'.$ext."\n\n"; + $message .= "------------------\n"; + $message .= $xoopsConfig['sitename']."\n".$xoopsConfig['xoops_url']."/"; + $xoopsMailer =& getMailer(); + $xoopsMailer->useMail(); + $emails = explode(',',$xoopsModuleConfig['email_to']); + foreach ($emails as $key=>$value) { $emails[$key]=trim($value); } + $xoopsMailer->setToEmails($emails); + $xoopsMailer->setFromEmail($xoopsConfig['adminmail']); + $xoopsMailer->setFromName($xoopsConfig['sitename']); + $xoopsMailer->setSubject($subject); + $xoopsMailer->setBody($message); + if($xoopsModuleConfig['email_attach']){ + $xoopsMailer->multimailer->AddAttachment($dirname.'/'.$filename.'.'.$ext); + } + $xoopsMailer->send(); + } +} + +$db_files =& XoopsLists::getFileListAsArray($dirname); +$dbfiles = array(); +$dbprefix = array(); +foreach($db_files as $_file => $_filename){ + if(preg_match("/(^".$prefix."[^_]*)(_.*)?\.(.*)/i", $_filename, $matches)){ + $dbprefix[$matches[1]] = 1; + $dbfiles[]=$_filename; + } +} + +$dbpre = array_keys($dbprefix); +arsort($dbpre); +reset($dbpre); +$dbpre_valid = array_slice($dbpre, 0, $xoopsModuleConfig['dbfiles_store']); +foreach($dbfiles as $dbfile){ + if(!preg_match("/^(".implode("|",$dbpre_valid).")(_.*)?\.(.*)/i", $dbfile, $matches)){ + unlink($dirname.'/'.$dbfile); + } +} + + +if ($cfgBackupTarget != 'download') { + if(isset($_GET['oldurl'])){ + redirect_header($_GET['oldurl'], 3, _DB_BACKUP_READY ); + }else{ + redirect_header("javascript:history.go(-1)", 1, _DB_BACKUP_READY ); + } +} +?> \ No newline at end of file Added: XoopsModules/backup/trunk/backup/admin/cache.php =================================================================== --- XoopsModules/backup/trunk/backup/admin/cache.php (rev 0) +++ XoopsModules/backup/trunk/backup/admin/cache.php 2012-04-11 04:08:46 UTC (rev 9296) @@ -0,0 +1,7 @@ +<?php +include ('admin_header.php'); +require_once(XOOPS_ROOT_PATH.'/modules/backup/include/functions.php'); +$res = backup_export(); +redirect_header('index.php', 2, empty($res)?"configs backup error":"configs backup over!" ); +exit(); +?> \ No newline at end of file Added: XoopsModules/backup/trunk/backup/admin/index.html =================================================================== --- XoopsModules/backup/trunk/backup/admin/index.html (rev 0) +++ XoopsModules/backup/trunk/backup/admin/index.html 2012-04-11 04:08:46 UTC (rev 9296) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/backup/trunk/backup/admin/index.php =================================================================== --- XoopsModules/backup/trunk/backup/admin/index.php (rev 0) +++ XoopsModules/backup/trunk/backup/admin/index.php 2012-04-11 04:08:46 UTC (rev 9296) @@ -0,0 +1,35 @@ +<?php +include ('admin_header.php'); + +$op = 'Choice'; + +if ( isset($HTTP_POST_VARS['op']) ) { + $op = trim($HTTP_POST_VARS['op']); +} elseif ( isset($HTTP_GET_VARS['op']) ) { + $op = trim($HTTP_GET_VARS['op']); +} + +function Choice() { + global $xoopsModule; + xoops_cp_header(); + + OpenTable(); + echo "- <a href='".XOOPS_URL."/modules/system/admin.php?fct=preferences&op=showmod&mod=".$xoopsModule->getVar('mid')."'>"._DB_CONFIG."</a><br /><br />"; + echo "- <a href='".XOOPS_URL."/modules/backup/admin/backup.php?oldurl=".$_SERVER['PHP_SELF']."'>"._DB_BACKUP."</a><br /><br />"; + echo "- <a href='".XOOPS_URL."/modules/backup/admin/restore.php'>"._DB_RESTORE."</a> |"; + echo " <a href='".XOOPS_URL."/modules/backup/admin/restore.php?NA=1'>"._DB_NOADMIN."</a><br /><br />"; + echo "- <a href='".XOOPS_URL."/modules/backup/admin/cache.php'>"._DB_CACHE."</a><br />"; + echo "<br/><hr><br/><small>"._DB_README."</small>"; + CloseTable(); + xoops_cp_footer(); +} + +switch($op) { + case "Config": + Config(); + break; + default: + Choice(); + break; +} +?> \ No newline at end of file Added: XoopsModules/backup/trunk/backup/admin/restore.php =================================================================== --- XoopsModules/backup/trunk/backup/admin/restore.php (rev 0) +++ XoopsModules/backup/trunk/backup/admin/restore.php 2012-04-11 04:08:46 UTC (rev 9296) @@ -0,0 +1,298 @@ +<?php + +// BigDump ver. 0.21b from 2005-02-08 +// Staggered import of an large MySQL Dump (like phpMyAdmin 2.x Dump) +// Even through the webservers with hard runtime limit and those in safe mode +// Works fine with Internet Explorer 6.0 SP1, Mozilla 1.x and even Netscape 4.8 + +// Author: Alexey Ozerov (alexey at ozerov dot de) +// Copyright: GPL (C) 2003-2005 +// More Infos: http://www.ozerov.de/bigdump + + +// ------------------------------------------------------------------------ // +// Author: D.J.(phppp) ph...@ho... // +// URL: http://xoops.org.cn // +// ------------------------------------------------------------------------- // + +ini_set("auto_detect_line_endings", true); + +$linespersession = 5000; // Lines to be executed per one import session +$delaypersession = 2000; // You can specify a sleep time in milliseconds after each session + // Works only if JavaScript is activated. Use to reduce server overrun + +// Allowed comment delimiters: lines starting with these strings will be dropped by BigDump + +$comment[0]="#"; // Standard comment lines are dropped by default +$comment[1]="-- "; +// $comment[2]="---"; // Uncomment this line if using proprietary dump created by outdated mysqldump +// $comment[3]=""; // Or add your own string to leave out other proprietary things + +define ("MAX_LINE_LENGTH",65536); +define ("MAX_QUERY_LINES",300); + +include("../../../mainfile.php"); +require_once(XOOPS_ROOT_PATH . "/include/cp_functions.php"); +require_once(XOOPS_ROOT_PATH . "/modules/backup/include/functions.php"); +require_once(XOOPS_ROOT_PATH.'/class/xoopslists.php'); // Merci, christian +$_REQUEST["NA"] = empty($_REQUEST["NA"])?0:1; +if(empty($_REQUEST["NA"])){ + include ('admin_header.php'); + $module_handler =& xoops_gethandler('module'); + $xoopsModule =& $module_handler->getByDirname('backup'); + $config_handler = & xoops_gethandler( 'config' ); + $xoopsModuleConfig = & $config_handler->getConfigsByCat( 0, $xoopsModule->getVar( 'mid' ) ); +}else{ + $xoopsModuleConfig = & backup_import(); + if(empty($xoopsModuleConfig["restore_nonadmin"])){ + include('admin_header.php'); + }else{ + if ( file_exists( XOOPS_ROOT_PATH."/modules/backup/language/" . $xoopsConfig['language'] . "/admin.php" ) ) { + include XOOPS_ROOT_PATH."/modules/backup/language/" . $xoopsConfig['language'] . "/admin.php"; + } + elseif ( file_exists( XOOPS_ROOT_PATH."/modules/backup/language/english/admin.php" ) ) { + include XOOPS_ROOT_PATH."/modules/backup/language/english/admin.php"; + } + } +} + +xoops_cp_header(); + +$dirname = XOOPS_ROOT_PATH.'/'.$xoopsModuleConfig["dbfiles_path"]; + +if(empty($_REQUEST["fn"])){ + $db_files =& XoopsLists::getFileListAsArray($dirname); + echo "<form method=\"post\">\n"; + echo _DB_SELECTFILE.": <select name=\"fn\" id=\"fn\">\n"; + foreach($db_files as $_file => $_filename){ + if (eregi("\.sql$",$_file) || (eregi("\.gz$",$_file) && function_exists("gzopen"))){ + echo "<option value=\"".$_file."\">".$_file."</option>\n"; + } + } + echo "</select>\n"; + echo "<input type=\"hidden\" name=\"NA\" value=".$_REQUEST["NA"].">\n"; + echo "<input type=\"submit\" value=\""._GO."\">\n"; + echo "</form>\n"; +}else{ + + $error=false; + // Recognize GZip filename + + if (eregi("\.gz$",$_REQUEST["fn"])) + $gzipmode=true; + else + $gzipmode=false; + + if ((!$gzipmode && !$file=fopen($dirname."/".$_REQUEST["fn"],"rt")) || ($gzipmode && !$file=gzopen($dirname."/".$_REQUEST["fn"],"rt"))) + { + echo ("<p class=\"error\">Can't open ".$_REQUEST["fn"]." for import</p>\n"); + $error=true; + } + + // Get the file size (can't do it fast on gzipped files, no idea how) + + else if ((!$gzipmode && fseek($file, 0, SEEK_END)==0) || ($gzipmode && gzseek($file, 0, SEEK_SET)==0)) + { if (!$gzipmode) $filesize = ftell($file); + else $filesize = gztell($file); // Always zero, ignore + } + else + { echo ("<p class=\"error\">I can't get the filesize of ".$_REQUEST["fn"]."</p>\n"); + $error=true; + } + + + $dbconnection=$xoopsDB->conn; + // **************************************************** + // START IMPORT SESSION HERE + // **************************************************** + + $_REQUEST["start"] = isset($_REQUEST["start"])?intval($_REQUEST["start"]):1; + $_REQUEST["foffset"] = isset($_REQUEST["foffset"])?intval($_REQUEST["foffset"]):0; + $_REQUEST["totalqueries"] = isset($_REQUEST["totalqueries"])?intval($_REQUEST["totalqueries"]):0; + + if (!$error) + { + echo ("<p>Processing file: ".$_REQUEST["fn"]."</p>\n"); + echo ("<p>Starting at the line: ".$_REQUEST["start"]."</p>\n"); + + // Check $_REQUEST["foffset"] upon $filesize (can't do it on gzipped files) + + if (!$gzipmode && $_REQUEST["foffset"]>$filesize) + { echo ("<p class=\"error\">UNEXPECTED: Can't set file pointer behind the end of file</p>\n"); + $error=true; + } + + // Set file pointer to $_REQUEST["foffset"] + + if(empty($xoopsModuleConfig["pos_line"])){ + if (!$error && ((!$gzipmode && fseek($file, $_REQUEST["foffset"])!=0) || ($gzipmode && gzseek($file, $_REQUEST["foffset"])!=0))) + { echo ("<p class=\"error\">UNEXPECTED: Can't set file pointer to offset: ".$_REQUEST["foffset"]."</p>\n"); + $error=true; + } + $linenumber=$_REQUEST["start"]; + }else{ + if (!$error && ((!$gzipmode && fseek($file, 0)!=0) || ($gzipmode && gzseek($file, 0)!=0))) + { echo ("<p class=\"error\">UNEXPECTED: Can't set file pointer to offset: ".$_REQUEST["foffset"]."</p>\n"); + $error=true; + } + $linenumber = 1; + } + + + // Start processing queries from $file + + if (!$error) + { + $query=""; + $queries=0; + $totalqueries=$_REQUEST["totalqueries"]; + //$linenumber=$_REQUEST["start"]; + $querylines=0; + $inparents=false; + + //echo "<br />ln: ".$linenumber."; totalqueries: ".$_REQUEST["totalqueries"]; + while (($linenumber<$_REQUEST["start"]+$linespersession || $query!="") + && ((!$gzipmode && $dumpline=fgets($file, MAX_LINE_LENGTH)) || ($gzipmode && $dumpline=gzgets($file, MAX_LINE_LENGTH)))) + { + if(!empty($xoopsModuleConfig["pos_line"]) && $linenumber<$_REQUEST["start"]){ + $linenumber++; + continue; + } + //echo "<br />ln: ".$linenumber."; start: ".$_REQUEST["start"]; + + // Handle DOS and Mac encoded linebreaks (I don't know if it will work on Win32 or Mac Servers) + + $dumpline=ereg_replace("\r\n$", "\n", $dumpline); + $dumpline=ereg_replace("\r$", "\n", $dumpline); + + // DIAGNOSTIC + // echo ("<p>Line $linenumber: $dumpline</p>\n"); + + // Skip comments and blank lines only if NOT in parents + + if (!$inparents) + { $skipline=false; + reset($comment); + foreach ($comment as $comment_value) + { if (!$inparents && (trim($dumpline)=="" || strpos ($dumpline, $comment_value) === 0)) + { $skipline=true; + break; + } + } + if ($skipline) + { $linenumber++; + continue; + } + } + + // Remove double back-slashes from the dumpline prior to count the quotes ('\\' can only be within strings) + + $dumpline_deslashed = str_replace ("\\\\","",$dumpline); + + // Count ' and \' in the dumpline to avoid query break within a text field ending by ; + // Please don't use double quotes ('"')to surround strings, it wont work + + $parents=substr_count ($dumpline_deslashed, "'")-substr_count ($dumpline_deslashed, "\\'"); + if ($parents % 2 != 0) + $inparents=!$inparents; + + // Add the line to query + + $query .= $dumpline; + + // Don't count the line if in parents (text fields may include unlimited linebreaks) + + if (!$inparents) + $querylines++; + + // Stop if query contains more lines as defined by MAX_QUERY_LINES + + if ($querylines>MAX_QUERY_LINES) + { + echo ("<p class=\"error\">Stopped at the line $linenumber. </p>"); + echo ("<p>At this place the current query includes more than ".MAX_QUERY_LINES." dump lines. That can happen if your dump file was "); + echo ("created by some tool which doesn't place a semicolon followed by a linebreak at the end of each query, or if your dump contains "); + echo ("extended inserts. Please read the BigDump FAQs for more infos.</p>\n"); + $error=true; + break; + } + + // Execute query if end of query detected (; as last character) AND NOT in parents + + if (ereg(";$",trim($dumpline)) && !$inparents) + { + if (!mysql_query(trim($query), $dbconnection)) + //if (false) + { + echo ("<p>Error at the line $linenumber: ". trim($dumpline)."</p>\n"); + echo ("<p>Query: ".trim($query)."</p>\n"); + echo ("<p>MySQL: ".mysql_error()."</p>\n"); + $error=true; + break; + }else{ + //echo ("<p>line #".$linenumber.": ".trim($query)."<br />dumpline: ".$dumpline."</p>\n"); + } + //echo "<br />query: ".$query; + $totalqueries++; + $queries++; + $query=""; + $querylines=0; + } + $linenumber++; + } + } + + // Get the current file position + + if (!$error) + { if (!$gzipmode) + $foffset = ftell($file); + else + $foffset = gztell($file); + if (!$foffset) + { echo ("<p class=\"error\">UNEXPECTED: Can't read the file pointer offset</p>\n"); + $error=true; + } + } + + // Finish message and restart the script + + if (!$error) + { echo ("<p>Stopping at the line: ".($linenumber-1)."</p>\n"); + echo ("<p>Queries performed (this session/total): $queries/$totalqueries</p>\n"); + echo ("<p>Total bytes processed: $foffset (".round($foffset/1024)." KB)</p>\n"); + if ($linenumber<$_REQUEST["start"]+$linespersession) + { + echo ("<p class=\"success\">Congratulations: End of file reached, assuming OK</p>\n"); + $over=true; + } + else + { + if ($delaypersession!=0){ + echo ("<p>Now I'm <b>waiting $delaypersession milliseconds</b> before starting next session...</p>\n"); + } + echo ("<script language=\"JavaScript\" type=\"text/javascript\">window.setTimeout('location.href=\"".$_SERVER["PHP_SELF"]."?start=$linenumber&fn=".$_REQUEST["fn"]."&foffset=$foffset&totalqueries=$totalqueries&NA=".$_REQUEST["NA"]."\";',500+$delaypersession);</script>\n"); + echo ("<noscript>\n"); + echo ("<p><a href=\"".$_SERVER["PHP_SELF"]."?start=$linenumber&fn=".$_REQUEST["fn"]."&foffset=$foffset&totalqueries=$totalqueries\">Continue from the line $linenumber</a> (Enable JavaScript to do it automatically)</p>\n"); + echo ("</noscript>\n"); + echo ("<p>Press <a href=\"".$_SERVER["PHP_SELF"]."\">STOP</a> to abort the import <b>OR WAIT!</b></p>\n"); + } + } + else + echo ("<p class=\"error\">Stopped on error</p>\n"); + } + + if ($error){ + echo ("<p><a href=\"".$_SERVER["PHP_SELF"]."?&NA=".$_REQUEST["NA"]."\">Start from the beginning</a> (DROP the old tables before restarting)</p>\n"); + }elseif(!empty($over)){ + echo ("<p><a href=\"".$_SERVER["PHP_SELF"]."?&NA=".$_REQUEST["NA"]."\">Start another file</a></p>\n"); + echo ("<p><a href=\"".XOOPS_URL."/modules/backup/admin/index.php\">Back to index page</a></p>\n"); + //unlink($dirname."/".$_REQUEST["fn"]); + } + + if ($file && !$gzipmode) fclose($file); + else if ($file && $gzipmode) gzclose($file); + +} +xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/backup/trunk/backup/images/index.html =================================================================== --- XoopsModules/backup/trunk/backup/images/index.html (rev 0) +++ XoopsModules/backup/trunk/backup/images/index.html 2012-04-11 04:08:46 UTC (rev 9296) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/backup/trunk/backup/images/slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/backup/trunk/backup/images/slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/backup/trunk/backup/include/build_dump.lib.php =================================================================== --- XoopsModules/backup/trunk/backup/include/build_dump.lib.php (rev 0) +++ XoopsModules/backup/trunk/backup/include/build_dump.lib.php 2012-04-11 04:08:46 UTC (rev 9296) @@ -0,0 +1,498 @@ +<?php +/* $Id: build_dump.lib.php,v 1.17 2002/02/17 11:59:04 loic1 Exp $ */ + + +/** + * Set of functions used to build dumps of tables + */ + + + +if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){ + define('PMA_BUILD_DUMP_LIB_INCLUDED', 1); + + function PMA_sqlAddslashes($a_string = '', $is_like = FALSE) + { + if ($is_like) { + $a_string = str_replace('\\', '\\\\\\\\', $a_string); + } else { + $a_string = str_replace('\\', '\\\\', $a_string); + } + $a_string = str_replace('\'', '\\\'', $a_string); + + return $a_string; + } // end of the 'PMA_sqlAddslashes()' function + + function PMA_mysqlDie($error_message = '', $the_query = '', + $is_modify_link = TRUE, $back_url = '') + { + + include($xoopsConfig['root_path']."header.php"); + opentable(); + + if (!$error_message) { + $error_message = mysql_error(); + } + if (!$the_query && !empty($GLOBALS['sql_query'])) { + $the_query = $GLOBALS['sql_query']; + } + + echo '<p><b>'. $GLOBALS['strError'] . '</b></p>' . "\n"; + // if the config password is wrong, or the MySQL server does not + // respond, do not show the query that would reveal the + // username/password + if (!empty($the_query) && !strstr($the_query, 'connect')) { + $query_base = htmlspecialchars($the_query); + $query_base = ereg_replace("((\015\012)|(\015)|(\012)){3,}", "\n\n", $query_base); + echo '<p>' . "\n"; + echo ' ' . $GLOBALS['strSQLQuery'] . ' : ' . "\n"; + if ($is_modify_link) { + echo ' [' + . '<a href="db_details.php?lang=' . $GLOBALS['lang'] . '&server=' . urlencode($GLOBALS['server']) . '&db=' . urlencode($GLOBALS['db']) . '&sql_query=' . urlencode($the_query) . '&show_query=y">' . $GLOBALS['strEdit'] . '</a>' + . ']' . "\n"; + } // end if + echo '<pre>' . "\n" . $query_base . "\n" . '</pre>' . "\n"; + echo '</p>' . "\n"; + } // end if + if (!empty($error_message)) { + $error_message = htmlspecialchars($error_message); + $error_message = ereg_replace("((\015\012)|(\015)|(\012)){3,}", "\n\n", $error_message); + } + echo '<p>' . "\n"; + echo ' ' . $GLOBALS['strMySQLSaid'] . '<br />' . "\n"; + echo '<pre>' . "\n" . $error_message . "\n" . '</pre>' . "\n"; + echo '</p>' . "\n"; + if (!empty($back_url)) { + echo '<a href="' . $back_url . '">' . $GLOBALS['strBack'] . '</a>'; + } + echo "\n"; + closetable(); + include($xoopsConfig['root_path']."header.php"); + exit(); + } // end of the 'PMA_mysqlDie()' function + + function PMA_backquote($a_name, $do_it = TRUE) + { + if ($do_it + && PMA_MYSQL_INT_VERSION >= 32306 + && !empty($a_name) && $a_name != '*') { + return '`' . $a_name . '`'; + } else { + return $a_name; + } + } // end of the 'PMA_backquote()' function + /** + * Uses the 'htmlspecialchars()' php function on databases, tables and fields + * name if the dump has to be displayed on screen. + * + * @param string the string to format + * + * @return string the formatted string + * + * @access private + */ + /** + * Returns $table's CREATE definition + * + * Uses the 'PMA_htmlFormat()' function defined in 'tbl_dump.php' + * + * @param string the database name + * @param string the table name + * @param string the end of line sequence + * @param string the url to go back in case of error + * + * @return string the CREATE statement on success + * + * @global boolean whether to add 'drop' statements or not + * @global boolean whether to use backquotes to allow the use of special + * characters in database, table and fields names or not + * + * @see PMA_htmlFormat() + * + * @access public + */ + function PMA_getTableDef($db, $table, $crlf, $error_url) + { + global $drop; + global $use_backquotes; + + $schema_create = ''; + if (!empty($drop)) { + $schema_create .= 'DROP TABLE IF EXISTS ' . PMA_backquote($table, $use_backquotes) . ';' . $crlf; + } + + // Steve Alberty's patch for complete table dump, + // modified by Lem9 to allow older MySQL versions to continue to work + if (PMA_MYSQL_INT_VERSION >= 32321) { + // Whether to quote table and fields names or not + if ($use_backquotes) { + mysql_query('SET SQL_QUOTE_SHOW_CREATE = 1'); + } else { + mysql_query('SET SQL_QUOTE_SHOW_CREATE = 0'); + } + $result = mysql_query('SHOW CREATE TABLE ' . PMA_backquote($db) . '.' . PMA_backquote($table)); + if ($result != FALSE && mysql_num_rows($result) > 0) { + $tmpres = mysql_fetch_array($result); + $schema_create .= str_replace("\n", $crlf, $tmpres[1]); + } + mysql_free_result($result); + return $schema_create; + } // end if MySQL >= 3.23.20 + + // For MySQL < 3.23.20 + $schema_create .= 'CREATE TABLE ' . PMA_backquote($table, $use_backquotes) . ' (' . $crlf; + + $local_query = 'SHOW FIELDS FROM ' . PMA_backquote($db) . '.' . PMA_backquote($table); + $result = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $error_url); + while ($row = mysql_fetch_array($result)) { + $schema_create .= ' ' . PMA_backquote($row['Field'], $use_backquotes) . ' ' . $row['Type']; + if (isset($row['Default']) && $row['Default'] != '') { + $schema_create .= ' DEFAULT \'' . PMA_sqlAddslashes($row['Default']) . '\''; + } + if ($row['Null'] != 'YES') { + $schema_create .= ' NOT NULL'; + } + if ($row['Extra'] != '') { + $schema_create .= ' ' . $row['Extra']; + } + $schema_create .= ',' . $crlf; + } // end while + mysql_free_result($result); + $schema_create = ereg_replace(',' . $crlf . '$', '', $schema_create); + + $local_query = 'SHOW KEYS FROM ' . PMA_backquote($db) . '.' . PMA_backquote($table); + $result = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $error_url); + while ($row = mysql_fetch_array($result)) + { + $kname = $row['Key_name']; + $comment = (isset($row['Comment'])) ? $row['Comment'] : ''; + $sub_part = (isset($row['Sub_part'])) ? $row['Sub_part'] : ''; + + if ($kname != 'PRIMARY' && $row['Non_unique'] == 0) { + $kname = "UNIQUE|$kname"; + } + if ($comment == 'FULLTEXT') { + $kname = 'FULLTEXT|$kname'; + } + if (!isset($index[$kname])) { + $index[$kname] = array(); + } + if ($sub_part > 1) { + $index[$kname][] = PMA_backquote($row['Column_name'], $use_backquotes) . '(' . $sub_part . ')'; + } else { + $index[$kname][] = PMA_backquote($row['Column_name'], $use_backquotes); + } + } // end while + mysql_free_result($result); + + while (list($x, $columns) = @each($index)) { + $schema_create .= ',' . $crlf; + if ($x == 'PRIMARY') { + $schema_create .= ' PRIMARY KEY ('; + } else if (substr($x, 0, 6) == 'UNIQUE') { + $schema_create .= ' UNIQUE ' . substr($x, 7) . ' ('; + } else if (substr($x, 0, 8) == 'FULLTEXT') { + $schema_create .= ' FULLTEXT ' . substr($x, 9) . ' ('; + } else { + $schema_create .= ' KEY ' . $x . ' ('; + } + $schema_create .= implode($columns, ', ') . ')'; + } // end while + + $schema_create .= $crlf . ')'; + + return $schema_create; + } // end of the 'PMA_getTableDef()' function + + + /** + * php >= 4.0.5 only : get the content of $table as a series of INSERT + * statements. + * After every row, a custom callback function $handler gets called. + * + * Last revision 13 July 2001: Patch for limiting dump size from + * vi...@sa... & gi...@sa... + * + * @param string the current database name + * @param string the current table name + * @param string the 'limit' clause to use with the sql query + * @param string the name of the handler (function) to use at the end + * of every row. This handler must accept one parameter + * ($sql_insert) + * @param string the url to go back in case of error + * + * @return boolean always true + * + * @global boolean whether to use backquotes to allow the use of special + * characters in database, table and fields names or not + * @global integer the number of records + * @global integer the current record position + * + * @access private + * + * @see PMA_getTableContent() + * + * @author staybyte + */ + function PMA_getTableContentFast($db, $table, $add_query = '', $handler, $error_url) + { + global $use_backquotes; + global $rows_cnt; + global $current_row; + + $local_query = 'SELECT * FROM ' . PMA_backquote($db) . '.' . PMA_backquote($table) . $add_query; + $result = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $error_url); + if ($result != FALSE) { + $fields_cnt = mysql_num_fields($result); + $rows_cnt = mysql_num_rows($result); + + // Checks whether the field is an integer or not + for ($j = 0; $j < $fields_cnt; $j++) { + $field_set[$j] = PMA_backquote(mysql_field_name($result, $j), $use_backquotes); + $type = mysql_field_type($result, $j); + if ($type == 'tinyint' || $type == 'smallint' || $type == 'mediumint' || $type == 'int' || + $type == 'bigint' ||$type == 'timestamp') { + $field_num[$j] = TRUE; + } else { + $field_num[$j] = FALSE; + } + } // end for + + // Sets the scheme + if (isset($GLOBALS['showcolumns'])) { + $fields = implode(', ', $field_set); + $schema_insert = 'INSERT INTO ' . PMA_backquote($table, $use_backquotes) + . ' (' . $fields . ') VALUES ('; + } else { + $schema_insert = 'INSERT INTO ' . PMA_backquote($table, $use_backquotes) + . ' VALUES ('; + } + + $search = array("\x00", "\x0a", "\x0d", "\x1a"); //\x08\\x09, not required + $replace = array('\0', '\n', '\r', '\Z'); + $current_row = 0; + + @set_time_limit($GLOBALS['cfgExecTimeLimit']); + + // loic1: send a fake header to bypass browser timeout if data + // are bufferized - part 1 +// $time0 = time(); + + while ($row = mysql_fetch_row($result)) { + $current_row++; + for ($j = 0; $j < $fields_cnt; $j++) { + if (!isset($row[$j])) { + $values[] = 'NULL'; + } else if ($row[$j] == '0' || $row[$j] != '') { + // a number + if ($field_num[$j]) { + $values[] = $row[$j]; + } + // a string + else { + $values[] = "'" . str_replace($search, $replace, PMA_sqlAddslashes($row[$j])) . "'"; + } + } else { + $values[] = "''"; + } // end if + } // end for + + // Extended inserts case + if (isset($GLOBALS['extended_ins'])) { + if ($current_row == 1) { + $insert_line = $schema_insert . implode(', ', $values) . ')'; + } else { + $insert_line = '(' . implode(', ', $values) . ')'; + } + } + // Other inserts case + else { + $insert_line = $schema_insert . implode(', ', $values) . ')'; + } + unset($values); + + // Call the handler + $handler($insert_line); + + // loic1: send a fake header to bypass browser timeout if data + // are bufferized - part 2 + if (isset($time0)) { + $time1 = time(); + if ($time1 >= $time0 + 30) { + $time0 = $time1; + header('X-pmaPing: Pong'); + } + } // end if + } // end while + } // end if ($result != FALSE) + mysql_free_result($result); + + return TRUE; + } // end of the 'PMA_getTableContentFast()' function + + + /** + * php < 4.0.5 only: get the content of $table as a series of INSERT + * statements. + * After every row, a custom callback function $handler gets called. + * + * Last revision 13 July 2001: Patch for limiting dump size from + * vi...@sa... & gi...@sa... + * + * @param string the current database name + * @param string the current table name + * @param string the 'limit' clause to use with the sql query + * @param string the name of the handler (function) to use at the end + * of every row. This handler must accept one parameter + * ($sql_insert) + * @param string the url to go back in case of error + * + * @return boolean always true + * + * @global boolean whether to use backquotes to allow the use of special + * characters in database, table and fields names or not + * @global integer the number of records + * @global integer the current record position + * + * @access private + * + * @see PMA_getTableContent() + */ + function PMA_getTableContentOld($db, $table, $add_query = '', $handler, $error_url) + { + global $use_backquotes; + global $rows_cnt; + global $current_row; + + $local_query = 'SELECT * FROM ' . PMA_backquote($db) . '.' . PMA_backquote($table) . $add_query; + $result = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $error_url); + $current_row = 0; + $fields_cnt = mysql_num_fields($result); + $rows_cnt = mysql_num_rows($result); + + @set_time_limit($GLOBALS['cfgExecTimeLimit']); // HaRa + + // loic1: send a fake header to bypass browser timeout if data + // are bufferized - part 1 + $time0 = time(); + + while ($row = mysql_fetch_row($result)) { + $current_row++; + $table_list = '('; + for ($j = 0; $j < $fields_cnt; $j++) { + $table_list .= PMA_backquote(mysql_field_name($result, $j), $use_backquotes) . ', '; + } + $table_list = substr($table_list, 0, -2); + $table_list .= ')'; + + if (isset($GLOBALS['extended_ins']) && $current_row > 1) { + $schema_insert = '('; + } else { + if (isset($GLOBALS['showcolumns'])) { + $schema_insert = 'INSERT INTO ' . PMA_backquote($table, $use_backquotes) + . ' ' . $table_list . ' VALUES ('; + } else { + $schema_insert = 'INSERT INTO ' . PMA_backquote($table, $use_backquotes) + . ' VALUES ('; + } + $is_first_row = FALSE; + } + + for ($j = 0; $j < $fields_cnt; $j++) { + if (!isset($row[$j])) { + $schema_insert .= ' NULL, '; + } else if ($row[$j] == '0' || $row[$j] != '') { + $type = mysql_field_type($result, $j); + // a number + if ($type == 'tinyint' || $type == 'smallint' || $type == 'mediumint' || $type == 'int' || + $type == 'bigint' ||$type == 'timestamp') { + $schema_insert .= $row[$j] . ', '; + } + // a string + else { + $dummy = ''; + $srcstr = $row[$j]; + for ($xx = 0; $xx < strlen($srcstr); $xx++) { + $yy = strlen($dummy); + if ($srcstr[$xx] == '\\') $dummy .= '\\\\'; + if ($srcstr[$xx] == '\'') $dummy .= '\\\''; +// if ($srcstr[$xx] == '"') $dummy .= '\\"'; + if ($srcstr[$xx] == "\x00") $dummy .= '\0'; + if ($srcstr[$xx] == "\x0a") $dummy .= '\n'; + if ($srcstr[$xx] == "\x0d") $dummy .= '\r'; +// if ($srcstr[$xx] == "\x08") $dummy .= '\b'; +// if ($srcstr[$xx] == "\t") $dummy .= '\t'; + if ($srcstr[$xx] == "\x1a") $dummy .= '\Z'; + if (strlen($dummy) == $yy) $dummy .= $srcstr[$xx]; + } + $schema_insert .= "'" . $dummy . "', "; + } + } else { + $schema_insert .= "'', "; + } // end if + } // end for + $schema_insert = ereg_replace(', $', '', $schema_insert); + $schema_insert .= ')'; + $handler(trim($schema_insert)); + + // loic1: send a fake header to bypass browser timeout if data + // are bufferized - part 2 + if (isset($time0)) { + $time1 = time(); + if ($time1 >= $time0 + 30) { + $time0 = $time1; + header('X-pmaPing: Pong'); + } + } // end if + } // end while + mysql_free_result($result); + + return TRUE; + } // end of the 'PMA_getTableContentOld()' function + + + /** + * Dispatches between the versions of 'getTableContent' to use depending + * on the php version + * + * Last revision 13 July 2001: Patch for limiting dump size from + * vi...@sa... & gi...@sa... + * + * @param string the current database name + * @param string the current table name + * @param integer the offset on this table + * @param integer the last row to get + * @param string the name of the handler (function) to use at the end + * of every row. This handler must accept one parameter + * ($sql_insert) + * @param string the url to go back in case of error + * + * @access public + * + * @see PMA_getTableContentFast(), PMA_getTableContentOld() + * + * @author staybyte + */ + function PMA_getTableContent($db, $table, $limit_from = 0, $limit_to = 0, $handler, $error_url) + { + // Defines the offsets to use + if ($limit_from > 0) { + $limit_from--; + } else { + $limit_from = 0; + } + if ($limit_to > 0 && $limit_from >= 0) { + $add_query = " LIMIT $limit_from, $limit_to"; + } else { + $add_query = ''; + } + + // Call the working function depending on the php version + if (PMA_PHP_INT_VERSION >= 40005) { + PMA_getTableContentFast($db, $table, $add_query, $handler, $error_url); + } else { + PMA_getTableContentOld($db, $table, $add_query, $handler, $error_url); + } + } // end of the 'PMA_getTableContent()' function +} // $__PMA_BUILD_DUMP_LIB__ +?> Added: XoopsModules/backup/trunk/backup/include/defines.lib.php =================================================================== --- XoopsModules/backup/trunk/backup/include/defines.lib.php (rev 0) +++ XoopsModules/backup/trunk/backup/include/defines.lib.php 2012-04-11 04:08:46 UTC (rev 9296) @@ -0,0 +1,131 @@ +<?php +/* $Id: defines.lib.php,v 1.34 2002/04/21 18:15:21 lem9 Exp $ */ + +/** + * DEFINES VARIABLES & CONSTANTS + * Overview: + * PMA_VERSION (string) - phpMyAdmin version string + * PMA_PHP_INT_VERSION (int) - eg: 30017 instead of 3.0.17 or + * 40006 instead of 4.0.6RC3 + * PMA_IS_WINDOWS (bool) - mark if phpMyAdmin running on windows + * server + * PMA_MYSQL_INT_VERSION (int) - eg: 32339 instead of 3.23.39 + * PMA_USR_OS (string) - the plateform (os) of the user + * PMA_USR_BROWSER_AGENT (string) - the browser of the user + * PMA_USR_BROWSER_VER (double) - the version of this browser + */ +// phpMyAdmin release +if (!defined('PMA_VERSION')) { + define('PMA_VERSION', '2.2.6'); +} + +// php version +if (!defined('PMA_PHP_INT_VERSION')) { + if (!ereg('([0-9]{1,2}).([0-9]{1,2}).([0-9]{1,2})', phpversion(), $match)) { + $result = ereg('([0-9]{1,2}).([0-9]{1,2})', phpversion(), $match); + } + if (isset($match) && !empty($match[1])) { + if (!isset($match[2])) { + $match[2] = 0; + } + if (!isset($match[3])) { + $match[3] = 0; + } + define('PMA_PHP_INT_VERSION', (int)sprintf('%d%02d%02d', $match[1], $match[2], $match[3])); + unset($match); + } else { + define('PMA_PHP_INT_VERSION', 0); + } +} + +// Whether the os php is running on is windows or not +if (!defined('PMA_IS_WINDOWS')) { + if (defined('PHP_OS') && eregi('win', PHP_OS)) { + define('PMA_IS_WINDOWS', 1); + } else { + define('PMA_IS_WINDOWS', 0); + } +} + +// MySQL Version +if (!defined('PMA_MYSQL_INT_VERSION')) { + if (!empty($server)) { + $result = mysql_query('SELECT VERSION() AS version'); + if ($result != FALSE && @mysql_num_rows($result) > 0) { + $row = mysql_fetch_array($result); + $match = explode('.', $row['version']); + } else { + $result = @mysql_query('SHOW VARIABLES LIKE \'version\''); + if ($result != FALSE && @mysql_num_rows($result) > 0){ + $row = mysql_fetch_row($result); + $match = explode('.', $row[1]); + } + } + } // end server id is defined case + + if (!isset($match) || !isset($match[0])) { + $match[0] = 3; + } + if (!isset($match[1])) { + $match[1] = 21; + } + if (!isset($match[2])) { + $match[2] = 0; + } + + define('PMA_MYSQL_INT_VERSION', (int)sprintf('%d%02d%02d', $match[0], $match[1], intval($match[2]))); + unset($match); +} + + +// Determines platform (OS), browser and version of the user +// Based on a phpBuilder article: +// see http://www.phpbuilder.net/columns/tim20000821.php +if (!defined('PMA_USR_OS')) { + // loic1 - 2001/25/11: use the new globals arrays defined with + // php 4.1+ + if (!empty($_SERVER['HTTP_USER_AGENT'])) { + $HTTP_USER_AGENT = $_SERVER['HTTP_USER_AGENT']; + } else if (!empty($HTTP_SERVER_VARS['HTTP_USER_AGENT'])) { + $HTTP_USER_AGENT = $HTTP_SERVER_VARS['HTTP_USER_AGENT']; + } else if (!isset($HTTP_USER_AGENT)) { + $HTTP_USER_AGENT = ''; + } + + // 1. Platform + if (strstr($HTTP_USER_AGENT, 'Win')) { + define('PMA_USR_OS', 'Win'); + } else if (strstr($HTTP_USER_AGENT, 'Mac')) { + define('PMA_USR_OS', 'Mac'); + } else if (strstr($HTTP_USER_AGENT, 'Linux')) { + define('PMA_USR_OS', 'Linux'); + } else if (strstr($HTTP_USER_AGENT, 'Unix')) { + define('PMA_USR_OS', 'Unix'); + } else if (strstr($HTTP_USER_AGENT, 'OS/2')) { + define('PMA_USR_OS', 'OS/2'); + } else { + define('PMA_USR_OS', 'Other'); + } + + // 2. browser and version + if (ereg('Opera(/| )([0-9].[0-9]{1,2})', $HTTP_USER_AGENT, $log_version)) { + define('PMA_USR_BROWSER_VER', $log_version[2]); + define('PMA_USR_BROWSER_AGENT', 'OPERA'); + } else if (ereg('MSIE ([0-9].[0-9]{1,2})', $HTTP_USER_AGENT, $log_version)) { + define('PMA_USR_BROWSER_VER', $log_version[1]); + define('PMA_USR_BROWSER_AGENT', 'IE'); + } else if (ereg('OmniWeb/([0-9].[0-9]{1,2})', $HTTP_USER_AGENT, $log_version)) { + define('PMA_USR_BROWSER_VER', $log_version[1]); + define('PMA_USR_BROWSER_AGENT', 'OMNIWEB'); + } else if (ereg('Mozilla/([0-9].[0-9]{1,2})', $HTTP_USER_AGENT, $log_version)) { + define('PMA_USR_BROWSER_VER', $log_version[1]); + define('PMA_USR_BROWSER_AGENT', 'MOZILLA'); + } else if (ereg('Konqueror/([0-9].[0-9]{1,2})', $HTTP_USER_AGENT, $log_version)) { + define('PMA_USR_BROWSER_VER', $log_version[1]); + define('PMA_USR_BROWSER_AGENT', 'KONQUEROR'); + } else { + define('PMA_USR_BROWSER_VER', 0); + define('PMA_USR_BROWSER_AGENT', 'OTHER'); + } +} // $__PMA_DEFINES_LIB__ +?> Added: XoopsModules/backup/trunk/backup/include/functions.php =================================================================== --- XoopsModules/backup/trunk/backup/include/functions.php (rev 0) +++ XoopsModules/backup/trunk/backup/include/functions.php 2012-04-11 04:08:46 UTC (rev 9296) @@ -0,0 +1,67 @@ +<?php +// $Id: functions.php,v 1.5 2004/09/20 22:36:31 phppp Exp $ +// ------------------------------------------------------------------------ // +// DIGEST for XOOPS // +// Copyright (c) 2004 Xoops China Community // +// <http://www.xoops.org.cn/> // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: D.J.(phppp) ph...@ho... // +// URL: http://www.xoops.org.cn // +// ------------------------------------------------------------------------- // + +function backup_export($configs=null) +{ + if(!is_array($configs) || count($configs)==0){ + $module_handler =& xoops_gethandler('module'); + $xoopsModule =& $module_handler->getByDirname('backup'); + $config_handler = & xoops_gethandler( 'config' ); + $configs = & $config_handler->getConfigsByCat( 0, $xoopsModule->getVar( 'mid' ) ); + } + if(!is_array($configs) || count($configs)==0){ + return false; + } + + $export_file = XOOPS_CACHE_PATH.'/backup.php'; + if(!$fp = fopen($export_file,'w')) { + echo "<br /> the update file can not be created"; + return false; + } + $file_content = "<?php"; + $file_content .= "\n return \$config = '".serialize($configs)."';\n"; + $file_content .= "?>"; + fputs($fp,$file_content); + fclose($fp); + return true; +} + +function &backup_import() +{ + $import_file = XOOPS_CACHE_PATH.'/backup.php'; + if(!is_readable($import_file) && !backup_export()) { + echo "<br />the imported file can not be read: ".$import_file; + return false; + } + $config = include($import_file); + $configs = unserialize($config); + return $configs; +} +?> \ No newline at end of file Added: XoopsModules/backup/trunk/backup/include/index.html =================================================================== --- XoopsModules/backup/trunk/backup/include/index.html (rev 0) +++ XoopsModules/backup/trunk/backup/include/index.html 2012-04-11 04:08:46 UTC (rev 9296) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/backup/trunk/backup/include/zip.lib.php =================================================================== --- XoopsModules/backup/trunk/backup/include/zip.lib.php (rev 0) +++ XoopsModules/backup/trunk/backup/include/zip.lib.php 2012-04-11 04:08:46 UTC (rev 9296) @@ -0,0 +1,186 @@ +<?php +/* $Id: zip.lib.php,v 1.6 2002/03/30 08:24:04 loic1 Exp $ */ + + +/** + * Zip file creation class. + * Makes zip files. + * + * Based on : + * + * http://www.zend.com/codex.php?id=535&single=1 + * By Eric Mueller <er...@th...> + * + * http://www.zend.com/codex.php?id=470&single=1 + * by Denis125 <web...@at...> + * + * a patch from Peter Listiak <ml...@us...> for last modified + * date and time of the compressed file + * + * Official ZIP file format: http://www.pkware.com/appnote.txt + * + * @access public + */ +class zipfile +{ + /** + * Array to store compressed data + * + * @var array $datasec + */ + var $datasec = array(); + + /** + * Central directory + * + * @var array $ctrl_dir + */ + var $ctrl_dir = array(); + + /** + * End of central directory record + * + * @var string $eof_ctrl_dir + */ + var $eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00"; + + /** + * Last offset position + * + * @var integer $old_offset + */ + var $old_offset = 0; + + + /** + * Converts an Unix timestamp to a four byte DOS date and time format (date + * in high two bytes, time in low two bytes allowing magnitude comparison). + * + * @param integer the current Unix timestamp + * + * @return integer the current date in a four byte DOS format + * + * @access private + */ + function unix2DosTime($unixtime = 0) { + $timearray = ($unixtime == 0) ? getdate() : getdate($unixtime); + + if ($timearray['year'] < 1980) { + $timearray['year'] = 1980; + $timearray['mon'] = 1; + $timearray['mday'] = 1; + $timearray['hours'] = 0; + $timearray['minutes'] = 0; + $timearray['seconds'] = 0; + } // end if + + return (($timearray['year'] - 1980)... [truncated message content] |
From: <be...@us...> - 2012-04-09 22:31:01
|
Revision: 9295 http://xoops.svn.sourceforge.net/xoops/?rev=9295&view=rev Author: beckmi Date: 2012-04-09 22:30:55 +0000 (Mon, 09 Apr 2012) Log Message: ----------- Adding /english/admin.php Added Paths: ----------- XoopsModules/xoopsmembers/trunk/xoopsmembers/language/english/admin.php Added: XoopsModules/xoopsmembers/trunk/xoopsmembers/language/english/admin.php =================================================================== --- XoopsModules/xoopsmembers/trunk/xoopsmembers/language/english/admin.php (rev 0) +++ XoopsModules/xoopsmembers/trunk/xoopsmembers/language/english/admin.php 2012-04-09 22:30:55 UTC (rev 9295) @@ -0,0 +1,3 @@ +<?php +//ModuleAdmin +define('_AM_XOOPSMEMBERS_MODULEADMIN_MISSING','Error: The ModuleAdmin class is missing. Please install the ModuleAdmin Class into /Frameworks (see /docs/readme.txt)'); \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-04-09 22:03:05
|
Revision: 9294 http://xoops.svn.sourceforge.net/xoops/?rev=9294&view=rev Author: beckmi Date: 2012-04-09 22:02:57 +0000 (Mon, 09 Apr 2012) Log Message: ----------- Converting to Xoops 2.5.x Admin GUI Modified Paths: -------------- XoopsModules/xoopsmembers/trunk/xoopsmembers/docs/changelog.txt XoopsModules/xoopsmembers/trunk/xoopsmembers/index.php XoopsModules/xoopsmembers/trunk/xoopsmembers/xoops_version.php Added Paths: ----------- XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/ XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/about.php XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/admin_footer.php XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/admin_header.php XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/index.php XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/menu.php XoopsModules/xoopsmembers/trunk/xoopsmembers/language/english/help/ XoopsModules/xoopsmembers/trunk/xoopsmembers/language/english/help/help.html XoopsModules/xoopsmembers/trunk/xoopsmembers/language/english/help/index.html Added: XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/about.php =================================================================== --- XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/about.php (rev 0) +++ XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/about.php 2012-04-09 22:02:57 UTC (rev 9294) @@ -0,0 +1,31 @@ +<?php +/** + * XoopsMembers module + * Description: Category Admin file + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright:: The XOOPS Project (http://www.xoops.org) + * @license:: {@link http://www.fsf.org/copyleft/gpl.html GNU public license} + * @package:: xoopsmembers + * @subpackage:: admin + * @since:: 1.02 + * @author:: Mamba + * @version:: $Id $ + **/ + + include_once dirname(__FILE__) . '/admin_header.php'; + +xoops_cp_header(); + +$aboutAdmin = new ModuleAdmin(); + +echo $aboutAdmin->addNavigation('about.php'); +echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false); + +include 'admin_footer.php'; \ No newline at end of file Added: XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/admin_footer.php =================================================================== --- XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/admin_footer.php (rev 0) +++ XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/admin_footer.php 2012-04-09 22:02:57 UTC (rev 9294) @@ -0,0 +1,29 @@ +<?php +/** + * XoopsMembers module + * Description: Category Admin file + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright:: The XOOPS Project (http://www.xoops.org) + * @license:: {@link http://www.fsf.org/copyleft/gpl.html GNU public license} + * @package:: xoopsmembers + * @subpackage:: admin + * @since:: 1.02 + * @author:: Mamba + * @version:: $Id $ + **/ + +echo "<div class='adminfooter'>\n" + ." <div style='text-align: center;'>\n" + ." <a href='http://www.xoops.org' target='_blank'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" + ." </div>\n" + ." " . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" + ."</div>"; + +xoops_cp_footer(); \ No newline at end of file Added: XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/admin_header.php =================================================================== --- XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/admin_header.php (rev 0) +++ XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/admin_header.php 2012-04-09 22:02:57 UTC (rev 9294) @@ -0,0 +1,46 @@ +<?php +/** + * XoopsMembers module + * Description: Category Admin file + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright:: The XOOPS Project (http://www.xoops.org) + * @license:: {@link http://www.fsf.org/copyleft/gpl.html GNU public license} + * @package:: xoopsmembers + * @subpackage:: admin + * @since:: 1.02 + * @author:: Mamba + * @version:: $Id $ + **/ + +$path = dirname(dirname(dirname(dirname(__FILE__)))); +include_once $path . '/mainfile.php'; +include_once $path . '/include/cp_functions.php'; +require_once $path . '/include/cp_header.php'; + +global $xoopsModule; + +$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname'); +$thisModulePath = dirname(dirname(__FILE__)); + + +// Load language files +xoops_loadLanguage('admin', $thisModuleDir); +xoops_loadLanguage('modinfo', $thisModuleDir); +xoops_loadLanguage('main', $thisModuleDir); + +$pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); +$pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); +$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); + +if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); + }else{ + redirect_header("../../../admin.php", 5, _AM_XOOPSMEMBERS_MODULEADMIN_MISSING, false); + } \ No newline at end of file Added: XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/index.php =================================================================== --- XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/index.php (rev 0) +++ XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/index.php 2012-04-09 22:02:57 UTC (rev 9294) @@ -0,0 +1,31 @@ +<?php +/** + * XoopsMembers module + * Description: Category Admin file + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright:: The XOOPS Project (http://www.xoops.org) + * @license:: {@link http://www.fsf.org/copyleft/gpl.html GNU public license} + * @package:: xoopsmembers + * @subpackage:: admin + * @since:: 1.02 + * @author:: Mamba + * @version:: $Id $ + **/ + +include_once 'admin_header.php'; +xoops_cp_header(); + +$index_admin = new ModuleAdmin(); + +echo $index_admin->addNavigation('index.php'); +echo $index_admin->renderIndex(); + +include 'admin_footer.php'; +xoops_cp_footer(); \ No newline at end of file Added: XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/menu.php =================================================================== --- XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/menu.php (rev 0) +++ XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/menu.php 2012-04-09 22:02:57 UTC (rev 9294) @@ -0,0 +1,45 @@ +<?php +/** + * Name: menu.php + * Description: Menu for the Xoops Members Module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright:: The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license:: {@link http://www.fsf.org/copyleft/gpl.html GNU public license} + * @package:: xoopsmembers + * @subpackage:: Xoops Members Adminisration + * @since:: 1.02 + * @author:: John Neill + * @version:: $Id: menu.php 8571 2011-12-26 22:51:57Z beckmi $ + */ +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +$path = dirname(dirname(dirname(dirname(__FILE__)))); + +global $xoopsModule; +$pathIcon32 = $xoopsModule->getInfo('icons32'); +$pathLanguage = $path . $xoopsModule->getInfo('dirmoduleadmin'); + + +if (!file_exists($fileinc = $pathLanguage . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/' . 'main.php')) { + $fileinc = $pathLanguage . '/language/english/main.php'; +} +include_once $fileinc; + + +$adminmenu = array(); +$i = 1; +$adminmenu[$i]["title"] = _AM_MODULEADMIN_HOME; +$adminmenu[$i]["link"] = "admin/index.php"; +$adminmenu[$i]["icon"] = $pathIcon32.'/home.png'; + +$i++; +$adminmenu[$i]["title"] = _AM_MODULEADMIN_ABOUT; +$adminmenu[$i]["link"] = "admin/about.php"; +$adminmenu[$i]["icon"] = $pathIcon32.'/about.png'; \ No newline at end of file Modified: XoopsModules/xoopsmembers/trunk/xoopsmembers/docs/changelog.txt =================================================================== --- XoopsModules/xoopsmembers/trunk/xoopsmembers/docs/changelog.txt 2012-04-09 20:56:42 UTC (rev 9293) +++ XoopsModules/xoopsmembers/trunk/xoopsmembers/docs/changelog.txt 2012-04-09 22:02:57 UTC (rev 9294) @@ -1,3 +1,8 @@ + =>version 1.02 + -------------------- + ->Added: icons for Edit/Delete (Mamba) + ->Added: Admin side (Mamba) + =>version 1.01 -------------------- ->Removed: Xoops Depreciated code Modified: XoopsModules/xoopsmembers/trunk/xoopsmembers/index.php =================================================================== --- XoopsModules/xoopsmembers/trunk/xoopsmembers/index.php 2012-04-09 20:56:42 UTC (rev 9293) +++ XoopsModules/xoopsmembers/trunk/xoopsmembers/index.php 2012-04-09 22:02:57 UTC (rev 9294) @@ -18,7 +18,12 @@ * @version $Id: index.php catzwolf$ */ include dirname( dirname( dirname( __FILE__ ) ) ) . DIRECTORY_SEPARATOR . 'mainfile.php'; +//include_once 'header.php'; +//global $pathIcon16; +global $xoopsModule; +$pathIcon16 = $xoopsModule->getInfo('icons16'); + $op = ( isset( $_POST['op'] ) && $_POST['op'] == 'submit' ) ? 'submit' : 'form'; if ( $op == 'form' ) { @@ -272,7 +277,9 @@ } $userdata["posts"] = $foundusers[$j]->getVar( 'posts' ); if ( $iamadmin ) { - $userdata["adminlink"] = '<a href="' . XOOPS_URL . '/modules/system/admin.php?fct=users&uid=' . $foundusers[$j]->getVar( 'uid' ) . '&op=modifyUser">' . _EDIT . '</a> | <a href="' . XOOPS_URL . '/modules/system/admin.php?fct=users&op=delUser&uid=' . $foundusers[$j]->getVar( 'uid' ) . '">' . _DELETE . '</a>'; + $userdata["adminlink"] = '<a href="' . XOOPS_URL . '/modules/system/admin.php?fct=users&uid=' . $foundusers[$j]->getVar( 'uid' ) . '&op=users_edit">' . '<img src='. $pathIcon16 .'/edit.png'." alt='" . _EDIT . "' title='" . _EDIT . "' />" + + . '</a> | <a href="' . XOOPS_URL . '/modules/system/admin.php?fct=users&op=users_delete&uid=' . $foundusers[$j]->getVar( 'uid' ) . '">' . '<img src='. $pathIcon16 .'/delete.png'." alt='" . _DELETE . "' title='" . _DELETE . "' />" . '</a>'; } $xoopsTpl->append( "users", $userdata ); } Added: XoopsModules/xoopsmembers/trunk/xoopsmembers/language/english/help/help.html =================================================================== --- XoopsModules/xoopsmembers/trunk/xoopsmembers/language/english/help/help.html (rev 0) +++ XoopsModules/xoopsmembers/trunk/xoopsmembers/language/english/help/help.html 2012-04-09 22:02:57 UTC (rev 9294) @@ -0,0 +1,34 @@ +<div id="help-template" class="outer"> + <h1 class="head">Help: + <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/xoopsmembers/admin/index.php" + title="Back to the administration of XOOPS Members"> XOOPS Members + <img src="<{xoAdminIcons home.png}>" + alt="Back to the Administration of XOOPS Members"/> + </a></h1> + <!-- ===== Help Content ======= --> + + <h4 class="odd">Description</h4><br/> + + + XOOPS Members shows a list of registered users.<br/><br/> + + <h4 class="odd">Install/uninstall</h4><br/> + + No special measures necessary, follow the standard installation process – + extract the module folder into the ../modules directory. Install the + module through Admin -> System Module -> Modules. <br/><br/> + Detailed instructions on installing modules are available in the + <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a><br/><br/> + + <h4 class="odd">Operating instructions</h4><br/> + + There is no setup on the Admin side<br/><br/> + On the user side, just select the criteria to search on, and click submit to search users<br/><br/> + + <h4 class="odd">Tutorial</h4> + <br/> + Not available yet + + <!-- ====== Help Content ======== --> + +</div> \ No newline at end of file Added: XoopsModules/xoopsmembers/trunk/xoopsmembers/language/english/help/index.html =================================================================== --- XoopsModules/xoopsmembers/trunk/xoopsmembers/language/english/help/index.html (rev 0) +++ XoopsModules/xoopsmembers/trunk/xoopsmembers/language/english/help/index.html 2012-04-09 22:02:57 UTC (rev 9294) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Modified: XoopsModules/xoopsmembers/trunk/xoopsmembers/xoops_version.php =================================================================== --- XoopsModules/xoopsmembers/trunk/xoopsmembers/xoops_version.php 2012-04-09 20:56:42 UTC (rev 9293) +++ XoopsModules/xoopsmembers/trunk/xoopsmembers/xoops_version.php 2012-04-09 22:02:57 UTC (rev 9294) @@ -24,22 +24,40 @@ $modversion = array( 'name' => _XO_MI_MEMBERS_NAME, 'description' => _XO_MI_MEMBERS_DESC, 'author' => 'John Neill, Kazumi Ono', - 'license' => 'GPL see LICENSE', + 'license' => 'GNU GPL 2.0', + 'license_url' => "www.gnu.org/licenses/gpl-2.0.html/", + 'help' => 'page=help', 'contributors' => '', 'credits' => 'The Xoops Module Development Team', - 'version' => 1.01, - 'status' => 'Beta', + 'version' => 1.02, + 'module_status' => "RC", 'releasedate' => 'Friday 10.4.2009', 'official' => 1, 'image' => 'images/slogo.png', - 'dirname' => basename( dirname( __FILE__ ) ) + 'dirname' => basename( dirname( __FILE__ ) ), + 'dirmoduleadmin' => '/Frameworks/moduleclasses/moduleadmin', + 'icons16' => '../../Frameworks/moduleclasses/icons/16', + 'icons32' => '../../Frameworks/moduleclasses/icons/32', + + //about + 'author_website_url' => 'http://xoops.org', + 'author_website_name' => 'XOOPS', + 'module_website_url' => 'http://xoops.org', + 'module_website_name' => 'XOOPS', + 'release_date' => '2011/12/12', + 'min_php' => '5.2.0', + 'min_xoops' => '2.5.0', + 'min_db' => array('mysql'=>'5.0.7', 'mysqli'=>'5.0.7'), + 'min_admin' => '1.1' ); /** * Module Admin */ -$modversion['hasAdmin'] = 0; -$modversion['adminmenu'] = ''; +$modversion['hasAdmin'] = 1; +$modversion['system_menu'] = 1; +$modversion['adminindex'] = 'admin/index.php'; +$modversion['adminmenu'] = 'admin/menu.php'; /** * Module Main Main */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-04-09 20:56:56
|
Revision: 9293 http://xoops.svn.sourceforge.net/xoops/?rev=9293&view=rev Author: wishcraft Date: 2012-04-09 20:56:42 +0000 (Mon, 09 Apr 2012) Log Message: ----------- X-Forum 5.85 - Production Release (SEO Fix) - see changelog.txt for changes Added Paths: ----------- XoopsModules/xforum/releases/5.85/ XoopsModules/xforum/releases/5.85/docs/ XoopsModules/xforum/releases/5.85/docs/.htaccess XoopsModules/xforum/releases/5.85/docs/gpl.txt XoopsModules/xforum/releases/5.85/docs/licence.txt XoopsModules/xforum/releases/5.85/extra/ XoopsModules/xforum/releases/5.85/extra/CBB/ XoopsModules/xforum/releases/5.85/extra/CBB/htdocs/ XoopsModules/xforum/releases/5.85/extra/CBB/htdocs/migratetoxforum.php XoopsModules/xforum/releases/5.85/extra/D3forum/ XoopsModules/xforum/releases/5.85/extra/D3forum/htdocs/ XoopsModules/xforum/releases/5.85/extra/D3forum/htdocs/migratetoxforum.php XoopsModules/xforum/releases/5.85/extra/Newbb/ XoopsModules/xforum/releases/5.85/extra/Newbb/htdocs/ XoopsModules/xforum/releases/5.85/extra/Newbb/htdocs/migratetoxforum.php XoopsModules/xforum/releases/5.85/htdocs/ XoopsModules/xforum/releases/5.85/htdocs/Frameworks/ XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/ XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/ XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/16/ XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/16/xforum.block.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/16/xforum.category.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/16/xforum.digest.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/16/xforum.field.permissions.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/16/xforum.fields.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/16/xforum.forum.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/16/xforum.permissions.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/16/xforum.prune.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/16/xforum.reorder.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/16/xforum.report.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/16/xforum.sync.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/16/xforum.vote.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/32/ XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/32/xforum.block.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/32/xforum.category.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/32/xforum.digest.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/32/xforum.field.permissions.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/32/xforum.fields.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/32/xforum.forum.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/32/xforum.permissions.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/32/xforum.prune.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/32/xforum.reorder.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/32/xforum.report.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/32/xforum.sync.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/moduleclasses/icons/32/xforum.vote.png XoopsModules/xforum/releases/5.85/htdocs/Frameworks/tcpdf/ XoopsModules/xforum/releases/5.85/htdocs/modules/ XoopsModules/xforum/releases/5.85/htdocs/modules/tag/ XoopsModules/xforum/releases/5.85/htdocs/modules/tag/plugin/ XoopsModules/xforum/releases/5.85/htdocs/modules/tag/plugin/xforum.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/action.post.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/action.topic.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/action.transfer.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/about.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/admin_about.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/admin_blocks.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/admin_cat_manager.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/admin_dashboard.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/admin_digest.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/admin_field.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/admin_field_permissions.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/admin_field_visibility.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/admin_forum_manager.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/admin_forum_prune.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/admin_forum_reorder.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/admin_header.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/admin_permissions.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/admin_post.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/admin_report.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/admin_votedata.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/field.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/field_permissions.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/field_visibility.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/index.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/index.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/admin/menu.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/archive.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/blocks/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/blocks/forum_block.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/blocks/index.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/category.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/digest.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/extras.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/field.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/forum.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/index.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/karma.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/moderate.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/online.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/permission.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/post.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/posts.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/rate.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/read.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/readforum.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/readtopic.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/report.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/text.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/topic.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/blog/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/blog/config.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/blog/index.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/blog/language/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/blog/language/english.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/blog/language/schinese.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/bookmark/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/bookmark/config.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/bookmark/index.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/bookmark/language/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/bookmark/language/english.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/bookmark/language/schinese.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/dokuwiki/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/dokuwiki/config.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/dokuwiki/index.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/dokuwiki/language/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/dokuwiki/language/english.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/dokuwiki/language/schinese.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/email/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/email/action.email.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/email/config.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/email/index.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/email/language/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/email/language/english.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/email/language/schinese.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/index.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/pdf/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/pdf/config.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/pdf/index.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/pdf/language/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/pdf/language/english.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/pdf/language/schinese.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/pm/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/pm/config.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/pm/index.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/pm/language/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/pm/language/english.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/pm/language/schinese.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/print/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/print/config.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/print/index.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/print/language/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/print/language/english.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/print/language/schinese.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/wordpress/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/wordpress/config.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/wordpress/index.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/wordpress/language/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/wordpress/language/english.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer/wordpress/language/schinese.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/transfer.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/uploader.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/user.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/visibility.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/xforumtree.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/xlanguage_ext.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/xmlrss.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/class/xoopsformloader.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/delete.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/digest.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/dl_attachment.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/docs/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/docs/changelog.txt XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/docs/credits.txt XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/docs/index.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/docs/install.txt XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/docs/lang_diff.txt XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/docs/licence.txt XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/docs/readme.txt XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/edit.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/graphs/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/header.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/Thumbs.db XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/add-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/aim-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/aim-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/approve-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/approve-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/arrow-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/arrow-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/bg.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/bg.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/blank.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/brdr-blc.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/brdr-bottom.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/brdr-brc.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/brdr-left.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/brdr-right.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/brdr-tlc.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/brdr-top.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/brdr-trc.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/category/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/category/Thumbs.db XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/category/blank.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/category/topxoops.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/category/xforum.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/category/xoops-au.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/del_topic-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/del_topic-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/delete-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/delete-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/delete.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/delete.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/digest-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/digest-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/disable.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/document-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/document-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/edit-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/edit-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/edit.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/edit.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/email-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/email-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/enable.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/external.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/Thumbs.db XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/ace.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/avi.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/bmp.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/doc.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/exe.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/flash.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/gif.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/html.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/jpeg.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/jpg.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/mid.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/mov.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/mp3.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/mpg.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/netscape.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/pdf.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/png.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/ppt.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/rar.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/txt.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/unknown.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/wav.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/xls.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/filetypes/zip.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/home-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/home-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/icons/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/icons/accept.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/icons/cancel.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/icq-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/icq-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/Thumbs.db XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/attachment-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/attachment-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/clip-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/clip-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/doubledown-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/doubledown-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/down-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/down-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/Thumbs.db XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/new_forum-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/new_forum-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/new_subforum-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/new_subforum-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/offline-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/offline-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/online-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/online-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/p_delete-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/p_delete-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/p_edit-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/p_edit-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/p_quote-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/p_quote-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/p_reply-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/p_reply-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/p_report-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/p_report-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/p_up-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/p_up-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/t_new-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/t_new-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/t_poll-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/t_poll-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/t_qr-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/t_qr-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/t_reply-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/english/t_reply-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/flat-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/flat-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/folder-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/folder-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/folder_big-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/folder_big-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/folder_digest-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/folder_digest-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/folder_locked_big-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/folder_locked_big-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/folder_locked_big_newposts-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/folder_locked_big_newposts-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/folder_new_big-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/folder_new_big-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/folder_sticky-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/folder_sticky-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/folder_user-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/folder_user-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/forum_moderators-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/forum_moderators-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/Thumbs.db XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/new_forum-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/new_forum-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/new_subforum-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/new_subforum-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/offline-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/offline-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/online-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/online-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/p_delete-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/p_delete-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/p_edit-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/p_edit-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/p_quote-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/p_quote-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/p_reply-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/p_reply-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/p_report-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/p_report-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/p_up-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/p_up-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/t_new-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/t_new-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/t_poll-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/t_poll-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/t_qr-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/t_qr-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/t_reply-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/german/t_reply-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/hot_folder-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/hot_folder-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/hot_folder_user-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/hot_folder_user-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/hot_red_folder-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/hot_red_folder-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/index.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/left-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/left-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/lock-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/lock-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/pixel-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/poll-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/poll-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/post_content-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/post_content-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/printer-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/printer-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/rate1-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/rate1-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/rate2-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/rate2-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/rate3-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/rate3-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/rate4-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/rate4-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/rate5-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/rate5-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/red_folder-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/red_folder-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/red_folder_user-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/red_folder_user-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/right-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/right-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/rpg/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/rpg/Thumbs.db XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/rpg/blue.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/rpg/green.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/rpg/img_backing.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/rpg/img_left.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/rpg/img_right.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/rpg/orange.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/threaded-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/threaded-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/up-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/up-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/whosonline-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/imagesets/default/whosonline-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/index.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/left_both.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/left_both.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/lock_topic-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/lock_topic-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/minus-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/minus-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/minus.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/minus.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/move_topic-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/move_topic-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/msnm-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/msnm-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/news-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/news-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/pdf-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/pdf-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/personal-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/personal-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/plus-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/plus-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/plus.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/plus.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/pm-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/pm-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/right_both.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/right_both.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/rss-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/rss-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/rss-small.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/spacer-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/sticky-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/sticky-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/undigest-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/undigest-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/unlock_topic-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/unlock_topic-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/unsticky-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/unsticky-a.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/xforum.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/xoopsxf_slogo.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/yahoo-a.gif XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/images/yahoo-xforum.png XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/admin.functions.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/formselectforum.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/forumform.inc.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/functions.image.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/functions.ini.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/functions.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/functions.welcome.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/index.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/js/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/js/xforum_browserdetect.js XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/js/xforum_dynMenu.js XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/js/xforum_menu_click.js XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/js/xforum_tip.js XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/js/xforum_tipstyle.js XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/js/xforum_toggle.js XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/module.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/module.v100.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/module.v220.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/notification.inc.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/plugin.dist.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/plugin.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/pngbehavior.htc XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/search.inc.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/vars.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/include/xforum.htc XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/index.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/language/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/language/english/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/language/english/admin.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/language/english/blocks.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/language/english/index.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/language/english/mail_template/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/language/english/mail_template/forum_newpost_notify.tpl XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/language/english/mail_template/forum_newthread_notify.tpl XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/language/english/mail_template/global_digest_notify.tpl XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/language/english/mail_template/global_newforum_notify.tpl XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/language/english/mail_template/global_newfullpost_notify.tpl XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/language/english/mail_template/global_newpost_notify.tpl XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/language/english/mail_template/thread_newpost_notify.tpl XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/language/english/main.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/language/english/modinfo.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/language/english/xforum.css XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/language/english/xforum_menu_click.css XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/language/english/xforum_menu_hover.css XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/language/index.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/list.tag.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/makepdf.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/moderate.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/newtopic.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/notification_update.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/polls.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/post.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/posttonews.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/posttopm.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/print.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/ratethread.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/reply.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/report.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/rss.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/search.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/sql/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/sql/index.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/sql/mysql.sql XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/blocks/ XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/blocks/index.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/blocks/xforum_block.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/blocks/xforum_block_author.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/blocks/xforum_block_post.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/blocks/xforum_block_text.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/blocks/xforum_block_topic.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/blocks/xforum_tag_block_cloud.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/blocks/xforum_tag_block_top.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/index.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum.css XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_admin_fieldlist.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_admin_visibility.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_dropdown_menu.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_index.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_item.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_menu_click.css XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_menu_hover.css XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_online.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_poll_results.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_poll_view.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_rss.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_search.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_searchresults.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_tag_bar.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_thread.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_viewall.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_viewforum.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_viewpost.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_viewpost_list.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_viewtopic_flat.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/templates/xforum_viewtopic_thread.html XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/topicmanager.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/view.tag.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/viewall.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/viewforum.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/viewpost.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/viewtopic.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/votepolls.php XoopsModules/xforum/releases/5.85/htdocs/modules/xforum/xoops_version.php Added: XoopsModules/xforum/releases/5.85/docs/.htaccess =================================================================== --- XoopsModules/xforum/releases/5.85/docs/.htaccess (rev 0) +++ XoopsModules/xforum/releases/5.85/docs/.htaccess 2012-04-09 20:56:42 UTC (rev 9293) @@ -0,0 +1,42 @@ +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d + +RewriteRule ^forums/(.*?)/(.*?)/(.*?)/images/(.*?)/(.*?)/(.*?)/(.*) modules/xforum/images/$4/$5/$6/$7 +RewriteRule ^forums/(.*?)/(.*?)/(.*?)/images/(.*?)/(.*?)/(.*) modules/xforum/images/$4/$5/$6 +RewriteRule ^forums/(.*?)/(.*?)/(.*?)/images/(.*?)/(.*) modules/xforum/images/$4/$5 +RewriteRule ^forums/(.*?)/(.*?)/(.*?)/images/(.*) modules/xforum/images/$4 +RewriteRule ^forums/(.*?)/(.*?)/images/(.*?)/(.*?)/(.*?)/(.*) modules/xforum/images/$3/$4/$5/$6 +RewriteRule ^forums/(.*?)/(.*?)/images/(.*?)/(.*?)/(.*) modules/xforum/images/$3/$4/$5 +RewriteRule ^forums/(.*?)/(.*?)/images/(.*?)/(.*) modules/xforum/images/$3/$4 +RewriteRule ^forums/(.*?)/(.*?)/images/(.*) modules/xforum/images/$3 +RewriteRule ^forums/(.*?)/images/(.*?)/(.*?)/(.*?)/(.*) modules/xforum/images/$2/$3/$4/$5 +RewriteRule ^forums/(.*?)/images/(.*?)/(.*?)/(.*) modules/xforum/images/$2/$3/$4 +RewriteRule ^forums/(.*?)/images/(.*?)/(.*) modules/xforum/images/$2/$3 +RewriteRule ^forums/(.*?)/images/(.*) modules/xforum/images/$2 +RewriteRule ^forums/images/(.*?)/(.*?)/(.*?)/(.*) modules/xforum/images/$1/$2/$3/$4 +RewriteRule ^forums/images/(.*?)/(.*?)/(.*) modules/xforum/images/$1/$2/$3 +RewriteRule ^forums/images/(.*?)/(.*) modules/xforum/images/$1/$2 +RewriteRule ^forums/images/(.*) modules/xforum/images/$1 + +RewriteRule ^forums/(.*?)/(.*?)/([0-9]+),([0-9]+),([0-9]+),(.*?),(.*?),([0-9]+),([0-9]+).html$ modules/xforum/viewforum.php?forum=$3&since=$4&start=$5&sortorder=$6&sortname=$7&mode=$8&type=$9 [L,NC,QSA] +RewriteRule ^forums/(.*?)/(.*?)/(.*?)/([0-9]+),([0-9]+),([0-9]+),([0-9]+),(.*?),(.*?).html$ modules/xforum/viewtopic.php?forum=$4&topic_id=$5&post_id=$6&start=$7&since=$8&order=$9 [L,NC,QSA] +RewriteRule ^forums/(.*?)/(.*?)/(.*?)/([0-9]+),([0-9]+),([0-9]+).html$ modules/xforum/viewtopic.php?forum=$4&topic_id=$5&post_id=$6 [L,NC,QSA] +RewriteRule ^forums/(.*?)/(.*?)/(.*?)/([0-9]+),([0-9]+),([a-zA-Z0-9]+).html$ modules/xforum/viewtopic.php?forum=$4&topic_id=$5&viewmode=$6 [L,NC,QSA] +RewriteRule ^forums/(.*?)/(.*?)/(.*?)/([0-9]+),([0-9]+).html$ modules/xforum/viewtopic.php?forum=$4&topic_id=$5 [L,NC,QSA] +RewriteRule ^forums/(.*?)/(.*?)/(.*?)/(.*?).php$ modules/xforum/$4.php [L,NC,QSA] +RewriteRule ^forums/(.*?)/(.*?)/newtopic,(.*?),([0-9]+).html$ modules/xforum/newtopic.php?op=$3&forum=$4 [L,NC,QSA] +RewriteRule ^forums/(.*?)/(.*?)/newtopic,([0-9]+).html$ modules/xforum/newtopic.php?forum=$3 [L,NC,QSA] +RewriteRule ^forums/(.*?)/(.*?)/reply,([0-9]+),([0-9]+),([0-9]+).html$ modules/xforum/reply.php?forum=$3&topic_id=$4&post_id=$5 [L,NC,QSA] +RewriteRule ^forums/(.*?)/(.*?)/poll,([a-zA-Z0-9]+),([0-9]+),([0-9]+).html$ modules/xforum/poll.php?op=$3&topic_id=$4&poll_id=$5 [L,NC,QSA] +RewriteRule ^forums/(.*?)/(.*?)/edit,([0-9]+),([0-9]+).html$ modules/xforum/edit.php?forum=$3&post_id=$4 [L,NC,QSA] +RewriteRule ^forums/(.*?)/(.*?)/archive,([0-9]+).html$ modules/xforum/archive.php?forum=$3 [L,NC,QSA] +RewriteRule ^forums/(.*?)/(.*?)/archive,([0-9]+),([0-9]+).html$ modules/xforum/archive.php?forum=$3&topic_id=$4 [L,NC,QSA] +RewriteRule ^forums/(.*?)/(.*?)/(.*?).php$ modules/xforum/$3.php [L,NC,QSA] +RewriteRule ^forums/rss,([0-9]+),(.*?).rss$ modules/xforum/rss.php?c=$1&f=$2 [L,NC,QSA] +RewriteRule ^forums/viewall,(.*?),([0-9]+),([0-9]+),([0-9]+),(.*?),(.*?).html$ modules/xforum/viewall.php?type=$1&mode=$2&start=$3&since=$4&sortname=$5&sortorder=$6 [L,NC,QSA] +RewriteRule ^forums/viewpost,([0-9]+),([0-9]+),(.*?),([0-9]+),(.*?)html$ modules/xforum/viewpost.php?forum=$1&start=$2&order=$3&uid=$4&mode=$5&type=$6 [L,NC,QSA] +RewriteRule ^forums/cat,([0-9]+).html$ modules/xforum/index.php?cat=$1 [L,NC,QSA] +RewriteRule ^forums/(.*?).php$ modules/xforum/$1.php [L,NC,QSA] +RewriteRule ^forums/search.html$ modules/xforum/search.php [L,NC,QSA] +RewriteRule ^forums/index.html$ modules/xforum/index.php [L,NC,QSA] Added: XoopsModules/xforum/releases/5.85/docs/gpl.txt =================================================================== --- XoopsModules/xforum/releases/5.85/docs/gpl.txt (rev 0) +++ XoopsModules/xforum/releases/5.85/docs/gpl.txt 2012-04-09 20:56:42 UTC (rev 9293) @@ -0,0 +1,342 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 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 Library 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 t... [truncated message content] |
From: <be...@us...> - 2012-04-09 20:43:59
|
Revision: 9292 http://xoops.svn.sourceforge.net/xoops/?rev=9292&view=rev Author: beckmi Date: 2012-04-09 20:43:53 +0000 (Mon, 09 Apr 2012) Log Message: ----------- Fixing translation Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/language/english/admin/comments.php Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/language/english/admin/comments.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/language/english/admin/comments.php 2012-04-09 18:06:29 UTC (rev 9291) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/language/english/admin/comments.php 2012-04-09 20:43:53 UTC (rev 9292) @@ -28,8 +28,8 @@ define("_AM_SYSTEM_COMMENTS_FORM_ALL_STATUS","Any status"); define("_AM_SYSTEM_COMMENTS_FORM_PURGE","Purge"); -define("_AM_SYSTEM_COMMENTS_FORM_PURGE_DATE_AFTER","After this date (white for any date)"); -define("_AM_SYSTEM_COMMENTS_FORM_PURGE_DATE_BEFORE","Before this date (white for any date)"); +define("_AM_SYSTEM_COMMENTS_FORM_PURGE_DATE_AFTER","After this date (leave empty for any date)"); +define("_AM_SYSTEM_COMMENTS_FORM_PURGE_DATE_BEFORE","Before this date (leave empty for any date)"); define("_AM_SYSTEM_COMMENTS_FORM_PURGE_GROUPS","Groups"); define("_AM_SYSTEM_COMMENTS_FORM_PURGE_USER","User name"); define("_AM_SYSTEM_COMMENTS_FORM_PURGE_STATUS","Status"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-04-09 18:06:36
|
Revision: 9291 http://xoops.svn.sourceforge.net/xoops/?rev=9291&view=rev Author: beckmi Date: 2012-04-09 18:06:29 +0000 (Mon, 09 Apr 2012) Log Message: ----------- preventing division by zero in pagenav.php (timgno) Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt XoopsCore/branches/2.5.x/2.5.5/docs/lang_diff.txt XoopsCore/branches/2.5.x/2.5.5/htdocs/class/pagenav.php Modified: XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt 2012-04-08 17:15:11 UTC (rev 9290) +++ XoopsCore/branches/2.5.x/2.5.5/docs/changelog.250.txt 2012-04-09 18:06:29 UTC (rev 9291) @@ -1,6 +1,13 @@ XOOPS 2.5.x Changelog (Language changes: see: /docs/lang_diff.txt) =============================== +2011/04/15: Version 2.5.5 Final +=============================== +Bugfixes: + - preventing division by zero in pagenav.php (timgno) + + +=============================== 2011/03/14: Version 2.5.5 RC =============================== Bugfixes: Modified: XoopsCore/branches/2.5.x/2.5.5/docs/lang_diff.txt =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/docs/lang_diff.txt 2012-04-08 17:15:11 UTC (rev 9290) +++ XoopsCore/branches/2.5.x/2.5.5/docs/lang_diff.txt 2012-04-09 18:06:29 UTC (rev 9291) @@ -20,6 +20,9 @@ - added define("_AM_MODULEADMIN_ABOUT_AUTHOR_INFO","Author Info"); - added define("_AM_MODULEADMIN_ADMIN_FOOTER", "<div class='center smallsmall italic pad5'>This module is maintained by the <a class='tooltip' rel='external' href='http://xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>"); +/language/english/calendar.php +- added define("_CAL_FORMAT","Y-m-d"); + =============================== 2011/11/17: Version 2.5.4 =============================== Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/class/pagenav.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/class/pagenav.php 2012-04-08 17:15:11 UTC (rev 9290) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/class/pagenav.php 2012-04-09 18:06:29 UTC (rev 9291) @@ -67,35 +67,37 @@ if ($this->total <= $this->perpage) { return $ret; } - $total_pages = ceil($this->total / $this->perpage); - if ($total_pages > 1) { - $ret .= '<div id="xo-pagenav">'; - $prev = $this->current - $this->perpage; - if ($prev >= 0) { - $ret .= '<a class="xo-pagarrow" href="' . $this->url . $prev . $this->extra . '"><u>«</u></a> '; - } - $counter = 1; - $current_page = intval(floor(($this->current + $this->perpage) / $this->perpage)); - while ($counter <= $total_pages) { - if ($counter == $current_page) { - $ret .= '<strong class="xo-pagact" >(' . $counter . ')</strong> '; - } elseif (($counter > $current_page - $offset && $counter < $current_page + $offset) || $counter == 1 || $counter == $total_pages) { - if ($counter == $total_pages && $current_page < $total_pages - $offset) { - $ret .= '... '; - } - $ret .= '<a class="xo-counterpage" href="' . $this->url . (($counter - 1) * $this->perpage) . $this->extra . '">' . $counter . '</a> '; - if ($counter == 1 && $current_page > 1 + $offset) { - $ret .= '... '; - } - } - $counter ++; - } - $next = $this->current + $this->perpage; - if ($this->total > $next) { - $ret .= '<a class="xo-pagarrow" href="' . $this->url . $next . $this->extra . '"><u>»</u></a> '; - } - $ret .= '</div> '; - } + if(($this->total != 0) && ($this->perpage != 0)) { + $total_pages = ceil($this->total / $this->perpage); + if ($total_pages > 1) { + $ret .= '<div id="xo-pagenav">'; + $prev = $this->current - $this->perpage; + if ($prev >= 0) { + $ret .= '<a class="xo-pagarrow" href="' . $this->url . $prev . $this->extra . '"><u>«</u></a> '; + } + $counter = 1; + $current_page = intval(floor(($this->current + $this->perpage) / $this->perpage)); + while ($counter <= $total_pages) { + if ($counter == $current_page) { + $ret .= '<strong class="xo-pagact" >(' . $counter . ')</strong> '; + } elseif (($counter > $current_page - $offset && $counter < $current_page + $offset) || $counter == 1 || $counter == $total_pages) { + if ($counter == $total_pages && $current_page < $total_pages - $offset) { + $ret .= '... '; + } + $ret .= '<a class="xo-counterpage" href="' . $this->url . (($counter - 1) * $this->perpage) . $this->extra . '">' . $counter . '</a> '; + if ($counter == 1 && $current_page > 1 + $offset) { + $ret .= '... '; + } + } + $counter ++; + } + $next = $this->current + $this->perpage; + if ($this->total > $next) { + $ret .= '<a class="xo-pagarrow" href="' . $this->url . $next . $this->extra . '"><u>»</u></a> '; + } + $ret .= '</div> '; + } + } return $ret; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-04-08 17:15:18
|
Revision: 9290 http://xoops.svn.sourceforge.net/xoops/?rev=9290&view=rev Author: wishcraft Date: 2012-04-08 17:15:11 +0000 (Sun, 08 Apr 2012) Log Message: ----------- TwitterBomb 1.30 - Production Release - See changelog.txt for changes Modified Paths: -------------- XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/admin/index.php XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/class/mentions.php XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/class/replies.php XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/language/english/admin.php XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_mentions_list.html XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_replies_list.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/admin/index.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/mentions.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/replies.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/admin.php XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_mentions_list.html XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_replies_list.html Modified: XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/admin/index.php =================================================================== --- XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/admin/index.php 2012-04-07 22:40:14 UTC (rev 9289) +++ XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/admin/index.php 2012-04-08 17:15:11 UTC (rev 9290) @@ -1221,7 +1221,7 @@ $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter); $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); - foreach (array( 'cid','catid','mid','user','keywords','mentions','created','updated','mentioned','mentions','uid') as $id => $key) { + foreach (array( 'cid','catid','mid','user','rpids','keywords','mentions','created','updated','mentioned','mentions','uid') as $id => $key) { $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'&filter='.$filter.'">'.(defined('_AM_TWEETBOMB_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_TWEETBOMB_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_TWEETBOMB_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $mentions_handler->getFilterForm($filter, $key, $sort, $op, $fct)); } @@ -1399,13 +1399,12 @@ $replies = $replies_handler->create(); } $replies->setVars($_POST[$id]); - $replies->setVar('start', strtotime($_POST[$id]['start'])); - $replies->setVar('end', strtotime($_POST[$id]['end'])); - - if (empty($_POST[$id]['timed'])) - $replies->setVar('timed', FALSE); if (!$id=$replies_handler->insert($replies)) { + + print_r($replies); + xoops_cp_footer(); + exit; redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_REPLIES_FAILEDTOSAVE); exit(0); } else { Modified: XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/class/mentions.php =================================================================== --- XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/class/mentions.php 2012-04-07 22:40:14 UTC (rev 9289) +++ XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/class/mentions.php 2012-04-08 17:15:11 UTC (rev 9290) @@ -19,7 +19,7 @@ $this->initVar('catid', XOBJ_DTYPE_INT, null, false); $this->initVar('user', XOBJ_DTYPE_TXTBOX, '@', true, 64); $this->initVar('rpids', XOBJ_DTYPE_ARRAY, array(), false); - $this->initVar('keywords', XOBJ_DTYPE_TXTBOX, null, true, 500); + $this->initVar('keywords', XOBJ_DTYPE_TXTBOX, null, false, 500); $this->initVar('geocode', XOBJ_DTYPE_INT, null, false); $this->initVar('longitude', XOBJ_DTYPE_DECIMAL, null, false); $this->initVar('latitude', XOBJ_DTYPE_DECIMAL, null, false); @@ -44,9 +44,9 @@ $ele['id'] = new XoopsFormHidden('id['.$ret['mid'].']', $this->getVar('mid')); $ele['cid'] = new TwitterBombFormSelectCampaigns('', $ret['mid'].'[cid]', $this->getVar('cid'), 1, false, true, 'mentions'); $ele['catid'] = new TwitterBombFormSelectCategories('', $ret['mid'].'[catid]', $this->getVar('catid')); - $ele['rpids'] = new TwitterBombFormCheckboxReplies('', $ret['mid'].'[rpids]', $this->getVar('rpids'), '<br/>'); + $ele['rpids'] = new TwitterBombFormCheckboxReplies('', $ret['mid'].'[rpids]', $this->getVar('rpids'), ' '); $ele['user'] = new XoopsFormText('', $ret['mid'].'[user]', 26,64, $this->getVar('user')); - $ele['keywords'] = new XoopsFormTextArea('', $ret['mid'].'[keywords]', 26, 4, $this->getVar('keywords')); + $ele['keywords'] = new XoopsFormTextArea('', $ret['mid'].'[keywords]', $this->getVar('keywords'), 4, 26); $ele['geocode'] = new XoopsFormRadioYN('', $ret['rid'].'[geocode]', $this->getVar('geocode')); $ele['longitude'] = new XoopsFormText('', $ret['rid'].'[longitude]', 10,24, $this->getVar('longitude')); $ele['latitude'] = new XoopsFormText('', $ret['rid'].'[latitude]', 10,24, $this->getVar('latitude')); Modified: XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/class/replies.php =================================================================== --- XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/class/replies.php 2012-04-07 22:40:14 UTC (rev 9289) +++ XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/class/replies.php 2012-04-08 17:15:11 UTC (rev 9290) @@ -17,10 +17,10 @@ $this->initVar('rpid', XOBJ_DTYPE_INT, null, false); $this->initVar('cid', XOBJ_DTYPE_INT, null, false); $this->initVar('catid', XOBJ_DTYPE_INT, null, false); - $this->initVar('urlid', XOBJ_DTYPE_INT, null, true, 255); + $this->initVar('urlid', XOBJ_DTYPE_INT, null, false); $this->initVar('rcid', XOBJ_DTYPE_INT, null, false); - $this->initVar('reply', XOBJ_DTYPE_TXTBOX, null, true, 140); - $this->initVar('keywords', XOBJ_DTYPE_TXTBOX, null, true, 500); + $this->initVar('reply', XOBJ_DTYPE_TXTBOX, null, false, 140); + $this->initVar('keywords', XOBJ_DTYPE_TXTBOX, null, false, 500); $this->initVar('uid', XOBJ_DTYPE_INT, null, false); $this->initVar('type', XOBJ_DTYPE_ENUM, 'reply', false, false, false, array('bomb','reply')); $this->initVar('replies', XOBJ_DTYPE_INT, null, false); @@ -45,7 +45,7 @@ $ele['rcid'] = new TwitterBombFormSelectCampaigns('', $ret['rpid'].'[rcid]', $this->getVar('rcid'), 1, false, true, 'bomb'); $ele['type'] = new TwitterBombFormSelectType('', $ret['rpid'].'[type]', $this->getVar('type'), 1, false, false, 'bomb,reply'); $ele['reply'] = new XoopsFormText('', $ret['rpid'].'[reply]', 26,140, $this->getVar('reply')); - $ele['keywords'] = new XoopsFormTextArea('', $ret['rpid'].'[keywords]', 26, 4, $this->getVar('keywords')); + $ele['keywords'] = new XoopsFormTextArea('', $ret['rpid'].'[keywords]', $this->getVar('keywords'), 4, 26); if ($ret['uid']>0) { $member_handler=xoops_gethandler('member'); Modified: XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/language/english/admin.php =================================================================== --- XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/language/english/admin.php 2012-04-07 22:40:14 UTC (rev 9289) +++ XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/language/english/admin.php 2012-04-08 17:15:11 UTC (rev 9290) @@ -481,6 +481,7 @@ // Table header define('_AM_TWEETBOMB_TH_REPLIED', 'Replied'); define('_AM_TWEETBOMB_TH_RCID', 'Bomb Campaign'); + define('_AM_TWEETBOMB_TH_RPIDS', 'Replies'); ?> \ No newline at end of file Modified: XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_mentions_list.html =================================================================== --- XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_mentions_list.html 2012-04-07 22:40:14 UTC (rev 9289) +++ XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_mentions_list.html 2012-04-08 17:15:11 UTC (rev 9290) @@ -11,6 +11,7 @@ <th><{$cid_th}></th> <th><{$catid_th}></th> <th><{$user_th}></th> + <th><{$rpids_th}></th> <th><{$keywords_th}></th> <th><{$mentions_th}></th> <th><{$uid_th}></th> @@ -23,6 +24,7 @@ <th><{$filter_cid_th}></th> <th><{$filter_catid_th}></th> <th><{$filter_user_th}></th> + <th><{$filter_rpids_th}></th> <th><{$filter_keywords_th}></th> <th><{$filter_mentions_th}></th> <th><{$filter_uid_th}></th> @@ -36,6 +38,7 @@ <td align='center'><{$item.form.cid}></td> <td align='center'><{$item.form.catid}></td> <td align='center'><{$item.form.user}></td> + <td align='center'><{$item.form.rpids}></td> <td align='center'><{$item.form.keywords}></td> <td align='center'><{$item.form.mentions}></td> <td align='center'><{$item.form.uid}></td> @@ -45,7 +48,7 @@ </tr> <{/foreach}> <tr class="foot"> - <td colspan="10"><input type='submit' name='submit' value='<{$smarty.const._SUBMIT}>'/></td> + <td colspan="11"><input type='submit' name='submit' value='<{$smarty.const._SUBMIT}>'/></td> </tr> </table> <input type='hidden' name='op' value='mentions'/> Modified: XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_replies_list.html =================================================================== --- XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_replies_list.html 2012-04-07 22:40:14 UTC (rev 9289) +++ XoopsModules/twitterbomb/releases/1.30/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_replies_list.html 2012-04-08 17:15:11 UTC (rev 9290) @@ -48,7 +48,6 @@ <td align='center'><{$item.form.reply}></td> <td align='center'><{$item.form.keywords}></td> <td align='center'><{$item.form.type}></td> - <td align='center'><{$item.form.type}></td> <td align='center'><{$item.form.uid}></td> <td align='center'><{$item.replies}></td> <td align='center'><{$item.form.created}></td> Modified: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/admin/index.php =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/admin/index.php 2012-04-07 22:40:14 UTC (rev 9289) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/admin/index.php 2012-04-08 17:15:11 UTC (rev 9290) @@ -1221,7 +1221,7 @@ $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter); $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); - foreach (array( 'cid','catid','mid','user','keywords','mentions','created','updated','mentioned','mentions','uid') as $id => $key) { + foreach (array( 'cid','catid','mid','user','rpids','keywords','mentions','created','updated','mentioned','mentions','uid') as $id => $key) { $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.str_replace('_','-',$key).'&order='.((str_replace('_','-',$key)==$sort)?($order=='DESC'?'ASC':'DESC'):$order).'&op='.$op.'&filter='.$filter.'">'.(defined('_AM_TWEETBOMB_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_TWEETBOMB_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_TWEETBOMB_TH_'.strtoupper(str_replace('-','_',$key))).'</a>'); $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $mentions_handler->getFilterForm($filter, $key, $sort, $op, $fct)); } @@ -1399,13 +1399,12 @@ $replies = $replies_handler->create(); } $replies->setVars($_POST[$id]); - $replies->setVar('start', strtotime($_POST[$id]['start'])); - $replies->setVar('end', strtotime($_POST[$id]['end'])); - - if (empty($_POST[$id]['timed'])) - $replies->setVar('timed', FALSE); if (!$id=$replies_handler->insert($replies)) { + + print_r($replies); + xoops_cp_footer(); + exit; redirect_header('index.php?op='.$op.'&fct=list&limit='.$limit.'&start='.$start.'&order='.$order.'&sort='.$sort.'&filter='.$filter, 10, _AM_MSG_REPLIES_FAILEDTOSAVE); exit(0); } else { Modified: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/mentions.php =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/mentions.php 2012-04-07 22:40:14 UTC (rev 9289) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/mentions.php 2012-04-08 17:15:11 UTC (rev 9290) @@ -19,7 +19,7 @@ $this->initVar('catid', XOBJ_DTYPE_INT, null, false); $this->initVar('user', XOBJ_DTYPE_TXTBOX, '@', true, 64); $this->initVar('rpids', XOBJ_DTYPE_ARRAY, array(), false); - $this->initVar('keywords', XOBJ_DTYPE_TXTBOX, null, true, 500); + $this->initVar('keywords', XOBJ_DTYPE_TXTBOX, null, false, 500); $this->initVar('geocode', XOBJ_DTYPE_INT, null, false); $this->initVar('longitude', XOBJ_DTYPE_DECIMAL, null, false); $this->initVar('latitude', XOBJ_DTYPE_DECIMAL, null, false); @@ -44,9 +44,9 @@ $ele['id'] = new XoopsFormHidden('id['.$ret['mid'].']', $this->getVar('mid')); $ele['cid'] = new TwitterBombFormSelectCampaigns('', $ret['mid'].'[cid]', $this->getVar('cid'), 1, false, true, 'mentions'); $ele['catid'] = new TwitterBombFormSelectCategories('', $ret['mid'].'[catid]', $this->getVar('catid')); - $ele['rpids'] = new TwitterBombFormCheckboxReplies('', $ret['mid'].'[rpids]', $this->getVar('rpids'), '<br/>'); + $ele['rpids'] = new TwitterBombFormCheckboxReplies('', $ret['mid'].'[rpids]', $this->getVar('rpids'), ' '); $ele['user'] = new XoopsFormText('', $ret['mid'].'[user]', 26,64, $this->getVar('user')); - $ele['keywords'] = new XoopsFormTextArea('', $ret['mid'].'[keywords]', 26, 4, $this->getVar('keywords')); + $ele['keywords'] = new XoopsFormTextArea('', $ret['mid'].'[keywords]', $this->getVar('keywords'), 4, 26); $ele['geocode'] = new XoopsFormRadioYN('', $ret['rid'].'[geocode]', $this->getVar('geocode')); $ele['longitude'] = new XoopsFormText('', $ret['rid'].'[longitude]', 10,24, $this->getVar('longitude')); $ele['latitude'] = new XoopsFormText('', $ret['rid'].'[latitude]', 10,24, $this->getVar('latitude')); Modified: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/replies.php =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/replies.php 2012-04-07 22:40:14 UTC (rev 9289) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/class/replies.php 2012-04-08 17:15:11 UTC (rev 9290) @@ -17,10 +17,10 @@ $this->initVar('rpid', XOBJ_DTYPE_INT, null, false); $this->initVar('cid', XOBJ_DTYPE_INT, null, false); $this->initVar('catid', XOBJ_DTYPE_INT, null, false); - $this->initVar('urlid', XOBJ_DTYPE_INT, null, true, 255); + $this->initVar('urlid', XOBJ_DTYPE_INT, null, false); $this->initVar('rcid', XOBJ_DTYPE_INT, null, false); - $this->initVar('reply', XOBJ_DTYPE_TXTBOX, null, true, 140); - $this->initVar('keywords', XOBJ_DTYPE_TXTBOX, null, true, 500); + $this->initVar('reply', XOBJ_DTYPE_TXTBOX, null, false, 140); + $this->initVar('keywords', XOBJ_DTYPE_TXTBOX, null, false, 500); $this->initVar('uid', XOBJ_DTYPE_INT, null, false); $this->initVar('type', XOBJ_DTYPE_ENUM, 'reply', false, false, false, array('bomb','reply')); $this->initVar('replies', XOBJ_DTYPE_INT, null, false); @@ -45,7 +45,7 @@ $ele['rcid'] = new TwitterBombFormSelectCampaigns('', $ret['rpid'].'[rcid]', $this->getVar('rcid'), 1, false, true, 'bomb'); $ele['type'] = new TwitterBombFormSelectType('', $ret['rpid'].'[type]', $this->getVar('type'), 1, false, false, 'bomb,reply'); $ele['reply'] = new XoopsFormText('', $ret['rpid'].'[reply]', 26,140, $this->getVar('reply')); - $ele['keywords'] = new XoopsFormTextArea('', $ret['rpid'].'[keywords]', 26, 4, $this->getVar('keywords')); + $ele['keywords'] = new XoopsFormTextArea('', $ret['rpid'].'[keywords]', $this->getVar('keywords'), 4, 26); if ($ret['uid']>0) { $member_handler=xoops_gethandler('member'); Modified: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/admin.php =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/admin.php 2012-04-07 22:40:14 UTC (rev 9289) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/language/english/admin.php 2012-04-08 17:15:11 UTC (rev 9290) @@ -481,6 +481,7 @@ // Table header define('_AM_TWEETBOMB_TH_REPLIED', 'Replied'); define('_AM_TWEETBOMB_TH_RCID', 'Bomb Campaign'); + define('_AM_TWEETBOMB_TH_RPIDS', 'Replies'); ?> \ No newline at end of file Modified: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_mentions_list.html =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_mentions_list.html 2012-04-07 22:40:14 UTC (rev 9289) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_mentions_list.html 2012-04-08 17:15:11 UTC (rev 9290) @@ -11,6 +11,7 @@ <th><{$cid_th}></th> <th><{$catid_th}></th> <th><{$user_th}></th> + <th><{$rpids_th}></th> <th><{$keywords_th}></th> <th><{$mentions_th}></th> <th><{$uid_th}></th> @@ -23,6 +24,7 @@ <th><{$filter_cid_th}></th> <th><{$filter_catid_th}></th> <th><{$filter_user_th}></th> + <th><{$filter_rpids_th}></th> <th><{$filter_keywords_th}></th> <th><{$filter_mentions_th}></th> <th><{$filter_uid_th}></th> @@ -36,6 +38,7 @@ <td align='center'><{$item.form.cid}></td> <td align='center'><{$item.form.catid}></td> <td align='center'><{$item.form.user}></td> + <td align='center'><{$item.form.rpids}></td> <td align='center'><{$item.form.keywords}></td> <td align='center'><{$item.form.mentions}></td> <td align='center'><{$item.form.uid}></td> @@ -45,7 +48,7 @@ </tr> <{/foreach}> <tr class="foot"> - <td colspan="10"><input type='submit' name='submit' value='<{$smarty.const._SUBMIT}>'/></td> + <td colspan="11"><input type='submit' name='submit' value='<{$smarty.const._SUBMIT}>'/></td> </tr> </table> <input type='hidden' name='op' value='mentions'/> Modified: XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_replies_list.html =================================================================== --- XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_replies_list.html 2012-04-07 22:40:14 UTC (rev 9289) +++ XoopsModules/twitterbomb/trunk/htdocs/modules/twitterbomb/templates/twitterbomb_cpanel_replies_list.html 2012-04-08 17:15:11 UTC (rev 9290) @@ -48,7 +48,6 @@ <td align='center'><{$item.form.reply}></td> <td align='center'><{$item.form.keywords}></td> <td align='center'><{$item.form.type}></td> - <td align='center'><{$item.form.type}></td> <td align='center'><{$item.form.uid}></td> <td align='center'><{$item.replies}></td> <td align='center'><{$item.form.created}></td> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-04-07 22:40:20
|
Revision: 9289 http://xoops.svn.sourceforge.net/xoops/?rev=9289&view=rev Author: wishcraft Date: 2012-04-07 22:40:14 +0000 (Sat, 07 Apr 2012) Log Message: ----------- SEO URL Rewrite/Route Module for XOOPS 2.5 - Production release Modified Paths: -------------- XoopsModules/seo/releases/1.01/htdocs/modules/seo/class/mapping.php XoopsModules/seo/trunk/htdocs/modules/seo/class/mapping.php Modified: XoopsModules/seo/releases/1.01/htdocs/modules/seo/class/mapping.php =================================================================== --- XoopsModules/seo/releases/1.01/htdocs/modules/seo/class/mapping.php 2012-04-07 22:17:38 UTC (rev 9288) +++ XoopsModules/seo/releases/1.01/htdocs/modules/seo/class/mapping.php 2012-04-07 22:40:14 UTC (rev 9289) @@ -208,8 +208,10 @@ if (is_object($GLOBALS['xoopsModule'])) if ($GLOBALS['xoopsModule']->getVar('dirname')=='seo') { foreach($this->_obj_plugins as $key => $object) { - if ($target = $object->getTarget()) { - return $GLOBALS['xoops']->path($target); + if ($object->_baseurl == $_GET['baseurl']) { + if ($target = $object->getTarget()) { + return $GLOBALS['xoops']->path($target); + } } } } Modified: XoopsModules/seo/trunk/htdocs/modules/seo/class/mapping.php =================================================================== --- XoopsModules/seo/trunk/htdocs/modules/seo/class/mapping.php 2012-04-07 22:17:38 UTC (rev 9288) +++ XoopsModules/seo/trunk/htdocs/modules/seo/class/mapping.php 2012-04-07 22:40:14 UTC (rev 9289) @@ -208,8 +208,10 @@ if (is_object($GLOBALS['xoopsModule'])) if ($GLOBALS['xoopsModule']->getVar('dirname')=='seo') { foreach($this->_obj_plugins as $key => $object) { - if ($target = $object->getTarget()) { - return $GLOBALS['xoops']->path($target); + if ($object->_baseurl == $_GET['baseurl']) { + if ($target = $object->getTarget()) { + return $GLOBALS['xoops']->path($target); + } } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-04-07 22:17:46
|
Revision: 9288 http://xoops.svn.sourceforge.net/xoops/?rev=9288&view=rev Author: wishcraft Date: 2012-04-07 22:17:38 +0000 (Sat, 07 Apr 2012) Log Message: ----------- SEO URL Rewrite/Route Module for XOOPS 2.5 - Production release Added Paths: ----------- XoopsModules/seo/ XoopsModules/seo/releases/ XoopsModules/seo/releases/1.01/ XoopsModules/seo/releases/1.01/docs/ XoopsModules/seo/releases/1.01/docs/.htaccess XoopsModules/seo/releases/1.01/htdocs/ XoopsModules/seo/releases/1.01/htdocs/modules/ XoopsModules/seo/releases/1.01/htdocs/modules/seo/ XoopsModules/seo/releases/1.01/htdocs/modules/seo/class/ XoopsModules/seo/releases/1.01/htdocs/modules/seo/class/index.html XoopsModules/seo/releases/1.01/htdocs/modules/seo/class/mapping.php XoopsModules/seo/releases/1.01/htdocs/modules/seo/images/ XoopsModules/seo/releases/1.01/htdocs/modules/seo/images/seo_slogo.png XoopsModules/seo/releases/1.01/htdocs/modules/seo/index.php XoopsModules/seo/releases/1.01/htdocs/modules/seo/language/ XoopsModules/seo/releases/1.01/htdocs/modules/seo/language/english/ XoopsModules/seo/releases/1.01/htdocs/modules/seo/language/english/modinfo.php XoopsModules/seo/releases/1.01/htdocs/modules/seo/plugins/ XoopsModules/seo/releases/1.01/htdocs/modules/seo/plugins/example.php XoopsModules/seo/releases/1.01/htdocs/modules/seo/plugins/index.html XoopsModules/seo/releases/1.01/htdocs/modules/seo/preloads/ XoopsModules/seo/releases/1.01/htdocs/modules/seo/preloads/index.html XoopsModules/seo/releases/1.01/htdocs/modules/seo/preloads/rewrite.php XoopsModules/seo/releases/1.01/htdocs/modules/seo/xoops_version.php XoopsModules/seo/trunk/ XoopsModules/seo/trunk/docs/ XoopsModules/seo/trunk/docs/.htaccess XoopsModules/seo/trunk/htdocs/ XoopsModules/seo/trunk/htdocs/modules/ XoopsModules/seo/trunk/htdocs/modules/seo/ XoopsModules/seo/trunk/htdocs/modules/seo/class/ XoopsModules/seo/trunk/htdocs/modules/seo/class/index.html XoopsModules/seo/trunk/htdocs/modules/seo/class/mapping.php XoopsModules/seo/trunk/htdocs/modules/seo/images/ XoopsModules/seo/trunk/htdocs/modules/seo/images/seo_slogo.png XoopsModules/seo/trunk/htdocs/modules/seo/index.php XoopsModules/seo/trunk/htdocs/modules/seo/language/ XoopsModules/seo/trunk/htdocs/modules/seo/language/english/ XoopsModules/seo/trunk/htdocs/modules/seo/language/english/modinfo.php XoopsModules/seo/trunk/htdocs/modules/seo/plugins/ XoopsModules/seo/trunk/htdocs/modules/seo/plugins/example.php XoopsModules/seo/trunk/htdocs/modules/seo/plugins/index.html XoopsModules/seo/trunk/htdocs/modules/seo/preloads/ XoopsModules/seo/trunk/htdocs/modules/seo/preloads/index.html XoopsModules/seo/trunk/htdocs/modules/seo/preloads/rewrite.php XoopsModules/seo/trunk/htdocs/modules/seo/xoops_version.php Added: XoopsModules/seo/releases/1.01/docs/.htaccess =================================================================== --- XoopsModules/seo/releases/1.01/docs/.htaccess (rev 0) +++ XoopsModules/seo/releases/1.01/docs/.htaccess 2012-04-07 22:17:38 UTC (rev 9288) @@ -0,0 +1,30 @@ +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d + +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)/(.*?)/(.*?)-(.*?)-(.*?).(.*?)$ modules/seo/index.php?rewrite=A&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)/(.*?)-(.*?)-(.*?)-(.*?).(.*?)$ modules/seo/index.php?rewrite=B&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)-(.*?)-(.*?)-(.*?)-(.*?).(.*?)$ modules/seo/index.php?rewrite=C&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)-(.*?)-(.*?)-(.*?)-(.*?)-(.*?).(.*?)$ modules/seo/index.php?rewrite=D&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)/(.*?)/(.*?)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=E&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)/(.*?)-(.*?)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=F&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)-(.*?)-(.*?)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=G&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)-(.*?)-(.*?)-(.*?)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=H&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)/(.*?)/([0-9]+)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=I&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)/(.*?)-([0-9]+)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=J&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)-(.*?)-([0-9]+)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=K&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)-(.*?)-(.*?)-([0-9]+)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=L&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)-([0-9]+)/(.*?)-([0-9]+)/(.*?)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=M&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)-([0-9]+)/(.*?)-([0-9]+)/(.*?)-(.*?).(.*?)$ modules/seo/index.php?rewrite=N&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)-([0-9]+)/(.*?)-(.*?)-(.*?)-(.*?).(.*?)$ modules/seo/index.php?rewrite=O&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/([0-9]+)-(.*?)-(.*?)-(.*?)-(.*?)-(.*?).(.*?)$ modules/seo/index.php?rewrite=P&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)/(.*?)/([0-9]+)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=Q&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)/([0-9]+)-([0-9]+)-(.*?)-(.*?).(.*?)$ modules/seo/index.php?rewrite=R&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)/(.*?)/([0-9]+)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=S&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=T&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/([0-9]+)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=U&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&filetype=$7 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/([0-9]+)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=V&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&filetype=$6 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)-(.*?)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=W&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&filetype=$7 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=X&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&filetype=$6 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=Y&baseurl=$1&plot=$2&arg1=$3&arg2=$4&filetype=$5 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?).(.*?)$ modules/seo/index.php?rewrite=Z&baseurl=$1&plot=$2&arg1=$3&filetype=$4 [L,NC,QSA] Added: XoopsModules/seo/releases/1.01/htdocs/modules/seo/class/index.html =================================================================== --- XoopsModules/seo/releases/1.01/htdocs/modules/seo/class/index.html (rev 0) +++ XoopsModules/seo/releases/1.01/htdocs/modules/seo/class/index.html 2012-04-07 22:17:38 UTC (rev 9288) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/seo/releases/1.01/htdocs/modules/seo/class/mapping.php =================================================================== --- XoopsModules/seo/releases/1.01/htdocs/modules/seo/class/mapping.php (rev 0) +++ XoopsModules/seo/releases/1.01/htdocs/modules/seo/class/mapping.php 2012-04-07 22:17:38 UTC (rev 9288) @@ -0,0 +1,218 @@ +<?php + + class SeoMapping extends XoopsObject + { + // Searches for Indication that this is the mapping method + private function isMappingType($method, $lookfor) { + $num = 0; + foreach($lookfor as $key => $value) { + if (is_array($value)) { + if ($this->isMappingType($method, $value)==true) + return true; + } else { + switch(strtolower($method)) { + case 'get': + if (isset($_GET[$key])) + if ($_GET[$key] == $value) + $num++; + break; + case 'post': + if (isset($_POST[$key])) + if ($_POST[$key] == $value) + $num++; + break; + default: + case 'request': + if (isset($_REQUEST[$key])) + if ($_REQUEST[$key] == $value) + $num++; + break; + } + } + } + if ($num == count($lookfor)) return true; + return false; + } + + function getSprintfMask($map, $args, $bouri, $index, $eof= '.html') { + switch (strtoupper($map)) { + case 'A': + return sprintf("/%s/%s/%s/%s/%s/%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'B': + return sprintf("/%s/%s/%s/%s/%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'C': + return sprintf("/%s/%s/%s/%s-%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'D': + return sprintf("/%s/%s/%s-%s-%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'E': + return sprintf("/%s/%s/%s/%s/%s/%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'F': + return sprintf("/%s/%s/%s/%s/%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'G': + return sprintf("/%s/%s/%s/%s-%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'H': + return sprintf("/%s/%s/%s-%s-%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'I': + return sprintf("/%s/%s/%s/%s/%s/%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'J': + return sprintf("/%s/%s/%s/%s/%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'K': + return sprintf("/%s/%s/%s/%s-%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'L': + return sprintf("/%s/%s/%s-%s-%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'M': + return sprintf("/%s/%s/%s-%s/%s-%s/%s-%s/%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'N': + return sprintf("/%s/%s/%s-%s/%s-%s/%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'O': + return sprintf("/%s/%s/%s-%s/%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'P': + return sprintf("/%s/%s/%s-%s-%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'Q': + return sprintf("/%s/%s/%s/%s/%s/%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'R': + return sprintf("/%s/%s/%s/%s/%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'S': + return sprintf("/%s/%s/%s/%s/%s/%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'T': + return sprintf("/%s/%s/%s/%s/%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'U': + return sprintf("/%s/%s/%s/%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $eof); + break; + case 'V': + return sprintf("/%s/%s/%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $eof); + break; + case 'W': + return sprintf("/%s/%s/%s-%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'X': + return sprintf("/%s/%s/%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $eof); + break; + case 'Y': + return sprintf("/%s/%s/%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $eof); + break; + case 'Z': + return sprintf("/%s/%s/%s-%s%s", $bouri, $index, $args[0], $args[1], $eof); + break; + } + } + + function getDetectedURL($map, $child) { + $source_path = 'modules'.DS.$child->_mod_dirname.DS; + if (strpos($_SERVER['PHP_SELF'], $source_path)>0) { + $start = strpos($_SERVER['PHP_SELF'], $source_path)+strlen($source_path); + $file = substr($_SERVER['PHP_SELF'], $start, strlen($_SERVER['PHP_SELF'])-$start); + foreach($map as $mapid => $mapping) { + if (isset($mapping[$file])&&is_array($mapping[$file])) { + if ($this->isMappingType($mapping[$file]['method'], $mapping[$file]['this'])) { + $args = array(); + foreach($child->{$mapping[$file]['function']}() as $key => $value) { + if (!empty($value)) + $args[] = $value; + else + $args[] = '0'; + } + } + $var = '_endofurl_'.$mapping['type']; + return XOOPS_URL.$this->getSprintfMask($mapping['rewrite'], $args, $child->_baseurl, substr(md5($mapid.$file),0,10), $child->{$var}); + } + } + } + return $_SERVER['REQUEST_URI']; + } + + function setDetectedVariables($map, $child, $plot) { + foreach($map as $mapid => $mapping) { + foreach($mapping as $file => $map) { + if ($plot == substr(md5($mapid.$file),0,10)) { + foreach($map['map'] as $var => $from) { + switch(strtolower($mapping[$file]['method'])) { + case 'get': + case 'request': + default: + if (isset($_GET[$from])) + $_GET[$var] = $_GET[$from]; + break; + case 'post': + if (isset($_GET[$from])) + $_POST[$var] = $_GET[$from]; + break; + } + } + return DS.'modules'.DS.$child->_mod_dirname.DS.$file; + } + } + } + } + } + + class SeoMappingHandler extends XoopsPersistableObjectHandler { + + // Realative Path Plugin Files + var $_plugin_path = '/modules/seo/plugins/'; + + // List of All Plugin Files + var $_plugins = array(); + + // List of All Objects of Plugin Files + var $_obj_plugins = array(); + + function __construct($db) { + xoops_load('XoopsLists'); + foreach(XoopsLists::getFileListAsArray($GLOBALS['xoops']->path($this->_plugin_path)) as $file) { + if (substr($file, strlen($file)-4, 4) = '.php') { + $this->_plugins[substr($file, 0, strlen($file)-4)] = $file; + } + } + foreach($this->_plugins as $key => $file) { + include_once($GLOBALS['xoops']->path($this->_plugin_path.$file)); + $class = ucfirst($key).'SeoPlugin'; + if (class_exists($class)) + $this->_obj_plugins[$key] = new $class; + } + } + + function getURL() { + if (is_object($GLOBALS['xoopsModule'])) + if ($GLOBALS['xoopsModule']->getVar('dirname')!='seo') { + foreach($this->_obj_plugins as $key => $object) { + if ($object->_mod_dirname == $GLOBALS['xoopsModule']->getVar('dirname')) { + return $object->getURL(); + } + } + } + return $_SERVER['REQUEST_URI']; + } + + function getTarget() { + if (is_object($GLOBALS['xoopsModule'])) + if ($GLOBALS['xoopsModule']->getVar('dirname')=='seo') { + foreach($this->_obj_plugins as $key => $object) { + if ($target = $object->getTarget()) { + return $GLOBALS['xoops']->path($target); + } + } + } + return $GLOBALS['xoops']->path('/index.php'); + } + } \ No newline at end of file Added: XoopsModules/seo/releases/1.01/htdocs/modules/seo/images/seo_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/seo/releases/1.01/htdocs/modules/seo/images/seo_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/seo/releases/1.01/htdocs/modules/seo/index.php =================================================================== --- XoopsModules/seo/releases/1.01/htdocs/modules/seo/index.php (rev 0) +++ XoopsModules/seo/releases/1.01/htdocs/modules/seo/index.php 2012-04-07 22:17:38 UTC (rev 9288) @@ -0,0 +1,5 @@ +<?php + include (dirname(dirname(dirname(__FILE__))).'/mainfile.php'); + $mapping_handler = xoops_getmodulehandler('mapping', 'seo'); + require($mapping_handler->getTarget()); +?> \ No newline at end of file Added: XoopsModules/seo/releases/1.01/htdocs/modules/seo/language/english/modinfo.php =================================================================== --- XoopsModules/seo/releases/1.01/htdocs/modules/seo/language/english/modinfo.php (rev 0) +++ XoopsModules/seo/releases/1.01/htdocs/modules/seo/language/english/modinfo.php 2012-04-07 22:17:38 UTC (rev 9288) @@ -0,0 +1,7 @@ +<?php + + // XOOPS Version + define('_MI_SEO_NAME', 'SEO URL Rewrite'); + define('_MI_SEO_DESC', 'This module is for rewriting URL of any module to clean URL, modules require plugin to be written!'); + +?> \ No newline at end of file Added: XoopsModules/seo/releases/1.01/htdocs/modules/seo/plugins/example.php =================================================================== --- XoopsModules/seo/releases/1.01/htdocs/modules/seo/plugins/example.php (rev 0) +++ XoopsModules/seo/releases/1.01/htdocs/modules/seo/plugins/example.php 2012-04-07 22:17:38 UTC (rev 9288) @@ -0,0 +1,133 @@ +<?php + + class ExampleSeoPlugin extends SeoMapping + { + // Module Dirname for Plugin + var $_mod_dirname = 'example'; + + // Default Base of URL if not set in module config + var $_baseurl = 'example'; + + // Default End of URL for HTML + var $_endofurl_html = '.html'; + + // Default End of URL for RSS + var $_endofurl_rss = '.rss'; + + // Default End of URL for PDF + var $_endofurl_pdf = '.pdf'; + + // Default End of URL for XML + var $_endofurl_xml = '.xml'; + + // Default End of URL for JPEG + var $_endofurl_jpg = '.jpg'; + + // Default End of URL for PNG + var $_endofurl_png = '.png'; + + // Default End of URL for GIF + var $_endofurl_gif = '.gif'; + + // module config variable names for mod rewrite + var $_mod_vars = array( 'baseurl' => '_baseurl', + 'endofurl' => '_endofurl_html', + 'endofurl_rss' => '_endofurl_rss', + 'endofurl_pdf' => '_endofurl_pdf', + 'endofurl_xml' => '_endofurl_xml', + 'endofurl_jpg' => '_endofurl_jpg', + 'endofurl_png' => '_endofurl_png', + 'endofurl_gif' => '_endofurl_gif'); + + // module rewrite variable names and file for mod rewrite + var $_mod_files = array( 'A' => array('index.php' => array( 'type' => 'html', + 'rewrite' => 'A', + 'method' => 'get', /* get/post */ + 'this' => array( + '0' => array('op' => 'default'), + '1' => array('op' => 'index') + ), + 'function' => 'getIndexVariablesA', + 'map' => array( 'op' => 'arg1', + 'cat' => 'arg1', + 'topic' => 'arg3', + 'catid' => 'arg4', + 'subjectid' => 'arg5', + 'topicid' => 'arg6', + ) + ) + ), + 'B' => array('index.php' => array( 'type' => 'html', + 'rewrite' => 'X', + 'method' => 'get', /* get/post */ + 'this' => array( 'op' => 'category'), + 'function' => 'getIndexVariablesX', + 'map' => array( 'op' => 'arg1', + 'catid' => 'arg2', + 'start' => 'start', + 'limit' => 'limit') + ) + ) + ); + + + // module config holder + var $_mod_config = array(); + + // module holder + var $_mod = null; + + function __construct() + { + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $this->_mod = $module_handler->getByDirname($this->_mod_dirname); + if (is_object($this->_mod)) + { + $this->_mod_config = $config_handler->getConfigList($this->_mod->getVar('mid')); + foreach($this->_mod_config as $key => $value) + { + if (in_array($key, array_keys($this->_mod_vars))&&!empty($value)) + { + $this->${$this->_mod_vars[$key]} = $value; + } + } + return $this; + } else { + return false; + } + } + + // Required Default Function for getting population URL + function getURL() + { + return $this->getDetectedURL($this->_mod_files, $this); + } + + // Required Default Function for getting population target + function getTarget() + { + return $this->setDetectedVariables($this->_mod_files, $this, $_GET['plot']); + } + + // Function to return arguments in order for Rewritemodule A + function getIndexVariablesA() { + // Normally would access modules classes to find names of categories, items etc for arguments. + return array( 'arg1' => 'someone', + 'arg2' => 'something', + 'arg3' => 'somemore', + 'arg4' => '1', + 'arg5' => '10', + 'arg6' => '1'); + } + + // Function to return arguments in order for Rewritemodule X + function getIndexVariablesX() { + // Normally would access modules classes to find names of categories, items etc for arguments. + return array( 'arg1' => '11', + 'arg2' => '3', + 'arg3' => '0', + 'arg4' => '10'); + } + + } \ No newline at end of file Added: XoopsModules/seo/releases/1.01/htdocs/modules/seo/plugins/index.html =================================================================== --- XoopsModules/seo/releases/1.01/htdocs/modules/seo/plugins/index.html (rev 0) +++ XoopsModules/seo/releases/1.01/htdocs/modules/seo/plugins/index.html 2012-04-07 22:17:38 UTC (rev 9288) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/seo/releases/1.01/htdocs/modules/seo/preloads/index.html =================================================================== --- XoopsModules/seo/releases/1.01/htdocs/modules/seo/preloads/index.html (rev 0) +++ XoopsModules/seo/releases/1.01/htdocs/modules/seo/preloads/index.html 2012-04-07 22:17:38 UTC (rev 9288) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/seo/releases/1.01/htdocs/modules/seo/preloads/rewrite.php =================================================================== --- XoopsModules/seo/releases/1.01/htdocs/modules/seo/preloads/rewrite.php (rev 0) +++ XoopsModules/seo/releases/1.01/htdocs/modules/seo/preloads/rewrite.php 2012-04-07 22:17:38 UTC (rev 9288) @@ -0,0 +1,19 @@ +<?php + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +class SeoRewritePreload extends XoopsPreloadItem +{ + function eventCoreHeaderStart($args) + { + $mapping_handler = xoops_getmodulehandler('mapping', 'seo'); + $url = $mapping_handler->getUrl(); + if (!strpos($url, $_SERVER['REQUEST_URI'])&&!empty($url)&&empty($_POST)) { + header( "HTTP/1.1 301 Moved Permanently" ); + header( "Location: ".$url); + exit; + } + } + +} +?> \ No newline at end of file Added: XoopsModules/seo/releases/1.01/htdocs/modules/seo/xoops_version.php =================================================================== --- XoopsModules/seo/releases/1.01/htdocs/modules/seo/xoops_version.php (rev 0) +++ XoopsModules/seo/releases/1.01/htdocs/modules/seo/xoops_version.php 2012-04-07 22:17:38 UTC (rev 9288) @@ -0,0 +1,39 @@ +<?php +/** + * Private message module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package pm + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: xoops_version.php 2022 2008-08-31 02:07:17Z phppp $ + */ + +/** + * This is a temporary solution for merging XOOPS 2.0 and 2.2 series + * A thorough solution will be available in XOOPS 3.0 + * + */ + +$modversion = array(); +$modversion['name'] = _MI_SEO_NAME; +$modversion['version'] = 1.01; +$modversion['description'] = _MI_SEO_DESC; +$modversion['author'] = "Simon Roberts (si...@ch...)"; +$modversion['credits'] = "Deligent People"; +$modversion['license'] = "GPL"; +$modversion['image'] = "images/seo_slogo.png"; +$modversion['dirname'] = "sexy"; +$modversion['status'] = "stable"; + +$modversion['hasMain'] = 1; +?> \ No newline at end of file Added: XoopsModules/seo/trunk/docs/.htaccess =================================================================== --- XoopsModules/seo/trunk/docs/.htaccess (rev 0) +++ XoopsModules/seo/trunk/docs/.htaccess 2012-04-07 22:17:38 UTC (rev 9288) @@ -0,0 +1,30 @@ +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d + +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)/(.*?)/(.*?)-(.*?)-(.*?).(.*?)$ modules/seo/index.php?rewrite=A&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)/(.*?)-(.*?)-(.*?)-(.*?).(.*?)$ modules/seo/index.php?rewrite=B&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)-(.*?)-(.*?)-(.*?)-(.*?).(.*?)$ modules/seo/index.php?rewrite=C&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)-(.*?)-(.*?)-(.*?)-(.*?)-(.*?).(.*?)$ modules/seo/index.php?rewrite=D&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)/(.*?)/(.*?)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=E&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)/(.*?)-(.*?)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=F&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)-(.*?)-(.*?)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=G&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)-(.*?)-(.*?)-(.*?)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=H&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)/(.*?)/([0-9]+)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=I&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)/(.*?)-([0-9]+)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=J&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)-(.*?)-([0-9]+)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=K&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)-(.*?)-(.*?)-([0-9]+)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=L&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)-([0-9]+)/(.*?)-([0-9]+)/(.*?)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=M&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)-([0-9]+)/(.*?)-([0-9]+)/(.*?)-(.*?).(.*?)$ modules/seo/index.php?rewrite=N&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)-([0-9]+)/(.*?)-(.*?)-(.*?)-(.*?).(.*?)$ modules/seo/index.php?rewrite=O&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/([0-9]+)-(.*?)-(.*?)-(.*?)-(.*?)-(.*?).(.*?)$ modules/seo/index.php?rewrite=P&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)/(.*?)/([0-9]+)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=Q&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)/([0-9]+)-([0-9]+)-(.*?)-(.*?).(.*?)$ modules/seo/index.php?rewrite=R&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)/(.*?)/([0-9]+)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=S&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/(.*?)/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=T&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&arg5=$7&arg6=$8&filetype=$9 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)/([0-9]+)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=U&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&filetype=$7 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/([0-9]+)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=V&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&filetype=$6 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)-(.*?)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=W&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&arg4=$6&filetype=$7 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?)-([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=X&baseurl=$1&plot=$2&arg1=$3&arg2=$4&arg3=$5&filetype=$6 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/([0-9]+)-([0-9]+).(.*?)$ modules/seo/index.php?rewrite=Y&baseurl=$1&plot=$2&arg1=$3&arg2=$4&filetype=$5 [L,NC,QSA] +RewriteRule ^(.*?)/(.*?)/(.*?).(.*?)$ modules/seo/index.php?rewrite=Z&baseurl=$1&plot=$2&arg1=$3&filetype=$4 [L,NC,QSA] Added: XoopsModules/seo/trunk/htdocs/modules/seo/class/index.html =================================================================== --- XoopsModules/seo/trunk/htdocs/modules/seo/class/index.html (rev 0) +++ XoopsModules/seo/trunk/htdocs/modules/seo/class/index.html 2012-04-07 22:17:38 UTC (rev 9288) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/seo/trunk/htdocs/modules/seo/class/mapping.php =================================================================== --- XoopsModules/seo/trunk/htdocs/modules/seo/class/mapping.php (rev 0) +++ XoopsModules/seo/trunk/htdocs/modules/seo/class/mapping.php 2012-04-07 22:17:38 UTC (rev 9288) @@ -0,0 +1,218 @@ +<?php + + class SeoMapping extends XoopsObject + { + // Searches for Indication that this is the mapping method + private function isMappingType($method, $lookfor) { + $num = 0; + foreach($lookfor as $key => $value) { + if (is_array($value)) { + if ($this->isMappingType($method, $value)==true) + return true; + } else { + switch(strtolower($method)) { + case 'get': + if (isset($_GET[$key])) + if ($_GET[$key] == $value) + $num++; + break; + case 'post': + if (isset($_POST[$key])) + if ($_POST[$key] == $value) + $num++; + break; + default: + case 'request': + if (isset($_REQUEST[$key])) + if ($_REQUEST[$key] == $value) + $num++; + break; + } + } + } + if ($num == count($lookfor)) return true; + return false; + } + + function getSprintfMask($map, $args, $bouri, $index, $eof= '.html') { + switch (strtoupper($map)) { + case 'A': + return sprintf("/%s/%s/%s/%s/%s/%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'B': + return sprintf("/%s/%s/%s/%s/%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'C': + return sprintf("/%s/%s/%s/%s-%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'D': + return sprintf("/%s/%s/%s-%s-%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'E': + return sprintf("/%s/%s/%s/%s/%s/%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'F': + return sprintf("/%s/%s/%s/%s/%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'G': + return sprintf("/%s/%s/%s/%s-%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'H': + return sprintf("/%s/%s/%s-%s-%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'I': + return sprintf("/%s/%s/%s/%s/%s/%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'J': + return sprintf("/%s/%s/%s/%s/%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'K': + return sprintf("/%s/%s/%s/%s-%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'L': + return sprintf("/%s/%s/%s-%s-%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'M': + return sprintf("/%s/%s/%s-%s/%s-%s/%s-%s/%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'N': + return sprintf("/%s/%s/%s-%s/%s-%s/%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'O': + return sprintf("/%s/%s/%s-%s/%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'P': + return sprintf("/%s/%s/%s-%s-%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'Q': + return sprintf("/%s/%s/%s/%s/%s/%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'R': + return sprintf("/%s/%s/%s/%s/%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'S': + return sprintf("/%s/%s/%s/%s/%s/%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'T': + return sprintf("/%s/%s/%s/%s/%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'U': + return sprintf("/%s/%s/%s/%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $eof); + break; + case 'V': + return sprintf("/%s/%s/%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $eof); + break; + case 'W': + return sprintf("/%s/%s/%s-%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $eof); + break; + case 'X': + return sprintf("/%s/%s/%s-%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $args[4], $eof); + break; + case 'Y': + return sprintf("/%s/%s/%s-%s-%s%s", $bouri, $index, $args[0], $args[1], $args[2], $args[3], $eof); + break; + case 'Z': + return sprintf("/%s/%s/%s-%s%s", $bouri, $index, $args[0], $args[1], $eof); + break; + } + } + + function getDetectedURL($map, $child) { + $source_path = 'modules'.DS.$child->_mod_dirname.DS; + if (strpos($_SERVER['PHP_SELF'], $source_path)>0) { + $start = strpos($_SERVER['PHP_SELF'], $source_path)+strlen($source_path); + $file = substr($_SERVER['PHP_SELF'], $start, strlen($_SERVER['PHP_SELF'])-$start); + foreach($map as $mapid => $mapping) { + if (isset($mapping[$file])&&is_array($mapping[$file])) { + if ($this->isMappingType($mapping[$file]['method'], $mapping[$file]['this'])) { + $args = array(); + foreach($child->{$mapping[$file]['function']}() as $key => $value) { + if (!empty($value)) + $args[] = $value; + else + $args[] = '0'; + } + } + $var = '_endofurl_'.$mapping['type']; + return XOOPS_URL.$this->getSprintfMask($mapping['rewrite'], $args, $child->_baseurl, substr(md5($mapid.$file),0,10), $child->{$var}); + } + } + } + return $_SERVER['REQUEST_URI']; + } + + function setDetectedVariables($map, $child, $plot) { + foreach($map as $mapid => $mapping) { + foreach($mapping as $file => $map) { + if ($plot == substr(md5($mapid.$file),0,10)) { + foreach($map['map'] as $var => $from) { + switch(strtolower($mapping[$file]['method'])) { + case 'get': + case 'request': + default: + if (isset($_GET[$from])) + $_GET[$var] = $_GET[$from]; + break; + case 'post': + if (isset($_GET[$from])) + $_POST[$var] = $_GET[$from]; + break; + } + } + return DS.'modules'.DS.$child->_mod_dirname.DS.$file; + } + } + } + } + } + + class SeoMappingHandler extends XoopsPersistableObjectHandler { + + // Realative Path Plugin Files + var $_plugin_path = '/modules/seo/plugins/'; + + // List of All Plugin Files + var $_plugins = array(); + + // List of All Objects of Plugin Files + var $_obj_plugins = array(); + + function __construct($db) { + xoops_load('XoopsLists'); + foreach(XoopsLists::getFileListAsArray($GLOBALS['xoops']->path($this->_plugin_path)) as $file) { + if (substr($file, strlen($file)-4, 4) = '.php') { + $this->_plugins[substr($file, 0, strlen($file)-4)] = $file; + } + } + foreach($this->_plugins as $key => $file) { + include_once($GLOBALS['xoops']->path($this->_plugin_path.$file)); + $class = ucfirst($key).'SeoPlugin'; + if (class_exists($class)) + $this->_obj_plugins[$key] = new $class; + } + } + + function getURL() { + if (is_object($GLOBALS['xoopsModule'])) + if ($GLOBALS['xoopsModule']->getVar('dirname')!='seo') { + foreach($this->_obj_plugins as $key => $object) { + if ($object->_mod_dirname == $GLOBALS['xoopsModule']->getVar('dirname')) { + return $object->getURL(); + } + } + } + return $_SERVER['REQUEST_URI']; + } + + function getTarget() { + if (is_object($GLOBALS['xoopsModule'])) + if ($GLOBALS['xoopsModule']->getVar('dirname')=='seo') { + foreach($this->_obj_plugins as $key => $object) { + if ($target = $object->getTarget()) { + return $GLOBALS['xoops']->path($target); + } + } + } + return $GLOBALS['xoops']->path('/index.php'); + } + } \ No newline at end of file Added: XoopsModules/seo/trunk/htdocs/modules/seo/images/seo_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/seo/trunk/htdocs/modules/seo/images/seo_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/seo/trunk/htdocs/modules/seo/index.php =================================================================== --- XoopsModules/seo/trunk/htdocs/modules/seo/index.php (rev 0) +++ XoopsModules/seo/trunk/htdocs/modules/seo/index.php 2012-04-07 22:17:38 UTC (rev 9288) @@ -0,0 +1,5 @@ +<?php + include (dirname(dirname(dirname(__FILE__))).'/mainfile.php'); + $mapping_handler = xoops_getmodulehandler('mapping', 'seo'); + require($mapping_handler->getTarget()); +?> \ No newline at end of file Added: XoopsModules/seo/trunk/htdocs/modules/seo/language/english/modinfo.php =================================================================== --- XoopsModules/seo/trunk/htdocs/modules/seo/language/english/modinfo.php (rev 0) +++ XoopsModules/seo/trunk/htdocs/modules/seo/language/english/modinfo.php 2012-04-07 22:17:38 UTC (rev 9288) @@ -0,0 +1,7 @@ +<?php + + // XOOPS Version + define('_MI_SEO_NAME', 'SEO URL Rewrite'); + define('_MI_SEO_DESC', 'This module is for rewriting URL of any module to clean URL, modules require plugin to be written!'); + +?> \ No newline at end of file Added: XoopsModules/seo/trunk/htdocs/modules/seo/plugins/example.php =================================================================== --- XoopsModules/seo/trunk/htdocs/modules/seo/plugins/example.php (rev 0) +++ XoopsModules/seo/trunk/htdocs/modules/seo/plugins/example.php 2012-04-07 22:17:38 UTC (rev 9288) @@ -0,0 +1,133 @@ +<?php + + class ExampleSeoPlugin extends SeoMapping + { + // Module Dirname for Plugin + var $_mod_dirname = 'example'; + + // Default Base of URL if not set in module config + var $_baseurl = 'example'; + + // Default End of URL for HTML + var $_endofurl_html = '.html'; + + // Default End of URL for RSS + var $_endofurl_rss = '.rss'; + + // Default End of URL for PDF + var $_endofurl_pdf = '.pdf'; + + // Default End of URL for XML + var $_endofurl_xml = '.xml'; + + // Default End of URL for JPEG + var $_endofurl_jpg = '.jpg'; + + // Default End of URL for PNG + var $_endofurl_png = '.png'; + + // Default End of URL for GIF + var $_endofurl_gif = '.gif'; + + // module config variable names for mod rewrite + var $_mod_vars = array( 'baseurl' => '_baseurl', + 'endofurl' => '_endofurl_html', + 'endofurl_rss' => '_endofurl_rss', + 'endofurl_pdf' => '_endofurl_pdf', + 'endofurl_xml' => '_endofurl_xml', + 'endofurl_jpg' => '_endofurl_jpg', + 'endofurl_png' => '_endofurl_png', + 'endofurl_gif' => '_endofurl_gif'); + + // module rewrite variable names and file for mod rewrite + var $_mod_files = array( 'A' => array('index.php' => array( 'type' => 'html', + 'rewrite' => 'A', + 'method' => 'get', /* get/post */ + 'this' => array( + '0' => array('op' => 'default'), + '1' => array('op' => 'index') + ), + 'function' => 'getIndexVariablesA', + 'map' => array( 'op' => 'arg1', + 'cat' => 'arg1', + 'topic' => 'arg3', + 'catid' => 'arg4', + 'subjectid' => 'arg5', + 'topicid' => 'arg6', + ) + ) + ), + 'B' => array('index.php' => array( 'type' => 'html', + 'rewrite' => 'X', + 'method' => 'get', /* get/post */ + 'this' => array( 'op' => 'category'), + 'function' => 'getIndexVariablesX', + 'map' => array( 'op' => 'arg1', + 'catid' => 'arg2', + 'start' => 'start', + 'limit' => 'limit') + ) + ) + ); + + + // module config holder + var $_mod_config = array(); + + // module holder + var $_mod = null; + + function __construct() + { + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $this->_mod = $module_handler->getByDirname($this->_mod_dirname); + if (is_object($this->_mod)) + { + $this->_mod_config = $config_handler->getConfigList($this->_mod->getVar('mid')); + foreach($this->_mod_config as $key => $value) + { + if (in_array($key, array_keys($this->_mod_vars))&&!empty($value)) + { + $this->${$this->_mod_vars[$key]} = $value; + } + } + return $this; + } else { + return false; + } + } + + // Required Default Function for getting population URL + function getURL() + { + return $this->getDetectedURL($this->_mod_files, $this); + } + + // Required Default Function for getting population target + function getTarget() + { + return $this->setDetectedVariables($this->_mod_files, $this, $_GET['plot']); + } + + // Function to return arguments in order for Rewritemodule A + function getIndexVariablesA() { + // Normally would access modules classes to find names of categories, items etc for arguments. + return array( 'arg1' => 'someone', + 'arg2' => 'something', + 'arg3' => 'somemore', + 'arg4' => '1', + 'arg5' => '10', + 'arg6' => '1'); + } + + // Function to return arguments in order for Rewritemodule X + function getIndexVariablesX() { + // Normally would access modules classes to find names of categories, items etc for arguments. + return array( 'arg1' => '11', + 'arg2' => '3', + 'arg3' => '0', + 'arg4' => '10'); + } + + } \ No newline at end of file Added: XoopsModules/seo/trunk/htdocs/modules/seo/plugins/index.html =================================================================== --- XoopsModules/seo/trunk/htdocs/modules/seo/plugins/index.html (rev 0) +++ XoopsModules/seo/trunk/htdocs/modules/seo/plugins/index.html 2012-04-07 22:17:38 UTC (rev 9288) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/seo/trunk/htdocs/modules/seo/preloads/index.html =================================================================== --- XoopsModules/seo/trunk/htdocs/modules/seo/preloads/index.html (rev 0) +++ XoopsModules/seo/trunk/htdocs/modules/seo/preloads/index.html 2012-04-07 22:17:38 UTC (rev 9288) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/seo/trunk/htdocs/modules/seo/preloads/rewrite.php =================================================================== --- XoopsModules/seo/trunk/htdocs/modules/seo/preloads/rewrite.php (rev 0) +++ XoopsModules/seo/trunk/htdocs/modules/seo/preloads/rewrite.php 2012-04-07 22:17:38 UTC (rev 9288) @@ -0,0 +1,19 @@ +<?php + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +class SeoRewritePreload extends XoopsPreloadItem +{ + function eventCoreHeaderStart($args) + { + $mapping_handler = xoops_getmodulehandler('mapping', 'seo'); + $url = $mapping_handler->getUrl(); + if (!strpos($url, $_SERVER['REQUEST_URI'])&&!empty($url)&&empty($_POST)) { + header( "HTTP/1.1 301 Moved Permanently" ); + header( "Location: ".$url); + exit; + } + } + +} +?> \ No newline at end of file Added: XoopsModules/seo/trunk/htdocs/modules/seo/xoops_version.php =================================================================== --- XoopsModules/seo/trunk/htdocs/modules/seo/xoops_version.php (rev 0) +++ XoopsModules/seo/trunk/htdocs/modules/seo/xoops_version.php 2012-04-07 22:17:38 UTC (rev 9288) @@ -0,0 +1,39 @@ +<?php +/** + * Private message module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package pm + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: xoops_version.php 2022 2008-08-31 02:07:17Z phppp $ + */ + +/** + * This is a temporary solution for merging XOOPS 2.0 and 2.2 series + * A thorough solution will be available in XOOPS 3.0 + * + */ + +$modversion = array(); +$modversion['name'] = _MI_SEO_NAME; +$modversion['version'] = 1.01; +$modversion['description'] = _MI_SEO_DESC; +$modversion['author'] = "Simon Roberts (si...@ch...)"; +$modversion['credits'] = "Deligent People"; +$modversion['license'] = "GPL"; +$modversion['image'] = "images/seo_slogo.png"; +$modversion['dirname'] = "sexy"; +$modversion['status'] = "stable"; + +$modversion['hasMain'] = 1; +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ren...@us...> - 2012-04-07 09:46:38
|
Revision: 9287 http://xoops.svn.sourceforge.net/xoops/?rev=9287&view=rev Author: renetjuh Date: 2012-04-07 09:46:26 +0000 (Sat, 07 Apr 2012) Log Message: ----------- 2.5.5 Dutch Language files Added Paths: ----------- XoopsLanguages/dutch/core/2.5.5/ XoopsLanguages/dutch/core/2.5.5/docs/ XoopsLanguages/dutch/core/2.5.5/docs/install.html XoopsLanguages/dutch/core/2.5.5/extras/ XoopsLanguages/dutch/core/2.5.5/extras/modules/ XoopsLanguages/dutch/core/2.5.5/extras/modules/system/ XoopsLanguages/dutch/core/2.5.5/extras/modules/system/language/ XoopsLanguages/dutch/core/2.5.5/extras/modules/system/language/nederlands/ XoopsLanguages/dutch/core/2.5.5/extras/modules/system/language/nederlands/admin/ XoopsLanguages/dutch/core/2.5.5/extras/modules/system/language/nederlands/admin/filemanager.php XoopsLanguages/dutch/core/2.5.5/files.txt XoopsLanguages/dutch/core/2.5.5/htdocs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/mail/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/mail/phpmailer/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/mail/phpmailer/language/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/mail/phpmailer/language/phpmailer.lang-nl.php XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/dhtmltextarea/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/dhtmltextarea/language/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/dhtmltextarea/language/nederlands.php XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/readme.txt XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/textarea/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/textarea/language/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/textarea/language/nederlands.php XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/language/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/language/nederlands.php XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/langs/nl.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/advhr/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/advhr/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/advhr/langs/nl_dlg.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/advimage/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/advimage/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/advimage/langs/nl_dlg.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/advlink/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/advlink/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/advlink/langs/nl_dlg.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/autosave/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/autosave/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/autosave/langs/nl.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/langs/nl_dlg.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/example/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/example/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/example/langs/nl.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/example/langs/nl_dlg.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/fullpage/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/fullpage/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/fullpage/langs/nl_dlg.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/media/langs/nl_dlg.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/paste/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/paste/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/paste/langs/nl_dlg.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/searchreplace/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/searchreplace/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/searchreplace/langs/nl_dlg.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/style/langs/nl_dlg.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/table/langs/nl_dlg.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/template/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/template/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/template/langs/nl_dlg.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/langs/nl_dlg.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopscode/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopscode/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopscode/langs/nl.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopscode/langs/nl_dlg.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsemotions/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsemotions/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsemotions/langs/nl.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsemotions/langs/nl_dlg.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsimagemanager/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsimagemanager/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsimagemanager/langs/nl.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsimagemanager/langs/nl_dlg.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsmlcontent/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsmlcontent/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsmlcontent/langs/nl.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsmlcontent/langs/nl_dlg.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsquote/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsquote/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsquote/langs/nl.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsquote/langs/nl_dlg.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/themes/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/themes/advanced/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/themes/advanced/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/themes/advanced/langs/nl.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/themes/advanced/langs/nl_dlg.js XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/themes/simple/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/themes/simple/langs/ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/themes/simple/langs/nl.js XoopsLanguages/dutch/core/2.5.5/htdocs/frameworks/ XoopsLanguages/dutch/core/2.5.5/htdocs/frameworks/moduleclasses/ XoopsLanguages/dutch/core/2.5.5/htdocs/frameworks/moduleclasses/moduleadmin/ XoopsLanguages/dutch/core/2.5.5/htdocs/frameworks/moduleclasses/moduleadmin/language/ XoopsLanguages/dutch/core/2.5.5/htdocs/frameworks/moduleclasses/moduleadmin/language/nederlands/ XoopsLanguages/dutch/core/2.5.5/htdocs/frameworks/moduleclasses/moduleadmin/language/nederlands/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/frameworks/moduleclasses/moduleadmin/language/nederlands/main.php XoopsLanguages/dutch/core/2.5.5/htdocs/install/ XoopsLanguages/dutch/core/2.5.5/htdocs/install/language/ XoopsLanguages/dutch/core/2.5.5/htdocs/install/language/nederlands/ XoopsLanguages/dutch/core/2.5.5/htdocs/install/language/nederlands/Thumbs.db XoopsLanguages/dutch/core/2.5.5/htdocs/install/language/nederlands/finish.php XoopsLanguages/dutch/core/2.5.5/htdocs/install/language/nederlands/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/install/language/nederlands/install.php XoopsLanguages/dutch/core/2.5.5/htdocs/install/language/nederlands/install2.php XoopsLanguages/dutch/core/2.5.5/htdocs/install/language/nederlands/mysql.lang.data.sql XoopsLanguages/dutch/core/2.5.5/htdocs/install/language/nederlands/style.css XoopsLanguages/dutch/core/2.5.5/htdocs/install/language/nederlands/support.php XoopsLanguages/dutch/core/2.5.5/htdocs/install/language/nederlands/support.png XoopsLanguages/dutch/core/2.5.5/htdocs/install/language/nederlands/welcome.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/ XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/ XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/admin.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/auth.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/backend.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/banners.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/calendar.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/captcha.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/comment.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/countries.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/errors.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/findusers.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/formdhtmltextarea.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/global.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/locale.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/logger.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/mail.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/mail_template/ XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/mail_template/activated.tpl XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/mail_template/adminactivate.tpl XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/mail_template/comment_notify.tpl XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/mail_template/commentsubmit_notify.tpl XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/mail_template/default_notify.tpl XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/mail_template/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/mail_template/lostpass1.tpl XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/mail_template/lostpass2.tpl XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/mail_template/register.tpl XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/mail_template/tellfriend.tpl XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/mail_template/welcome.tpl XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/misc.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/notification.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/pmsg.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/search.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/style.css XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/timezone.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/uploader.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/user.php XoopsLanguages/dutch/core/2.5.5/htdocs/language/nederlands/xoopsmailerlocal.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/pm/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/pm/language/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/pm/language/nederlands/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/pm/language/nederlands/admin.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/pm/language/nederlands/help/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/pm/language/nederlands/help/help.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/pm/language/nederlands/help/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/pm/language/nederlands/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/pm/language/nederlands/main.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/pm/language/nederlands/modinfo.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/profile/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/profile/language/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/profile/language/nederlands/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/profile/language/nederlands/admin.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/profile/language/nederlands/help/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/profile/language/nederlands/help/help.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/profile/language/nederlands/help/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/profile/language/nederlands/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/profile/language/nederlands/mail_template/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/profile/language/nederlands/mail_template/emailchanged.tpl XoopsLanguages/dutch/core/2.5.5/htdocs/modules/profile/language/nederlands/mail_template/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/profile/language/nederlands/main.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/profile/language/nederlands/modinfo.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/protector/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/protector/language/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/protector/language/nederlands/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/protector/language/nederlands/help/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/protector/language/nederlands/help/help.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/protector/language/nederlands/help/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/admin/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/admin/avatars.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/admin/banners.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/admin/blocksadmin.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/admin/comments.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/admin/groups.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/admin/images.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/admin/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/admin/mailusers.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/admin/maintenance.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/admin/modulesadmin.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/admin/preferences.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/admin/smilies.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/admin/tplsets.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/admin/userrank.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/admin/users.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/admin.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/blocks.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/cpanel.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/help/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/help/avatars.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/help/banners.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/help/blocksadmin.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/help/comments.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/help/groups.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/help/help_center.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/help/images.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/help/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/help/mailusers.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/help/maintenance.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/help/module_index.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/help/modulesadmin.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/help/preferences.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/help/smilies.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/help/tplsets.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/help/userrank.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/help/users.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/images/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/images/Thumbs.db XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/images/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/images/lightbox-blank.gif XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/images/lightbox-btn-close.gif XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/images/lightbox-btn-next.gif XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/images/lightbox-btn-prev.gif XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/images/lightbox-ico-loading.gif XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/language/nederlands/modinfo.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/themes/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/themes/default/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/themes/default/language/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/themes/default/language/nederlands/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/themes/default/language/nederlands/admin.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/themes/default/language/nederlands/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/themes/default/language/nederlands/localsupport.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/themes/zetadigme/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/themes/zetadigme/language/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/themes/zetadigme/language/nederlands/ XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/themes/zetadigme/language/nederlands/admin.php XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/themes/zetadigme/language/nederlands/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/modules/system/themes/zetadigme/language/nederlands/localsupport.php XoopsLanguages/dutch/core/2.5.5/htdocs/themes/ XoopsLanguages/dutch/core/2.5.5/htdocs/themes/suico/ XoopsLanguages/dutch/core/2.5.5/htdocs/themes/suico/language/ XoopsLanguages/dutch/core/2.5.5/htdocs/themes/suico/language/nederlands/ XoopsLanguages/dutch/core/2.5.5/htdocs/themes/suico/language/nederlands/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/themes/suico/language/nederlands/main.php XoopsLanguages/dutch/core/2.5.5/htdocs/themes/suico/language/nederlands/script.js XoopsLanguages/dutch/core/2.5.5/htdocs/themes/suico/language/nederlands/style.css XoopsLanguages/dutch/core/2.5.5/htdocs/themes/zetagenesis/ XoopsLanguages/dutch/core/2.5.5/htdocs/themes/zetagenesis/language/ XoopsLanguages/dutch/core/2.5.5/htdocs/themes/zetagenesis/language/nederlands/ XoopsLanguages/dutch/core/2.5.5/htdocs/themes/zetagenesis/language/nederlands/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/themes/zetagenesis/language/nederlands/main.php XoopsLanguages/dutch/core/2.5.5/htdocs/themes/zetagenesis/language/nederlands/script.js XoopsLanguages/dutch/core/2.5.5/htdocs/themes/zetagenesis/language/nederlands/style.css XoopsLanguages/dutch/core/2.5.5/htdocs/xoops_data/ XoopsLanguages/dutch/core/2.5.5/htdocs/xoops_data/readme.txt XoopsLanguages/dutch/core/2.5.5/htdocs/xoops_lib/ XoopsLanguages/dutch/core/2.5.5/htdocs/xoops_lib/modules/ XoopsLanguages/dutch/core/2.5.5/htdocs/xoops_lib/modules/protector/ XoopsLanguages/dutch/core/2.5.5/htdocs/xoops_lib/modules/protector/language/ XoopsLanguages/dutch/core/2.5.5/htdocs/xoops_lib/modules/protector/language/nederlands/ XoopsLanguages/dutch/core/2.5.5/htdocs/xoops_lib/modules/protector/language/nederlands/admin.php XoopsLanguages/dutch/core/2.5.5/htdocs/xoops_lib/modules/protector/language/nederlands/index.html XoopsLanguages/dutch/core/2.5.5/htdocs/xoops_lib/modules/protector/language/nederlands/main.php XoopsLanguages/dutch/core/2.5.5/htdocs/xoops_lib/modules/protector/language/nederlands/modinfo.php XoopsLanguages/dutch/core/2.5.5/htdocs/xoops_lib/readme.txt XoopsLanguages/dutch/core/2.5.5/upgrade/ XoopsLanguages/dutch/core/2.5.5/upgrade/cnt-2.2.x-to-2.3.0/ XoopsLanguages/dutch/core/2.5.5/upgrade/cnt-2.2.x-to-2.3.0/language/ XoopsLanguages/dutch/core/2.5.5/upgrade/cnt-2.2.x-to-2.3.0/language/nederlands.php XoopsLanguages/dutch/core/2.5.5/upgrade/language/ XoopsLanguages/dutch/core/2.5.5/upgrade/language/nederlands/ XoopsLanguages/dutch/core/2.5.5/upgrade/language/nederlands/index.html XoopsLanguages/dutch/core/2.5.5/upgrade/language/nederlands/style.css XoopsLanguages/dutch/core/2.5.5/upgrade/language/nederlands/upgrade.php XoopsLanguages/dutch/core/2.5.5/upgrade/upd-2.0.18-to-2.3.0/ XoopsLanguages/dutch/core/2.5.5/upgrade/upd-2.0.18-to-2.3.0/language/ XoopsLanguages/dutch/core/2.5.5/upgrade/upd-2.0.18-to-2.3.0/language/nederlands.php Property changes on: XoopsLanguages/dutch/core/2.5.5 ___________________________________________________________________ Added: bugtraq:number + true Property changes on: XoopsLanguages/dutch/core/2.5.5/docs ___________________________________________________________________ Added: bugtraq:number + true Added: XoopsLanguages/dutch/core/2.5.5/docs/install.html =================================================================== --- XoopsLanguages/dutch/core/2.5.5/docs/install.html (rev 0) +++ XoopsLanguages/dutch/core/2.5.5/docs/install.html 2012-04-07 09:46:26 UTC (rev 9287) @@ -0,0 +1,147 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//NL"> +<!-- +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * _LANGCODE: nl + * _CHARSET : UTF-8 + * Vertaald door Renetjuh + * (Ver)taalfouten of suggesties? + * AUB hier melden: http://www.xoops.nl +**/ + --> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title>XOOPS Installatie handleiding</title> + <meta name="keywords" content="XOOPS" /> + <meta name="description" content="XOOPS installatie handleiding" /> + <style type="text/css"> + body { + font-family: Lucida Grande, Verdana, Geneva, Sans-serif; + margin: 0; + padding: 0; + font-size: 13px; + color: #333; + background-color: #fff; + } + + a { + color: #3D9DD3; + background-color: transparent; + text-decoration: none; + font-weight: normal; + } + + a:visited { + color: #3D9DD3; + background-color: transparent; + text-decoration: none; + } + + a:hover { + color: #3D9DD3; + text-decoration: none; + background-color: transparent; + } + + .page { + background-color: #fff; + margin: 10px 30px 0; + padding: 0; + } + + .page h1 { + background-color: transparent; + border-bottom: 1px solid #999; + color: #000; + font-size: 18px; + font-weight: bold; + margin: 28px 0 16px 0; + padding: 5px 0 6px 0; + } + + .page h2 { + background-color: transparent; + color: #000; + font-size: 16px; + font-weight: bold; + margin: 28px 0 16px 0; + padding: 5px 0 6px 0; + } + + .page h3 { + background-color: transparent; + color: #000; + font-size: 14px; + font-weight: bold; + } + + .page ul { + margin: 20px 0 15px 0; + } + + .page li { + margin-bottom: 9px; + } + + .page li p { + margin-left: 0; + margin-right: 0; + } + + p { } + + </style> +</head> +<body> + +<div class="page"> +<h1>XOOPS Installeren</h1> + +<h2>Eerste installatie</h2> +<h3>Voorwoord:</h3> +<p> + <acronym title="eXtensible Object-Oriented Portal System">XOOPS</acronym> is een Open-Source Object-Georiënteerd Web Content Management Systeem geschreven in PHP. Dit maakt het tot een ideale tool voor het ontwikkelen van kleine tot grote, dynamische community websites, intranet portalen, bedrijfs portalen, weblogs en meer. +</p> + +<p> + XOOPS is vrijgegeven onder de voorwaarden van de + <a href="http://www.gnu.org/copyleft/gpl.html" target="_blank">GNU General Public License (GPL)</a> + en mag vrij gebruikt en gewijzigd worden . + Het staat vrij de code te delen zolang u de distributie voorwaarden van de GPL respecteert. +</p> + + <h2>Systeemvereisten:</h2> +<ul> + <li>Webserver (<a href="http://www.apache.org/" target="_blank">Apache</a>, IIS, Roxen, enz)</li> + <li><a href="http://www.php.net/" target="_blank">PHP</a> 5.1.0 of hoger</li> + <li><a href="http://www.mysql.com/" target="_blank">MySQL</a> 5.1 of hoger</li> +</ul> + +<h2>Voor de installatie</h2> +<ol> + <li>Zorg voor een web-server met PHP en een (MySQL) database server.</li> + <li>Maak een nieuwe database aan voor de XOOPS website.</li> + <li>Maak een gebruikers account voor deze database en geef de gebruiker lees/schrijfrechten voor de zojuist gemaakte database.</li> + <li>Zorg ervoor dat de map <em>/uploads</em> en het bestand <em>mainfile.php</em> door de server beschrijfbaar zijn (Linux: CHMOD 777, Windows: het vinkje bij alleen-lezen weghalen)</li> + <li>Om veiligheidsredenen is het sterk aan te raden de volgende twee mappen buiten de <a href="http://phpsec.org/projects/guide/3.html" target="_blank">hoofdmap</a> te plaatsen: <em>/xoops_lib</em> (voor XOOPS gemeenschappelijke bibliotheken) en <em>/xoops_data/</em> (voor tijdelijke XOOPS gegevens en instellingen), tevens is het aan te raden de mapnamen te wijzigen.</li> + <li>Zorg ervoor dat de map <em>/xoops_data/</em> en de onderliggende mappen <em>/xoops_data/configs/</em>, <em>/xoops_data/caches/</em>, <em>/xoops_data/caches/xoops_cache/</em>, <em>/xoops_data/caches/smarty_cache/</em> en <em>/xoops_data/caches/smarty_compile/</em> door de server beschrijfbaar zijn. Of maak deze mappen zelf aan als ze niet aanwezig zouden zijn.</li> + <li>Zorg er voor dat cookie en JavaScript ondersteuning in uw browser is ingeschakeld.</li> +</ol> + + +<h2>Lokale Installatie</h2> +<p>Zorg ervoor dat uw test server installatie voldoet aan de voorgaande benodigdheden voor het draaien van XOOPS. + Nadat u dit gecontroleerd heeft, kopieert u de bestanden in de map htdocs van het XOOPS-archief naar de web hoofdmap van uw (test) web omgeving. Als de bestanden zijn gekopieerd kunt u de XOOPS installatie wizard starten door naar "http://uw-domein.ext", of naar "http://localhost/" (als uw computer niet aan een domein gelinkt is) te surfen in uw webbrowser.</p> + +<h2>Installatie op een hosting platform</h2> + <p>Als u werkt binnen een gehoste web omgeving, pak dan het XOOPS-archief lokaal uit, of op de server als u telnet of SSH toegang heeft. Als dit gedaan is, moeten alle Xoops bestanden uit de htdocs-map naar uw web hoofdmap gekopieerd of verplaatst worden (Uw provider/isp geeft deze locatie meestal aan bij de instellingen of help). Als de bestanden zijn gekopieerd kunt u de XOOPS installatie wizard starten door naar "http://uw-domein.ext" te surfen in uw webbrowser.</p> + + +<h2>Voortzetten van de installatie</h2> +<p>Volg de stap-voor-stap instructies van de installatie wizard.</p> + +</div> +</body> +</html> \ No newline at end of file Property changes on: XoopsLanguages/dutch/core/2.5.5/extras ___________________________________________________________________ Added: bugtraq:number + true Property changes on: XoopsLanguages/dutch/core/2.5.5/extras/modules ___________________________________________________________________ Added: bugtraq:number + true Property changes on: XoopsLanguages/dutch/core/2.5.5/extras/modules/system ___________________________________________________________________ Added: bugtraq:number + true Property changes on: XoopsLanguages/dutch/core/2.5.5/extras/modules/system/language ___________________________________________________________________ Added: bugtraq:number + true Property changes on: XoopsLanguages/dutch/core/2.5.5/extras/modules/system/language/nederlands ___________________________________________________________________ Added: bugtraq:number + true Property changes on: XoopsLanguages/dutch/core/2.5.5/extras/modules/system/language/nederlands/admin ___________________________________________________________________ Added: bugtraq:number + true Added: XoopsLanguages/dutch/core/2.5.5/extras/modules/system/language/nederlands/admin/filemanager.php =================================================================== --- XoopsLanguages/dutch/core/2.5.5/extras/modules/system/language/nederlands/admin/filemanager.php (rev 0) +++ XoopsLanguages/dutch/core/2.5.5/extras/modules/system/language/nederlands/admin/filemanager.php 2012-04-07 09:46:26 UTC (rev 9287) @@ -0,0 +1,65 @@ +<?php +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * _LANGCODE: nl + * _CHARSET : UTF-8 + * Vertaald door Renetjuh + * (Ver)taalfouten of suggesties? + * AUB hier melden: http://www.xoops.nl +**/ + + //Navigatie +define('_AM_SYSTEM_FILEMANAGER_NAV_MANAGER','Bestandenbeheer'); +define('_AM_SYSTEM_FILEMANAGER_NAV_MAIN','Bestandenbeheer'); + +//Tips +define('_AM_SYSTEM_FILEMANAGER_NAV_TIPS',' +<ul> +<li>Wijzig bestandenpermissies, inhoud of verwijder niet gebruikte bestanden uit Xoops</li> +</ul> +'); + +// Main +define('_AM_SYSTEM_FILEMANAGER_DIRECTORY','Folder'); +define('_AM_SYSTEM_FILEMANAGER_FILES','Bestanden'); +define('_AM_SYSTEM_FILEMANAGER_GENERATE','Gegenereerde toeslag'); +define('_AM_SYSTEM_FILEMANAGER_SELECT_THEME','Thema selecteren'); +define('_AM_SYSTEM_FILEMANAGER_FORCE_GENERATED','Aanmaken forceren'); +define('_AM_SYSTEM_FILEMANAGER_NAV_FILE_GENERATED','Bestanden aangemaakt'); +define('_AM_SYSTEM_FILEMANAGER_NOT_CREATED','Geen bestanden aangemaakt'); +define('_AM_SYSTEM_FILEMANAGER_HOME','Start'); +define('_AM_SYSTEM_FILEMANAGER_SAVE','Opslaan'); +define('_AM_SYSTEM_FILEMANAGER_CANCEL','Annuleren'); +define('_AM_SYSTEM_FILEMANAGER_RESTORE','Herstellen'); +define('_AM_SYSTEM_FILEMANAGER_REFRESH','Vernieuwen'); +define('_AM_SYSTEM_FILEMANAGER_UPLOAD','Bestanden uploaden'); +define('_AM_SYSTEM_FILEMANAGER_UPLOAD_CHOOSE','Bestand kiezen om te uploaden'); +define('_AM_SYSTEM_FILEMANAGER_ADDDIR','Folder toevoegen'); +define('_AM_SYSTEM_FILEMANAGER_ADDDIR_NAME','Kies de naam van de folder'); +define('_AM_SYSTEM_FILEMANAGER_ADDFILE','Nieuw bestand toevoegen'); +define('_AM_SYSTEM_FILEMANAGER_DELDIR','Folder verwijderen'); + +define('_AM_SYSTEM_FILEMANAGER_RESTORE_ERROR_FILE_EXISTS','FOUT : Bestand bestaat niet'); +define('_AM_SYSTEM_FILEMANAGER_RESTORE_ERROR_FILE_DELETE','FOUT : Bestand niet verwijderd'); +define('_AM_SYSTEM_FILEMANAGER_RESTORE_ERROR_FILE_RENAME','FOUT : Bestand niet hernoemd'); +define('_AM_SYSTEM_FILEMANAGER_BACK','Terug'); +define('_AM_SYSTEM_FILEMANAGER_DELETE','Verwijderen'); +define('_AM_SYSTEM_FILEMANAGER_ERROR','FOUT'); +define('_AM_SYSTEM_FILEMANAGER_EDIT','Bewerken van :'); +define('_AM_SYSTEM_FILEMANAGER_EMPTY_FILE','Bestand is leeg'); +define('_AM_SYSTEM_FILEMANAGER_DELDIR_NOTOK','FOUT : Folder niet verwijderd'); +define('_AM_SYSTEM_FILEMANAGER_DELDIR_OK','Folder succesvol verwijderd'); + +// Berichten +define('_AM_SYSTEM_FILEMANAGER_UPLOAD_FILE','Bestanden succesvol verzonden'); +define('_AM_SYSTEM_FILEMANAGER_EXTRACT_FILE','Bestanden succesvol afgeleid'); +define('_AM_SYSTEM_FILEMANAGER_EXTRACT_ERROR','Bestanden konden niet worden afgeleid '); +define('_AM_SYSTEM_FILEMANAGER_DELETE_FILE','Bestanden succesvol verwijderd'); +define('_AM_SYSTEM_FILEMANAGER_DIR_SUCCESS','Folder succesvol aangemaakt'); +define('_AM_SYSTEM_FILEMANAGER_DIR_ERROR','Folder kan niet worden aangemaakt'); +define('_AM_SYSTEM_FILEMANAGER_DIR_RYSDEL','Zeker weten dat u deze folder wilt verwijderen?'); +define('_AM_SYSTEM_FILEMANAGER_FILE_SUCCESS','Bestand succesvol verwijderd'); +define('_AM_SYSTEM_FILEMANAGER_SUREDEL', 'Zeker weten dat u dit bestand %s wilt verwijderen?'); +define('_AM_SYSTEM_FILEMANAGER_DIR_SUREDEL', 'Zeker weten dat u deze folder %s wilt verwijderen ?<br />Waarschuwing : Alle subfolders en bestanden worden ook verwijderd.'); +?> Added: XoopsLanguages/dutch/core/2.5.5/files.txt =================================================================== --- XoopsLanguages/dutch/core/2.5.5/files.txt (rev 0) +++ XoopsLanguages/dutch/core/2.5.5/files.txt 2012-04-07 09:46:26 UTC (rev 9287) @@ -0,0 +1,136 @@ +/docs/install.html +/extras/modules/system/language/nederlands/admin/filemanager.php +/htdocs/class/mail/phpmailer/language/phpmailer.lang-nl.php +/htdocs/class/xoopseditor/readme.txt +/htdocs/class/xoopseditor/dhtmltextarea/language/nederlands.php +/htdocs/class/xoopseditor/textarea/language/nederlands.php +/htdocs/class/xoopseditor/tinymce/language/nederlands.php +/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/langs/nl.js +/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopscode/langs/nl.js +/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopscode/langs/nl_dlg.js +/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsemotions/langs/nl.js +/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsemotions/langs/nl_dlg.js +/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsimagemanager/langs/nl.js +/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsimagemanager/langs/nl_dlg.js +/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsmlcontent/langs/nl.js +/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsmlcontent/langs/nl_dlg.js +/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsquote/langs/nl.js +/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsquote/langs/nl_dlg.js +/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/themes/advanced/langs/nl.js +/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/themes/advanced/langs/nl_dlg.js +/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/themes/simple/lang/nl.js +/htdocs/frameworks/modulesclasses/mpduleadmin/language/nederlands/main.php +/htdocs/install/language/nederlands/finish.php +/htdocs/install/language/nederlands/install.php +/htdocs/install/language/nederlands/install2.php +/htdocs/install/language/nederlands/mysql.lang.data.sql +/htdocs/install/language/nederlands/style.css +/htdocs/install/language/nederlands/support.php +/htdocs/install/language/nederlands/support.png +/htdocs/install/language/nederlands/welcome.php +/htdocs/language/nederlands/mail_template/activated.tpl +/htdocs/language/nederlands/mail_template/adminactivate.tpl +/htdocs/language/nederlands/mail_template/comment_notify.tpl +/htdocs/language/nederlands/mail_template/commentsubmit_notify.tpl +/htdocs/language/nederlands/mail_template/default_notify.tpl +/htdocs/language/nederlands/mail_template/lostpass1.tpl +/htdocs/language/nederlands/mail_template/lostpass2.tpl +/htdocs/language/nederlands/mail_template/register.tpl +/htdocs/language/nederlands/mail_template/tellfriend.tpl +/htdocs/language/nederlands/mail_template/welcome.tpl +/htdocs/language/nederlands/admin.php +/htdocs/language/nederlands/auth.php +/htdocs/language/nederlands/backend.php +/htdocs/language/nederlands/banners.php +/htdocs/language/nederlands/calendar.php +/htdocs/language/nederlands/captcha.php +/htdocs/language/nederlands/comment.php +/htdocs/language/nederlands/countries.php +/htdocs/language/nederlands/errors.php +/htdocs/language/nederlands/findusers.php +/htdocs/language/nederlands/formdhtmltextarea.php +/htdocs/language/nederlands/global.php +/htdocs/language/nederlands/locale.php +/htdocs/language/nederlands/logger.php +/htdocs/language/nederlands/mail.php +/htdocs/language/nederlands/misc.php +/htdocs/language/nederlands/notification.php +/htdocs/language/nederlands/pmsg.php +/htdocs/language/nederlands/search.php +/htdocs/language/nederlands/style.css +/htdocs/language/nederlands/timezone.php +/htdocs/language/nederlands/uploader.php +/htdocs/language/nederlands/user.php +/htdocs/language/nederlands/xoopsmailerlocal.php +/htdocs/modules/pm/language/nederlands/admin.php +/htdocs/modules/pm/language/nederlands/main.php +/htdocs/modules/pm/language/nederlands/modinfo.php +/htdocs/modules/pm/language/nederlands/help/help.html +/htdocs/modules/profile/language/nederlands/mail_template/emailchanged.tpl +/htdocs/modules/profile/language/nederlands/admin.php +/htdocs/modules/profile/language/nederlands/main.php +/htdocs/modules/profile/language/nederlands/modinfo.php +/htdocs/modules/profile/language/nederlands/help.html +/htdocs/modules/system/language/nederlands/admin.php +/htdocs/modules/system/language/nederlands/blocks.php +/htdocs/modules/system/language/nederlands/cpanel.php +/htdocs/modules/system/language/nederlands/modinfo.php +/htdocs/modules/system/language/nederlands/admin/avatars.php +/htdocs/modules/system/language/nederlands/admin/banners.php +/htdocs/modules/system/language/nederlands/admin/blocksadmin.php +/htdocs/modules/system/language/nederlands/admin/comments.php +/htdocs/modules/system/language/nederlands/admin/groups.php +/htdocs/modules/system/language/nederlands/admin/images.php +/htdocs/modules/system/language/nederlands/admin/mailusers.php +/htdocs/modules/system/language/nederlands/admin/maintenance.php +/htdocs/modules/system/language/nederlands/admin/modulesadmin.php +/htdocs/modules/system/language/nederlands/admin/preferences.php +/htdocs/modules/system/language/nederlands/admin/smilies.php +/htdocs/modules/system/language/nederlands/admin/tplsets.php +/htdocs/modules/system/language/nederlands/admin/userrank.php +/htdocs/modules/system/language/nederlands/admin/users.php +/htdocs/modules/system/language/nederlands/help/avatars.html +/htdocs/modules/system/language/nederlands/help/banners.html +/htdocs/modules/system/language/nederlands/help/blocksadmin.html +/htdocs/modules/system/language/nederlands/help/comments.html +/htdocs/modules/system/language/nederlands/help/groups.html +/htdocs/modules/system/language/nederlands/help/hlp_center.html +/htdocs/modules/system/language/nederlands/help/images.html +/htdocs/modules/system/language/nederlands/help/mailusers.html +/htdocs/modules/system/language/nederlands/help/maintenance.html +/htdocs/modules/system/language/nederlands/help/modules_index.html +/htdocs/modules/system/language/nederlands/help/modulesadmin.html +/htdocs/modules/system/language/nederlands/help/preferences.html +/htdocs/modules/system/language/nederlands/help/smilies.html +/htdocs/modules/system/language/nederlands/help/tplsets.html +/htdocs/modules/system/language/nederlands/help/userrank.html +/htdocs/modules/system/language/nederlands/help/users.html +/htdocs/modules/system/language/nederlands/images/lightbox-blank.gif +/htdocs/modules/system/language/nederlands/images/lightbox-btn-close.gif +/htdocs/modules/system/language/nederlands/images/lightbox-btn-next.gif +/htdocs/modules/system/language/nederlands/images/lightbox-btn-prev.gif +/htdocs/modules/system/language/nederlands/images/lightbox-ico-loading.gif +/htdocs/modules/system/themes/default/language/nederlands/admin.php +/htdocs/modules/system/themes/default/language/nederlands/localsupport.php +/htdocs/modules/system/themes/zetadigme/language/nederlands/admin.php +/htdocs/modules/system/themes/zetadigme/language/nederlands/localsupport.php +/htdocs/themes/zetagenesis/language/nederlands/main.php +/htdocs/themes/zetagenesis/language/nederlands/script.js +/htdocs/themes/zetagenesis/language/nederlands/style.css +/htdocs/xoops_data/readme.txt +/htdocs/xoops_lib/readme.txt +/upgrade/cnt-2.2.x-to-2.3.0/language/nederlands.php +/upgrade/language/nederlands/style.css +/upgrade/language/nederlands/upgrade.php +/upgrade/upd-2.0.18-to-2.3.0/language/nederlands.php + +Creditstekst +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * _LANGCODE: nl + * _CHARSET : UTF-8 + * Vertaald door Renetjuh + * (Ver)taalfouten of suggesties? + * AUB hier melden: http://www.xoops.nl +**/ Property changes on: XoopsLanguages/dutch/core/2.5.5/htdocs ___________________________________________________________________ Added: bugtraq:number + true Property changes on: XoopsLanguages/dutch/core/2.5.5/htdocs/class ___________________________________________________________________ Added: bugtraq:number + true Property changes on: XoopsLanguages/dutch/core/2.5.5/htdocs/class/mail ___________________________________________________________________ Added: bugtraq:number + true Property changes on: XoopsLanguages/dutch/core/2.5.5/htdocs/class/mail/phpmailer ___________________________________________________________________ Added: bugtraq:number + true Property changes on: XoopsLanguages/dutch/core/2.5.5/htdocs/class/mail/phpmailer/language ___________________________________________________________________ Added: bugtraq:number + true Added: XoopsLanguages/dutch/core/2.5.5/htdocs/class/mail/phpmailer/language/phpmailer.lang-nl.php =================================================================== --- XoopsLanguages/dutch/core/2.5.5/htdocs/class/mail/phpmailer/language/phpmailer.lang-nl.php (rev 0) +++ XoopsLanguages/dutch/core/2.5.5/htdocs/class/mail/phpmailer/language/phpmailer.lang-nl.php 2012-04-07 09:46:26 UTC (rev 9287) @@ -0,0 +1,28 @@ +<?php +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * _LANGCODE: nl + * _CHARSET : UTF-8 + * Vertaald door Renetjuh + * (Ver)taalfouten of suggesties? + * AUB hier melden: http://www.xoops.nl +**/ + +$PHPMAILER_LANG = array(); + +$PHPMAILER_LANG["provide_address"] = 'Er moet tenmiste één ' . + 'ontvanger e-mailadres opgegeven worden.'; +$PHPMAILER_LANG["mailer_not_supported"] = ' mailer wordt niet ondersteund.'; +$PHPMAILER_LANG["execute"] = 'Kon niet uitvoeren: '; +$PHPMAILER_LANG["instantiate"] = 'Kon mail functie niet initialiseren.'; +$PHPMAILER_LANG["authenticate"] = 'SMTP Fout: authenticatie mislukt.'; +$PHPMAILER_LANG["from_failed"] = 'De volgende afzender adressen zijn mislukt: '; +$PHPMAILER_LANG["recipients_failed"] = 'SMTP Fout: De volgende ' . + 'ontvangers zijn mislukt: '; +$PHPMAILER_LANG["data_not_accepted"] = 'SMTP Fout: Data niet geaccepteerd.'; +$PHPMAILER_LANG["connect_host"] = 'SMTP Fout: Kon niet verbinden met SMTP host.'; +$PHPMAILER_LANG["file_access"] = 'Kreeg geen toegang tot bestand: '; +$PHPMAILER_LANG["file_open"] = 'Bestandsfout: Kon bestand niet openen: '; +$PHPMAILER_LANG["encoding"] = 'Onbekende codering: '; +?> \ No newline at end of file Property changes on: XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor ___________________________________________________________________ Added: bugtraq:number + true Property changes on: XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/dhtmltextarea ___________________________________________________________________ Added: bugtraq:number + true Property changes on: XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/dhtmltextarea/language ___________________________________________________________________ Added: bugtraq:number + true Added: XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/dhtmltextarea/language/nederlands.php =================================================================== --- XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/dhtmltextarea/language/nederlands.php (rev 0) +++ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/dhtmltextarea/language/nederlands.php 2012-04-07 09:46:26 UTC (rev 9287) @@ -0,0 +1,14 @@ +<?php +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * _LANGCODE: nl + * _CHARSET : UTF-8 + * Vertaald door Renetjuh + * (Ver)taalfouten of suggesties? + * AUB hier melden: http://www.xoops.nl +**/ + +define( '_XOOPS_EDITOR_DHTMLTEXTAREA', 'DHTML editor met XOOPS Code' ); + +?> Added: XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/index.html =================================================================== --- XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/index.html (rev 0) +++ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/index.html 2012-04-07 09:46:26 UTC (rev 9287) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/readme.txt =================================================================== --- XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/readme.txt (rev 0) +++ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/readme.txt 2012-04-07 09:46:26 UTC (rev 9287) @@ -0,0 +1,37 @@ +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * _LANGCODE: nl + * _CHARSET : UTF-8 + * Vertaald door Renetjuh + * (Ver)taalfouten of suggesties? + * AUB hier melden: http://www.xoops.nl +**/ + +Xoopseditor bevat een collectie van editors die te gebruiken zijn in XOOPS + +Handleiding: + +1 Controleer het bestand xoops_version.php in de map /xoopseditor/ om er zeker van te zijn dat deze nieuwer is dan de huidige die in gebruik is. + +2 Verplaats /xoopseditor/ naar /XOOPS/class/ => /XOOPS/class/xoopseditor/: + XOOPS/class/xoopseditor/dhtmlext + XOOPS/class/xoopseditor/dhtmltextarea + XOOPS/class/xoopseditor/fckeditor + XOOPS/class/xoopseditor/koivi + XOOPS/class/xoopseditor/textarea + XOOPS/class/xoopseditor/tinymce + +3 Configureer voorkeuren indien van toepassing +3.1 ./dhtmlext(alle editors)/language/: Maak een eigen taalbestand gebaseerd op english.php +3.3 ./dhtmlext(alle editors)/editor_registry.php: Instellingen voor de editor: Volgorde - Volgorde van weergave in het geval editor selectie wordt gebruikt, 0 voor uitgeschakeld, nohtml - werkt voor niet-html sntax +3.3 ./FCKeditor/module/: Kopieer de bestanden naar de modules mappen in het geval module specifieke machtigingen en editor-opties zijn verplicht +3.3.1 ./FCKeditor/module/fckeditor.config.js: Voor editor opties hoeven deze instellingen niet aangepast te worden +3.3.2 ./FCKeditor/module/fckeditor.connector.php: Specificeer de map voor bestandsbrowsing (en uploadruimte) => XOOPS/uploads/XOOPS_FCK_FOLDER/, de map dient handmatig aangemaakt te worden +3.3.3 ./FCKeditor/module/fckeditor.upload.php: Machtigingen opgeven voor uploaden en opslag +3.4 XOOPS/uploads/fckeditor/: het cre\xEBren van de map, als FCKeditor is ingeschakeld, gebruikt voor uploads van waar de upload map is niet opgegeven +3.5 ./tinymce/tinymce/jscripts/: Haal de lokale taalbestanden van http://tinymce.moxiecode.com/language.php + +4 Controleer bestandsnamen: Voor een systeem wat een hoofdlettergevoelig is dient u ervoor te zorgen dat de bestandsnamen letterlijk worden overgenomen. Dat willen zeggen, "FCKeditor" is dan niet gelijk aan "fckeditor" + +5 Controleer /xoopseditor/sampleform.inc.php voor de ontwikkelingshandleiding \ No newline at end of file Property changes on: XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/textarea ___________________________________________________________________ Added: bugtraq:number + true Property changes on: XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/textarea/language ___________________________________________________________________ Added: bugtraq:number + true Added: XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/textarea/language/nederlands.php =================================================================== --- XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/textarea/language/nederlands.php (rev 0) +++ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/textarea/language/nederlands.php 2012-04-07 09:46:26 UTC (rev 9287) @@ -0,0 +1,14 @@ +<?php +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * _LANGCODE: nl + * _CHARSET : UTF-8 + * Vertaald door Renetjuh + * (Ver)taalfouten of suggesties? + * AUB hier melden: http://www.xoops.nl +**/ + +define("_XOOPS_EDITOR_TEXTAREA", "Platte tekst"); + +?> Property changes on: XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce ___________________________________________________________________ Added: bugtraq:number + true Property changes on: XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/language ___________________________________________________________________ Added: bugtraq:number + true Added: XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/language/nederlands.php =================================================================== --- XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/language/nederlands.php (rev 0) +++ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/language/nederlands.php 2012-04-07 09:46:26 UTC (rev 9287) @@ -0,0 +1,21 @@ +<?php +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * _LANGCODE: nl + * _CHARSET : UTF-8 + * Vertaald door Renetjuh + * (Ver)taalfouten of suggesties? + * AUB hier melden: http://www.xoops.nl +**/ + +// Name of the editor +define("_XOOPS_EDITOR_TINYMCE", "TinyMCE"); + +// The value must be the same as /tinymce/jscripts/langs/your_language_code, for example, "en" for English, "fr" for French +// For details, check http://tinymce.moxiecode.com/download_i18n.php +define("_XOOPS_EDITOR_TINYMCE_LANGUAGE", "nl"); + +// FONT LIST, FORMAT: "Name=value1,value2;Name=value" +define("_XOOPS_EDITOR_TINYMCE_FONTS", "Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,times new roman,times,serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times,serif;Verdana=verdana,arial,helvetica,sans-serif;Impact=impact;WingDings=wingdings"); +?> \ No newline at end of file Property changes on: XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce ___________________________________________________________________ Added: bugtraq:number + true Property changes on: XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts ___________________________________________________________________ Added: bugtraq:number + true Property changes on: XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce ___________________________________________________________________ Added: bugtraq:number + true Property changes on: XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/langs ___________________________________________________________________ Added: bugtraq:number + true Added: XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/langs/nl.js =================================================================== --- XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/langs/nl.js (rev 0) +++ XoopsLanguages/dutch/core/2.5.5/htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/langs/nl.js 2012-04-07 09:46:26 UTC (rev 9287) @@ -0,0 +1,166 @@ +tinyMCE.addI18n({nl:{ +common:{ +edit_confirm:"Weet u zeker dat u tekst in WYSIWYG mode wilt bewerken in dit tekstveld?", +apply:"Toepassen", +insert:"Invoegen", +update:"Bijwerken", +cancel:"Annuleren", +close:"Sluiten", +browse:"Bladeren", +class_name:"Klasse", +not_set:"- Standaard -", +clipboard_msg:"Kopieren/knippen/plakken is niet beschikbaar in Mozilla en Firefox.\nWilt u meer informatie over deze beperking?", +clipboard_no_support:"Kopieren/knippen/plakken wordt niet ondersteund door uw browser, gebruik hiervoor de sneltoetsen.", +popup_blocked:"U zult uw popup-blocker tijdelijk moeten uitschakelen voor deze website om gebruik te ku... [truncated message content] |
From: <be...@us...> - 2012-04-05 21:15:27
|
Revision: 9286 http://xoops.svn.sourceforge.net/xoops/?rev=9286&view=rev Author: beckmi Date: 2012-04-05 21:15:18 +0000 (Thu, 05 Apr 2012) Log Message: ----------- Adding version # to downloads's title Modified Paths: -------------- XoopsModules/TDMDownloads/trunk/TDMDownloads/singlefile.php XoopsModules/TDMDownloads/trunk/TDMDownloads/templates/tdmdownloads_singlefile.html Modified: XoopsModules/TDMDownloads/trunk/TDMDownloads/singlefile.php =================================================================== --- XoopsModules/TDMDownloads/trunk/TDMDownloads/singlefile.php 2012-04-05 11:28:31 UTC (rev 9285) +++ XoopsModules/TDMDownloads/trunk/TDMDownloads/singlefile.php 2012-04-05 21:15:18 UTC (rev 9286) @@ -55,17 +55,17 @@ //Utilisation d'une copie d'\xE9cran avec la largeur selon les pr\xE9f\xE9rences if ($xoopsModuleConfig['useshots'] == 1) { $xoopsTpl->assign('shotwidth', $xoopsModuleConfig['shotwidth']); - $xoopsTpl->assign('show_screenshot', true); + $xoopsTpl->assign('show_screenshot', true); $xoopsTpl->assign('img_float' , $xoopsModuleConfig['img_float']); -} - +} + if ($xoopsModuleConfig['download_float'] == 'ltr') { - $xoopsTpl->assign('textfloat', 'floatleft'); + $xoopsTpl->assign('textfloat', 'floatleft'); $xoopsTpl->assign('infofloat', 'floatright'); -} else { - $xoopsTpl->assign('textfloat', 'floatright'); - $xoopsTpl->assign('infofloat', 'floatleft'); -} +} else { + $xoopsTpl->assign('textfloat', 'floatright'); + $xoopsTpl->assign('infofloat', 'floatleft'); +} // sortie des informations if ($view_downloads->getVar('logourl') == 'blank.gif'){ @@ -89,8 +89,8 @@ // pour les vignettes "new" et "mis \xE0 jour" $new = TDMDownloads_Thumbnail($view_downloads->getVar('date'), $view_downloads->getVar('status')); $pop = TDMDownloads_Popular($view_downloads->getVar('hits')); -$xoopsTpl->assign('title' , $view_downloads->getVar('title')); -$xoopsTpl->assign('new' , $new); +$xoopsTpl->assign('title' , $view_downloads->getVar('title')); +$xoopsTpl->assign('new' , $new); $xoopsTpl->assign('pop' , $pop); $xoopsTpl->assign('adminlink' , $adminlink); $xoopsTpl->assign('date' , formatTimestamp($view_downloads->getVar('date'),'s')); @@ -100,7 +100,7 @@ $xoopsTpl->assign('votes', sprintf(_MD_TDMDOWNLOADS_SINGLEFILE_VOTES,$view_downloads->getVar('votes'))); $xoopsTpl->assign('nb_comments', sprintf(_MD_TDMDOWNLOADS_SINGLEFILE_COMMENTS,$view_downloads->getVar('comments'))); $xoopsTpl->assign('shwo_bookmark' , $xoopsModuleConfig['shwo_bookmark']); -$xoopsTpl->assign('show_social' , $xoopsModuleConfig['show_social']); +$xoopsTpl->assign('show_social' , $xoopsModuleConfig['show_social']); //paypal if( $view_downloads->getVar('paypal') != '' && $xoopsModuleConfig['use_paypal'] == true) { @@ -231,6 +231,8 @@ $pagetitle = $view_downloads->getVar('title') . ' - '; $pagetitle .= TDMDownloads_PathTreeUrl($mytree, $view_downloads->getVar('cid'), $downloadscat_arr, 'cat_title', $prefix = ' - ', false, 'DESC', true); $xoopsTpl->assign('xoops_pagetitle', $pagetitle); +//version for title +$xoopsTpl->assign('version', $view_downloads->getVar('version')); //description if (strpos($description,'[pagebreak]')==false){ $description_short = substr($description,0,400); Modified: XoopsModules/TDMDownloads/trunk/TDMDownloads/templates/tdmdownloads_singlefile.html =================================================================== --- XoopsModules/TDMDownloads/trunk/TDMDownloads/templates/tdmdownloads_singlefile.html 2012-04-05 11:28:31 UTC (rev 9285) +++ XoopsModules/TDMDownloads/trunk/TDMDownloads/templates/tdmdownloads_singlefile.html 2012-04-05 21:15:18 UTC (rev 9286) @@ -11,7 +11,7 @@ <!-- Start Donload body info --> <div class="item tdmdownloads-item"> <div class="itemHead"> - <span class="itemTitle"><h1><{$title}></h1></span> + <span class="itemTitle"><h1><{$title}> <{$version}></h1></span> </div> <{if $new || $pop}> <div class="itemInfo"> @@ -21,38 +21,38 @@ <{/if}> <div class="itemBody"> <div class="itemText tdmdownloads-itemText <{$textfloat}>"> - <{if $show_screenshot == true}> - <{if $logourl != ''}> - <img class="<{$img_float}>" width="<{$shotwidth}>" src="<{$logourl}>" alt="<{$title}>" /> - <{/if}> + <{if $show_screenshot == true}> + <{if $logourl != ''}> + <img class="<{$img_float}>" width="<{$shotwidth}>" src="<{$logourl}>" alt="<{$title}>" /> <{/if}> + <{/if}> <{$description}> </div> <div class="tdmdownloads-downInfo <{$infofloat}>"> <div class="tdmdownloads-box" id="tdmdownloads-box-1"> - <div id="date"><{$smarty.const._MD_TDMDOWNLOADS_SINGLEFILE_DATEPROP}>:<{$date}></div> - <div id="author"><{$smarty.const._MD_TDMDOWNLOADS_SINGLEFILE_AUTHOR}>:<{$author}></div> - <div id="hits"><{$hits}></div> - <div id="rating"><{$smarty.const._MD_TDMDOWNLOADS_SINGLEFILE_RATING}>:<{$rating}><{$votes}></div> - <{if $commentsnav != ''}> - <div id="comments"><{$nb_comments}></div> + <div id="date"><{$smarty.const._MD_TDMDOWNLOADS_SINGLEFILE_DATEPROP}>:<{$date}></div> + <div id="author"><{$smarty.const._MD_TDMDOWNLOADS_SINGLEFILE_AUTHOR}>:<{$author}></div> + <div id="hits"><{$hits}></div> + <div id="rating"><{$smarty.const._MD_TDMDOWNLOADS_SINGLEFILE_RATING}>:<{$rating}><{$votes}></div> + <{if $commentsnav != ''}> + <div id="comments"><{$nb_comments}></div> <{/if}> </div> <{if $sup_aff == true}> <div class="tdmdownloads-box" id="tdmdownloads-box-2"> - <{foreach item=champ from=$champ_sup}> - <div class="champ" style="background: url(<{$champ.image}>) no-repeat left;"><{$champ.data}></div> + <{foreach item=champ from=$champ_sup}> + <div class="champ" style="background: url(<{$champ.image}>) no-repeat left;"><{$champ.data}></div> <{/foreach}> </div> <{/if}> <div class="tdmdownloads-box" id="tdmdownloads-box-3"> - <{if $perm_vote != ""}> - <div id="torate"><a href="<{$xoops_url}>/modules/TDMDownloads/ratefile.php?lid=<{$lid}>" title="<{$smarty.const._MD_TDMDOWNLOADS_SINGLEFILE_RATHFILE}>"><{$smarty.const._MD_TDMDOWNLOADS_SINGLEFILE_RATHFILE}></a></div> - <{/if}> - <{if $perm_modif != ""}> - <div id="tomodify"><a href="<{$xoops_url}>/modules/TDMDownloads/modfile.php?lid=<{$lid}>" title="<{$smarty.const._MD_TDMDOWNLOADS_SINGLEFILE_MODIFY}>"><{$smarty.const._MD_TDMDOWNLOADS_SINGLEFILE_MODIFY}></a></div> - <{/if}> - <div id="toreport"><a href="<{$xoops_url}>/modules/TDMDownloads/brokenfile.php?lid=<{$lid}>" title="<{$smarty.const._MD_TDMDOWNLOADS_SINGLEFILE_REPORTBROKEN}>"><{$smarty.const._MD_TDMDOWNLOADS_SINGLEFILE_REPORTBROKEN}></a></div> + <{if $perm_vote != ""}> + <div id="torate"><a href="<{$xoops_url}>/modules/TDMDownloads/ratefile.php?lid=<{$lid}>" title="<{$smarty.const._MD_TDMDOWNLOADS_SINGLEFILE_RATHFILE}>"><{$smarty.const._MD_TDMDOWNLOADS_SINGLEFILE_RATHFILE}></a></div> + <{/if}> + <{if $perm_modif != ""}> + <div id="tomodify"><a href="<{$xoops_url}>/modules/TDMDownloads/modfile.php?lid=<{$lid}>" title="<{$smarty.const._MD_TDMDOWNLOADS_SINGLEFILE_MODIFY}>"><{$smarty.const._MD_TDMDOWNLOADS_SINGLEFILE_MODIFY}></a></div> + <{/if}> + <div id="toreport"><a href="<{$xoops_url}>/modules/TDMDownloads/brokenfile.php?lid=<{$lid}>" title="<{$smarty.const._MD_TDMDOWNLOADS_SINGLEFILE_REPORTBROKEN}>"><{$smarty.const._MD_TDMDOWNLOADS_SINGLEFILE_REPORTBROKEN}></a></div> <div id="totell"><{$tellafriend_texte}></div> </div> <{if $perm_download != ""}> @@ -63,11 +63,11 @@ <div class="tdmdownloads-box" id="tdmdownloads-box-5"> <div id="noperm"><{$smarty.const._MD_TDMDOWNLOADS_SINGLEFILE_NOPERM}></div> </div> - <{/if}> - <{if $paypal}> - <div id="paypal"> - <{$paypal}> - </div> + <{/if}> + <{if $paypal}> + <div id="paypal"> + <{$paypal}> + </div> <{/if}> </div> <div class="endline"></div> @@ -81,8 +81,8 @@ <!-- End Donload body info --> <{if $tags}> - <!-- Tag bar--> - <div class="tdmdownloads-tag"><{include file="db:tag_bar.html"}></div> + <!-- Tag bar--> + <div class="tdmdownloads-tag"><{include file="db:tag_bar.html"}></div> <{/if}> <{if $show_social}> @@ -115,31 +115,31 @@ <a rel="nofollow external" title="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_BALATARIN}>" href="http://balatarin.com/links/submit?phase=2&url=<{$xoops_url}>/modules/<{$xoops_url}>/modules/TDMDownloads/singlefile.php?lid=<{$downloads.lid}>" ><img alt="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_BALATARIN}>" src="<{$xoops_url}>/modules/TDMDownloads/images/bookmarks/balatarin.png"></a> <a rel="nofollow external" title="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_FACEBOOK}>" href="http://www.facebook.com/share.php?u=<{$xoops_url}>/modules/<{$xoops_url}>/modules/TDMDownloads/singlefile.php?lid=<{$downloads.lid}>" ><img alt="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_FACEBOOK}>" src="<{$xoops_url}>/modules/TDMDownloads/images/bookmarks/facebook_share_icon.gif" /></a> <a rel="nofollow external" title="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_TWITTER}>" href="http://twitter.com/home?status=Browsing:%20<{$xoops_url}>/modules/<{$xoops_url}>/modules/TDMDownloads/singlefile.php?lid=<{$downloads.lid}>" ><img alt="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_TWITTER}>" src="<{$xoops_url}>/modules/TDMDownloads/images/bookmarks/twitter_share_icon.gif" /></a> - <a rel="nofollow external" title="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_SCRIPSTYLE}>" href="http://scriptandstyle.com/submit?url=<{$xoops_url}>/modules/<{$xoops_url}>/modules/TDMDownloads/singlefile.php?lid=<{$downloads.lid}>" ><img alt="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_SCRIPSTYLE}>" src="<{$xoops_url}>/modules/TDMDownloads/images/bookmarks/scriptandstyle.png" /></a> - <a rel="nofollow external" title="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_STUMBLE}>" href="http://www.stumbleupon.com/submit?url=<{$xoops_url}>/modules/<{$xoops_url}>/modules/TDMDownloads/singlefile.php?lid=<{$downloads.lid}>" ><img alt="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_STUMBLE}>" src="<{$xoops_url}>/modules/TDMDownloads/images/bookmarks/stumbleupon.png" /></a> - <a rel="nofollow external" title="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_TECHNORATI}>" href="http://technorati.com/faves?add=<{$xoops_url}>/modules/<{$xoops_url}>/modules/TDMDownloads/singlefile.php?lid=<{$downloads.lid}>" ><img alt="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_TECHNORATI}>" src="<{$xoops_url}>/modules/TDMDownloads/images/bookmarks/technorati.png" /></a> - <a rel="nofollow external" title="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_MIXX}>" href="http://www.mixx.com/submit?page_url=<{$xoops_url}>/modules/<{$xoops_url}>/modules/TDMDownloads/singlefile.php?lid=<{$downloads.lid}>" ><img alt="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_MIXX}>" src="<{$xoops_url}>/modules/TDMDownloads/images/bookmarks/mixx.png" /></a> - <a rel="nofollow external" title="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_MYSPACE}>" href="http://www.myspace.com/Modules/PostTo/Pages/?u=<{$xoops_url}>/modules/<{$xoops_url}>/modules/TDMDownloads/singlefile.php?lid=<{$downloads.lid}>" ><img alt="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_MYSPACE}>" src="<{$xoops_url}>/modules/TDMDownloads/images/bookmarks/myspace.jpg" /></a> - <a rel="nofollow external" title="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_DESIGNFLOAT}>" href="http://www.designfloat.com/submit.php?url=<{$xoops_url}>/modules/<{$xoops_url}>/modules/TDMDownloads/singlefile.php?lid=<{$downloads.lid}>" ><img alt="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_DESIGNFLOAT}>" src="<{$xoops_url}>/modules/TDMDownloads/images/bookmarks/designfloat.png" /></a> + <a rel="nofollow external" title="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_SCRIPSTYLE}>" href="http://scriptandstyle.com/submit?url=<{$xoops_url}>/modules/<{$xoops_url}>/modules/TDMDownloads/singlefile.php?lid=<{$downloads.lid}>" ><img alt="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_SCRIPSTYLE}>" src="<{$xoops_url}>/modules/TDMDownloads/images/bookmarks/scriptandstyle.png" /></a> + <a rel="nofollow external" title="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_STUMBLE}>" href="http://www.stumbleupon.com/submit?url=<{$xoops_url}>/modules/<{$xoops_url}>/modules/TDMDownloads/singlefile.php?lid=<{$downloads.lid}>" ><img alt="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_STUMBLE}>" src="<{$xoops_url}>/modules/TDMDownloads/images/bookmarks/stumbleupon.png" /></a> + <a rel="nofollow external" title="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_TECHNORATI}>" href="http://technorati.com/faves?add=<{$xoops_url}>/modules/<{$xoops_url}>/modules/TDMDownloads/singlefile.php?lid=<{$downloads.lid}>" ><img alt="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_TECHNORATI}>" src="<{$xoops_url}>/modules/TDMDownloads/images/bookmarks/technorati.png" /></a> + <a rel="nofollow external" title="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_MIXX}>" href="http://www.mixx.com/submit?page_url=<{$xoops_url}>/modules/<{$xoops_url}>/modules/TDMDownloads/singlefile.php?lid=<{$downloads.lid}>" ><img alt="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_MIXX}>" src="<{$xoops_url}>/modules/TDMDownloads/images/bookmarks/mixx.png" /></a> + <a rel="nofollow external" title="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_MYSPACE}>" href="http://www.myspace.com/Modules/PostTo/Pages/?u=<{$xoops_url}>/modules/<{$xoops_url}>/modules/TDMDownloads/singlefile.php?lid=<{$downloads.lid}>" ><img alt="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_MYSPACE}>" src="<{$xoops_url}>/modules/TDMDownloads/images/bookmarks/myspace.jpg" /></a> + <a rel="nofollow external" title="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_DESIGNFLOAT}>" href="http://www.designfloat.com/submit.php?url=<{$xoops_url}>/modules/<{$xoops_url}>/modules/TDMDownloads/singlefile.php?lid=<{$downloads.lid}>" ><img alt="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_DESIGNFLOAT}>" src="<{$xoops_url}>/modules/TDMDownloads/images/bookmarks/designfloat.png" /></a> <a rel="nofollow external" title="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_GOOLGEBUZZ}>" href="http://www.google.com/buzz/post?url=<{$xoops_url}>/modules/<{$xoops_url}>/modules/TDMDownloads/singlefile.php?lid=<{$downloads.lid}>" ><img alt="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_GOOLGEBUZZ}>" src="<{$xoops_url}>/modules/TDMDownloads/images/bookmarks/google_buzz_icon.png" /></a> <a rel="nofollow external" title="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_GOOLGEREADER}>" href="http://www.google.com/reader/link?url=<{$xoops_url}>/modules/<{$xoops_url}>/modules/TDMDownloads/singlefile.php?lid=<{$downloads.lid}>&title=<{$downloads.title}>" ><img alt="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_GOOLGEREADER}>" src="<{$xoops_url}>/modules/TDMDownloads/images/bookmarks/google-reader-icon.png" /></a> <a rel="nofollow external" title="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_GOOLGEBOOKMARKS}>" href="https://www.google.com/bookmarks/mark?op=add&bkmk=<{$xoops_url}>/modules/<{$xoops_url}>/modules/TDMDownloads/singlefile.php?lid=<{$downloads.lid}>&title=<{$downloads.title}>" ><img alt="<{$smarty.const._MD_TDMDOWNLOADS_BOOKMARK_TO_GOOLGEBOOKMARKS}>" src="<{$xoops_url}>/modules/TDMDownloads/images/bookmarks/google-icon.png" /></a> </div> </div> <{/if}> - - <div style="text-align: center; padding: 3px; margin:3px;"> - <{$commentsnav}> - <{$lang_notice}> - </div> - <div style="margin:3px; padding: 3px;"> - <{if $comment_mode == "flat"}> - <{include file="db:system_comments_flat.html"}> - <{elseif $comment_mode == "thread"}> - <{include file="db:system_comments_thread.html"}> - <{elseif $comment_mode == "nest"}> - <{include file="db:system_comments_nest.html"}> - <{/if}> - </div> + + <div style="text-align: center; padding: 3px; margin:3px;"> + <{$commentsnav}> + <{$lang_notice}> + </div> + <div style="margin:3px; padding: 3px;"> + <{if $comment_mode == "flat"}> + <{include file="db:system_comments_flat.html"}> + <{elseif $comment_mode == "thread"}> + <{include file="db:system_comments_thread.html"}> + <{elseif $comment_mode == "nest"}> + <{include file="db:system_comments_nest.html"}> + <{/if}> + </div> <{include file="db:system_notification_select.html"}> </div> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-04-05 11:28:37
|
Revision: 9285 http://xoops.svn.sourceforge.net/xoops/?rev=9285&view=rev Author: beckmi Date: 2012-04-05 11:28:31 +0000 (Thu, 05 Apr 2012) Log Message: ----------- Correcting French text to UTF-8 characters Modified Paths: -------------- XoopsModules/TDMDownloads/trunk/TDMDownloads/class/tdmdownloads_cat.php XoopsModules/TDMDownloads/trunk/TDMDownloads/class/tdmdownloads_field.php XoopsModules/TDMDownloads/trunk/TDMDownloads/language/english/main.php XoopsModules/TDMDownloads/trunk/TDMDownloads/modfile.php Modified: XoopsModules/TDMDownloads/trunk/TDMDownloads/class/tdmdownloads_cat.php =================================================================== --- XoopsModules/TDMDownloads/trunk/TDMDownloads/class/tdmdownloads_cat.php 2012-04-05 08:59:38 UTC (rev 9284) +++ XoopsModules/TDMDownloads/trunk/TDMDownloads/class/tdmdownloads_cat.php 2012-04-05 11:28:31 UTC (rev 9285) @@ -53,7 +53,7 @@ //nom du formulaire selon l'action (editer ou ajouter): $title = $this->isNew() ? sprintf(_AM_TDMDOWNLOADS_FORMADD) : sprintf(_AM_TDMDOWNLOADS_FORMEDIT); - //cr�ation du formulaire + //création du formulaire $form = new XoopsThemeForm($title, 'form', $action, 'post', true); $form->setExtra('enctype="multipart/form-data"'); //titre @@ -86,7 +86,7 @@ $fileseltray->addElement(new XoopsFormLabel('' ), false); $imgtray->addElement($fileseltray); $form->addElement($imgtray); - // Pour faire une sous-cat�gorie + // Pour faire une sous-catégorie $downloadscat_Handler =& xoops_getModuleHandler('tdmdownloads_cat', 'TDMDownloads'); $criteria = new CriteriaCompo(); $criteria->setSort('cat_weight ASC, cat_title'); @@ -94,7 +94,7 @@ $downloadscat_arr = $downloadscat_Handler->getall($criteria); $mytree = new XoopsObjectTree($downloadscat_arr, 'cat_cid', 'cat_pid'); $form->addElement(new XoopsFormLabel(_AM_TDMDOWNLOADS_FORMINCAT, $mytree->makeSelBox('cat_pid', 'cat_title','--',$this->getVar('cat_pid'),true))); - //poids de la cat�gorie + //poids de la catégorie $form->addElement(new XoopsFormText(_AM_TDMDOWNLOADS_FORMWEIGHT, 'cat_weight', 5, 5, $this->getVar('cat_weight', 'e')), false); //permissions @@ -124,13 +124,13 @@ // pour editer $groups_news_can_submit_checkbox->addOptionArray($group_list); $form->addElement($groups_news_can_submit_checkbox); - // pour t�l�charger + // pour télécharger if ($xoopsModuleConfig['permission_download'] == 1) { $groups_news_can_download_checkbox->addOptionArray($group_list); $form->addElement($groups_news_can_download_checkbox); } - // pour passer "cid" si on modifie la cat�gorie + // pour passer "cid" si on modifie la catégorie if (!$this->isNew()) { $form->addElement(new XoopsFormHidden('cat_cid', $this->getVar('cat_cid'))); $form->addElement(new XoopsFormHidden('categorie_modified', true)); Modified: XoopsModules/TDMDownloads/trunk/TDMDownloads/class/tdmdownloads_field.php =================================================================== --- XoopsModules/TDMDownloads/trunk/TDMDownloads/class/tdmdownloads_field.php 2012-04-05 08:59:38 UTC (rev 9284) +++ XoopsModules/TDMDownloads/trunk/TDMDownloads/class/tdmdownloads_field.php 2012-04-05 11:28:31 UTC (rev 9285) @@ -55,7 +55,7 @@ //nom du formulaire selon l'action (editer ou ajouter): $title = $this->isNew() ? sprintf(_AM_TDMDOWNLOADS_FORMADD) : sprintf(_AM_TDMDOWNLOADS_FORMEDIT); - //cr�ation du formulaire + //création du formulaire $form = new XoopsThemeForm($title, 'form', $action, 'post', true); $form->setExtra('enctype="multipart/form-data"'); //titre @@ -85,10 +85,10 @@ $form->addElement($imgtray); //poids du champ $form->addElement(new XoopsFormText(_AM_TDMDOWNLOADS_FORMWEIGHT, 'weight', 5, 5, $this->getVar('weight', 'e')), false); - // affich�? + // affiché? $status = $this->getVar('status') ? $this->getVar('status') : 0; $form->addElement(new XoopsFormRadioYN(_AM_TDMDOWNLOADS_FORMAFFICHE, 'status', $status)); - // affich� dans le champ de recherche? + // affiché dans le champ de recherche? $search = $this->getVar('search') ? $this->getVar('search') : 0; $form->addElement(new XoopsFormRadioYN(_AM_TDMDOWNLOADS_FORMAFFICHESEARCH, 'search', $search)); // pour passer "fid" si on modifie le champ Modified: XoopsModules/TDMDownloads/trunk/TDMDownloads/language/english/main.php =================================================================== --- XoopsModules/TDMDownloads/trunk/TDMDownloads/language/english/main.php 2012-04-05 08:59:38 UTC (rev 9284) +++ XoopsModules/TDMDownloads/trunk/TDMDownloads/language/english/main.php 2012-04-05 11:28:31 UTC (rev 9285) @@ -115,7 +115,7 @@ define("_MD_TDMDOWNLOADS_SEARCH_THEREARE","There are <b>%s</b> file(s)"); define("_MD_TDMDOWNLOADS_SEARCH_TITLE","Name"); -//g�n�rique +//générique define("_MD_TDMDOWNLOADS_EDITTHISDL","Edit this download"); define("_MD_TDMDOWNLOADS_MOREDETAILS","more details"); define("_MD_TDMDOWNLOADS_DOWNLOAD","Download"); Modified: XoopsModules/TDMDownloads/trunk/TDMDownloads/modfile.php =================================================================== --- XoopsModules/TDMDownloads/trunk/TDMDownloads/modfile.php 2012-04-05 08:59:38 UTC (rev 9284) +++ XoopsModules/TDMDownloads/trunk/TDMDownloads/modfile.php 2012-04-05 11:28:31 UTC (rev 9285) @@ -30,10 +30,10 @@ $lid = TDMDownloads_CleanVars($_REQUEST, 'lid', 0, 'int'); -//information du t�l�chargement +//information du téléchargement $view_downloads = $downloads_Handler->get($lid); -// redirection si le t�l�chargement n'existe pas ou n'est pas activ� +// redirection si le téléchargement n'existe pas ou n'est pas activé if (count($view_downloads) == 0 || $view_downloads->getVar('status') == 0){ redirect_header('index.php', 3, _MD_TDMDOWNLOADS_SINGLEFILE_NONEXISTENT); exit(); @@ -51,7 +51,7 @@ redirect_header('index.php', 2, _NOPERM); exit(); } - //tableau des cat�gories + //tableau des catégories $criteria = new CriteriaCompo(); $criteria->setSort('cat_weight ASC, cat_title'); $criteria->setOrder('ASC'); @@ -63,7 +63,7 @@ $navigation .= ' <img src="images/deco/arrow.gif" alt="arrow" /> <a title="' . $view_downloads->getVar('title') . '" href="singlefile.php?lid=' . $view_downloads->getVar('lid') . '">' . $view_downloads->getVar('title') . '</a>'; $navigation .= ' <img src="images/deco/arrow.gif" alt="arrow" /> ' . _MD_TDMDOWNLOADS_SINGLEFILE_MODIFY; $xoopsTpl->assign('navigation', $navigation); - // r�f�rencement + // référencement // titre de la page $pagetitle = _MD_TDMDOWNLOADS_SINGLEFILE_MODIFY . ' - ' . $view_downloads->getVar('title') . ' - '; $pagetitle .= TDMDownloads_PathTreeUrl($mytree, $view_downloads->getVar('cid'), $downloadscat_arr, 'cat_title', $prefix = ' - ', false, 'DESC', true); @@ -71,7 +71,7 @@ //description $xoTheme->addMeta( 'meta', 'description', strip_tags(_MD_TDMDOWNLOADS_SINGLEFILE_MODIFY . ' (' . $view_downloads->getVar('title') . ')')); - //Affichage du formulaire de notation des t�l�chargements + //Affichage du formulaire de notation des téléchargements $obj =& $downloadsmod_Handler->create(); $form = $obj->getForm($lid, false, $donnee = array()); $xoopsTpl->assign('themeForm', $form->render()); @@ -114,7 +114,7 @@ $message_erreur .= _MD_TDMDOWNLOADS_ERREUR_SIZE . '<br>'; } } - // erreur si la cat�gorie est vide + // erreur si la catégorie est vide if (isset($_REQUEST['cid'])){ if ($_REQUEST['cid'] == 0){ $erreur=true; @@ -180,7 +180,7 @@ if ($downloadsmod_Handler->insert($obj)) { $lid_dowwnloads = $obj->get_new_enreg(); - // R�cup�ration des champs suppl�mentaires: + // Récupération des champs supplémentaires: $criteria = new CriteriaCompo(); $criteria->setSort('weight ASC, title'); $criteria->setOrder('ASC'); @@ -203,7 +203,7 @@ } echo $obj->getHtmlErrors(); } - //Affichage du formulaire de notation des t�l�chargements + //Affichage du formulaire de notation des téléchargements $form =& $obj->getForm(intval($_REQUEST['lid']), true, $donnee); $xoopsTpl->assign('themeForm', $form->render()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-04-05 08:59:49
|
Revision: 9284 http://xoops.svn.sourceforge.net/xoops/?rev=9284&view=rev Author: wishcraft Date: 2012-04-05 08:59:38 +0000 (Thu, 05 Apr 2012) Log Message: ----------- Membership 1.09 - complete release - production - see changelog.txt for changes. Membership Payment Module. (Fix XPayment Plugin) Modified Paths: -------------- XoopsModules/membership/releases/1.09/htdocs/modules/xpayment/plugin/membership.php XoopsModules/membership/trunk/htdocs/modules/xpayment/plugin/membership.php Modified: XoopsModules/membership/releases/1.09/htdocs/modules/xpayment/plugin/membership.php =================================================================== --- XoopsModules/membership/releases/1.09/htdocs/modules/xpayment/plugin/membership.php 2012-04-05 08:21:54 UTC (rev 9283) +++ XoopsModules/membership/releases/1.09/htdocs/modules/xpayment/plugin/membership.php 2012-04-05 08:59:38 UTC (rev 9284) @@ -1,16 +1,16 @@ <?php function PaidMembershipHook($invoice) { - list($pid, $uid) = explode('|', $invoice->getVar('key')); $packages_handler =& xoops_getmodulehandler('packages', 'membership'); $package = $packages_handler->get($pid); - if ($uid>0) + $member_handler =& xoops_gethandler('member'); + if ($uid>0) { foreach($package->getVar('groups') as $groupid) { - $sql = "INSERT INTO ".$GLOBALS['xoopsDB']->prefix('groups_users_link')." (groupid, uid) VALUE(".$groupid.",".$uid.")"; - $GLOBALS['xoopsDB']->queryF($sql); + $member_handler->addUserToGroup($groupid, $uid); } + } $package->setVar('last', time()); $package->setVar('purchases', $package->getVar('purchases')+1); @@ -24,7 +24,7 @@ $xoMod = $module_handler->getByDirname('membership'); $xoConfig = $config_handler->getConfigList($xoMod->getVar('mid')); - if ($profile->getVar($xoConfig['profile_field'])==0||$profile->getVar($xoConfig['profile_field'])<time()) { + if ($profile->getVar($xoConfig['profile_field'])==0||$profile->getVar($xoConfig['profile_field'])<time()+3600) { $profile->setVar($xoConfig['profile_field'], time()+($package->getVar('period')*$invoice->getVar('items'))); } else { $profile->setVar($xoConfig['profile_field'], $profile->getVar($xoConfig['profile_field'])+($package->getVar('period')*$invoice->getVar('items'))); Modified: XoopsModules/membership/trunk/htdocs/modules/xpayment/plugin/membership.php =================================================================== --- XoopsModules/membership/trunk/htdocs/modules/xpayment/plugin/membership.php 2012-04-05 08:21:54 UTC (rev 9283) +++ XoopsModules/membership/trunk/htdocs/modules/xpayment/plugin/membership.php 2012-04-05 08:59:38 UTC (rev 9284) @@ -1,16 +1,16 @@ <?php function PaidMembershipHook($invoice) { - list($pid, $uid) = explode('|', $invoice->getVar('key')); $packages_handler =& xoops_getmodulehandler('packages', 'membership'); $package = $packages_handler->get($pid); - if ($uid>0) + $member_handler =& xoops_gethandler('member'); + if ($uid>0) { foreach($package->getVar('groups') as $groupid) { - $sql = "INSERT INTO ".$GLOBALS['xoopsDB']->prefix('groups_users_link')." (groupid, uid) VALUE(".$groupid.",".$uid.")"; - $GLOBALS['xoopsDB']->queryF($sql); + $member_handler->addUserToGroup($groupid, $uid); } + } $package->setVar('last', time()); $package->setVar('purchases', $package->getVar('purchases')+1); @@ -24,7 +24,7 @@ $xoMod = $module_handler->getByDirname('membership'); $xoConfig = $config_handler->getConfigList($xoMod->getVar('mid')); - if ($profile->getVar($xoConfig['profile_field'])==0||$profile->getVar($xoConfig['profile_field'])<time()) { + if ($profile->getVar($xoConfig['profile_field'])==0||$profile->getVar($xoConfig['profile_field'])<time()+3600) { $profile->setVar($xoConfig['profile_field'], time()+($package->getVar('period')*$invoice->getVar('items'))); } else { $profile->setVar($xoConfig['profile_field'], $profile->getVar($xoConfig['profile_field'])+($package->getVar('period')*$invoice->getVar('items'))); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-04-05 08:22:04
|
Revision: 9283 http://xoops.svn.sourceforge.net/xoops/?rev=9283&view=rev Author: wishcraft Date: 2012-04-05 08:21:54 +0000 (Thu, 05 Apr 2012) Log Message: ----------- Membership 1.09 - complete release - production - see changelog.txt for changes. Membership Payment Module. Added Paths: ----------- XoopsModules/membership/releases/1.09/ XoopsModules/membership/releases/1.09/docs/ XoopsModules/membership/releases/1.09/docs/.htaccess XoopsModules/membership/releases/1.09/docs/licence.txt XoopsModules/membership/releases/1.09/htdocs/ XoopsModules/membership/releases/1.09/htdocs/modules/ XoopsModules/membership/releases/1.09/htdocs/modules/membership/ XoopsModules/membership/releases/1.09/htdocs/modules/membership/admin/ XoopsModules/membership/releases/1.09/htdocs/modules/membership/admin/header.php XoopsModules/membership/releases/1.09/htdocs/modules/membership/admin/index.html XoopsModules/membership/releases/1.09/htdocs/modules/membership/admin/index.php XoopsModules/membership/releases/1.09/htdocs/modules/membership/admin/menu.php XoopsModules/membership/releases/1.09/htdocs/modules/membership/class/ XoopsModules/membership/releases/1.09/htdocs/modules/membership/class/index.html XoopsModules/membership/releases/1.09/htdocs/modules/membership/class/packages.php XoopsModules/membership/releases/1.09/htdocs/modules/membership/cron/ XoopsModules/membership/releases/1.09/htdocs/modules/membership/cron/expire.php XoopsModules/membership/releases/1.09/htdocs/modules/membership/cron/index.html XoopsModules/membership/releases/1.09/htdocs/modules/membership/docs/ XoopsModules/membership/releases/1.09/htdocs/modules/membership/docs/changelog.txt XoopsModules/membership/releases/1.09/htdocs/modules/membership/docs/licence.txt XoopsModules/membership/releases/1.09/htdocs/modules/membership/header.php XoopsModules/membership/releases/1.09/htdocs/modules/membership/images/ XoopsModules/membership/releases/1.09/htdocs/modules/membership/images/add.packages.png XoopsModules/membership/releases/1.09/htdocs/modules/membership/images/index.html XoopsModules/membership/releases/1.09/htdocs/modules/membership/images/membership_slogo.png XoopsModules/membership/releases/1.09/htdocs/modules/membership/images/packages.png XoopsModules/membership/releases/1.09/htdocs/modules/membership/images/permissions.png XoopsModules/membership/releases/1.09/htdocs/modules/membership/include/ XoopsModules/membership/releases/1.09/htdocs/modules/membership/include/index.html XoopsModules/membership/releases/1.09/htdocs/modules/membership/include/install.php XoopsModules/membership/releases/1.09/htdocs/modules/membership/include/membership.forms.php XoopsModules/membership/releases/1.09/htdocs/modules/membership/include/membership.functions.php XoopsModules/membership/releases/1.09/htdocs/modules/membership/include/membership.objects.php XoopsModules/membership/releases/1.09/htdocs/modules/membership/include/onupdate.php XoopsModules/membership/releases/1.09/htdocs/modules/membership/index.php XoopsModules/membership/releases/1.09/htdocs/modules/membership/language/ XoopsModules/membership/releases/1.09/htdocs/modules/membership/language/english/ XoopsModules/membership/releases/1.09/htdocs/modules/membership/language/english/admin.php XoopsModules/membership/releases/1.09/htdocs/modules/membership/language/english/cron.php XoopsModules/membership/releases/1.09/htdocs/modules/membership/language/english/index.html XoopsModules/membership/releases/1.09/htdocs/modules/membership/language/english/mail_templates/ XoopsModules/membership/releases/1.09/htdocs/modules/membership/language/english/mail_templates/membership_expired.tpl XoopsModules/membership/releases/1.09/htdocs/modules/membership/language/english/main.php XoopsModules/membership/releases/1.09/htdocs/modules/membership/language/english/modinfo.php XoopsModules/membership/releases/1.09/htdocs/modules/membership/language/index.html XoopsModules/membership/releases/1.09/htdocs/modules/membership/preloads/ XoopsModules/membership/releases/1.09/htdocs/modules/membership/preloads/core.php XoopsModules/membership/releases/1.09/htdocs/modules/membership/preloads/index.html XoopsModules/membership/releases/1.09/htdocs/modules/membership/sql/ XoopsModules/membership/releases/1.09/htdocs/modules/membership/sql/index.html XoopsModules/membership/releases/1.09/htdocs/modules/membership/sql/mysql.sql XoopsModules/membership/releases/1.09/htdocs/modules/membership/templates/ XoopsModules/membership/releases/1.09/htdocs/modules/membership/templates/index.html XoopsModules/membership/releases/1.09/htdocs/modules/membership/templates/membership_cpanel_packages_edit.html XoopsModules/membership/releases/1.09/htdocs/modules/membership/templates/membership_cpanel_packages_list.html XoopsModules/membership/releases/1.09/htdocs/modules/membership/templates/membership_index.html XoopsModules/membership/releases/1.09/htdocs/modules/membership/templates/membership_item_xpayment.html XoopsModules/membership/releases/1.09/htdocs/modules/membership/xoops_version.php XoopsModules/membership/releases/1.09/htdocs/modules/xpayment/ XoopsModules/membership/releases/1.09/htdocs/modules/xpayment/plugin/ XoopsModules/membership/releases/1.09/htdocs/modules/xpayment/plugin/membership.php XoopsModules/membership/trunk/ XoopsModules/membership/trunk/docs/ XoopsModules/membership/trunk/docs/.htaccess XoopsModules/membership/trunk/docs/licence.txt XoopsModules/membership/trunk/htdocs/ XoopsModules/membership/trunk/htdocs/modules/ XoopsModules/membership/trunk/htdocs/modules/membership/ XoopsModules/membership/trunk/htdocs/modules/membership/admin/ XoopsModules/membership/trunk/htdocs/modules/membership/admin/header.php XoopsModules/membership/trunk/htdocs/modules/membership/admin/index.html XoopsModules/membership/trunk/htdocs/modules/membership/admin/index.php XoopsModules/membership/trunk/htdocs/modules/membership/admin/menu.php XoopsModules/membership/trunk/htdocs/modules/membership/class/ XoopsModules/membership/trunk/htdocs/modules/membership/class/index.html XoopsModules/membership/trunk/htdocs/modules/membership/class/packages.php XoopsModules/membership/trunk/htdocs/modules/membership/cron/ XoopsModules/membership/trunk/htdocs/modules/membership/cron/expire.php XoopsModules/membership/trunk/htdocs/modules/membership/cron/index.html XoopsModules/membership/trunk/htdocs/modules/membership/docs/ XoopsModules/membership/trunk/htdocs/modules/membership/docs/changelog.txt XoopsModules/membership/trunk/htdocs/modules/membership/docs/licence.txt XoopsModules/membership/trunk/htdocs/modules/membership/header.php XoopsModules/membership/trunk/htdocs/modules/membership/images/ XoopsModules/membership/trunk/htdocs/modules/membership/images/add.packages.png XoopsModules/membership/trunk/htdocs/modules/membership/images/index.html XoopsModules/membership/trunk/htdocs/modules/membership/images/membership_slogo.png XoopsModules/membership/trunk/htdocs/modules/membership/images/packages.png XoopsModules/membership/trunk/htdocs/modules/membership/images/permissions.png XoopsModules/membership/trunk/htdocs/modules/membership/include/ XoopsModules/membership/trunk/htdocs/modules/membership/include/index.html XoopsModules/membership/trunk/htdocs/modules/membership/include/install.php XoopsModules/membership/trunk/htdocs/modules/membership/include/membership.forms.php XoopsModules/membership/trunk/htdocs/modules/membership/include/membership.functions.php XoopsModules/membership/trunk/htdocs/modules/membership/include/membership.objects.php XoopsModules/membership/trunk/htdocs/modules/membership/include/onupdate.php XoopsModules/membership/trunk/htdocs/modules/membership/index.php XoopsModules/membership/trunk/htdocs/modules/membership/language/ XoopsModules/membership/trunk/htdocs/modules/membership/language/english/ XoopsModules/membership/trunk/htdocs/modules/membership/language/english/admin.php XoopsModules/membership/trunk/htdocs/modules/membership/language/english/cron.php XoopsModules/membership/trunk/htdocs/modules/membership/language/english/index.html XoopsModules/membership/trunk/htdocs/modules/membership/language/english/mail_templates/ XoopsModules/membership/trunk/htdocs/modules/membership/language/english/mail_templates/membership_expired.tpl XoopsModules/membership/trunk/htdocs/modules/membership/language/english/main.php XoopsModules/membership/trunk/htdocs/modules/membership/language/english/modinfo.php XoopsModules/membership/trunk/htdocs/modules/membership/language/index.html XoopsModules/membership/trunk/htdocs/modules/membership/preloads/ XoopsModules/membership/trunk/htdocs/modules/membership/preloads/core.php XoopsModules/membership/trunk/htdocs/modules/membership/preloads/index.html XoopsModules/membership/trunk/htdocs/modules/membership/sql/ XoopsModules/membership/trunk/htdocs/modules/membership/sql/index.html XoopsModules/membership/trunk/htdocs/modules/membership/sql/mysql.sql XoopsModules/membership/trunk/htdocs/modules/membership/templates/ XoopsModules/membership/trunk/htdocs/modules/membership/templates/index.html XoopsModules/membership/trunk/htdocs/modules/membership/templates/membership_cpanel_packages_edit.html XoopsModules/membership/trunk/htdocs/modules/membership/templates/membership_cpanel_packages_list.html XoopsModules/membership/trunk/htdocs/modules/membership/templates/membership_index.html XoopsModules/membership/trunk/htdocs/modules/membership/templates/membership_item_xpayment.html XoopsModules/membership/trunk/htdocs/modules/membership/xoops_version.php XoopsModules/membership/trunk/htdocs/modules/xpayment/ XoopsModules/membership/trunk/htdocs/modules/xpayment/plugin/ XoopsModules/membership/trunk/htdocs/modules/xpayment/plugin/membership.php Added: XoopsModules/membership/releases/1.09/docs/.htaccess =================================================================== --- XoopsModules/membership/releases/1.09/docs/.htaccess (rev 0) +++ XoopsModules/membership/releases/1.09/docs/.htaccess 2012-04-05 08:21:54 UTC (rev 9283) @@ -0,0 +1,11 @@ + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d + +RewriteRule ^membership/index,([0-9]+),([0-9]+),(.*?),(.*?).html modules/membership/index.php?start=$1&limit=$2&sort=$3&order=$4 [L,NC,QSA] + + + + + Added: XoopsModules/membership/releases/1.09/docs/licence.txt =================================================================== --- XoopsModules/membership/releases/1.09/docs/licence.txt (rev 0) +++ XoopsModules/membership/releases/1.09/docs/licence.txt 2012-04-05 08:21:54 UTC (rev 9283) @@ -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, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + 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. + + 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., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/membership/releases/1.09/htdocs/modules/membership/admin/header.php =================================================================== --- XoopsModules/membership/releases/1.09/htdocs/modules/membership/admin/header.php (rev 0) +++ XoopsModules/membership/releases/1.09/htdocs/modules/membership/admin/header.php 2012-04-05 08:21:54 UTC (rev 9283) @@ -0,0 +1,58 @@ +<?php + + include('../../../include/cp_header.php'); + + if (!defined('_CHARSET')) + define ("_CHARSET","UTF-8"); + if (!defined('_CHARSET_ISO')) + define ("_CHARSET_ISO","ISO-8859-1"); + + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); + + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + if (!isset($GLOBALS['xoopsModule'])) $GLOBALS['xoopsModule'] = $module_handler->getByDirname('membership'); + if (!isset($GLOBALS['xoopsModuleConfig'])) $GLOBALS['xoopsModuleConfig'] = $config_handler->getConfigList($GLOBALS['xoopsModule']->getVar('mid')); + + include_once $GLOBALS['xoops']->path('class'.DS.'cache'.DS.'xoopscache.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'pagenav.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopslists.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopstree.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsformloader.php'); + include_once $GLOBALS['xoops']->path('/modules/membership/include/membership.functions.php'); + include_once $GLOBALS['xoops']->path('/modules/membership/include/membership.objects.php'); + include_once $GLOBALS['xoops']->path('/modules/membership/include/membership.forms.php'); + + xoops_loadLanguage('admin', 'membership'); + + if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + //return true; + }else{ + echo xoops_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); + //return false; + } + $GLOBALS['membershipImageIcon'] = XOOPS_URL .'/'. $GLOBALS['xoopsModule']->getInfo('icons16'); + $GLOBALS['membershipImageAdmin'] = XOOPS_URL .'/'. $GLOBALS['xoopsModule']->getInfo('icons32'); + + if ($GLOBALS['xoopsUser']) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['xoopsModule']->getVar( 'mid' ), $GLOBALS['xoopsUser']->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } + } else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); + } + + if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $GLOBALS['xoopsTpl'] = new XoopsTpl(); + } + + $GLOBALS['xoopsTpl']->assign('pathImageIcon', $GLOBALS['membershipImageIcon']); + $GLOBALS['xoopsTpl']->assign('pathImageAdmin', $GLOBALS['membershipImageAdmin']); + +?> \ No newline at end of file Added: XoopsModules/membership/releases/1.09/htdocs/modules/membership/admin/index.html =================================================================== --- XoopsModules/membership/releases/1.09/htdocs/modules/membership/admin/index.html (rev 0) +++ XoopsModules/membership/releases/1.09/htdocs/modules/membership/admin/index.html 2012-04-05 08:21:54 UTC (rev 9283) @@ -0,0 +1,10 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title>Untitled Document</title> +</head> + +<body> +</body> +</html> Added: XoopsModules/membership/releases/1.09/htdocs/modules/membership/admin/index.php =================================================================== --- XoopsModules/membership/releases/1.09/htdocs/modules/membership/admin/index.php (rev 0) +++ XoopsModules/membership/releases/1.09/htdocs/modules/membership/admin/index.php 2012-04-05 08:21:54 UTC (rev 9283) @@ -0,0 +1,231 @@ +<?php +/** + * Invoice Transaction Gateway with Modular Plugin set + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Co-Op http://www.chronolabs.coop/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package xpayment + * @since 1.30.0 + * @author Simon Roberts <si...@ch...> + */ + include('header.php'); + error_reporting(E_ALL); + + $op = (isset($_REQUEST['op']))?strtolower($_REQUEST['op']):'dashboard'; + $fct = (isset($_REQUEST['fct']))?strtolower($_REQUEST['fct']):''; + + xoops_cp_header(); + + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + + xoops_loadLanguage('admin', 'membership'); + + switch($op) { + default: + case 'dashboard': + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation('index.php?op=dashboard'); + + $invoices_handler = xoops_getmodulehandler('invoice', 'xpayment'); + $packages_handler = xoops_getmodulehandler('packages', 'membership'); + $field_handler = xoops_getmodulehandler('field', 'profile'); + + $indexAdmin = new ModuleAdmin(); + $indexAdmin->addInfoBox(_MEM_AM_ADMIN_REQUIREMENTS); + $indexAdmin->addInfoBoxLine(_MEM_AM_ADMIN_REQUIREMENTS, "<label>"._MEM_AM_ADMIN_PROFILE_FIELD."</label>", $GLOBALS['xoopsModuleConfig']['profile_field'], 'Blue'); + $indexAdmin->addInfoBoxLine(_MEM_AM_ADMIN_REQUIREMENTS, "<label>"._MEM_AM_EXISTS_PROFILE_FIELD."</label>", (($i = $field_handler->getCount(new Criteria('field_name', $GLOBALS['xoopsModuleConfig']['profile_field'])))>0?_YES:_NO), ($i>0?'Green':'Red')); + + $indexAdmin->addInfoBox(_MEM_AM_ADMIN_COUNTS); + $criteria = new CriteriaCompo(new Criteria('`mode`', 'UNPAID')); + $criteria->add(new Criteria('plugin', 'membership')); + $indexAdmin->addInfoBoxLine(_MEM_AM_ADMIN_COUNTS, "<label>"._MEM_AM_ADMIN_THEREARE_INVOICES_UNPAID."</label>", $invoices_handler->getCount($criteria), 'Green'); + $criteria = new CriteriaCompo(new Criteria('`mode`', 'PAID')); + $criteria->add(new Criteria('plugin', 'membership')); + $indexAdmin->addInfoBoxLine(_MEM_AM_ADMIN_COUNTS, "<label>"._MEM_AM_ADMIN_THEREARE_INVOICES_PAID."</label>", $invoices_handler->getCount($criteria), 'Green'); + $indexAdmin->addInfoBoxLine(_MEM_AM_ADMIN_COUNTS, "<label>"._MEM_AM_ADMIN_THEREARE_PACKAGES."</label>", $packages_handler->getCount(NULL), 'Orange'); + $indexAdmin->addInfoBoxLine(_MEM_AM_ADMIN_COUNTS, "<label>"._MEM_AM_ADMIN_AMOUNT_INVOICES."</label>", $invoices_handler->getSumByField('grand', '`plugin`', 'membership', array(), 'AND'), 'Purple'); + if ($GLOBALS['xoopsModuleConfig']['crontype']=='preloader') { + $result = XoopsCache::read('membership_core_include_common_end'); + if (isset($result['time'])) + $indexAdmin->addInfoBoxLine(_MEM_AM_ADMIN_COUNTS, "<label>"._MEM_AM_ADMIN_NEXTRUN_PRELOAD."</label>", date(_DATESTRING, $result['time']), 'Blue'); + } + echo $indexAdmin->renderIndex(); + + break; + + case 'about': + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation('index.php?op=about'); + + $paypalitemno='MEMBERSHIP106'; + $aboutAdmin = new ModuleAdmin(); + $about = $aboutAdmin->renderabout($paypalitemno, false); + $donationform = array( 0 => '<form name="donation" id="donation" action="http://www.chronolabs.coop/modules/xpayment/" method="post" onsubmit="return xoopsFormValidate_donation();">', + 1 => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'.constant('_MEM_AM_ABOUT_MAKEDONATE').'</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">Donation Amount</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 AUD</option><option value="10">10.00 AUD</option><option value="20">20.00 AUD</option><option value="40">40.00 AUD</option><option value="60">60.00 AUD</option><option value="80">80.00 AUD</option><option value="90">90.00 AUD</option><option value="100">100.00 AUD</option><option value="200">200.00 AUD</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'._SUBMIT.'" title="'._SUBMIT.'" type="submit"></td></tr></tbody></table>', + 2 => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="AUD" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"></form>', 'D'=>'', + 3 => '', + 4 => '<!-- Start Form Validation JavaScript //--> +<script type="text/javascript"> +<!--// +function xoopsFormValidate_donation() { var myform = window.document.donation; +var hasSelected = false; var selectBox = myform.item[A][amount];for (i = 0; i < selectBox.options.length; i++ ) { if (selectBox.options[i].selected == true && selectBox.options[i].value != \'\') { hasSelected = true; break; } }if (!hasSelected) { window.alert("Please enter Donation Amount"); selectBox.focus(); return false; }return true; +} +//--></script> +<!-- End Form Validation JavaScript //-->'); + $paypalform = array( 0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">', + 1 => '<input name="cmd" value="_s-xclick" type="hidden">', + 2 => '<input name="hosted_button_id" value="%s" type="hidden">', + 3 => '<img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" height="1" border="0" width="1">', + 4 => '<input src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="poster">', + 5 => '</form>'); + for($key=0;$key<=4;$key++) { + switch ($key) { + case 2: + $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'] . ' - ' . (strlen($GLOBALS['xoopsUser']->getVar('name'))>0?$GLOBALS['xoopsUser']->getVar('name'). ' ['.$GLOBALS['xoopsUser']->getVar('uname').']':$GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['xoopsModule']->getVar('dirname')), strtoupper($GLOBALS['xoopsModule']->getVar('dirname')). ' '.$GLOBALS['xoopsModule']->getVar('name')); + break; + } + } + + $istart = strpos($about, ($paypalform[0]), 1); + $iend = strpos($about, ($paypalform[5]), $istart+1)+strlen($paypalform[5])-1; + echo (substr($about, 0, $istart-1)); + echo implode("\n", $donationform); + echo (substr($about, $iend+1, strlen($about)-$iend-1)); + + break; + + case "packages": + switch ($fct) + { + default: + case "list": + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation('index.php?op=packages&fct=list'); + + $packages_handler =& xoops_getmodulehandler('packages', 'membership'); + + $ttl = $packages_handler->getCount(NULL); + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?$_REQUEST['sort']:'weight'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'weight','title','currency','price','period','period_text','groups', 'last', 'purchases') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower($key.'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.$key.'&order='.(($key==$sort)?($order=='ASC'?'DESC':'ASC'):$order).'&op='.$op.'&fct='.$fct.'">'.(defined('_MEM_AM_TH_'.strtoupper($key))?constant('_MEM_AM_TH_'.strtoupper($key)):'_MEM_AM_TH_'.strtoupper($key)).'</a>'); + } + + $criteria = new Criteria('1','1'); + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort($sort); + $criteria->setOrder($order); + + $packages = $packages_handler->getObjects($criteria, true); + foreach($packages as $pid => $package) { + $GLOBALS['xoopsTpl']->append('packages', $package->toArray()); + } + + $GLOBALS['xoopsTpl']->display('db:membership_cpanel_packages_list.html'); + break; + case 'add': + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation('index.php?op=packages&fct=add'); + + $GLOBALS['xoopsTpl']->assign('form', membership_admin_package('0')); + $GLOBALS['xoopsTpl']->assign('pid', 0); + $GLOBALS['xoopsTpl']->display('db:membership_cpanel_packages_edit.html'); + break; + case 'edit': + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation('index.php?op=packages&fct=list'); + + $GLOBALS['xoopsTpl']->assign('form', membership_admin_package($_REQUEST['pid'])); + $GLOBALS['xoopsTpl']->assign('pid', $_REQUEST['pid']); + $GLOBALS['xoopsTpl']->display('db:membership_cpanel_packages_edit.html'); + break; + case 'delete': + if (!isset($_POST['confirm'])) { + xoops_confirm(array('confirm'=>true,'op'=>$op,'fct'=>$fct,'pid'=>$_REQUEST['pid']), $_SERVER['PHP_SELF'], _MEM_AM_MSG_CONFIRM_DELETE); + xoops_cp_footer(); + exit(0); + } + $packages_handler =& xoops_getmodulehandler('packages', 'membership'); + $package = $packages_handler->get($_REQUEST['pid']); + $packages_handler->delete($package); + redirect_header($_SERVER['PHP_SELF'].'?op=packages&fct=list', 3, _MEM_AM_MSG_PACKAGE_DELETED); + exit(0); + break; + case 'save': + $packages_handler =& xoops_getmodulehandler('packages', 'membership'); + foreach($_POST['pid'] as $pid) { + if ($pid!=0) + $package = $packages_handler->get($pid); + else + $package = $packages_handler->create(); + + $package->setVars($_POST[$pid]); + + $packages_handler->insert($package); + } + redirect_header($_SERVER['PHP_SELF'].'?op=packages&fct=list', 3, _MEM_AM_MSG_PACKAGES_SAVED); + break; + } + break; + case 'permissions': + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation('index.php?op=permissions'); + + include_once XOOPS_ROOT_PATH . '/class/xoopsform/grouppermform.php'; + + $module_handler =& xoops_gethandler('module'); + $xoMod = $module_handler->getByDirname('membership'); + + $opform = new XoopsThemeForm(_MEM_AM_PERM_ACTION, 'actionform', 'index.php?op=permissions', "get"); + $op_select = new XoopsFormSelect("", 'action'); + $op_select->setExtra('onchange="document.forms.actionform.submit()"'); + $op_select->addOptionArray(array( + _MEM_MI_PERM_ACCESS=>_MEM_MI_PERM_ACCESS_DESC, + )); + $op_select->setValue((isset($_REQUEST['action'])?$_REQUEST['action']:_MEM_MI_PERM_ACCESS)); + $opform->addElement($op_select); + $opform->display(); + + switch ((isset($_REQUEST['action'])?$_REQUEST['action']:_MEM_MI_PERM_ACCESS)) { + default: + case _MEM_MI_PERM_ACCESS: + + echo " + <fieldset><legend style='font-weight: bold; color: #900;'>"._MEM_AM_PERM_ACCESS_HEADER."</legend>\n + <div style='padding: 2px;'>\n"; + + + $permform = new XoopsGroupPermForm('', $xoMod->getVar('mid'), _MEM_MI_PERM_ACCESS, _MEM_AM_PERM_ACCESS_DESC, '/admin/index.php?op=permissions&action='.(isset($_REQUEST['action'])?$_REQUEST['action']:_MEM_MI_PERM_ACCESS)); + + $packages_handler =& xoops_getmodulehandler('packages', 'membership'); + $packages = $packages_handler->getObjects(NULL, true); + + foreach($packages as $pid => $package) + $permform->addItem($pid, ucfirst($package->getVar('title'))); + + echo $permform->render(); + echo "</div></fieldset><br />"; + unset ($permform); + break; + } + break; + } + + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/membership/releases/1.09/htdocs/modules/membership/admin/menu.php =================================================================== --- XoopsModules/membership/releases/1.09/htdocs/modules/membership/admin/menu.php (rev 0) +++ XoopsModules/membership/releases/1.09/htdocs/modules/membership/admin/menu.php 2012-04-05 08:21:54 UTC (rev 9283) @@ -0,0 +1,25 @@ +<?php +global $adminmenu; +$adminmenu=array(); +$adminmenu[0]['title'] = _MEM_MI_ADMENU0; +$adminmenu[0]['icon'] = '../../Frameworks/moduleclasses/icons/32/home.png'; +$adminmenu[0]['image'] = '../../Frameworks/moduleclasses/icons/32/home.png'; +$adminmenu[0]['link'] = "admin/index.php?op=dashboard"; +$adminmenu[1]['title'] = _MEM_MI_ADMENU1; +$adminmenu[1]['icon'] = 'images/packages.png'; +$adminmenu[1]['image'] = 'images/packages.png'; +$adminmenu[1]['link'] = "admin/index.php?op=packages&fct=list"; +$adminmenu[2]['title'] = _MEM_MI_ADMENU2; +$adminmenu[2]['icon'] = 'images/add.packages.png'; +$adminmenu[2]['image'] = 'images/add.packages.png'; +$adminmenu[2]['link'] = "admin/index.php?op=packages&fct=add"; +$adminmenu[3]['title'] = _MEM_MI_ADMENU3; +$adminmenu[3]['icon'] = 'images/permissions.png'; +$adminmenu[3]['image'] = 'images/permissions.png'; +$adminmenu[3]['link'] = "admin/index.php?op=permissions"; +$adminmenu[4]['title'] = _MEM_MI_ADMENU4; +$adminmenu[4]['icon'] = '../../Frameworks/moduleclasses/icons/32/about.png'; +$adminmenu[4]['image'] = '../../Frameworks/moduleclasses/icons/32/about.png'; +$adminmenu[4]['link'] = "admin/index.php?op=about"; + +?> \ No newline at end of file Added: XoopsModules/membership/releases/1.09/htdocs/modules/membership/class/index.html =================================================================== --- XoopsModules/membership/releases/1.09/htdocs/modules/membership/class/index.html (rev 0) +++ XoopsModules/membership/releases/1.09/htdocs/modules/membership/class/index.html 2012-04-05 08:21:54 UTC (rev 9283) @@ -0,0 +1,10 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title>Untitled Document</title> +</head> + +<body> +</body> +</html> Added: XoopsModules/membership/releases/1.09/htdocs/modules/membership/class/packages.php =================================================================== --- XoopsModules/membership/releases/1.09/htdocs/modules/membership/class/packages.php (rev 0) +++ XoopsModules/membership/releases/1.09/htdocs/modules/membership/class/packages.php 2012-04-05 08:21:54 UTC (rev 9283) @@ -0,0 +1,124 @@ +<?php +/** + * Invoice Transaction Gateway with Modular Plugin set + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Co-Op http://www.chronolabs.coop/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package xpayment + * @since 1.30.0 + * @author Simon Roberts <si...@ch...> + *//* +Module: Xcenter + +Version: 2.01 + +Description: Multilingual Content Module with tags and lists with search functions + +Author: Written by Simon Roberts aka. Wishcraft (si...@ch...) + +Owner: Chronolabs + +License: See /docs - GPL 2.0 +*/ + + + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +/** + * Class for Blue Room Xcenter + * @author Simon Roberts <si...@xo...> + * @copyright copyright (c) 2009-2003 XOOPS.org + * @package kernel + */ +class MembershipPackages extends XoopsObject +{ + + function MembershipPackages($id = null) + { + $this->initVar('pid', XOBJ_DTYPE_INT, null, false); + $this->initVar('weight', XOBJ_DTYPE_INT, 1, false); + $this->initVar('title', XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar('description', XOBJ_DTYPE_OTHER, null, false, 5000); + $this->initVar('currency', XOBJ_DTYPE_TXTBOX, 'AUD', false, 3); + $this->initVar('price', XOBJ_DTYPE_DECIMAL, null, false); + $this->initVar('period', XOBJ_DTYPE_INT, 31536000, false); + $this->initVar('period_text', XOBJ_DTYPE_TXTBOX, '1 Year', false, 128); + $this->initVar('groups', XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('updated', XOBJ_DTYPE_INT, 0, false); + $this->initVar('last', XOBJ_DTYPE_INT, 0, false); + $this->initVar('purchases', XOBJ_DTYPE_INT, 0, false); + + } + + function toArray() { + + $ret = parent::toArray(); + + xoops_load('XoopsFormLoader'); + $formobj=array(); + $formobj['pid'] = new XoopsFormHidden('pid['.$this->getVar('pid').']', $this->getVar('pid')); + $formobj['weight'] = new XoopsFormText('', $this->getVar('pid').'[weight]', 4, 5, $this->getVar('weight')); + $formobj['title'] = new XoopsFormText('', $this->getVar('pid').'[title]', 30, 128, $this->getVar('title')); + $formobj['currency'] = new XoopsFormText('', $this->getVar('pid').'[currency]', 3, 3, $this->getVar('currency')); + $formobj['price'] = new XoopsFormText('', $this->getVar('pid').'[price]', 10, 11, $this->getVar('price')); + $formobj['period'] = new XoopsFormText('', $this->getVar('pid').'[period]', 10, 20, $this->getVar('period')); + $formobj['period_text'] = new XoopsFormText('', $this->getVar('pid').'[period_text]', 10, 128, $this->getVar('period_text')); + $formobj['groups'] = new XoopsFormSelectGroup('', $this->getVar('pid').'[groups]', false, $this->getVar('groups'), 5, true); + + foreach(array_keys($formobj) as $id) + $ret['form'][$id] = $formobj[$id]->render(); + + $ret['description'] = $this->getVar('description'); + + $ret['created_datetime'] = date(_DATESTRING, $this->getVar('created')); + $ret['updated_datetime'] = date(_DATESTRING, $this->getVar('updated')); + $ret['last_datetime'] = date(_DATESTRING, $this->getVar('last')); + + if (is_object($GLOBALS['xoopsUser'])) + $ret['user'] = $GLOBALS['xoopsUser']->toArray(); + + return $ret; + } + +} + + +/** +* XOOPS policies handler class. +* This class is responsible for providing data access mechanisms to the data source +* of XOOPS user class objects. +* +* @author Simon Roberts <si...@ch...> +* @package kernel +*/ +class MembershipPackagesHandler extends XoopsPersistableObjectHandler +{ + function __construct(&$db) + { + $this->db = $db; + parent::__construct($db, 'membership_packages', 'MembershipPackages', "pid", "title"); + } + + function insert($object, $force = true) + { + if ($object->isNew()) + $object->setVar('created', time()); + else + $object->setVar('updated', time()); + + return parent::insert($object, $force); + } + +} + +?> \ No newline at end of file Added: XoopsModules/membership/releases/1.09/htdocs/modules/membership/cron/expire.php =================================================================== --- XoopsModules/membership/releases/1.09/htdocs/modules/membership/cron/expire.php (rev 0) +++ XoopsModules/membership/releases/1.09/htdocs/modules/membership/cron/expire.php 2012-04-05 08:21:54 UTC (rev 9283) @@ -0,0 +1,45 @@ +<?php + include('../header.php'); + + xoops_loadLanguage('cron', 'membership'); + + $module_handler =& xoops_gethandler('module'); + $config_handler =& xoops_gethandler('config'); + $user_handler =& xoops_gethandler('user'); + + $xoMod = $module_handler->getByDirname('membership'); + if (is_object($xoMod)) { + $xoConfig = $config_handler->getConfigList($xoMod->getVar('mid')); + if ($xoMod->getVar('isactive')) { + $sql = "SELECT DISTINCT a.profile_id as uid FROM ".$GLOBALS['xoopsDB']->prefix('profile_profile')." a INNER JOIN ".$GLOBALS['xoopsDB']->prefix('groups_users_link')." b ON a.profile_id = b.uid WHERE b.groupid IN (".implode(',', $xoConfig['remove_groups']).") AND a.".$xoConfig['profile_field']." < ".time(); + + $result = $GLOBALS['xoopsDB']->queryF($sql); + + while ($row = $GLOBALS['xoopsDB']->fetchArray($result)) { + + $sql = "DELETE FROM ".$GLOBALS['xoopsDB']->prefix('groups_users_link')." WHERE groupid IN (".implode(',', $xoConfig['remove_groups']).") AND uid = ".$row['uid']; + $GLOBALS['xoopsDB']->queryF($sql); + + $sql = "INSERT INTO ".$GLOBALS['xoopsDB']->prefix('groups_users_link')." (groupid, uid) VALUE(".$xoConfig['expired_group'].",".$row['uid'].")"; + $GLOBALS['xoopsDB']->queryF($sql); + + $user = $user_handler->get($row['uid']); + + $xoopsMailer =& getMailer(); + $xoopsMailer->setTemplateDir($GLOBALS['xoops']->path('/modules/xpayment/membership/'.$GLOBALS['xoopsConfig']['language'].'/mail_templates/')); + $xoopsMailer->setTemplate('membership_expired.tpl'); + $xoopsMailer->setSubject(sprintf(_MEM_EMAIL_EXPIRED_SUBJECT, $user->getVar('uname'), date(_DATESTRING, $user->getVar('last_login')))); + + $xoopsMailer->setToEmails($user->getVar('email')); + + $xoopsMailer->assign("SITEURL", XOOPS_URL); + $xoopsMailer->assign("SITENAME", $GLOBALS['xoopsConfig']['sitename']); + $xoopsMailer->assign("MEMBERSHIPURL", XOOPS_URL.'/modules/membership/'); + + if(!$xoopsMailer->send() ){ + xoops_error($xoopsMailer->getErrors(true), 'Email Send Error'); + } + } + } + } +?> \ No newline at end of file Added: XoopsModules/membership/releases/1.09/htdocs/modules/membership/cron/index.html =================================================================== --- XoopsModules/membership/releases/1.09/htdocs/modules/membership/cron/index.html (rev 0) +++ XoopsModules/membership/releases/1.09/htdocs/modules/membership/cron/index.html 2012-04-05 08:21:54 UTC (rev 9283) @@ -0,0 +1,10 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<title>Untitled Document</title> +</head> + +<body> +</body> +</html> Added: XoopsModules/membership/releases/1.09/htdocs/modules/membership/docs/changelog.txt =================================================================== --- XoopsModules/membership/releases/1.09/htdocs/modules/membership/docs/changelog.txt (rev 0) +++ XoopsModules/membership/releases/1.09/htdocs/modules/membership/docs/changelog.txt 2012-04-05 08:21:54 UTC (rev 9283) @@ -0,0 +1,12 @@ +Version 1.09 STABLE +------------------- + - changed admin/header.php Support for XOOPS 2.5 GUI (wishcraft) + - changed admin/index.php Support for XOOPS 2.5 GUI, Dashboard & About added (wishcraft) + - changed admin/menu.php Dashboard & About added (wishcraft) + - changed class/packages.php Changed `description` to XOBJ_DTYPE_OTHER (wishcraft) + - changed language/english/modinfo.php Preloader/Cron added to preferences (wishcraft) + - changed language/english/admin.php Dashboard & About added (wishcraft) + - changed xoops_version.php XOOPS 2.5 Gui Variables, system menu, Cron Type & Interval preferences (wishcraft) + - added preloads/core.php Preload firing of Cron Added (wishcraft) + - added docs/changelog.txt Change log Added (wishcraft) + - added docs/licence.txt Licence Added (wishcraft) Added: XoopsModules/membership/releases/1.09/htdocs/modules/membership/docs/licence.txt =================================================================== --- XoopsModules/membership/releases/1.09/htdocs/modules/membership/docs/licence.txt (rev 0) +++ XoopsModules/membership/releases/1.09/htdocs/modules/membership/docs/licence.txt 2012-04-05 08:21:54 UTC (rev 9283) @@ -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; an... [truncated message content] |
From: <wis...@us...> - 2012-04-05 00:49:04
|
Revision: 9282 http://xoops.svn.sourceforge.net/xoops/?rev=9282&view=rev Author: wishcraft Date: 2012-04-05 00:48:56 +0000 (Thu, 05 Apr 2012) Log Message: ----------- Karioki Song List 1.10 - complete third release - production - All Listed bugs by the client fixed. (wishcraft's errors) Modified Paths: -------------- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/field.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/songs.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/songs.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/include/songlist.form.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_album.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_albums.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_artist.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_artists.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_genre.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_genres.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_song.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_songs.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_songs_item.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_songs_list.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/xoops_version.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/field.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/songs.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php XoopsModules/songlist/trunk/htdocs/modules/songlist/include/songlist.form.php XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_album.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_albums.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_artist.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_artists.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_genre.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_genres.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_song.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_songs.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_item.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/xoops_version.php Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/field.php =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/field.php 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/field.php 2012-04-05 00:48:56 UTC (rev 9282) @@ -70,15 +70,15 @@ $fields[$i]['canDelete'] = $fields[$i]['field_config']; $fields[$i]['fieldtype'] = $fieldtypes[$fields[$i]['field_type']]; $fields[$i]['valuetype'] = $valuetypes[$fields[$i]['field_valuetype']]; - $categories[$i][] = $fields[$i]; + $fieldcategories[$i][] = $fields[$i]; $weights[$i] = $fields[$i]['field_weight']; } //sort fields order in categories foreach (array_keys($fields) as $i ) { - array_multisort($weights[$i], SORT_ASC, array_keys($categories[$i]), SORT_ASC, $categories[$i]); + array_multisort($weights[$i], SORT_ASC, array_keys($fieldcategories[$i]), SORT_ASC, $categories[$i]); } ksort($categories); - $GLOBALS['xoopsTpl']->assign('fieldcategories', $categories); + $GLOBALS['xoopsTpl']->assign('fieldcategories', $fieldcategories); $GLOBALS['xoopsTpl']->assign('token', $GLOBALS['xoopsSecurity']->getTokenHTML() ); $template_main = "songlist_cpanel_fieldlist.html"; break; Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/songs.php =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/songs.php 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/songs.php 2012-04-05 00:48:56 UTC (rev 9282) @@ -100,7 +100,7 @@ if ($GLOBALS['songlistModuleConfig']['tag']&&file_exists(XOOPS_ROOT_PATH . '/modules/tag/class/tag.php')) { $tag_handler = xoops_getmodulehandler('tag', 'tag'); - $tag_handler->updateByItem($_POST['tags'], $id, $GLOBALS['songlistModule']->getVar("dirname")); + $tag_handler->updateByItem($_POST['tags'], $id, $GLOBALS['songlistModule']->getVar("mid"), $songs->getVar('cid')); } redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_SONGS_FAILEDTOSAVE); Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/songs.php =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/songs.php 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/songs.php 2012-04-05 00:48:56 UTC (rev 9282) @@ -35,6 +35,8 @@ function toArray($extra = true) { $ret = parent::toArray(); + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); + $ret['lyrics'] = $GLOBALS['myts']->displayTarea($this->getVar('lyrics'), true, true, true, true, true); $form = $this->getForm(true); @@ -54,7 +56,7 @@ if (file_exists($GLOBALS['xoops']->path("/modules/tag/include/tagbar.php"))&&$GLOBALS['songlistModuleConfig']['tags']) { include_once XOOPS_ROOT_PATH."/modules/tag/include/tagbar.php"; - $ret['tagbar'] = tagBar($this->getVar('sid'), $catid = 0); + $ret['tagbar'] = tagBar($this->getVar('sid'), $this->getVar('cid'), $GLOBALS['songlistModule']->getVar('mid')); } $extras_handler = xoops_getmodulehandler('extras', 'songlist'); @@ -129,6 +131,11 @@ { function __construct(&$db) { + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['songlistModule'] = $module_handler->getByDirname('songlist'); + $GLOBALS['songlistModuleConfig'] = $config_handler->getConfigList($GLOBALS['songlistModule']->getVar('mid')); + parent::__construct($db, "songlist_songs", 'SonglistSongs', "sid", "title"); } Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/include/songlist.form.php =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/include/songlist.form.php 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/include/songlist.form.php 2012-04-05 00:48:56 UTC (rev 9282) @@ -996,7 +996,7 @@ if (!class_exists('XoopsFormTag')) { $ele['tags'] = new XoopsFormHidden('tags', $object->getVar('tags')); } else { - $ele['tags'] = new XoopsFormTag('tags', 60, 255, $object->getVar('sid')); + $ele['tags'] = new XoopsFormTag('tags', 60, 255, $object->getVar('sid'), $object->getVar('cid')); } $ele['hits'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_SONGS_HITS:''), $object->getVar('hits')); Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_album.html =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_album.html 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_album.html 2012-04-05 00:48:56 UTC (rev 9282) @@ -6,18 +6,18 @@ <{$block.name}> <{/if}> </div> - <{if count($block.categories)>0}> + <{if count($block.categories_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_CATEGORIES}> + <{$smarty.const._BL_SONGLIST_CATEGORIES}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.categories key=number item=category}> - <{$category.name}><{if $number<sizeof($block.categories)-1}>, <{/if}> + <{foreach from=$block.categories_array key=number item=category}> + <{$category.name}><{if $number<sizeof($block.categories_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif $block.category}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_CATEGORY}> + <{$smarty.const._BL_SONGLIST_CATEGORY}> </div> <div style='font-size:0.65em; clear:both;'> <{$block.category.title}> @@ -25,7 +25,7 @@ <{/if}> <{if count($block.genres)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_GENRES}> + <{$smarty.const._BL_SONGLIST_GENRES}> </div> <div style='font-size:0.65em; clear:both;'> <{foreach from=$block.genres key=number item=genre}> @@ -34,58 +34,58 @@ </div> <{elseif $block.genre}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_GENRE}> + <{$smarty.const._BL_SONGLIST_GENRE}> </div> <div style='font-size:0.65em; clear:both;'> <{$block.genre.name}></a> </div> <{/if}> - <{if count($block.artists)>0}> + <{if count($block.artists_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ARTISTS}> + <{$smarty.const._BL_SONGLIST_ARTISTS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.artists key=number item=artist}> - <a href="<{$artist.url}>"><{$artist.name}></a><{if $number<sizeof($block.artists)-1}>, <{/if}> + <{foreach from=$block.artists_array key=number item=artist}> + <a href="<{$artist.url}>"><{$artist.name}></a><{if $number<sizeof($block.artists_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.artist)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ARTIST}> + <{$smarty.const._BL_SONGLIST_ARTIST}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.artist.url}>"><{$block.artist.title}></a> </div> <{/if}> - <{if count($block.albums)>0}> + <{if count($block.albums_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ALBUMS}> + <{$smarty.const._BL_SONGLIST_ALBUMS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.albums key=number item=album}> - <a href="<{$album.url}>"><{$album.title}></a><{if $number<sizeof($block.albums)-1}>, <{/if}> + <{foreach from=$block.albums_array key=number item=album}> + <a href="<{$album.url}>"><{$album.title}></a><{if $number<sizeof($block.albums_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.album)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ALBUM}> + <{$smarty.const._BL_SONGLIST_ALBUM}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.album.url}>"><{$block.album.title}></a> </div> <{/if}> - <{if count($block.songs)>0}> + <{if count($block.songs_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_SONGS}> + <{$smarty.const._BL_SONGLIST_SONGS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.songs key=number item=song}> - <a href="<{$song.url}>"><{$song.title}></a><{if $number<sizeof($block.songs)-1}>, <{/if}> + <{foreach from=$block.songs_array key=number item=song}> + <a href="<{$song.url}>"><{$song.title}></a><{if $number<sizeof($block.songs_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.song)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_SONG}> + <{$smarty.const._BL_SONGLIST_SONG}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.song.url}>"><{$block.song.title}></a> Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_albums.html =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_albums.html 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_albums.html 2012-04-05 00:48:56 UTC (rev 9282) @@ -1,4 +1,5 @@ <{if $block}> +<{assign var=topno value=0}> <{foreach from=$block item=item}> <{assign var=topno value=$topno+1}> <div style='display:block; margin-bottom:4px; clear:both;'> Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_artist.html =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_artist.html 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_artist.html 2012-04-05 00:48:56 UTC (rev 9282) @@ -6,18 +6,18 @@ <{$block.name}> <{/if}> </div> - <{if count($block.categories)>0}> + <{if count($block.categories_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_CATEGORIES}> + <{$smarty.const._BL_SONGLIST_CATEGORIES}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.categories key=number item=category}> - <{$category.name}><{if $number<sizeof($block.categories)-1}>, <{/if}> + <{foreach from=$block.categories_array key=number item=category}> + <{$category.name}><{if $number<sizeof($block.categories_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif $block.category}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_CATEGORY}> + <{$smarty.const._BL_SONGLIST_CATEGORY}> </div> <div style='font-size:0.65em; clear:both;'> <{$block.category.title}> @@ -25,7 +25,7 @@ <{/if}> <{if count($block.genres)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_GENRES}> + <{$smarty.const._BL_SONGLIST_GENRES}> </div> <div style='font-size:0.65em; clear:both;'> <{foreach from=$block.genres key=number item=genre}> @@ -34,58 +34,58 @@ </div> <{elseif $block.genre}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_GENRE}> + <{$smarty.const._BL_SONGLIST_GENRE}> </div> <div style='font-size:0.65em; clear:both;'> <{$block.genre.name}></a> </div> <{/if}> - <{if count($block.artists)>0}> + <{if count($block.artists_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ARTISTS}> + <{$smarty.const._BL_SONGLIST_ARTISTS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.artists key=number item=artist}> - <a href="<{$artist.url}>"><{$artist.name}></a><{if $number<sizeof($block.artists)-1}>, <{/if}> + <{foreach from=$block.artists_array key=number item=artist}> + <a href="<{$artist.url}>"><{$artist.name}></a><{if $number<sizeof($block.artists_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.artist)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ARTIST}> + <{$smarty.const._BL_SONGLIST_ARTIST}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.artist.url}>"><{$block.artist.title}></a> </div> <{/if}> - <{if count($block.albums)>0}> + <{if count($block.albums_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ALBUMS}> + <{$smarty.const._BL_SONGLIST_ALBUMS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.albums key=number item=album}> - <a href="<{$album.url}>"><{$album.title}></a><{if $number<sizeof($block.albums)-1}>, <{/if}> + <{foreach from=$block.albums_array key=number item=album}> + <a href="<{$album.url}>"><{$album.title}></a><{if $number<sizeof($block.albums_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.album)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ALBUM}> + <{$smarty.const._BL_SONGLIST_ALBUM}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.album.url}>"><{$block.album.title}></a> </div> <{/if}> - <{if count($block.songs)>0}> + <{if count($block.songs_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_SONGS}> + <{$smarty.const._BL_SONGLIST_SONGS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.songs key=number item=song}> - <a href="<{$song.url}>"><{$song.title}></a><{if $number<sizeof($block.songs)-1}>, <{/if}> + <{foreach from=$block.songs_array key=number item=song}> + <a href="<{$song.url}>"><{$song.title}></a><{if $number<sizeof($block.songs_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.song)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_SONG}> + <{$smarty.const._BL_SONGLIST_SONG}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.song.url}>"><{$block.song.title}></a> Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_artists.html =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_artists.html 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_artists.html 2012-04-05 00:48:56 UTC (rev 9282) @@ -1,4 +1,5 @@ <{if $block}> +<{assign var=topno value=0}> <{foreach from=$block item=item}> <{assign var=topno value=$topno+1}> <div style='display:block; margin-bottom:4px; clear:both;'> Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_genre.html =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_genre.html 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_genre.html 2012-04-05 00:48:56 UTC (rev 9282) @@ -6,18 +6,18 @@ <{$block.name}> <{/if}> </div> - <{if count($block.categories)>0}> + <{if count($block.categories_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_CATEGORIES}> + <{$smarty.const._BL_SONGLIST_CATEGORIES}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.categories key=number item=category}> - <{$category.name}><{if $number<sizeof($block.categories)-1}>, <{/if}> + <{foreach from=$block.categories_array key=number item=category}> + <{$category.name}><{if $number<sizeof($block.categories_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif $block.category}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_CATEGORY}> + <{$smarty.const._BL_SONGLIST_CATEGORY}> </div> <div style='font-size:0.65em; clear:both;'> <{$block.category.title}> @@ -25,7 +25,7 @@ <{/if}> <{if count($block.genres)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_GENRES}> + <{$smarty.const._BL_SONGLIST_GENRES}> </div> <div style='font-size:0.65em; clear:both;'> <{foreach from=$block.genres key=number item=genre}> @@ -34,58 +34,58 @@ </div> <{elseif $block.genre}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_GENRE}> + <{$smarty.const._BL_SONGLIST_GENRE}> </div> <div style='font-size:0.65em; clear:both;'> <{$block.genre.name}></a> </div> <{/if}> - <{if count($block.artists)>0}> + <{if count($block.artists_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ARTISTS}> + <{$smarty.const._BL_SONGLIST_ARTISTS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.artists key=number item=artist}> - <a href="<{$artist.url}>"><{$artist.name}></a><{if $number<sizeof($block.artists)-1}>, <{/if}> + <{foreach from=$block.artists_array key=number item=artist}> + <a href="<{$artist.url}>"><{$artist.name}></a><{if $number<sizeof($block.artists_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.artist)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ARTIST}> + <{$smarty.const._BL_SONGLIST_ARTIST}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.artist.url}>"><{$block.artist.title}></a> </div> <{/if}> - <{if count($block.albums)>0}> + <{if count($block.albums_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ALBUMS}> + <{$smarty.const._BL_SONGLIST_ALBUMS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.albums key=number item=album}> - <a href="<{$album.url}>"><{$album.title}></a><{if $number<sizeof($block.albums)-1}>, <{/if}> + <{foreach from=$block.albums_array key=number item=album}> + <a href="<{$album.url}>"><{$album.title}></a><{if $number<sizeof($block.albums_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.album)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ALBUM}> + <{$smarty.const._BL_SONGLIST_ALBUM}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.album.url}>"><{$block.album.title}></a> </div> <{/if}> - <{if count($block.songs)>0}> + <{if count($block.songs_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_SONGS}> + <{$smarty.const._BL_SONGLIST_SONGS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.songs key=number item=song}> - <a href="<{$song.url}>"><{$song.title}></a><{if $number<sizeof($block.songs)-1}>, <{/if}> + <{foreach from=$block.songs_array key=number item=song}> + <a href="<{$song.url}>"><{$song.title}></a><{if $number<sizeof($block.songs_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.song)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_SONG}> + <{$smarty.const._BL_SONGLIST_SONG}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.song.url}>"><{$block.song.title}></a> Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_genres.html =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_genres.html 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_genres.html 2012-04-05 00:48:56 UTC (rev 9282) @@ -1,4 +1,5 @@ <{if $block}> +<{assign var=topno value=0}> <{foreach from=$block item=item}> <{assign var=topno value=$topno+1}> <div style='display:block; margin-bottom:4px; clear:both;'> Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_song.html =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_song.html 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_song.html 2012-04-05 00:48:56 UTC (rev 9282) @@ -6,18 +6,18 @@ <{$block.name}> <{/if}> </div> - <{if count($block.categories)>0}> + <{if count($block.categories_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_CATEGORIES}> + <{$smarty.const._BL_SONGLIST_CATEGORIES}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.categories key=number item=category}> - <{$category.name}><{if $number<sizeof($block.categories)-1}>, <{/if}> + <{foreach from=$block.categories_array key=number item=category}> + <{$category.name}><{if $number<sizeof($block.categories_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif $block.category}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_CATEGORY}> + <{$smarty.const._BL_SONGLIST_CATEGORY}> </div> <div style='font-size:0.65em; clear:both;'> <{$block.category.title}> @@ -25,7 +25,7 @@ <{/if}> <{if count($block.genres)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_GENRES}> + <{$smarty.const._BL_SONGLIST_GENRES}> </div> <div style='font-size:0.65em; clear:both;'> <{foreach from=$block.genres key=number item=genre}> @@ -34,58 +34,58 @@ </div> <{elseif $block.genre}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_GENRE}> + <{$smarty.const._BL_SONGLIST_GENRE}> </div> <div style='font-size:0.65em; clear:both;'> <{$block.genre.name}></a> </div> <{/if}> - <{if count($block.artists)>0}> + <{if count($block.artists_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ARTISTS}> + <{$smarty.const._BL_SONGLIST_ARTISTS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.artists key=number item=artist}> - <a href="<{$artist.url}>"><{$artist.name}></a><{if $number<sizeof($block.artists)-1}>, <{/if}> + <{foreach from=$block.artists_array key=number item=artist}> + <a href="<{$artist.url}>"><{$artist.name}></a><{if $number<sizeof($block.artists_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.artist)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ARTIST}> + <{$smarty.const._BL_SONGLIST_ARTIST}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.artist.url}>"><{$block.artist.title}></a> </div> <{/if}> - <{if count($block.albums)>0}> + <{if count($block.albums_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ALBUMS}> + <{$smarty.const._BL_SONGLIST_ALBUMS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.albums key=number item=album}> - <a href="<{$album.url}>"><{$album.title}></a><{if $number<sizeof($block.albums)-1}>, <{/if}> + <{foreach from=$block.albums_array key=number item=album}> + <a href="<{$album.url}>"><{$album.title}></a><{if $number<sizeof($block.albums_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.album)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ALBUM}> + <{$smarty.const._BL_SONGLIST_ALBUM}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.album.url}>"><{$block.album.title}></a> </div> <{/if}> - <{if count($block.songs)>0}> + <{if count($block.songs_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_SONGS}> + <{$smarty.const._BL_SONGLIST_SONGS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.songs key=number item=song}> - <a href="<{$song.url}>"><{$song.title}></a><{if $number<sizeof($block.songs)-1}>, <{/if}> + <{foreach from=$block.songs_array key=number item=song}> + <a href="<{$song.url}>"><{$song.title}></a><{if $number<sizeof($block.songs_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.song)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_SONG}> + <{$smarty.const._BL_SONGLIST_SONG}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.song.url}>"><{$block.song.title}></a> Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_songs.html =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_songs.html 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/blocks/songlist_popular_songs.html 2012-04-05 00:48:56 UTC (rev 9282) @@ -1,4 +1,5 @@ <{if $block}> +<{assign var=topno value=0}> <{foreach from=$block item=item}> <{assign var=topno value=$topno+1}> <div style='display:block; margin-bottom:4px; clear:both;'> Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_songs_item.html =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_songs_item.html 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_songs_item.html 2012-04-05 00:48:56 UTC (rev 9282) @@ -66,7 +66,7 @@ <{$smarty.const._MN_SONGLIST_TAGS}> </div> <div class="sl_mainsong"> - <{include file="db:tag_bar.html" tagbar=$song.tagbar}> + <{includeq file="db:tag_bar.html" tagbar=$song.tagbar}> </div> <{/if}> <div class="sl_subtitle"> Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_songs_list.html =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_songs_list.html 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_songs_list.html 2012-04-05 00:48:56 UTC (rev 9282) @@ -52,7 +52,7 @@ <{/if}> <{/if}> <{if $xoConfig.tags}> - <td><{include file="db:tag_bar.html" tagbar=$result.tagbar}></a></td> + <td><{includeq file="db:tag_bar.html" tagbar=$result.tagbar}></a></td> <{/if}> <td><form action="<{$xoops_url}>/modules/songlist/index.php" method='post'> <input type="hidden" name='id' value='<{$result.sid}>'/> Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/xoops_version.php =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/xoops_version.php 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/xoops_version.php 2012-04-05 00:48:56 UTC (rev 9282) @@ -12,12 +12,12 @@ $modversion['name'] = _MI_SONGLIST_NAME; $modversion['version'] = 1.10; $modversion['description'] = _MI_SONGLIST_DESC; -$modversion['credits'] = "Orginally Based on Newbb by phppp - adaption by (wishcraft)"; +$modversion['credits'] = "Orginally Written by wishcraft, Testing Phil and Michael Beck"; $modversion['author'] = "Simon Roberts (wishcraft)"; $modversion['license'] = "GNU General Public License (GPL) see LICENSE"; $modversion['image'] = "images/songlist_slogo.png"; $modversion['dirname'] = "songlist"; -$modversion['releasedate'] = "Sunday, 27th March 03, 2012"; +$modversion['releasedate'] = "Thursday, 05th April, 2012"; $modversion['module_status'] = "Stable"; $modversion['website'] = "www.chronolabs.coop"; @@ -25,9 +25,9 @@ $modversion['icons16'] = 'Frameworks/moduleclasses/icons/16'; $modversion['icons32'] = 'Frameworks/moduleclasses/icons/32'; -$modversion['release_info'] = "Stable 2012/03/27"; +$modversion['release_info'] = "Stable 2012/04/05"; $modversion['release_file'] = XOOPS_URL."/modules/xforum/docs/changelog.txt"; -$modversion['release_date'] = "2012/03/27"; +$modversion['release_date'] = "2012/04/05"; $modversion['author_realname'] = "Wishcraft"; $modversion['author_website_url'] = "http://www.chronolabs.coop"; Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/field.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/field.php 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/field.php 2012-04-05 00:48:56 UTC (rev 9282) @@ -70,15 +70,15 @@ $fields[$i]['canDelete'] = $fields[$i]['field_config']; $fields[$i]['fieldtype'] = $fieldtypes[$fields[$i]['field_type']]; $fields[$i]['valuetype'] = $valuetypes[$fields[$i]['field_valuetype']]; - $categories[$i][] = $fields[$i]; + $fieldcategories[$i][] = $fields[$i]; $weights[$i] = $fields[$i]['field_weight']; } //sort fields order in categories foreach (array_keys($fields) as $i ) { - array_multisort($weights[$i], SORT_ASC, array_keys($categories[$i]), SORT_ASC, $categories[$i]); + array_multisort($weights[$i], SORT_ASC, array_keys($fieldcategories[$i]), SORT_ASC, $categories[$i]); } ksort($categories); - $GLOBALS['xoopsTpl']->assign('fieldcategories', $categories); + $GLOBALS['xoopsTpl']->assign('fieldcategories', $fieldcategories); $GLOBALS['xoopsTpl']->assign('token', $GLOBALS['xoopsSecurity']->getTokenHTML() ); $template_main = "songlist_cpanel_fieldlist.html"; break; Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/songs.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/songs.php 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/songs.php 2012-04-05 00:48:56 UTC (rev 9282) @@ -100,7 +100,7 @@ if ($GLOBALS['songlistModuleConfig']['tag']&&file_exists(XOOPS_ROOT_PATH . '/modules/tag/class/tag.php')) { $tag_handler = xoops_getmodulehandler('tag', 'tag'); - $tag_handler->updateByItem($_POST['tags'], $id, $GLOBALS['songlistModule']->getVar("dirname")); + $tag_handler->updateByItem($_POST['tags'], $id, $GLOBALS['songlistModule']->getVar("mid"), $songs->getVar('cid')); } redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_SONGLIST_MSG_SONGS_FAILEDTOSAVE); Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php 2012-04-05 00:48:56 UTC (rev 9282) @@ -35,6 +35,8 @@ function toArray($extra = true) { $ret = parent::toArray(); + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); + $ret['lyrics'] = $GLOBALS['myts']->displayTarea($this->getVar('lyrics'), true, true, true, true, true); $form = $this->getForm(true); @@ -54,7 +56,7 @@ if (file_exists($GLOBALS['xoops']->path("/modules/tag/include/tagbar.php"))&&$GLOBALS['songlistModuleConfig']['tags']) { include_once XOOPS_ROOT_PATH."/modules/tag/include/tagbar.php"; - $ret['tagbar'] = tagBar($this->getVar('sid'), $catid = 0); + $ret['tagbar'] = tagBar($this->getVar('sid'), $this->getVar('cid'), $GLOBALS['songlistModule']->getVar('mid')); } $extras_handler = xoops_getmodulehandler('extras', 'songlist'); @@ -129,6 +131,11 @@ { function __construct(&$db) { + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['songlistModule'] = $module_handler->getByDirname('songlist'); + $GLOBALS['songlistModuleConfig'] = $config_handler->getConfigList($GLOBALS['songlistModule']->getVar('mid')); + parent::__construct($db, "songlist_songs", 'SonglistSongs', "sid", "title"); } Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/include/songlist.form.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/include/songlist.form.php 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/include/songlist.form.php 2012-04-05 00:48:56 UTC (rev 9282) @@ -996,7 +996,7 @@ if (!class_exists('XoopsFormTag')) { $ele['tags'] = new XoopsFormHidden('tags', $object->getVar('tags')); } else { - $ele['tags'] = new XoopsFormTag('tags', 60, 255, $object->getVar('sid')); + $ele['tags'] = new XoopsFormTag('tags', 60, 255, $object->getVar('sid'), $object->getVar('cid')); } $ele['hits'] = new XoopsFormLabel(($as_array==false?_FRM_SONGLIST_FORM_SONGS_HITS:''), $object->getVar('hits')); Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_album.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_album.html 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_album.html 2012-04-05 00:48:56 UTC (rev 9282) @@ -6,18 +6,18 @@ <{$block.name}> <{/if}> </div> - <{if count($block.categories)>0}> + <{if count($block.categories_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_CATEGORIES}> + <{$smarty.const._BL_SONGLIST_CATEGORIES}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.categories key=number item=category}> - <{$category.name}><{if $number<sizeof($block.categories)-1}>, <{/if}> + <{foreach from=$block.categories_array key=number item=category}> + <{$category.name}><{if $number<sizeof($block.categories_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif $block.category}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_CATEGORY}> + <{$smarty.const._BL_SONGLIST_CATEGORY}> </div> <div style='font-size:0.65em; clear:both;'> <{$block.category.title}> @@ -25,7 +25,7 @@ <{/if}> <{if count($block.genres)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_GENRES}> + <{$smarty.const._BL_SONGLIST_GENRES}> </div> <div style='font-size:0.65em; clear:both;'> <{foreach from=$block.genres key=number item=genre}> @@ -34,58 +34,58 @@ </div> <{elseif $block.genre}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_GENRE}> + <{$smarty.const._BL_SONGLIST_GENRE}> </div> <div style='font-size:0.65em; clear:both;'> <{$block.genre.name}></a> </div> <{/if}> - <{if count($block.artists)>0}> + <{if count($block.artists_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ARTISTS}> + <{$smarty.const._BL_SONGLIST_ARTISTS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.artists key=number item=artist}> - <a href="<{$artist.url}>"><{$artist.name}></a><{if $number<sizeof($block.artists)-1}>, <{/if}> + <{foreach from=$block.artists_array key=number item=artist}> + <a href="<{$artist.url}>"><{$artist.name}></a><{if $number<sizeof($block.artists_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.artist)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ARTIST}> + <{$smarty.const._BL_SONGLIST_ARTIST}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.artist.url}>"><{$block.artist.title}></a> </div> <{/if}> - <{if count($block.albums)>0}> + <{if count($block.albums_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ALBUMS}> + <{$smarty.const._BL_SONGLIST_ALBUMS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.albums key=number item=album}> - <a href="<{$album.url}>"><{$album.title}></a><{if $number<sizeof($block.albums)-1}>, <{/if}> + <{foreach from=$block.albums_array key=number item=album}> + <a href="<{$album.url}>"><{$album.title}></a><{if $number<sizeof($block.albums_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.album)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ALBUM}> + <{$smarty.const._BL_SONGLIST_ALBUM}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.album.url}>"><{$block.album.title}></a> </div> <{/if}> - <{if count($block.songs)>0}> + <{if count($block.songs_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_SONGS}> + <{$smarty.const._BL_SONGLIST_SONGS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.songs key=number item=song}> - <a href="<{$song.url}>"><{$song.title}></a><{if $number<sizeof($block.songs)-1}>, <{/if}> + <{foreach from=$block.songs_array key=number item=song}> + <a href="<{$song.url}>"><{$song.title}></a><{if $number<sizeof($block.songs_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.song)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_SONG}> + <{$smarty.const._BL_SONGLIST_SONG}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.song.url}>"><{$block.song.title}></a> Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_albums.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_albums.html 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_albums.html 2012-04-05 00:48:56 UTC (rev 9282) @@ -1,4 +1,5 @@ <{if $block}> +<{assign var=topno value=0}> <{foreach from=$block item=item}> <{assign var=topno value=$topno+1}> <div style='display:block; margin-bottom:4px; clear:both;'> Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_artist.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_artist.html 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_artist.html 2012-04-05 00:48:56 UTC (rev 9282) @@ -6,18 +6,18 @@ <{$block.name}> <{/if}> </div> - <{if count($block.categories)>0}> + <{if count($block.categories_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_CATEGORIES}> + <{$smarty.const._BL_SONGLIST_CATEGORIES}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.categories key=number item=category}> - <{$category.name}><{if $number<sizeof($block.categories)-1}>, <{/if}> + <{foreach from=$block.categories_array key=number item=category}> + <{$category.name}><{if $number<sizeof($block.categories_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif $block.category}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_CATEGORY}> + <{$smarty.const._BL_SONGLIST_CATEGORY}> </div> <div style='font-size:0.65em; clear:both;'> <{$block.category.title}> @@ -25,7 +25,7 @@ <{/if}> <{if count($block.genres)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_GENRES}> + <{$smarty.const._BL_SONGLIST_GENRES}> </div> <div style='font-size:0.65em; clear:both;'> <{foreach from=$block.genres key=number item=genre}> @@ -34,58 +34,58 @@ </div> <{elseif $block.genre}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_GENRE}> + <{$smarty.const._BL_SONGLIST_GENRE}> </div> <div style='font-size:0.65em; clear:both;'> <{$block.genre.name}></a> </div> <{/if}> - <{if count($block.artists)>0}> + <{if count($block.artists_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ARTISTS}> + <{$smarty.const._BL_SONGLIST_ARTISTS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.artists key=number item=artist}> - <a href="<{$artist.url}>"><{$artist.name}></a><{if $number<sizeof($block.artists)-1}>, <{/if}> + <{foreach from=$block.artists_array key=number item=artist}> + <a href="<{$artist.url}>"><{$artist.name}></a><{if $number<sizeof($block.artists_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.artist)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ARTIST}> + <{$smarty.const._BL_SONGLIST_ARTIST}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.artist.url}>"><{$block.artist.title}></a> </div> <{/if}> - <{if count($block.albums)>0}> + <{if count($block.albums_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ALBUMS}> + <{$smarty.const._BL_SONGLIST_ALBUMS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.albums key=number item=album}> - <a href="<{$album.url}>"><{$album.title}></a><{if $number<sizeof($block.albums)-1}>, <{/if}> + <{foreach from=$block.albums_array key=number item=album}> + <a href="<{$album.url}>"><{$album.title}></a><{if $number<sizeof($block.albums_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.album)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ALBUM}> + <{$smarty.const._BL_SONGLIST_ALBUM}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.album.url}>"><{$block.album.title}></a> </div> <{/if}> - <{if count($block.songs)>0}> + <{if count($block.songs_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_SONGS}> + <{$smarty.const._BL_SONGLIST_SONGS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.songs key=number item=song}> - <a href="<{$song.url}>"><{$song.title}></a><{if $number<sizeof($block.songs)-1}>, <{/if}> + <{foreach from=$block.songs_array key=number item=song}> + <a href="<{$song.url}>"><{$song.title}></a><{if $number<sizeof($block.songs_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.song)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_SONG}> + <{$smarty.const._BL_SONGLIST_SONG}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.song.url}>"><{$block.song.title}></a> Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_artists.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_artists.html 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_artists.html 2012-04-05 00:48:56 UTC (rev 9282) @@ -1,4 +1,5 @@ <{if $block}> +<{assign var=topno value=0}> <{foreach from=$block item=item}> <{assign var=topno value=$topno+1}> <div style='display:block; margin-bottom:4px; clear:both;'> Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_genre.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_genre.html 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_genre.html 2012-04-05 00:48:56 UTC (rev 9282) @@ -6,18 +6,18 @@ <{$block.name}> <{/if}> </div> - <{if count($block.categories)>0}> + <{if count($block.categories_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_CATEGORIES}> + <{$smarty.const._BL_SONGLIST_CATEGORIES}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.categories key=number item=category}> - <{$category.name}><{if $number<sizeof($block.categories)-1}>, <{/if}> + <{foreach from=$block.categories_array key=number item=category}> + <{$category.name}><{if $number<sizeof($block.categories_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif $block.category}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_CATEGORY}> + <{$smarty.const._BL_SONGLIST_CATEGORY}> </div> <div style='font-size:0.65em; clear:both;'> <{$block.category.title}> @@ -25,7 +25,7 @@ <{/if}> <{if count($block.genres)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_GENRES}> + <{$smarty.const._BL_SONGLIST_GENRES}> </div> <div style='font-size:0.65em; clear:both;'> <{foreach from=$block.genres key=number item=genre}> @@ -34,58 +34,58 @@ </div> <{elseif $block.genre}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_GENRE}> + <{$smarty.const._BL_SONGLIST_GENRE}> </div> <div style='font-size:0.65em; clear:both;'> <{$block.genre.name}></a> </div> <{/if}> - <{if count($block.artists)>0}> + <{if count($block.artists_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ARTISTS}> + <{$smarty.const._BL_SONGLIST_ARTISTS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.artists key=number item=artist}> - <a href="<{$artist.url}>"><{$artist.name}></a><{if $number<sizeof($block.artists)-1}>, <{/if}> + <{foreach from=$block.artists_array key=number item=artist}> + <a href="<{$artist.url}>"><{$artist.name}></a><{if $number<sizeof($block.artists_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.artist)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ARTIST}> + <{$smarty.const._BL_SONGLIST_ARTIST}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.artist.url}>"><{$block.artist.title}></a> </div> <{/if}> - <{if count($block.albums)>0}> + <{if count($block.albums_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ALBUMS}> + <{$smarty.const._BL_SONGLIST_ALBUMS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.albums key=number item=album}> - <a href="<{$album.url}>"><{$album.title}></a><{if $number<sizeof($block.albums)-1}>, <{/if}> + <{foreach from=$block.albums_array key=number item=album}> + <a href="<{$album.url}>"><{$album.title}></a><{if $number<sizeof($block.albums_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.album)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ALBUM}> + <{$smarty.const._BL_SONGLIST_ALBUM}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.album.url}>"><{$block.album.title}></a> </div> <{/if}> - <{if count($block.songs)>0}> + <{if count($block.songs_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_SONGS}> + <{$smarty.const._BL_SONGLIST_SONGS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.songs key=number item=song}> - <a href="<{$song.url}>"><{$song.title}></a><{if $number<sizeof($block.songs)-1}>, <{/if}> + <{foreach from=$block.songs_array key=number item=song}> + <a href="<{$song.url}>"><{$song.title}></a><{if $number<sizeof($block.songs_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.song)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_SONG}> + <{$smarty.const._BL_SONGLIST_SONG}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.song.url}>"><{$block.song.title}></a> Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_genres.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_genres.html 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_genres.html 2012-04-05 00:48:56 UTC (rev 9282) @@ -1,4 +1,5 @@ <{if $block}> +<{assign var=topno value=0}> <{foreach from=$block item=item}> <{assign var=topno value=$topno+1}> <div style='display:block; margin-bottom:4px; clear:both;'> Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_song.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_song.html 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_song.html 2012-04-05 00:48:56 UTC (rev 9282) @@ -6,18 +6,18 @@ <{$block.name}> <{/if}> </div> - <{if count($block.categories)>0}> + <{if count($block.categories_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_CATEGORIES}> + <{$smarty.const._BL_SONGLIST_CATEGORIES}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.categories key=number item=category}> - <{$category.name}><{if $number<sizeof($block.categories)-1}>, <{/if}> + <{foreach from=$block.categories_array key=number item=category}> + <{$category.name}><{if $number<sizeof($block.categories_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif $block.category}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_CATEGORY}> + <{$smarty.const._BL_SONGLIST_CATEGORY}> </div> <div style='font-size:0.65em; clear:both;'> <{$block.category.title}> @@ -25,7 +25,7 @@ <{/if}> <{if count($block.genres)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_GENRES}> + <{$smarty.const._BL_SONGLIST_GENRES}> </div> <div style='font-size:0.65em; clear:both;'> <{foreach from=$block.genres key=number item=genre}> @@ -34,58 +34,58 @@ </div> <{elseif $block.genre}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_GENRE}> + <{$smarty.const._BL_SONGLIST_GENRE}> </div> <div style='font-size:0.65em; clear:both;'> <{$block.genre.name}></a> </div> <{/if}> - <{if count($block.artists)>0}> + <{if count($block.artists_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ARTISTS}> + <{$smarty.const._BL_SONGLIST_ARTISTS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.artists key=number item=artist}> - <a href="<{$artist.url}>"><{$artist.name}></a><{if $number<sizeof($block.artists)-1}>, <{/if}> + <{foreach from=$block.artists_array key=number item=artist}> + <a href="<{$artist.url}>"><{$artist.name}></a><{if $number<sizeof($block.artists_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.artist)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ARTIST}> + <{$smarty.const._BL_SONGLIST_ARTIST}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.artist.url}>"><{$block.artist.title}></a> </div> <{/if}> - <{if count($block.albums)>0}> + <{if count($block.albums_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ALBUMS}> + <{$smarty.const._BL_SONGLIST_ALBUMS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.albums key=number item=album}> - <a href="<{$album.url}>"><{$album.title}></a><{if $number<sizeof($block.albums)-1}>, <{/if}> + <{foreach from=$block.albums_array key=number item=album}> + <a href="<{$album.url}>"><{$album.title}></a><{if $number<sizeof($block.albums_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.album)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_ALBUM}> + <{$smarty.const._BL_SONGLIST_ALBUM}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.album.url}>"><{$block.album.title}></a> </div> <{/if}> - <{if count($block.songs)>0}> + <{if count($block.songs_array)>0}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_SONGS}> + <{$smarty.const._BL_SONGLIST_SONGS}> </div> <div style='font-size:0.65em; clear:both;'> - <{foreach from=$block.songs key=number item=song}> - <a href="<{$song.url}>"><{$song.title}></a><{if $number<sizeof($block.songs)-1}>, <{/if}> + <{foreach from=$block.songs_array key=number item=song}> + <a href="<{$song.url}>"><{$song.title}></a><{if $number<sizeof($block.songs_array)-1}>, <{/if}> <{/foreach}> </div> <{elseif isset($block.song)}> <div style='font-size:0.85em; clear:both;'> - <{$smary.const._BL_SONGLIST_SONG}> + <{$smarty.const._BL_SONGLIST_SONG}> </div> <div style='font-size:0.65em; clear:both;'> <a href="<{$block.song.url}>"><{$block.song.title}></a> Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_songs.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_songs.html 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/blocks/songlist_popular_songs.html 2012-04-05 00:48:56 UTC (rev 9282) @@ -1,4 +1,5 @@ <{if $block}> +<{assign var=topno value=0}> <{foreach from=$block item=item}> <{assign var=topno value=$topno+1}> <div style='display:block; margin-bottom:4px; clear:both;'> Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_item.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_item.html 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_item.html 2012-04-05 00:48:56 UTC (rev 9282) @@ -66,7 +66,7 @@ <{$smarty.const._MN_SONGLIST_TAGS}> </div> <div class="sl_mainsong"> - <{include file="db:tag_bar.html" tagbar=$song.tagbar}> + <{includeq file="db:tag_bar.html" tagbar=$song.tagbar}> </div> <{/if}> <div class="sl_subtitle"> Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_list.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_list.html 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_list.html 2012-04-05 00:48:56 UTC (rev 9282) @@ -52,7 +52,7 @@ <{/if}> <{/if}> <{if $xoConfig.tags}> - <td><{include file="db:tag_bar.html" tagbar=$result.tagbar}></a></td> + <td><{includeq file="db:tag_bar.html" tagbar=$result.tagbar}></a></td> <{/if}> <td><form action="<{$xoops_url}>/modules/songlist/index.php" method='post'> <input type="hidden" name='id' value='<{$result.sid}>'/> Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/xoops_version.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/xoops_version.php 2012-04-04 23:37:44 UTC (rev 9281) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/xoops_version.php 2012-04-05 00:48:56 UTC (rev 9282) @@ -12,12 +12,12 @@ $modversion['name'] = _MI_SONGLIST_NAME; $modversion['version'] = 1.10; $modversion['description'] = _MI_SONGLIST_DESC; -$modversion['credits'] = "Orginally Based on Newbb by phppp - adaption by (wishcraft)"; +$modversion['credits'] = "Orginally Written by wishcraft, Testing Phil and Michael Beck"; $modversion['author'] = "Simon Roberts (wishcraft)"; $modversion['license'] = "GNU General Public License (GPL) see LICENSE"; $modversion['image'] = "images/songlist_slogo.png"; $modversion['dirname'] = "songlist"; -$modversion['releasedate'] = "Sunday, 27th March 03, 2012"; +$modversion['releasedate'] = "Thursday, 05th April, 2012"; $modversion['module_status'] = "Stable"; $modversion['website'] = "www.chronolabs.coop"; @@ -25,9 +25,9 @@ $modversio... [truncated message content] |
From: <wis...@us...> - 2012-04-04 23:37:51
|
Revision: 9281 http://xoops.svn.sourceforge.net/xoops/?rev=9281&view=rev Author: wishcraft Date: 2012-04-04 23:37:44 +0000 (Wed, 04 Apr 2012) Log Message: ----------- Karioki Song List 1.10 - complete third release - production - All Listed bugs by the client fixed. (mamba's template error) Modified Paths: -------------- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/songs.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/css/songlist.css XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/main.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_songs_list.html XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_songs_item.html XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php XoopsModules/songlist/trunk/htdocs/modules/songlist/css/songlist.css XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/main.php XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_songs_list.html XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_item.html Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/songs.php =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/songs.php 2012-04-04 23:04:35 UTC (rev 9280) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/songs.php 2012-04-04 23:37:44 UTC (rev 9281) @@ -19,7 +19,7 @@ $this->initVar('abid', XOBJ_DTYPE_INT, 0, false); $this->initVar('songid', XOBJ_DTYPE_TXTBOX, null, false, 32); $this->initVar('title', XOBJ_DTYPE_TXTBOX, null, false, 128); - $this->initVar('lyrics', XOBJ_DTYPE_TXTBOX, null, false, 650); + $this->initVar('lyrics', XOBJ_DTYPE_OTHER, null, false, 650); $this->initVar('hits', XOBJ_DTYPE_INT, 0, false); $this->initVar('rank', XOBJ_DTYPE_DECIMAL, 0, false); $this->initVar('votes', XOBJ_DTYPE_INT, 0, false); @@ -34,6 +34,9 @@ function toArray($extra = true) { $ret = parent::toArray(); + + $ret['lyrics'] = $GLOBALS['myts']->displayTarea($this->getVar('lyrics'), true, true, true, true, true); + $form = $this->getForm(true); foreach($form as $key => $element) { $ret['form'][$key] = $form[$key]->render(); @@ -271,12 +274,14 @@ $album->setVar('sids', $arry); $albums_handler->insert($album); } - if ($obj->vars['aid']['value']>0) { - $artist = $artists_handler->get($obj->vars['aid']['value']); - $arry = $artist->getVar('sids'); - $arry[$sid] = $sid; - $artist->setVar('sids', $arry); - $artists_handler->insert($artist); + if (count($obj->getVar('aids'))>0) { + foreach($obj->getVar('aids') as $aid) { + $artist = $artists_handler->get($aid); + $arry = $artist->getVar('sids'); + $arry[$sid] = $sid; + $artist->setVar('sids', $arry); + $artists_handler->insert($artist); + } } return $sid; } Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/css/songlist.css =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/css/songlist.css 2012-04-04 23:04:35 UTC (rev 9280) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/css/songlist.css 2012-04-04 23:37:44 UTC (rev 9281) @@ -152,6 +152,7 @@ clear:both; margin-left: 35px; margin-top: 3px; + margin-bottom: 10px; } .sl_subsong { @@ -166,4 +167,5 @@ border-style: dotted; border-width: 1px; clear:both; + width:320px; } Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/main.php =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/main.php 2012-04-04 23:04:35 UTC (rev 9280) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/main.php 2012-04-04 23:37:44 UTC (rev 9281) @@ -9,6 +9,9 @@ define('_MN_SONGLIST_TAGS', 'Tags:-'); define('_MN_SONGLIST_SONGS', 'Song\'s:-'); define('_MN_SONGLIST_ALBUMS', 'Album\'s:-'); + define('_MN_SONGLIST_LYRICS', 'Lyric\'s:-'); + define('_MN_SONGLIST_GENRE', 'Genre:-'); + define('_MN_SONGLIST_CATEGORY', 'Category:-'); // Browse By define('_MN_SONGLIST_BROWSEBY', 'Browse by Character'); Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_songs_list.html =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_songs_list.html 2012-04-04 23:04:35 UTC (rev 9280) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_cpanel_songs_list.html 2012-04-04 23:37:44 UTC (rev 9281) @@ -60,7 +60,7 @@ </tr> <{/foreach}> <tr class="foot"> - <td colspan="10"><input type='submit' name='submit' value='<{$smarty.const._SUBMIT}>'/></td> + <td colspan="11"><input type='submit' name='submit' value='<{$smarty.const._SUBMIT}>'/></td> </tr> </table> <input type='hidden' name='op' value='category'/> Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_songs_item.html =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_songs_item.html 2012-04-04 23:04:35 UTC (rev 9280) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/templates/songlist_songs_item.html 2012-04-04 23:37:44 UTC (rev 9281) @@ -1,3 +1,17 @@ +<h1><{$song.title}><{if $song.songid}> - <{$song.songid}><{/if}></h1> +<{if $song.category}> +<div class="sl_subtitle"> + <{$smarty.const._MN_SONGLIST_CATEGORY}> +</div> +<{if $song.category.picture}> +<div class="sl_artsong"> + <img src='<{$song.category.picture}>' width="95%" border="0" /> +</div> +<{/if}> +<div class="sl_mainsong"> + <{$song.category.name}> +</div> +<{/if}> <{if $song.album}> <div class="sl_subtitle"> <{$smarty.const._MN_SONGLIST_ALBUM}> @@ -3,5 +17,5 @@ </div> <div class="sl_mainsong"> - <{$song.album.name}> + <{$song.album.title}> </div> <{if $song.album.picture}> @@ -11,6 +25,14 @@ </div> <{/if}> <{/if}> +<{if $song.genre}> +<div class="sl_subtitle"> + <{$smarty.const._MN_SONGLIST_GENRE}> +</div> +<div class="sl_mainsong"> + <{$song.genre.name}> +</div> +<{/if}> <{if $song.artists_array}> <div class="sl_subtitle"> <{if count($song.artists_array) > 1}> @@ -47,6 +69,12 @@ <{include file="db:tag_bar.html" tagbar=$song.tagbar}> </div> <{/if}> +<div class="sl_subtitle"> + <{$smarty.const._MN_SONGLIST_LYRICS}> +</div> +<div class="sl_mainsong"> + <{$song.lyrics}> +</div> <{foreach from=$song.fields item=field}> <div class="sl_subtitle"> <{$field.title}> @@ -54,4 +82,4 @@ <div class="sl_mainsong"> <{$field.value}> </div> -<{/foreach}> \ No newline at end of file +<{/foreach}> Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php 2012-04-04 23:04:35 UTC (rev 9280) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php 2012-04-04 23:37:44 UTC (rev 9281) @@ -19,7 +19,7 @@ $this->initVar('abid', XOBJ_DTYPE_INT, 0, false); $this->initVar('songid', XOBJ_DTYPE_TXTBOX, null, false, 32); $this->initVar('title', XOBJ_DTYPE_TXTBOX, null, false, 128); - $this->initVar('lyrics', XOBJ_DTYPE_TXTBOX, null, false, 650); + $this->initVar('lyrics', XOBJ_DTYPE_OTHER, null, false, 650); $this->initVar('hits', XOBJ_DTYPE_INT, 0, false); $this->initVar('rank', XOBJ_DTYPE_DECIMAL, 0, false); $this->initVar('votes', XOBJ_DTYPE_INT, 0, false); @@ -34,6 +34,9 @@ function toArray($extra = true) { $ret = parent::toArray(); + + $ret['lyrics'] = $GLOBALS['myts']->displayTarea($this->getVar('lyrics'), true, true, true, true, true); + $form = $this->getForm(true); foreach($form as $key => $element) { $ret['form'][$key] = $form[$key]->render(); @@ -271,12 +274,14 @@ $album->setVar('sids', $arry); $albums_handler->insert($album); } - if ($obj->vars['aid']['value']>0) { - $artist = $artists_handler->get($obj->vars['aid']['value']); - $arry = $artist->getVar('sids'); - $arry[$sid] = $sid; - $artist->setVar('sids', $arry); - $artists_handler->insert($artist); + if (count($obj->getVar('aids'))>0) { + foreach($obj->getVar('aids') as $aid) { + $artist = $artists_handler->get($aid); + $arry = $artist->getVar('sids'); + $arry[$sid] = $sid; + $artist->setVar('sids', $arry); + $artists_handler->insert($artist); + } } return $sid; } Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/css/songlist.css =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/css/songlist.css 2012-04-04 23:04:35 UTC (rev 9280) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/css/songlist.css 2012-04-04 23:37:44 UTC (rev 9281) @@ -152,6 +152,7 @@ clear:both; margin-left: 35px; margin-top: 3px; + margin-bottom: 10px; } .sl_subsong { @@ -166,4 +167,5 @@ border-style: dotted; border-width: 1px; clear:both; + width:320px; } Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/main.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/main.php 2012-04-04 23:04:35 UTC (rev 9280) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/main.php 2012-04-04 23:37:44 UTC (rev 9281) @@ -9,6 +9,9 @@ define('_MN_SONGLIST_TAGS', 'Tags:-'); define('_MN_SONGLIST_SONGS', 'Song\'s:-'); define('_MN_SONGLIST_ALBUMS', 'Album\'s:-'); + define('_MN_SONGLIST_LYRICS', 'Lyric\'s:-'); + define('_MN_SONGLIST_GENRE', 'Genre:-'); + define('_MN_SONGLIST_CATEGORY', 'Category:-'); // Browse By define('_MN_SONGLIST_BROWSEBY', 'Browse by Character'); Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_songs_list.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_songs_list.html 2012-04-04 23:04:35 UTC (rev 9280) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_cpanel_songs_list.html 2012-04-04 23:37:44 UTC (rev 9281) @@ -60,7 +60,7 @@ </tr> <{/foreach}> <tr class="foot"> - <td colspan="10"><input type='submit' name='submit' value='<{$smarty.const._SUBMIT}>'/></td> + <td colspan="11"><input type='submit' name='submit' value='<{$smarty.const._SUBMIT}>'/></td> </tr> </table> <input type='hidden' name='op' value='category'/> Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_item.html =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_item.html 2012-04-04 23:04:35 UTC (rev 9280) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/templates/songlist_songs_item.html 2012-04-04 23:37:44 UTC (rev 9281) @@ -1,3 +1,17 @@ +<h1><{$song.title}><{if $song.songid}> - <{$song.songid}><{/if}></h1> +<{if $song.category}> +<div class="sl_subtitle"> + <{$smarty.const._MN_SONGLIST_CATEGORY}> +</div> +<{if $song.category.picture}> +<div class="sl_artsong"> + <img src='<{$song.category.picture}>' width="95%" border="0" /> +</div> +<{/if}> +<div class="sl_mainsong"> + <{$song.category.name}> +</div> +<{/if}> <{if $song.album}> <div class="sl_subtitle"> <{$smarty.const._MN_SONGLIST_ALBUM}> @@ -3,5 +17,5 @@ </div> <div class="sl_mainsong"> - <{$song.album.name}> + <{$song.album.title}> </div> <{if $song.album.picture}> @@ -11,6 +25,14 @@ </div> <{/if}> <{/if}> +<{if $song.genre}> +<div class="sl_subtitle"> + <{$smarty.const._MN_SONGLIST_GENRE}> +</div> +<div class="sl_mainsong"> + <{$song.genre.name}> +</div> +<{/if}> <{if $song.artists_array}> <div class="sl_subtitle"> <{if count($song.artists_array) > 1}> @@ -47,6 +69,12 @@ <{include file="db:tag_bar.html" tagbar=$song.tagbar}> </div> <{/if}> +<div class="sl_subtitle"> + <{$smarty.const._MN_SONGLIST_LYRICS}> +</div> +<div class="sl_mainsong"> + <{$song.lyrics}> +</div> <{foreach from=$song.fields item=field}> <div class="sl_subtitle"> <{$field.title}> @@ -54,4 +82,4 @@ <div class="sl_mainsong"> <{$field.value}> </div> -<{/foreach}> \ No newline at end of file +<{/foreach}> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-04-04 23:04:42
|
Revision: 9280 http://xoops.svn.sourceforge.net/xoops/?rev=9280&view=rev Author: beckmi Date: 2012-04-04 23:04:35 +0000 (Wed, 04 Apr 2012) Log Message: ----------- Modified Paths: -------------- XoopsModules/TDMDownloads/trunk/TDMDownloads/class/tdmdownloads_cat.php XoopsModules/TDMDownloads/trunk/TDMDownloads/class/tdmdownloads_field.php XoopsModules/TDMDownloads/trunk/TDMDownloads/class/tdmdownloads_mod.php XoopsModules/TDMDownloads/trunk/TDMDownloads/language/english/admin.php XoopsModules/TDMDownloads/trunk/TDMDownloads/language/english/main.php XoopsModules/TDMDownloads/trunk/TDMDownloads/modfile.php XoopsModules/TDMDownloads/trunk/TDMDownloads/xoops_version.php Modified: XoopsModules/TDMDownloads/trunk/TDMDownloads/class/tdmdownloads_cat.php =================================================================== --- XoopsModules/TDMDownloads/trunk/TDMDownloads/class/tdmdownloads_cat.php 2012-04-04 21:22:33 UTC (rev 9279) +++ XoopsModules/TDMDownloads/trunk/TDMDownloads/class/tdmdownloads_cat.php 2012-04-04 23:04:35 UTC (rev 9280) @@ -30,7 +30,7 @@ $this->initVar("cat_description_main",XOBJ_DTYPE_TXTAREA, null, false); // Pour autoriser le html $this->initVar('dohtml', XOBJ_DTYPE_INT, 1, false); - $this->initVar("cat_weight",XOBJ_DTYPE_INT,null,false,11); + $this->initVar("cat_weight",XOBJ_DTYPE_INT,0,false,11); } function TDMDownloads_cat() { @@ -53,7 +53,7 @@ //nom du formulaire selon l'action (editer ou ajouter): $title = $this->isNew() ? sprintf(_AM_TDMDOWNLOADS_FORMADD) : sprintf(_AM_TDMDOWNLOADS_FORMEDIT); - //cr\xE9ation du formulaire + //cr�ation du formulaire $form = new XoopsThemeForm($title, 'form', $action, 'post', true); $form->setExtra('enctype="multipart/form-data"'); //titre @@ -86,7 +86,7 @@ $fileseltray->addElement(new XoopsFormLabel('' ), false); $imgtray->addElement($fileseltray); $form->addElement($imgtray); - // Pour faire une sous-cat\xE9gorie + // Pour faire une sous-cat�gorie $downloadscat_Handler =& xoops_getModuleHandler('tdmdownloads_cat', 'TDMDownloads'); $criteria = new CriteriaCompo(); $criteria->setSort('cat_weight ASC, cat_title'); @@ -94,8 +94,8 @@ $downloadscat_arr = $downloadscat_Handler->getall($criteria); $mytree = new XoopsObjectTree($downloadscat_arr, 'cat_cid', 'cat_pid'); $form->addElement(new XoopsFormLabel(_AM_TDMDOWNLOADS_FORMINCAT, $mytree->makeSelBox('cat_pid', 'cat_title','--',$this->getVar('cat_pid'),true))); - //poids de la cat\xE9gorie - $form->addElement(new XoopsFormText(_AM_TDMDOWNLOADS_FORMWEIGHT, 'cat_weight', 5, 5, $this->getVar('cat_weight', 'e')), true); + //poids de la cat�gorie + $form->addElement(new XoopsFormText(_AM_TDMDOWNLOADS_FORMWEIGHT, 'cat_weight', 5, 5, $this->getVar('cat_weight', 'e')), false); //permissions $member_handler = & xoops_gethandler('member'); @@ -124,13 +124,13 @@ // pour editer $groups_news_can_submit_checkbox->addOptionArray($group_list); $form->addElement($groups_news_can_submit_checkbox); - // pour t\xE9l\xE9charger + // pour t�l�charger if ($xoopsModuleConfig['permission_download'] == 1) { $groups_news_can_download_checkbox->addOptionArray($group_list); $form->addElement($groups_news_can_download_checkbox); } - // pour passer "cid" si on modifie la cat\xE9gorie + // pour passer "cid" si on modifie la cat�gorie if (!$this->isNew()) { $form->addElement(new XoopsFormHidden('cat_cid', $this->getVar('cat_cid'))); $form->addElement(new XoopsFormHidden('categorie_modified', true)); Modified: XoopsModules/TDMDownloads/trunk/TDMDownloads/class/tdmdownloads_field.php =================================================================== --- XoopsModules/TDMDownloads/trunk/TDMDownloads/class/tdmdownloads_field.php 2012-04-04 21:22:33 UTC (rev 9279) +++ XoopsModules/TDMDownloads/trunk/TDMDownloads/class/tdmdownloads_field.php 2012-04-04 23:04:35 UTC (rev 9280) @@ -55,7 +55,7 @@ //nom du formulaire selon l'action (editer ou ajouter): $title = $this->isNew() ? sprintf(_AM_TDMDOWNLOADS_FORMADD) : sprintf(_AM_TDMDOWNLOADS_FORMEDIT); - //cr\xE9ation du formulaire + //cr�ation du formulaire $form = new XoopsThemeForm($title, 'form', $action, 'post', true); $form->setExtra('enctype="multipart/form-data"'); //titre @@ -84,11 +84,11 @@ $imgtray->addElement($fileseltray); $form->addElement($imgtray); //poids du champ - $form->addElement(new XoopsFormText(_AM_TDMDOWNLOADS_FORMWEIGHT, 'weight', 5, 5, $this->getVar('weight', 'e')), true); - // affich\xE9? + $form->addElement(new XoopsFormText(_AM_TDMDOWNLOADS_FORMWEIGHT, 'weight', 5, 5, $this->getVar('weight', 'e')), false); + // affich�? $status = $this->getVar('status') ? $this->getVar('status') : 0; $form->addElement(new XoopsFormRadioYN(_AM_TDMDOWNLOADS_FORMAFFICHE, 'status', $status)); - // affich\xE9 dans le champ de recherche? + // affich� dans le champ de recherche? $search = $this->getVar('search') ? $this->getVar('search') : 0; $form->addElement(new XoopsFormRadioYN(_AM_TDMDOWNLOADS_FORMAFFICHESEARCH, 'search', $search)); // pour passer "fid" si on modifie le champ Modified: XoopsModules/TDMDownloads/trunk/TDMDownloads/class/tdmdownloads_mod.php =================================================================== --- XoopsModules/TDMDownloads/trunk/TDMDownloads/class/tdmdownloads_mod.php 2012-04-04 21:22:33 UTC (rev 9279) +++ XoopsModules/TDMDownloads/trunk/TDMDownloads/class/tdmdownloads_mod.php 2012-04-04 23:04:35 UTC (rev 9280) @@ -166,11 +166,12 @@ $aff_size = new XoopsFormElementTray(_AM_TDMDOWNLOADS_FORMSIZE,''); $aff_size->addElement(new XoopsFormText('', 'size', 10, 255, $size_value)); $type = new XoopsFormSelect('', 'type_size', $type_value); - $type_arr = array('[o]' => '[o]', '[Ko]' => '[Ko]', '[Mo]' => '[Mo]', '[Go]' => '[Go]', '[To]' => '[To]'); + //$type_arr = array('[o]' => _AM_TDMDOWNLOADS_BYTES, '[Ko]' => _AM_TDMDOWNLOADS_KBYTES, '[Mo]' => _AM_TDMDOWNLOADS_MBYTES, '[Go]' => _AM_TDMDOWNLOADS_GBYTES, '[To]' => _AM_TDMDOWNLOADS_TBYTES); + $type_arr = array(_AM_TDMDOWNLOADS_BYTES => '['._AM_TDMDOWNLOADS_BYTES.']', _AM_TDMDOWNLOADS_KBYTES => '['._AM_TDMDOWNLOADS_KBYTES.']', _AM_TDMDOWNLOADS_MBYTES => '['._AM_TDMDOWNLOADS_MBYTES.']', _AM_TDMDOWNLOADS_GBYTES => '['._AM_TDMDOWNLOADS_GBYTES.']', _AM_TDMDOWNLOADS_TBYTES => '['._AM_TDMDOWNLOADS_TBYTES.']'); $type->addOptionArray($type_arr); $aff_size->addElement($type); $form->addElement($aff_size); - + }else{ $form->addElement(new XoopsFormHidden('size', '')); $form->addElement(new XoopsFormHidden('type_size', '')); Modified: XoopsModules/TDMDownloads/trunk/TDMDownloads/language/english/admin.php =================================================================== --- XoopsModules/TDMDownloads/trunk/TDMDownloads/language/english/admin.php 2012-04-04 21:22:33 UTC (rev 9279) +++ XoopsModules/TDMDownloads/trunk/TDMDownloads/language/english/admin.php 2012-04-04 23:04:35 UTC (rev 9280) @@ -129,7 +129,7 @@ define('_AM_TDMDOWNLOADS_FORMPLATFORM',"XOOPS Version"); define('_AM_TDMDOWNLOADS_FORMPOSTER',"Posted by "); define('_AM_TDMDOWNLOADS_FORMRATING',"Note"); -define('_AM_TDMDOWNLOADS_FORMSIZE',"File size(bytes)"); +define('_AM_TDMDOWNLOADS_FORMSIZE',"File size"); define('_AM_TDMDOWNLOADS_FORMSTATUS',"Download Status"); define('_AM_TDMDOWNLOADS_FORMSTATUS_OK',"Approved"); define('_AM_TDMDOWNLOADS_FORMSUBMITTER',"Posted by"); Modified: XoopsModules/TDMDownloads/trunk/TDMDownloads/language/english/main.php =================================================================== --- XoopsModules/TDMDownloads/trunk/TDMDownloads/language/english/main.php 2012-04-04 21:22:33 UTC (rev 9279) +++ XoopsModules/TDMDownloads/trunk/TDMDownloads/language/english/main.php 2012-04-04 23:04:35 UTC (rev 9280) @@ -20,7 +20,7 @@ define("_MD_TDMDOWNLOADS_INDEX_BLRATING","Top rated files:"); define("_MD_TDMDOWNLOADS_INDEX_BLPOP","Top Downloads:"); define("_MD_TDMDOWNLOADS_INDEX_DLNOW","Download now!"); -define("_MD_TDMDOWNLOADS_INDEX_LATESTLIST","Latest lists"); +define("_MD_TDMDOWNLOADS_INDEX_LATESTLIST","Latest files"); define("_MD_TDMDOWNLOADS_INDEX_NEWTHISWEEK","New this week"); define("_MD_TDMDOWNLOADS_INDEX_POPULAR","Popular"); define("_MD_TDMDOWNLOADS_INDEX_UPTHISWEEK","Updated this week"); @@ -115,7 +115,7 @@ define("_MD_TDMDOWNLOADS_SEARCH_THEREARE","There are <b>%s</b> file(s)"); define("_MD_TDMDOWNLOADS_SEARCH_TITLE","Name"); -//g\xE9n\xE9rique +//g�n�rique define("_MD_TDMDOWNLOADS_EDITTHISDL","Edit this download"); define("_MD_TDMDOWNLOADS_MOREDETAILS","more details"); define("_MD_TDMDOWNLOADS_DOWNLOAD","Download"); @@ -152,4 +152,5 @@ define("_MD_TDMDOWNLOADS_BOOKMARK_TO_GOOLGEBUZZ", "Bookmark to Google Buzz"); define("_MD_TDMDOWNLOADS_BOOKMARK_TO_GOOLGEREADER", "Bookmark to Google Buzz"); define("_MD_TDMDOWNLOADS_BOOKMARK_TO_GOOLGEBOOKMARKS", "Bookmark to Google Bookmarks"); + ?> \ No newline at end of file Modified: XoopsModules/TDMDownloads/trunk/TDMDownloads/modfile.php =================================================================== --- XoopsModules/TDMDownloads/trunk/TDMDownloads/modfile.php 2012-04-04 21:22:33 UTC (rev 9279) +++ XoopsModules/TDMDownloads/trunk/TDMDownloads/modfile.php 2012-04-04 23:04:35 UTC (rev 9280) @@ -30,10 +30,10 @@ $lid = TDMDownloads_CleanVars($_REQUEST, 'lid', 0, 'int'); -//information du t\xE9l\xE9chargement +//information du t�l�chargement $view_downloads = $downloads_Handler->get($lid); -// redirection si le t\xE9l\xE9chargement n'existe pas ou n'est pas activ\xE9 +// redirection si le t�l�chargement n'existe pas ou n'est pas activ� if (count($view_downloads) == 0 || $view_downloads->getVar('status') == 0){ redirect_header('index.php', 3, _MD_TDMDOWNLOADS_SINGLEFILE_NONEXISTENT); exit(); @@ -51,7 +51,7 @@ redirect_header('index.php', 2, _NOPERM); exit(); } - //tableau des cat\xE9gories + //tableau des cat�gories $criteria = new CriteriaCompo(); $criteria->setSort('cat_weight ASC, cat_title'); $criteria->setOrder('ASC'); @@ -63,7 +63,7 @@ $navigation .= ' <img src="images/deco/arrow.gif" alt="arrow" /> <a title="' . $view_downloads->getVar('title') . '" href="singlefile.php?lid=' . $view_downloads->getVar('lid') . '">' . $view_downloads->getVar('title') . '</a>'; $navigation .= ' <img src="images/deco/arrow.gif" alt="arrow" /> ' . _MD_TDMDOWNLOADS_SINGLEFILE_MODIFY; $xoopsTpl->assign('navigation', $navigation); - // r\xE9f\xE9rencement + // r�f�rencement // titre de la page $pagetitle = _MD_TDMDOWNLOADS_SINGLEFILE_MODIFY . ' - ' . $view_downloads->getVar('title') . ' - '; $pagetitle .= TDMDownloads_PathTreeUrl($mytree, $view_downloads->getVar('cid'), $downloadscat_arr, 'cat_title', $prefix = ' - ', false, 'DESC', true); @@ -71,7 +71,7 @@ //description $xoTheme->addMeta( 'meta', 'description', strip_tags(_MD_TDMDOWNLOADS_SINGLEFILE_MODIFY . ' (' . $view_downloads->getVar('title') . ')')); - //Affichage du formulaire de notation des t\xE9l\xE9chargements + //Affichage du formulaire de notation des t�l�chargements $obj =& $downloadsmod_Handler->create(); $form = $obj->getForm($lid, false, $donnee = array()); $xoopsTpl->assign('themeForm', $form->render()); @@ -114,7 +114,7 @@ $message_erreur .= _MD_TDMDOWNLOADS_ERREUR_SIZE . '<br>'; } } - // erreur si la cat\xE9gorie est vide + // erreur si la cat�gorie est vide if (isset($_REQUEST['cid'])){ if ($_REQUEST['cid'] == 0){ $erreur=true; @@ -180,7 +180,7 @@ if ($downloadsmod_Handler->insert($obj)) { $lid_dowwnloads = $obj->get_new_enreg(); - // R\xE9cup\xE9ration des champs suppl\xE9mentaires: + // R�cup�ration des champs suppl�mentaires: $criteria = new CriteriaCompo(); $criteria->setSort('weight ASC, title'); $criteria->setOrder('ASC'); @@ -203,11 +203,11 @@ } echo $obj->getHtmlErrors(); } - //Affichage du formulaire de notation des t\xE9l\xE9chargements + //Affichage du formulaire de notation des t�l�chargements $form =& $obj->getForm(intval($_REQUEST['lid']), true, $donnee); $xoopsTpl->assign('themeForm', $form->render()); break; } include XOOPS_ROOT_PATH.'/footer.php'; -?> +?> \ No newline at end of file Modified: XoopsModules/TDMDownloads/trunk/TDMDownloads/xoops_version.php =================================================================== --- XoopsModules/TDMDownloads/trunk/TDMDownloads/xoops_version.php 2012-04-04 21:22:33 UTC (rev 9279) +++ XoopsModules/TDMDownloads/trunk/TDMDownloads/xoops_version.php 2012-04-04 23:04:35 UTC (rev 9280) @@ -203,7 +203,7 @@ $modversion['config'][$i]['description'] = '_MI_TDMDOWNLOADS_PLATEFORM_DSC'; $modversion['config'][$i]['formtype'] = 'textarea'; $modversion['config'][$i]['valuetype'] = 'text'; -$modversion['config'][$i]['default'] = 'None|Xoops 2.0.x|Xoops 2.2.x|Xoops 2.3.x|Xoops 2.4.x|Xoops 2.5.x|Other'; +$modversion['config'][$i]['default'] = 'None|XOOPS 2.0.x|XOOPS 2.2.x|XOOPS 2.3.x|XOOPS 2.4.x|XOOPS 2.5.x|XOOPS 2.6.x|Other'; $i++; $modversion['config'][$i]['name'] = 'usetellafriend'; $modversion['config'][$i]['title'] = '_MI_TDMDOWNLOADS_USETELLAFRIEND'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-04-04 21:22:40
|
Revision: 9279 http://xoops.svn.sourceforge.net/xoops/?rev=9279&view=rev Author: wishcraft Date: 2012-04-04 21:22:33 +0000 (Wed, 04 Apr 2012) Log Message: ----------- Karioki Song List 1.10 - complete third release - production - All Listed bugs by the client fixed. (mamba's tag error) Modified Paths: -------------- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/import.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/albums.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/artists.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/requests.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/songs.php XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/main.php XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/import.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/albums.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/artists.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/requests.php XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/main.php Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/import.php =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/import.php 2012-04-04 20:36:40 UTC (rev 9278) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/admin/import.php 2012-04-04 21:22:33 UTC (rev 9279) @@ -174,7 +174,6 @@ $object->setVar('singer', '_ENUM_SONGLIST_SOLO'); break; } - $object->setVar('cids', array_merge(array($cid=>$cid), $this->getVar('cids'))); $object->setVar('name', trim($data[$_POST['artist']])); $aid = $artists_handler->insert($object); $aids[$aid] = $aid; Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/albums.php =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/albums.php 2012-04-04 20:36:40 UTC (rev 9278) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/albums.php 2012-04-04 21:22:33 UTC (rev 9279) @@ -93,7 +93,7 @@ function getURL() { global $file, $op, $fct, $id, $value, $gid, $cid, $start, $limit; if ($GLOBALS['songlistModuleConfig']['htaccess']) { - return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseurl'].'/'.$file.'/'.urlencode(str_replace(array(' ', chr(9)), '-', $this->getVar('title'))).'/'.$op.'-'.$fct.'-'.$this->getVar('abid').'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; + return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseofurl'].'/'.$file.'/'.urlencode(str_replace(array(' ', chr(9)), '-', $this->getVar('title'))).'/'.$op.'-'.$fct.'-'.$this->getVar('abid').'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; } else { return XOOPS_URL.'/modules/songlist/'.$file.'.php?op='.$op.'&fct='.$fct.'&id='.$this->getVar('abid').'&value='.urlencode($value).'&gid='.$gid.'&cid='.$cid; } @@ -248,7 +248,7 @@ function getURL() { global $file, $op, $fct, $id, $value, $gid, $cid, $start, $limit; if ($GLOBALS['songlistModuleConfig']['htaccess']) { - return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseurl'].'/albums/'.$start.'-'.$op.'-'.$fct.'-'.$id.'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; + return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseofurl'].'/albums/'.$start.'-'.$op.'-'.$fct.'-'.$id.'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; } else { return XOOPS_URL.'/modules/songlist/albums.php?op='.$op.'&fct='.$fct.'&id='.$id.'&value='.urlencode($value).'&gid='.$gid.'&cid='.$cid.'&start='.$start; } Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/artists.php =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/artists.php 2012-04-04 20:36:40 UTC (rev 9278) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/artists.php 2012-04-04 21:22:33 UTC (rev 9279) @@ -84,7 +84,7 @@ function getURL() { global $file, $op, $fct, $id, $value, $gid, $cid, $start, $limit; if ($GLOBALS['songlistModuleConfig']['htaccess']) { - return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseurl'].'/artists/'.urlencode(str_replace(array(' ', chr(9)), '-', $this->getVar('name'))).'/item-item-'.$this->getVar('aid').'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; + return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseofurl'].'/artists/'.urlencode(str_replace(array(' ', chr(9)), '-', $this->getVar('name'))).'/item-item-'.$this->getVar('aid').'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; } else { return XOOPS_URL.'/modules/songlist/artists.php?op=item&fct=item&id='.$this->getVar('aid').'&value='.urlencode($value).'&gid='.$gid.'&cid='.$cid; } @@ -235,7 +235,7 @@ function getURL() { global $file, $op, $fct, $id, $value, $gid, $cid, $start, $limit; if ($GLOBALS['songlistModuleConfig']['htaccess']) { - return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseurl'].'/'.$file.'/'.$start.'-'.$op.'-'.$fct.'-'.$id.'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; + return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseofurl'].'/'.$file.'/'.$start.'-'.$op.'-'.$fct.'-'.$id.'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; } else { return XOOPS_URL.'/modules/songlist/'.$file.'.php?op='.$op.'&fct='.$fct.'&id='.$id.'&value='.urlencode($value).'&gid='.$gid.'&cid='.$cid.'&start='.$start; } Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/requests.php =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/requests.php 2012-04-04 20:36:40 UTC (rev 9278) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/requests.php 2012-04-04 21:22:33 UTC (rev 9279) @@ -205,7 +205,7 @@ function getURL() { global $file, $op, $fct, $id, $value, $gid, $cid, $start, $limit; if ($GLOBALS['songlistModuleConfig']['htaccess']) { - return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseurl'].'/'.$file.'/'.$op.'-'.$fct.$GLOBALS['songlistModuleConfig']['endofurl']; + return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseofurl'].'/'.$file.'/'.$op.'-'.$fct.$GLOBALS['songlistModuleConfig']['endofurl']; } else { return XOOPS_URL.'/modules/songlist/'.$file.'.php?op='.$op.'&fct='.$fct; } Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/songs.php =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/songs.php 2012-04-04 20:36:40 UTC (rev 9278) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/class/songs.php 2012-04-04 21:22:33 UTC (rev 9279) @@ -113,7 +113,7 @@ function getURL() { global $file, $op, $fct, $id, $value, $gid, $cid, $start, $limit; if ($GLOBALS['songlistModuleConfig']['htaccess']) { - return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseurl'].'/index/'.urlencode(str_replace(array(' ', chr(9)), '-', $this->getVar('title'))).'/item-item-'.$this->getVar('sid').'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; + return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseofurl'].'/index/'.urlencode(str_replace(array(' ', chr(9)), '-', $this->getVar('title'))).'/item-item-'.$this->getVar('sid').'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; } else { return XOOPS_URL.'/modules/songlist/index.php?op=item&fct=item&id='.$this->getVar('sid').'&value='.urlencode($value).'&gid='.$gid.'&cid='.$cid; } @@ -322,7 +322,7 @@ function getURL() { global $file, $op, $fct, $id, $value, $gid, $cid, $start, $limit; if ($GLOBALS['songlistModuleConfig']['htaccess']) { - return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseurl'].'/'.$file.'/'.$start.'-'.$op.'-'.$fct.'-'.$id.'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; + return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseofurl'].'/'.$file.'/'.$start.'-'.$op.'-'.$fct.'-'.$id.'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; } else { return XOOPS_URL.'/modules/songlist/'.$file.'.php?op='.$op.'&fct='.$fct.'&id='.$id.'&value='.urlencode($value).'&gid='.$gid.'&cid='.$cid.'&start='.$start; } @@ -331,7 +331,7 @@ function getSearchURL() { global $file, $op, $fct, $id, $value, $gid, $cid, $singer, $start, $limit; if ($GLOBALS['songlistModuleConfig']['htaccess']) { - return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseurl'].'/'.$file.'/'.$start.'-'.$op.'-'.$fct.'-'.urlencode($value).'-'.(isset($_GET['cid'])?($_GET['cid']):$cid).'-'.$gid.'-'.$singer.$GLOBALS['songlistModuleConfig']['endofurl']; + return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseofurl'].'/'.$file.'/'.$start.'-'.$op.'-'.$fct.'-'.urlencode($value).'-'.(isset($_GET['cid'])?($_GET['cid']):$cid).'-'.$gid.'-'.$singer.$GLOBALS['songlistModuleConfig']['endofurl']; } else { return XOOPS_URL.'/modules/songlist/'.$file.'.php?op='.$op.'&fct='.$fct.'&value='.urlencode($value).'&cid='.(isset($_GET['cid'])?($_GET['cid']):$cid).'&gid='.$gid.'&singer='.$singer.'&start='.$start; } Modified: XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/main.php =================================================================== --- XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/main.php 2012-04-04 20:36:40 UTC (rev 9278) +++ XoopsModules/songlist/releases/1.10/htdocs/modules/songlist/language/english/main.php 2012-04-04 21:22:33 UTC (rev 9279) @@ -37,6 +37,7 @@ define('_MN_SONGLIST_RESULTS_TITLE', 'Title'); define('_MN_SONGLIST_RESULTS_SONGID', 'Song ID'); define('_MN_SONGLIST_RESULTS_ACTIONS', 'Actions'); + define('_MN_SONGLIST_RESULTS_TAGS', 'Tags'); // Voting define('_MN_SONGLIST_10STARS', '10 Stars'); Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/import.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/import.php 2012-04-04 20:36:40 UTC (rev 9278) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/admin/import.php 2012-04-04 21:22:33 UTC (rev 9279) @@ -174,7 +174,6 @@ $object->setVar('singer', '_ENUM_SONGLIST_SOLO'); break; } - $object->setVar('cids', array_merge(array($cid=>$cid), $this->getVar('cids'))); $object->setVar('name', trim($data[$_POST['artist']])); $aid = $artists_handler->insert($object); $aids[$aid] = $aid; Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/class/albums.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/class/albums.php 2012-04-04 20:36:40 UTC (rev 9278) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/class/albums.php 2012-04-04 21:22:33 UTC (rev 9279) @@ -93,7 +93,7 @@ function getURL() { global $file, $op, $fct, $id, $value, $gid, $cid, $start, $limit; if ($GLOBALS['songlistModuleConfig']['htaccess']) { - return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseurl'].'/'.$file.'/'.urlencode(str_replace(array(' ', chr(9)), '-', $this->getVar('title'))).'/'.$op.'-'.$fct.'-'.$this->getVar('abid').'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; + return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseofurl'].'/'.$file.'/'.urlencode(str_replace(array(' ', chr(9)), '-', $this->getVar('title'))).'/'.$op.'-'.$fct.'-'.$this->getVar('abid').'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; } else { return XOOPS_URL.'/modules/songlist/'.$file.'.php?op='.$op.'&fct='.$fct.'&id='.$this->getVar('abid').'&value='.urlencode($value).'&gid='.$gid.'&cid='.$cid; } @@ -248,7 +248,7 @@ function getURL() { global $file, $op, $fct, $id, $value, $gid, $cid, $start, $limit; if ($GLOBALS['songlistModuleConfig']['htaccess']) { - return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseurl'].'/albums/'.$start.'-'.$op.'-'.$fct.'-'.$id.'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; + return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseofurl'].'/albums/'.$start.'-'.$op.'-'.$fct.'-'.$id.'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; } else { return XOOPS_URL.'/modules/songlist/albums.php?op='.$op.'&fct='.$fct.'&id='.$id.'&value='.urlencode($value).'&gid='.$gid.'&cid='.$cid.'&start='.$start; } Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/class/artists.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/class/artists.php 2012-04-04 20:36:40 UTC (rev 9278) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/class/artists.php 2012-04-04 21:22:33 UTC (rev 9279) @@ -84,7 +84,7 @@ function getURL() { global $file, $op, $fct, $id, $value, $gid, $cid, $start, $limit; if ($GLOBALS['songlistModuleConfig']['htaccess']) { - return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseurl'].'/artists/'.urlencode(str_replace(array(' ', chr(9)), '-', $this->getVar('name'))).'/item-item-'.$this->getVar('aid').'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; + return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseofurl'].'/artists/'.urlencode(str_replace(array(' ', chr(9)), '-', $this->getVar('name'))).'/item-item-'.$this->getVar('aid').'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; } else { return XOOPS_URL.'/modules/songlist/artists.php?op=item&fct=item&id='.$this->getVar('aid').'&value='.urlencode($value).'&gid='.$gid.'&cid='.$cid; } @@ -235,7 +235,7 @@ function getURL() { global $file, $op, $fct, $id, $value, $gid, $cid, $start, $limit; if ($GLOBALS['songlistModuleConfig']['htaccess']) { - return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseurl'].'/'.$file.'/'.$start.'-'.$op.'-'.$fct.'-'.$id.'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; + return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseofurl'].'/'.$file.'/'.$start.'-'.$op.'-'.$fct.'-'.$id.'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; } else { return XOOPS_URL.'/modules/songlist/'.$file.'.php?op='.$op.'&fct='.$fct.'&id='.$id.'&value='.urlencode($value).'&gid='.$gid.'&cid='.$cid.'&start='.$start; } Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/class/requests.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/class/requests.php 2012-04-04 20:36:40 UTC (rev 9278) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/class/requests.php 2012-04-04 21:22:33 UTC (rev 9279) @@ -205,7 +205,7 @@ function getURL() { global $file, $op, $fct, $id, $value, $gid, $cid, $start, $limit; if ($GLOBALS['songlistModuleConfig']['htaccess']) { - return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseurl'].'/'.$file.'/'.$op.'-'.$fct.$GLOBALS['songlistModuleConfig']['endofurl']; + return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseofurl'].'/'.$file.'/'.$op.'-'.$fct.$GLOBALS['songlistModuleConfig']['endofurl']; } else { return XOOPS_URL.'/modules/songlist/'.$file.'.php?op='.$op.'&fct='.$fct; } Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php 2012-04-04 20:36:40 UTC (rev 9278) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/class/songs.php 2012-04-04 21:22:33 UTC (rev 9279) @@ -113,7 +113,7 @@ function getURL() { global $file, $op, $fct, $id, $value, $gid, $cid, $start, $limit; if ($GLOBALS['songlistModuleConfig']['htaccess']) { - return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseurl'].'/index/'.urlencode(str_replace(array(' ', chr(9)), '-', $this->getVar('title'))).'/item-item-'.$this->getVar('sid').'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; + return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseofurl'].'/index/'.urlencode(str_replace(array(' ', chr(9)), '-', $this->getVar('title'))).'/item-item-'.$this->getVar('sid').'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; } else { return XOOPS_URL.'/modules/songlist/index.php?op=item&fct=item&id='.$this->getVar('sid').'&value='.urlencode($value).'&gid='.$gid.'&cid='.$cid; } @@ -322,7 +322,7 @@ function getURL() { global $file, $op, $fct, $id, $value, $gid, $cid, $start, $limit; if ($GLOBALS['songlistModuleConfig']['htaccess']) { - return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseurl'].'/'.$file.'/'.$start.'-'.$op.'-'.$fct.'-'.$id.'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; + return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseofurl'].'/'.$file.'/'.$start.'-'.$op.'-'.$fct.'-'.$id.'-'.urlencode($value).'-'.$gid.'-'.$cid.$GLOBALS['songlistModuleConfig']['endofurl']; } else { return XOOPS_URL.'/modules/songlist/'.$file.'.php?op='.$op.'&fct='.$fct.'&id='.$id.'&value='.urlencode($value).'&gid='.$gid.'&cid='.$cid.'&start='.$start; } @@ -331,7 +331,7 @@ function getSearchURL() { global $file, $op, $fct, $id, $value, $gid, $cid, $singer, $start, $limit; if ($GLOBALS['songlistModuleConfig']['htaccess']) { - return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseurl'].'/'.$file.'/'.$start.'-'.$op.'-'.$fct.'-'.urlencode($value).'-'.(isset($_GET['cid'])?($_GET['cid']):$cid).'-'.$gid.'-'.$singer.$GLOBALS['songlistModuleConfig']['endofurl']; + return XOOPS_URL.'/'.$GLOBALS['songlistModuleConfig']['baseofurl'].'/'.$file.'/'.$start.'-'.$op.'-'.$fct.'-'.urlencode($value).'-'.(isset($_GET['cid'])?($_GET['cid']):$cid).'-'.$gid.'-'.$singer.$GLOBALS['songlistModuleConfig']['endofurl']; } else { return XOOPS_URL.'/modules/songlist/'.$file.'.php?op='.$op.'&fct='.$fct.'&value='.urlencode($value).'&cid='.(isset($_GET['cid'])?($_GET['cid']):$cid).'&gid='.$gid.'&singer='.$singer.'&start='.$start; } Modified: XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/main.php =================================================================== --- XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/main.php 2012-04-04 20:36:40 UTC (rev 9278) +++ XoopsModules/songlist/trunk/htdocs/modules/songlist/language/english/main.php 2012-04-04 21:22:33 UTC (rev 9279) @@ -37,6 +37,7 @@ define('_MN_SONGLIST_RESULTS_TITLE', 'Title'); define('_MN_SONGLIST_RESULTS_SONGID', 'Song ID'); define('_MN_SONGLIST_RESULTS_ACTIONS', 'Actions'); + define('_MN_SONGLIST_RESULTS_TAGS', 'Tags'); // Voting define('_MN_SONGLIST_10STARS', '10 Stars'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-04-04 20:36:46
|
Revision: 9278 http://xoops.svn.sourceforge.net/xoops/?rev=9278&view=rev Author: wishcraft Date: 2012-04-04 20:36:40 +0000 (Wed, 04 Apr 2012) Log Message: ----------- XCenter 2.16 - Content Module for XOOPS 2.5.x - See changelog.txt for changes. Added Paths: ----------- XoopsModules/xcenter/releases/2.16/htdocs/class/ XoopsModules/xcenter/releases/2.16/htdocs/class/xoopsform/ XoopsModules/xcenter/releases/2.16/htdocs/class/xoopsform/formtextdateselect.php XoopsModules/xcenter/trunk/htdocs/class/ XoopsModules/xcenter/trunk/htdocs/class/xoopsform/ XoopsModules/xcenter/trunk/htdocs/class/xoopsform/formtextdateselect.php Removed Paths: ------------- XoopsModules/xcenter/releases/2.16/htdocs/modules/class/ XoopsModules/xcenter/trunk/htdocs/modules/class/ Added: XoopsModules/xcenter/releases/2.16/htdocs/class/xoopsform/formtextdateselect.php =================================================================== --- XoopsModules/xcenter/releases/2.16/htdocs/class/xoopsform/formtextdateselect.php (rev 0) +++ XoopsModules/xcenter/releases/2.16/htdocs/class/xoopsform/formtextdateselect.php 2012-04-04 20:36:40 UTC (rev 9278) @@ -0,0 +1,144 @@ +<?php +/** + * XOOPS form element + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package kernel + * @subpackage form + * @since 2.0.0 + * @author Kazumi Ono (AKA onokazu) http://www.myweb.ne.jp/, http://jp.xoops.org/ + * @version $Id: formtextdateselect.php 8995 2012-02-15 13:21:30Z forxoops $ + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * A text field with calendar popup + */ + +class XoopsFormTextDateSelect extends XoopsFormText +{ + + function XoopsFormTextDateSelect($caption, $name, $size = 15, $value = 0) + { + $value = !is_numeric($value) ? time() : intval($value); + $value = ($value == 0) ? time() : $value; + $this->XoopsFormText($caption, $name, $size, 25, $value); + } + + function render() + { + static $included = false; + include_once XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/calendar.php'; + + $ele_name = $this->getName(); + $ele_value = $this->getValue(false); + if (is_string($ele_value)) { + $display_value = $ele_value; + $ele_value = time(); + } else { + $display_value = date(_CAL_FORMAT, $ele_value); + } + + $jstime = formatTimestamp($ele_value, _CAL_FORMAT); + if (is_object($GLOBALS['xoTheme'])) { + $GLOBALS['xoTheme']->addScript('include/calendar.js'); + $GLOBALS['xoTheme']->addStylesheet('include/calendar-blue.css'); + if (!$included) { + $included = true; + $GLOBALS['xoTheme']->addScript('','', ' + var calendar = null; + + function selected(cal, date) { + cal.sel.value = date; + } + + function closeHandler(cal) { + cal.hide(); + Calendar.removeEvent(document, "mousedown", checkCalendar); + } + + function checkCalendar(ev) { + var el = Calendar.is_ie ? Calendar.getElement(ev) : Calendar.getTargetElement(ev); + for (; el != null; el = el.parentNode) + if (el == calendar.element || el.tagName == "A") break; + if (el == null) { + calendar.callCloseHandler(); Calendar.stopEvent(ev); + } + } + function showCalendar(id) { + var el = xoopsGetElementById(id); + if (calendar != null) { + calendar.hide(); + } else { + var cal = new Calendar(true, "' . $jstime . '", selected, closeHandler); + calendar = cal; + cal.setRange(1900, 2100); + calendar.create(); + } + calendar.sel = el; + calendar.parseDate(el.value); + calendar.showAtElement(el); + Calendar.addEvent(document, "mousedown", checkCalendar); + return false; + } + + Calendar._DN = new Array + ("' . _CAL_SUNDAY . '", + "' . _CAL_MONDAY . '", + "' . _CAL_TUESDAY . '", + "' . _CAL_WEDNESDAY . '", + "' . _CAL_THURSDAY . '", + "' . _CAL_FRIDAY . '", + "' . _CAL_SATURDAY . '", + "' . _CAL_SUNDAY . '"); + Calendar._MN = new Array + ("' . _CAL_JANUARY . '", + "' . _CAL_FEBRUARY . '", + "' . _CAL_MARCH . '", + "' . _CAL_APRIL . '", + "' . _CAL_MAY . '", + "' . _CAL_JUNE . '", + "' . _CAL_JULY . '", + "' . _CAL_AUGUST . '", + "' . _CAL_SEPTEMBER . '", + "' . _CAL_OCTOBER . '", + "' . _CAL_NOVEMBER . '", + "' . _CAL_DECEMBER . '"); + + Calendar._TT = {}; + Calendar._TT["TOGGLE"] = "' . _CAL_TGL1STD . '"; + Calendar._TT["PREV_YEAR"] = "' . _CAL_PREVYR . '"; + Calendar._TT["PREV_MONTH"] = "' . _CAL_PREVMNTH . '"; + Calendar._TT["GO_TODAY"] = "' . _CAL_GOTODAY . '"; + Calendar._TT["NEXT_MONTH"] = "' . _CAL_NXTMNTH . '"; + Calendar._TT["NEXT_YEAR"] = "' . _CAL_NEXTYR . '"; + Calendar._TT["SEL_DATE"] = "' . _CAL_SELDATE . '"; + Calendar._TT["DRAG_TO_MOVE"] = "' . _CAL_DRAGMOVE . '"; + Calendar._TT["PART_TODAY"] = "(' . _CAL_TODAY . ')"; + Calendar._TT["MON_FIRST"] = "' . _CAL_DISPM1ST . '"; + Calendar._TT["SUN_FIRST"] = "' . _CAL_DISPS1ST . '"; + Calendar._TT["CLOSE"] = "' . _CLOSE . '"; + Calendar._TT["TODAY"] = "' . _CAL_TODAY . '"; + + // date formats + Calendar._TT["DEF_DATE_FORMAT"] = "' . _CAL_FORMAT . '"; + Calendar._TT["TT_DATE_FORMAT"] = "' . _CAL_FORMAT . '"; + + Calendar._TT["WK"] = ""; + '); + } + } + return "<input type='text' name='" . $ele_name . "' id='" . $ele_name . "' size='" . $this->getSize() . "' maxlength='" . $this->getMaxlength() . "' value='" . $display_value . "'" . $this->getExtra() . " /><input type='reset' value=' ... ' onclick='return showCalendar(\"" . $ele_name . "\");'>"; + } +} + +?> \ No newline at end of file Added: XoopsModules/xcenter/trunk/htdocs/class/xoopsform/formtextdateselect.php =================================================================== --- XoopsModules/xcenter/trunk/htdocs/class/xoopsform/formtextdateselect.php (rev 0) +++ XoopsModules/xcenter/trunk/htdocs/class/xoopsform/formtextdateselect.php 2012-04-04 20:36:40 UTC (rev 9278) @@ -0,0 +1,144 @@ +<?php +/** + * XOOPS form element + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package kernel + * @subpackage form + * @since 2.0.0 + * @author Kazumi Ono (AKA onokazu) http://www.myweb.ne.jp/, http://jp.xoops.org/ + * @version $Id: formtextdateselect.php 8995 2012-02-15 13:21:30Z forxoops $ + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * A text field with calendar popup + */ + +class XoopsFormTextDateSelect extends XoopsFormText +{ + + function XoopsFormTextDateSelect($caption, $name, $size = 15, $value = 0) + { + $value = !is_numeric($value) ? time() : intval($value); + $value = ($value == 0) ? time() : $value; + $this->XoopsFormText($caption, $name, $size, 25, $value); + } + + function render() + { + static $included = false; + include_once XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/calendar.php'; + + $ele_name = $this->getName(); + $ele_value = $this->getValue(false); + if (is_string($ele_value)) { + $display_value = $ele_value; + $ele_value = time(); + } else { + $display_value = date(_CAL_FORMAT, $ele_value); + } + + $jstime = formatTimestamp($ele_value, _CAL_FORMAT); + if (is_object($GLOBALS['xoTheme'])) { + $GLOBALS['xoTheme']->addScript('include/calendar.js'); + $GLOBALS['xoTheme']->addStylesheet('include/calendar-blue.css'); + if (!$included) { + $included = true; + $GLOBALS['xoTheme']->addScript('','', ' + var calendar = null; + + function selected(cal, date) { + cal.sel.value = date; + } + + function closeHandler(cal) { + cal.hide(); + Calendar.removeEvent(document, "mousedown", checkCalendar); + } + + function checkCalendar(ev) { + var el = Calendar.is_ie ? Calendar.getElement(ev) : Calendar.getTargetElement(ev); + for (; el != null; el = el.parentNode) + if (el == calendar.element || el.tagName == "A") break; + if (el == null) { + calendar.callCloseHandler(); Calendar.stopEvent(ev); + } + } + function showCalendar(id) { + var el = xoopsGetElementById(id); + if (calendar != null) { + calendar.hide(); + } else { + var cal = new Calendar(true, "' . $jstime . '", selected, closeHandler); + calendar = cal; + cal.setRange(1900, 2100); + calendar.create(); + } + calendar.sel = el; + calendar.parseDate(el.value); + calendar.showAtElement(el); + Calendar.addEvent(document, "mousedown", checkCalendar); + return false; + } + + Calendar._DN = new Array + ("' . _CAL_SUNDAY . '", + "' . _CAL_MONDAY . '", + "' . _CAL_TUESDAY . '", + "' . _CAL_WEDNESDAY . '", + "' . _CAL_THURSDAY . '", + "' . _CAL_FRIDAY . '", + "' . _CAL_SATURDAY . '", + "' . _CAL_SUNDAY . '"); + Calendar._MN = new Array + ("' . _CAL_JANUARY . '", + "' . _CAL_FEBRUARY . '", + "' . _CAL_MARCH . '", + "' . _CAL_APRIL . '", + "' . _CAL_MAY . '", + "' . _CAL_JUNE . '", + "' . _CAL_JULY . '", + "' . _CAL_AUGUST . '", + "' . _CAL_SEPTEMBER . '", + "' . _CAL_OCTOBER . '", + "' . _CAL_NOVEMBER . '", + "' . _CAL_DECEMBER . '"); + + Calendar._TT = {}; + Calendar._TT["TOGGLE"] = "' . _CAL_TGL1STD . '"; + Calendar._TT["PREV_YEAR"] = "' . _CAL_PREVYR . '"; + Calendar._TT["PREV_MONTH"] = "' . _CAL_PREVMNTH . '"; + Calendar._TT["GO_TODAY"] = "' . _CAL_GOTODAY . '"; + Calendar._TT["NEXT_MONTH"] = "' . _CAL_NXTMNTH . '"; + Calendar._TT["NEXT_YEAR"] = "' . _CAL_NEXTYR . '"; + Calendar._TT["SEL_DATE"] = "' . _CAL_SELDATE . '"; + Calendar._TT["DRAG_TO_MOVE"] = "' . _CAL_DRAGMOVE . '"; + Calendar._TT["PART_TODAY"] = "(' . _CAL_TODAY . ')"; + Calendar._TT["MON_FIRST"] = "' . _CAL_DISPM1ST . '"; + Calendar._TT["SUN_FIRST"] = "' . _CAL_DISPS1ST . '"; + Calendar._TT["CLOSE"] = "' . _CLOSE . '"; + Calendar._TT["TODAY"] = "' . _CAL_TODAY . '"; + + // date formats + Calendar._TT["DEF_DATE_FORMAT"] = "' . _CAL_FORMAT . '"; + Calendar._TT["TT_DATE_FORMAT"] = "' . _CAL_FORMAT . '"; + + Calendar._TT["WK"] = ""; + '); + } + } + return "<input type='text' name='" . $ele_name . "' id='" . $ele_name . "' size='" . $this->getSize() . "' maxlength='" . $this->getMaxlength() . "' value='" . $display_value . "'" . $this->getExtra() . " /><input type='reset' value=' ... ' onclick='return showCalendar(\"" . $ele_name . "\");'>"; + } +} + +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wis...@us...> - 2012-04-04 20:17:17
|
Revision: 9277 http://xoops.svn.sourceforge.net/xoops/?rev=9277&view=rev Author: wishcraft Date: 2012-04-04 20:17:05 +0000 (Wed, 04 Apr 2012) Log Message: ----------- XCenter 2.16 - Content Module for XOOPS 2.5.x - See changelog.txt for changes. Added Paths: ----------- XoopsModules/xcenter/releases/2.16/ XoopsModules/xcenter/releases/2.16/docs/ XoopsModules/xcenter/releases/2.16/docs/.htaccess.dist XoopsModules/xcenter/releases/2.16/docs/LICENCE XoopsModules/xcenter/releases/2.16/htdocs/ XoopsModules/xcenter/releases/2.16/htdocs/Frameworks/ XoopsModules/xcenter/releases/2.16/htdocs/Frameworks/tcpdf/ XoopsModules/xcenter/releases/2.16/htdocs/modules/ XoopsModules/xcenter/releases/2.16/htdocs/modules/class/ XoopsModules/xcenter/releases/2.16/htdocs/modules/class/xoopsform/ XoopsModules/xcenter/releases/2.16/htdocs/modules/class/xoopsform/formtextdateselect.php XoopsModules/xcenter/releases/2.16/htdocs/modules/sitemap/ XoopsModules/xcenter/releases/2.16/htdocs/modules/sitemap/plugins/ XoopsModules/xcenter/releases/2.16/htdocs/modules/sitemap/plugins/xcenter.php XoopsModules/xcenter/releases/2.16/htdocs/modules/tag/ XoopsModules/xcenter/releases/2.16/htdocs/modules/tag/plugin/ XoopsModules/xcenter/releases/2.16/htdocs/modules/tag/plugin/xcenter.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/ XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/.htaccess.dist XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/admin/ XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/admin/header.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/admin/index.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/admin/menu.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/blocks/ XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/blocks/index.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/blocks/kernel.plugin.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/blocks/xcenter_block_inheritable.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/blocks/xcenter_block_menu.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/blocks/xcenter_block_sections.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/blocks/xcenter_block_subitems.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/blocks/xcenter_blocks_tag.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/class/ XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/class/block.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/class/category.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/class/index.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/class/text.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/class/xcenter.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/class/xlanguage_ext.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/comment_delete.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/comment_edit.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/comment_new.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/comment_post.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/comment_reply.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/docs/ XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/docs/changelog.txt XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/docs/credits.txt XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/docs/index.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/docs/install.txt XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/docs/lang_diff.txt XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/docs/licence.txt XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/docs/readme.txt XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/dojson_loadform.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/dojson_loadtemplate.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/header.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/ XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/Thumbs.db XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/add.category.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/add.inheritable.block.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/add.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/add.xcenter.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/child_mark.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/close12.gif XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/copy.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/delete.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/edit.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/email.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/folder.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/folder_o.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/go.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/index.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/left_both.gif XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/manage.categories.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/manage.inheritable.blocks.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/manage.xcenter.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/open12.gif XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/page.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/pdf.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/permissions.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/print.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/right_both.gif XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/rss.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/images/xcenter_slogo.png XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/include/ XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/include/JSON.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/include/formobjects.xcenter.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/include/forms.xcenter.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/include/formselectblocks.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/include/formselectcategories.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/include/formselectlanguages.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/include/formselectpages.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/include/formselecttemplates.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/include/functions.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/include/index.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/include/install.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/include/search.inc.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/include/update.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/index.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/language/ XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/language/english/ XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/language/english/admin.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/language/english/blocks.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/language/english/index.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/language/english/main.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/language/english/modinfo.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/language/index.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/list.tag.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/manage.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/pdf.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/print.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/rss.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/sql/ XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/sql/index.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/sql/mysql.sql XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/ XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/blocks/ XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/blocks/index.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/blocks/xcenter_block_inheritable.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/blocks/xcenter_block_menu.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/blocks/xcenter_block_sections.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/blocks/xcenter_block_subitems.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/blocks/xcenter_tag_block_cloud.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/blocks/xcenter_tag_block_top.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/css/ XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/css/content.css XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/css/index.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/css/print.css XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/index.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/js/ XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/js/core.js XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/js/index.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/predefined/ XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/predefined/content/ XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/predefined/content/index.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/predefined/content/template_one.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/predefined/content/template_three.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/predefined/content/template_two.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/predefined/index.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/predefined/rss/ XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/predefined/rss/index.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/predefined/rss/template_one.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/predefined/rss/template_three.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/predefined/rss/template_two.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/xcenter_breadcrumb.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/xcenter_cpanel_addeditblock.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/xcenter_cpanel_addeditcategory.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/xcenter_cpanel_addeditpage.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/xcenter_cpanel_json_addeditblock.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/xcenter_cpanel_json_addeditcategory.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/xcenter_cpanel_json_addeditpage.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/xcenter_index.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/xcenter_index_addeditblock.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/xcenter_index_addeditcategory.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/xcenter_index_addeditpage.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/xcenter_index_json_addeditblock.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/xcenter_index_json_addeditcategory.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/xcenter_index_json_addeditpage.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/xcenter_index_manage.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/templates/xcenter_index_password.html XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/view.tag.php XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/xoops_version.php XoopsModules/xcenter/trunk/ XoopsModules/xcenter/trunk/docs/ XoopsModules/xcenter/trunk/docs/.htaccess.dist XoopsModules/xcenter/trunk/docs/LICENCE XoopsModules/xcenter/trunk/htdocs/ XoopsModules/xcenter/trunk/htdocs/Frameworks/ XoopsModules/xcenter/trunk/htdocs/Frameworks/tcpdf/ XoopsModules/xcenter/trunk/htdocs/modules/ XoopsModules/xcenter/trunk/htdocs/modules/class/ XoopsModules/xcenter/trunk/htdocs/modules/class/xoopsform/ XoopsModules/xcenter/trunk/htdocs/modules/class/xoopsform/formtextdateselect.php XoopsModules/xcenter/trunk/htdocs/modules/sitemap/ XoopsModules/xcenter/trunk/htdocs/modules/sitemap/plugins/ XoopsModules/xcenter/trunk/htdocs/modules/sitemap/plugins/xcenter.php XoopsModules/xcenter/trunk/htdocs/modules/tag/ XoopsModules/xcenter/trunk/htdocs/modules/tag/plugin/ XoopsModules/xcenter/trunk/htdocs/modules/tag/plugin/xcenter.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/ XoopsModules/xcenter/trunk/htdocs/modules/xcenter/.htaccess.dist XoopsModules/xcenter/trunk/htdocs/modules/xcenter/admin/ XoopsModules/xcenter/trunk/htdocs/modules/xcenter/admin/header.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/admin/index.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/admin/menu.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/blocks/ XoopsModules/xcenter/trunk/htdocs/modules/xcenter/blocks/index.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/blocks/kernel.plugin.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/blocks/xcenter_block_inheritable.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/blocks/xcenter_block_menu.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/blocks/xcenter_block_sections.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/blocks/xcenter_block_subitems.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/blocks/xcenter_blocks_tag.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/class/ XoopsModules/xcenter/trunk/htdocs/modules/xcenter/class/block.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/class/category.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/class/index.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/class/text.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/class/xcenter.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/class/xlanguage_ext.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/comment_delete.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/comment_edit.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/comment_new.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/comment_post.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/comment_reply.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/docs/ XoopsModules/xcenter/trunk/htdocs/modules/xcenter/docs/changelog.txt XoopsModules/xcenter/trunk/htdocs/modules/xcenter/docs/credits.txt XoopsModules/xcenter/trunk/htdocs/modules/xcenter/docs/index.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/docs/install.txt XoopsModules/xcenter/trunk/htdocs/modules/xcenter/docs/lang_diff.txt XoopsModules/xcenter/trunk/htdocs/modules/xcenter/docs/licence.txt XoopsModules/xcenter/trunk/htdocs/modules/xcenter/docs/readme.txt XoopsModules/xcenter/trunk/htdocs/modules/xcenter/dojson_loadform.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/dojson_loadtemplate.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/header.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/ XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/Thumbs.db XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/add.category.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/add.inheritable.block.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/add.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/add.xcenter.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/child_mark.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/close12.gif XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/copy.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/delete.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/edit.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/email.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/folder.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/folder_o.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/go.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/index.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/left_both.gif XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/manage.categories.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/manage.inheritable.blocks.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/manage.xcenter.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/open12.gif XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/page.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/pdf.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/permissions.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/print.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/right_both.gif XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/rss.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/images/xcenter_slogo.png XoopsModules/xcenter/trunk/htdocs/modules/xcenter/include/ XoopsModules/xcenter/trunk/htdocs/modules/xcenter/include/JSON.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/include/formobjects.xcenter.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/include/forms.xcenter.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/include/formselectblocks.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/include/formselectcategories.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/include/formselectlanguages.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/include/formselectpages.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/include/formselecttemplates.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/include/functions.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/include/index.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/include/install.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/include/search.inc.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/include/update.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/index.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/language/ XoopsModules/xcenter/trunk/htdocs/modules/xcenter/language/english/ XoopsModules/xcenter/trunk/htdocs/modules/xcenter/language/english/admin.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/language/english/blocks.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/language/english/index.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/language/english/main.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/language/english/modinfo.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/language/index.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/list.tag.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/manage.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/pdf.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/print.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/rss.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/sql/ XoopsModules/xcenter/trunk/htdocs/modules/xcenter/sql/index.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/sql/mysql.sql XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/ XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/blocks/ XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/blocks/index.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/blocks/xcenter_block_inheritable.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/blocks/xcenter_block_menu.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/blocks/xcenter_block_sections.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/blocks/xcenter_block_subitems.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/blocks/xcenter_tag_block_cloud.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/blocks/xcenter_tag_block_top.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/css/ XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/css/content.css XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/css/index.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/css/print.css XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/index.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/js/ XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/js/core.js XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/js/index.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/predefined/ XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/predefined/content/ XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/predefined/content/index.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/predefined/content/template_one.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/predefined/content/template_three.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/predefined/content/template_two.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/predefined/index.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/predefined/rss/ XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/predefined/rss/index.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/predefined/rss/template_one.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/predefined/rss/template_three.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/predefined/rss/template_two.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/xcenter_breadcrumb.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/xcenter_cpanel_addeditblock.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/xcenter_cpanel_addeditcategory.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/xcenter_cpanel_addeditpage.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/xcenter_cpanel_json_addeditblock.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/xcenter_cpanel_json_addeditcategory.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/xcenter_cpanel_json_addeditpage.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/xcenter_index.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/xcenter_index_addeditblock.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/xcenter_index_addeditcategory.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/xcenter_index_addeditpage.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/xcenter_index_json_addeditblock.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/xcenter_index_json_addeditcategory.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/xcenter_index_json_addeditpage.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/xcenter_index_manage.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/templates/xcenter_index_password.html XoopsModules/xcenter/trunk/htdocs/modules/xcenter/view.tag.php XoopsModules/xcenter/trunk/htdocs/modules/xcenter/xoops_version.php Added: XoopsModules/xcenter/releases/2.16/docs/.htaccess.dist =================================================================== --- XoopsModules/xcenter/releases/2.16/docs/.htaccess.dist (rev 0) +++ XoopsModules/xcenter/releases/2.16/docs/.htaccess.dist 2012-04-04 20:17:05 UTC (rev 9277) @@ -0,0 +1,20 @@ + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d + +RewriteRule ^xcenter/(.*?)/(.*?)/([0-9]+),([0-9]+).html$ modules/xcenter/index.php?cat_title=$1&cont_title=$2&storyid=$3&catid=$4 +RewriteRule ^xcenter/(.*?)/(.*?)/view.tag.php$ modules/xcenter/view.tag.php +RewriteRule ^xcenter/(.*?)/(.*?)/list.tag.php$ modules/xcenter/list.tag.php +RewriteRule ^xcenter/(.*?)/([0-9]+),([0-9]+).html$ modules/xcenter/index.php?cont_title=$1&storyid=$2&catid=$3 +RewriteRule ^xcenter/(.*?)/feed,([0-9]+).rss$ modules/xcenter/rss.php?cat_title=$1&catid=$3 +RewriteRule ^xcenter/(.*?)/pdf,([0-9]+).pdf$ modules/xcenter/pdf.php?cat_title=$1&storyid=$2 +RewriteRule ^xcenter/(.*?)/view.tag.php$ modules/xcenter/view.tag.php +RewriteRule ^xcenter/(.*?)/list.tag.php$ modules/xcenter/list.tag.php +RewriteRule ^xcenter/feed,([0-9]+).rss$ modules/xcenter/rss.php?catid=$1 +RewriteRule ^xcenter/pdf,([0-9]+).pdf$ modules/xcenter/pdf.php?storyid=$1 +RewriteRule ^xcenter/view.tag.php$ modules/xcenter/view.tag.php +RewriteRule ^xcenter/list.tag.php$ modules/xcenter/list.tag.php +RewriteRule ^xcenter/$ modules/xcenter/index.php$1 +RewriteRule ^xcenter$ modules/xcenter/index.php$1 + Added: XoopsModules/xcenter/releases/2.16/docs/LICENCE =================================================================== --- XoopsModules/xcenter/releases/2.16/docs/LICENCE (rev 0) +++ XoopsModules/xcenter/releases/2.16/docs/LICENCE 2012-04-04 20:17:05 UTC (rev 9277) @@ -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, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + 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. + + 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., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/xcenter/releases/2.16/htdocs/modules/class/xoopsform/formtextdateselect.php =================================================================== --- XoopsModules/xcenter/releases/2.16/htdocs/modules/class/xoopsform/formtextdateselect.php (rev 0) +++ XoopsModules/xcenter/releases/2.16/htdocs/modules/class/xoopsform/formtextdateselect.php 2012-04-04 20:17:05 UTC (rev 9277) @@ -0,0 +1,144 @@ +<?php +/** + * XOOPS form element + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) + * @package kernel + * @subpackage form + * @since 2.0.0 + * @author Kazumi Ono (AKA onokazu) http://www.myweb.ne.jp/, http://jp.xoops.org/ + * @version $Id: formtextdateselect.php 8995 2012-02-15 13:21:30Z forxoops $ + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * A text field with calendar popup + */ + +class XoopsFormTextDateSelect extends XoopsFormText +{ + + function XoopsFormTextDateSelect($caption, $name, $size = 15, $value = 0) + { + $value = !is_numeric($value) ? time() : intval($value); + $value = ($value == 0) ? time() : $value; + $this->XoopsFormText($caption, $name, $size, 25, $value); + } + + function render() + { + static $included = false; + include_once XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/calendar.php'; + + $ele_name = $this->getName(); + $ele_value = $this->getValue(false); + if (is_string($ele_value)) { + $display_value = $ele_value; + $ele_value = time(); + } else { + $display_value = date(_CAL_FORMAT, $ele_value); + } + + $jstime = formatTimestamp($ele_value, _CAL_FORMAT); + if (is_object($GLOBALS['xoTheme'])) { + $GLOBALS['xoTheme']->addScript('include/calendar.js'); + $GLOBALS['xoTheme']->addStylesheet('include/calendar-blue.css'); + if (!$included) { + $included = true; + $GLOBALS['xoTheme']->addScript('','', ' + var calendar = null; + + function selected(cal, date) { + cal.sel.value = date; + } + + function closeHandler(cal) { + cal.hide(); + Calendar.removeEvent(document, "mousedown", checkCalendar); + } + + function checkCalendar(ev) { + var el = Calendar.is_ie ? Calendar.getElement(ev) : Calendar.getTargetElement(ev); + for (; el != null; el = el.parentNode) + if (el == calendar.element || el.tagName == "A") break; + if (el == null) { + calendar.callCloseHandler(); Calendar.stopEvent(ev); + } + } + function showCalendar(id) { + var el = xoopsGetElementById(id); + if (calendar != null) { + calendar.hide(); + } else { + var cal = new Calendar(true, "' . $jstime . '", selected, closeHandler); + calendar = cal; + cal.setRange(1900, 2100); + calendar.create(); + } + calendar.sel = el; + calendar.parseDate(el.value); + calendar.showAtElement(el); + Calendar.addEvent(document, "mousedown", checkCalendar); + return false; + } + + Calendar._DN = new Array + ("' . _CAL_SUNDAY . '", + "' . _CAL_MONDAY . '", + "' . _CAL_TUESDAY . '", + "' . _CAL_WEDNESDAY . '", + "' . _CAL_THURSDAY . '", + "' . _CAL_FRIDAY . '", + "' . _CAL_SATURDAY . '", + "' . _CAL_SUNDAY . '"); + Calendar._MN = new Array + ("' . _CAL_JANUARY . '", + "' . _CAL_FEBRUARY . '", + "' . _CAL_MARCH . '", + "' . _CAL_APRIL . '", + "' . _CAL_MAY . '", + "' . _CAL_JUNE . '", + "' . _CAL_JULY . '", + "' . _CAL_AUGUST . '", + "' . _CAL_SEPTEMBER . '", + "' . _CAL_OCTOBER . '", + "' . _CAL_NOVEMBER . '", + "' . _CAL_DECEMBER . '"); + + Calendar._TT = {}; + Calendar._TT["TOGGLE"] = "' . _CAL_TGL1STD . '"; + Calendar._TT["PREV_YEAR"] = "' . _CAL_PREVYR . '"; + Calendar._TT["PREV_MONTH"] = "' . _CAL_PREVMNTH . '"; + Calendar._TT["GO_TODAY"] = "' . _CAL_GOTODAY . '"; + Calendar._TT["NEXT_MONTH"] = "' . _CAL_NXTMNTH . '"; + Calendar._TT["NEXT_YEAR"] = "' . _CAL_NEXTYR . '"; + Calendar._TT["SEL_DATE"] = "' . _CAL_SELDATE . '"; + Calendar._TT["DRAG_TO_MOVE"] = "' . _CAL_DRAGMOVE . '"; + Calendar._TT["PART_TODAY"] = "(' . _CAL_TODAY . ')"; + Calendar._TT["MON_FIRST"] = "' . _CAL_DISPM1ST . '"; + Calendar._TT["SUN_FIRST"] = "' . _CAL_DISPS1ST . '"; + Calendar._TT["CLOSE"] = "' . _CLOSE . '"; + Calendar._TT["TODAY"] = "' . _CAL_TODAY . '"; + + // date formats + Calendar._TT["DEF_DATE_FORMAT"] = "' . _CAL_FORMAT . '"; + Calendar._TT["TT_DATE_FORMAT"] = "' . _CAL_FORMAT . '"; + + Calendar._TT["WK"] = ""; + '); + } + } + return "<input type='text' name='" . $ele_name . "' id='" . $ele_name . "' size='" . $this->getSize() . "' maxlength='" . $this->getMaxlength() . "' value='" . $display_value . "'" . $this->getExtra() . " /><input type='reset' value=' ... ' onclick='return showCalendar(\"" . $ele_name . "\");'>"; + } +} + +?> \ No newline at end of file Added: XoopsModules/xcenter/releases/2.16/htdocs/modules/sitemap/plugins/xcenter.php =================================================================== --- XoopsModules/xcenter/releases/2.16/htdocs/modules/sitemap/plugins/xcenter.php (rev 0) +++ XoopsModules/xcenter/releases/2.16/htdocs/modules/sitemap/plugins/xcenter.php 2012-04-04 20:17:05 UTC (rev 9277) @@ -0,0 +1,45 @@ +<?php +// $Id: newbb.php,v 1.1 2005/04/07 09:23:42 gij Exp $ +// FILE :: newbb.php +// AUTHOR :: Ryuji AMANO <in...@ry...> +// WEB :: Ryu's Planning <http://ryus.co.jp/> + +// NewBBversion/newbb2 plugin: D.J., http://xoops.org.cn + +function b_sitemap_xcenter(){ + global $sitemap_configs; + $sitemap = array(); + + // Get All Forums with access permission + $xcenter_handler =& xoops_getmodulehandler('xcenter', 'xcenter'); + $xcenters = $xcenter_handler->getObjects(NULL, true); + + $gperm_handler =& xoops_gethandler('groupperm'); + $groups = is_object($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser']->getGroups() : array(XOOPS_GROUP_ANONYMOUS); + $module_handler =& xoops_gethandler('module'); + $xoModule = $module_handler->getByDirname(_BRC_DIRNAME); + $modid = $xoModule->getVar('mid'); + + foreach ($xcenters as $storyid => $xcenter) { + + if ($gperm_handler->checkRight(_BRC_PERM_MODE_VIEW._BRC_PERM_TYPE_CONTENT,$storyid,$groups, $modid) && + $gperm_handler->checkRight(_BRC_PERM_MODE_VIEW._BRC_PERM_TYPE_CATEGORY,$xcenter->getVar('catid'),$groups, $modid)) { + $text = $xcenter_handler->getContent($storyid); + $pages[$storyid] = array( + 'id' => $storyid, + 'cid' => $xcenter->getVar('catid'), + 'url' => "index.php?storyid=".$storyid, + 'title' => $text['text']->getVar('title')); + } + + } + + if(count($pages)>0) + foreach ( $pages as $id=>$page ) { + $sitemap['parent'][$id] = $page; + unset($pages); + } + + return $sitemap; +} +?> \ No newline at end of file Added: XoopsModules/xcenter/releases/2.16/htdocs/modules/tag/plugin/xcenter.php =================================================================== --- XoopsModules/xcenter/releases/2.16/htdocs/modules/tag/plugin/xcenter.php (rev 0) +++ XoopsModules/xcenter/releases/2.16/htdocs/modules/tag/plugin/xcenter.php 2012-04-04 20:17:05 UTC (rev 9277) @@ -0,0 +1,111 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +*/ + +/** + * XOOPS tag management module + * + * @copyright The XOOPS project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @since 1.0.0 + * @author Taiwen Jiang <ph...@us...> + * @version $Id: xcenter.php 2292 2008-10-12 04:53:18Z phppp $ + * @package tag + */ +if (!defined('XOOPS_ROOT_PATH')) { exit(); } + +/** + * Get item fields: + * title + * xcenter + * time + * link + * uid + * uname + * tags + * + * @var array $items associative array of items: [modid][catid][itemid] + * + * @return boolean + * + */ +function xcenter_tag_iteminfo(&$items) +{ + if (empty($items) || !is_array($items)) { + return false; + } + + $items_id = array(); + foreach (array_keys($items) as $cat_id) { + // Some handling here to build the link upon catid + // catid is not used in xcenter, so just skip it + foreach (array_keys($items[$cat_id]) as $item_id) { + // In xcenter, the item_id is "topic_id" + $items_id[] = intval($item_id); + } + } + $item_handler =& xoops_getmodulehandler('xcenter', 'xcenter'); + $items_obj = $item_handler->getObjects(new Criteria("storyid", "(" . implode(", ", $items_id) . ")", "IN"), true); + $myts =& MyTextSanitizer::getInstance(); + foreach (array_keys($items) as $cat_id) { + foreach (array_keys($items[$cat_id]) as $item_id) { + $item_obj =& $items_obj[$item_id]; + if (is_object($item_obj)) + $items[$cat_id][$item_id] = array( + "title" => $item_obj->getVar("subject"), + "uid" => $item_obj->getVar("uid"), + "link" => "index.php?id={$item_id}", + "time" => strtotime($item_obj->getVar("date")), + "tags" => tag_parse_tag($item_obj->getVar("tags", "n")), + "xcenter" => $myts->displayTarea($item_obj->getVar("page_description"),true,true,true,true,true,true) + ); + } + } + unset($items_obj); +} + +/** + * Remove orphan tag-item links + * + * @return boolean + * + */ +function xcenter_tag_synchronization($mid) +{ + $item_handler =& xoops_getmodulehandler("xcenter", "xcenter"); + $link_handler =& xoops_getmodulehandler("link", "tag"); + + /* clear tag-item links */ + if (version_compare( mysql_get_server_info(), "4.1.0", "ge" )): + $sql = " DELETE FROM {$link_handler->table}" . + " WHERE " . + " tag_modid = {$mid}" . + " AND " . + " ( tag_itemid NOT IN " . + " ( SELECT DISTINCT {$item_handler->keyName} " . + " FROM {$item_handler->table} " . + " WHERE {$item_handler->table}.approved > 0" . + " ) " . + " )"; + else: + $sql = " DELETE {$link_handler->table} FROM {$link_handler->table}" . + " LEFT JOIN {$item_handler->table} AS aa ON {$link_handler->table}.tag_itemid = aa.{$item_handler->keyName} " . + " WHERE " . + " tag_modid = {$mid}" . + " AND " . + " ( aa.{$item_handler->keyName} IS NULL" . + " OR aa.approved < 1" . + " )"; + endif; + if (!$result = $link_handler->db->queryF($sql)) { + //xoops_error($link_handler->db->error()); + } +} +?> \ No newline at end of file Added: XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/.htaccess.dist =================================================================== --- XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/.htaccess.dist (rev 0) +++ XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/.htaccess.dist 2012-04-04 20:17:05 UTC (rev 9277) @@ -0,0 +1,20 @@ + +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d + +RewriteRule ^content/(.*?)/(.*?)/([0-9]+),([0-9]+).html$ modules/content/index.php?cat_title=$1&cont_title=$2&storyid=$3&catid=$4 +RewriteRule ^content/(.*?)/(.*?)/view.tag.php$ modules/content/view.tag.php +RewriteRule ^content/(.*?)/(.*?)/list.tag.php$ modules/content/list.tag.php +RewriteRule ^content/(.*?)/([0-9]+),([0-9]+).html$ modules/content/index.php?cont_title=$1&storyid=$2&catid=$3 +RewriteRule ^content/(.*?)/feed,([0-9]+).rss$ modules/content/rss.php?cat_title=$1&catid=$3 +RewriteRule ^content/(.*?)/pdf,([0-9]+).pdf$ modules/content/pdf.php?cat_title=$1&storyid=$2 +RewriteRule ^content/(.*?)/view.tag.php$ modules/content/view.tag.php +RewriteRule ^content/(.*?)/list.tag.php$ modules/content/list.tag.php +RewriteRule ^content/feed,([0-9]+).rss$ modules/content/rss.php?catid=$1 +RewriteRule ^content/pdf,([0-9]+).pdf$ modules/content/pdf.php?storyid=$1 +RewriteRule ^content/view.tag.php$ modules/content/view.tag.php +RewriteRule ^content/list.tag.php$ modules/content/list.tag.php +RewriteRule ^content/$ modules/content/index.php$1 +RewriteRule ^content$ modules/content/index.php$1 + Added: XoopsModules/xcenter/releases/2.16/htdocs/modules/xcenter/admin/header.php ========================================... [truncated message content] |
From: <be...@us...> - 2012-04-04 10:42:09
|
Revision: 9276 http://xoops.svn.sourceforge.net/xoops/?rev=9276&view=rev Author: beckmi Date: 2012-04-04 10:42:02 +0000 (Wed, 04 Apr 2012) Log Message: ----------- Fixing wrong translation Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/language/english/admin/userrank.php Modified: XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/language/english/admin/userrank.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/language/english/admin/userrank.php 2012-04-04 08:17:16 UTC (rev 9275) +++ XoopsCore/branches/2.5.x/2.5.5/htdocs/modules/system/language/english/admin/userrank.php 2012-04-04 10:42:02 UTC (rev 9276) @@ -22,7 +22,7 @@ define("_AM_SYSTEM_USERRANK_MAXPOST","Max. Posts"); define("_AM_SYSTEM_USERRANK_MINPOST","Min. Posts"); define("_AM_SYSTEM_USERRANK_OFF","Special rank"); -define("_AM_SYSTEM_USERRANK_ON","Does not special rank"); +define("_AM_SYSTEM_USERRANK_ON","No special rank"); define("_AM_SYSTEM_USERRANK_SAVE",_AM_SYSTEM_DBUPDATED); define("_AM_SYSTEM_USERRANK_SPECIAL","Special Ranks"); define("_AM_SYSTEM_USERRANK_SPECIAL_CAN","(Special ranks can be assigned to users irrespective of the number of user posts)"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vo...@us...> - 2012-04-04 08:17:26
|
Revision: 9275 http://xoops.svn.sourceforge.net/xoops/?rev=9275&view=rev Author: voltan1 Date: 2012-04-04 08:17:16 +0000 (Wed, 04 Apr 2012) Log Message: ----------- support topic style Modified Paths: -------------- XoopsModules/fmcontent/branches/news/article.php XoopsModules/fmcontent/branches/news/class/topic.php XoopsModules/fmcontent/branches/news/include/functions_update.php XoopsModules/fmcontent/branches/news/index.php XoopsModules/fmcontent/branches/news/language/arabic/admin.php XoopsModules/fmcontent/branches/news/language/english/admin.php XoopsModules/fmcontent/branches/news/language/persian/admin.php XoopsModules/fmcontent/branches/news/sql/mysql.sql XoopsModules/fmcontent/branches/news/templates/news_article.html XoopsModules/fmcontent/branches/news/templates/news_index.html XoopsModules/fmcontent/branches/news/templates/news_topic.html XoopsModules/fmcontent/branches/news/xoops_version.php Added Paths: ----------- XoopsModules/fmcontent/branches/news/css/rtl.css Modified: XoopsModules/fmcontent/branches/news/article.php =================================================================== --- XoopsModules/fmcontent/branches/news/article.php 2012-04-04 08:11:26 UTC (rev 9274) +++ XoopsModules/fmcontent/branches/news/article.php 2012-04-04 08:17:16 UTC (rev 9275) @@ -312,6 +312,11 @@ $xoopsTpl->assign ( 'related', $related ); } +// Add topic style if set +if(file_exists(XOOPS_ROOT_PATH .'/modules/' . $NewsModule->getVar ( 'dirname' ) . '/css/' . $view_topic->getVar ( 'topic_style' ) . '.css')) { + $xoTheme->addStylesheet ( XOOPS_URL . '/modules/' . $NewsModule->getVar ( 'dirname' ) . '/css/' . $view_topic->getVar ( 'topic_style' ) . '.css'); +} + $xoopsTpl->assign ( 'content', $content ); $xoopsTpl->assign ( 'link', $link ); $xoopsTpl->assign ( 'modname', $NewsModule->getVar ( 'name' ) ); Modified: XoopsModules/fmcontent/branches/news/class/topic.php =================================================================== --- XoopsModules/fmcontent/branches/news/class/topic.php 2012-04-04 08:11:26 UTC (rev 9274) +++ XoopsModules/fmcontent/branches/news/class/topic.php 2012-04-04 08:17:16 UTC (rev 9275) @@ -55,6 +55,7 @@ $this->initVar ( "topic_alias", XOBJ_DTYPE_TXTBOX, '' ); $this->initVar ( "topic_homepage", XOBJ_DTYPE_INT, 1 ); $this->initVar ( "topic_show", XOBJ_DTYPE_INT, 1 ); + $this->initVar ( "topic_style", XOBJ_DTYPE_TXTBOX, '' ); // Pour autoriser le html $this->initVar ( "dohtml", XOBJ_DTYPE_INT, 1, false ); @@ -110,6 +111,8 @@ $fileseltray_topic_img->addElement ( new XoopsFormFile ( _NEWS_AM_GLOBAL_FORMUPLOAD, 'topic_img', xoops_getModuleOption ( 'img_size', $NewsModule->getVar ( 'dirname' ) ) ), false ); $form->addElement ( $fileseltray_topic_img ); + $form->addElement ( new XoopsFormText ( _NEWS_AM_TOPIC_STYLE, "topic_style", 50, 64, $this->getVar ( "topic_style" ) ), false ); + $form->addElement ( new XoopsFormRadioYN ( _NEWS_AM_TOPIC_ONLINE, 'topic_online', $this->getVar ( 'topic_online', 'e' ) ) ); $form->addElement ( new XoopsFormRadioYN ( _NEWS_AM_TOPIC_MENU, 'topic_asmenu', $this->getVar ( 'topic_asmenu', 'e' ) ) ); $form->addElement ( new XoopsFormRadioYN ( _NEWS_AM_TOPIC_SHOW, 'topic_show', $this->getVar ( 'topic_show', 'e' ) ) ); Added: XoopsModules/fmcontent/branches/news/css/rtl.css =================================================================== --- XoopsModules/fmcontent/branches/news/css/rtl.css (rev 0) +++ XoopsModules/fmcontent/branches/news/css/rtl.css 2012-04-04 08:17:16 UTC (rev 9275) @@ -0,0 +1,4 @@ +.item , .topic_header { + direction: rtl; + font-family: Tahoma; +} \ No newline at end of file Modified: XoopsModules/fmcontent/branches/news/include/functions_update.php =================================================================== --- XoopsModules/fmcontent/branches/news/include/functions_update.php 2012-04-04 08:11:26 UTC (rev 9274) +++ XoopsModules/fmcontent/branches/news/include/functions_update.php 2012-04-04 08:17:16 UTC (rev 9275) @@ -24,6 +24,22 @@ */ function xoops_module_update_news($module, $version) { + // start update to version 1.82 + if($version < 182) { + + $db = $GLOBALS["xoopsDB"]; + $error = false; + + include_once XOOPS_ROOT_PATH . '/modules/news/class/utils.php'; + + if(!NewsUtils::News_FieldExists('topic_style' ,$db->prefix('news_topic'))) + { + NewsUtils::News_AddField('`topic_style` varchar(64) NOT NULL' ,$db->prefix('news_topic')); + } + + } + // end update to version 1.82 + // start update to version 1.81 if($version < 181) { Modified: XoopsModules/fmcontent/branches/news/index.php =================================================================== --- XoopsModules/fmcontent/branches/news/index.php 2012-04-04 08:11:26 UTC (rev 9274) +++ XoopsModules/fmcontent/branches/news/index.php 2012-04-04 08:17:16 UTC (rev 9275) @@ -115,7 +115,12 @@ $type = 'type'.$view_topic->getVar ( 'topic_homepage' ); $story_subtopic = $topic_handler->News_GetSubTopics($NewsModule , $story_topic , $topics); - + + // Add topic style if set + if(file_exists(XOOPS_ROOT_PATH .'/modules/' . $NewsModule->getVar ( 'dirname' ) . '/css/' . $view_topic->getVar ( 'topic_style' ) . '.css')) { + $xoTheme->addStylesheet ( XOOPS_URL . '/modules/' . $NewsModule->getVar ( 'dirname' ) . '/css/' . $view_topic->getVar ( 'topic_style' ) . '.css'); + } + } else { // get all topic informations Modified: XoopsModules/fmcontent/branches/news/language/arabic/admin.php =================================================================== --- XoopsModules/fmcontent/branches/news/language/arabic/admin.php 2012-04-04 08:11:26 UTC (rev 9274) +++ XoopsModules/fmcontent/branches/news/language/arabic/admin.php 2012-04-04 08:17:16 UTC (rev 9275) @@ -18,176 +18,178 @@ * @version $Id$ */ -// Global page -define('_NEWS_AM_GLOBAL_ADD_CONTENT', 'إنشاء الصفحة'); -define('_NEWS_AM_GLOBAL_ADD_TOPIC', 'أنشاء الفئة'); -define('_NEWS_AM_GLOBAL_ADD_FILE', 'إنشاء الملف'); -define('_NEWS_AM_GLOBAL_IMG', 'الصورة'); -define('_NEWS_AM_GLOBAL_FORMUPLOAD', 'إختیار الصورة'); -// Index page -define("_NEWS_AM_INDEX_ADMENU1", "الفئات"); -define("_NEWS_AM_INDEX_ADMENU2", "الصفحات"); -define("_NEWS_AM_INDEX_TOPICS", "<span class='green'>%s</span> تقع الفئة في قاعدة البیانات"); -define("_NEWS_AM_INDEX_CONTENTS", "<span class='green'>%s</span> تقع الصفحة في قاعدة البیانات "); -define("_NEWS_AM_INDEX_CONTENTS_OFFLINE", "There are <span class='red'>%s</span> Offline news in our database"); -define("_NEWS_AM_INDEX_CONTENTS_EXPIRE", "There are <span class='red'>%s</span> Expire news in our database"); -// Topic page -define('_NEWS_AM_TOPIC_FORM', 'إدارة الفئات'); -define('_NEWS_AM_TOPIC_ID', 'ID'); -define('_NEWS_AM_TOPIC_NUM', 'وزن'); -define('_NEWS_AM_TOPIC_NAME', 'العنوان'); -define('_NEWS_AM_TOPIC_PARENT', 'الفئة الرئیسیة'); -define('_NEWS_AM_TOPIC_DESC', 'الوصف'); -define('_NEWS_AM_TOPIC_IMG', 'الصورة'); -define('_NEWS_AM_TOPIC_WEIGHT', 'العرض'); -define('_NEWS_AM_TOPIC_SHOWTYPE','طریقة العرض'); -define('_NEWS_AM_TOPIC_SHOWTYPE_DESC', 'إذا كنت تريد استخدام الإعدادات التالية.<br /> یجب تغییر <b>طریقة العرض</b> من وحدة القاعدة <br />الی خیارات أخری ها.'); -define('_NEWS_AM_TOPIC_PERPAGE', 'کل الصفحة'); -define('_NEWS_AM_TOPIC_COLUMNS', 'عمود'); -define('_NEWS_AM_TOPIC_ONLINE', 'نشیط'); -define('_NEWS_AM_TOPIC_MENU', 'القائمة'); -define('_NEWS_AM_TOPIC_SHOW', 'العرض'); -define('_NEWS_AM_TOPIC_ACTION', 'نشیط'); -define('_NEWS_AM_TOPIC_PID', 'والد'); -define('_NEWS_AM_TOPIC_DATE_CREATED','ساعة الإنشاء'); -define('_NEWS_AM_TOPIC_DATE_UPDATE', 'ساعة التحدیث'); -define('_NEWS_AM_TOPIC_SHOWTOPIC', 'عرض الفئة'); -define('_NEWS_AM_TOPIC_SHOWAUTHOR', 'عرض المحرر'); -define('_NEWS_AM_TOPIC_SHOWDATE', 'عرض التاریخ'); -define('_NEWS_AM_TOPIC_SHOWDPF', 'عرض PDF'); -define('_NEWS_AM_TOPIC_SHOWPRINT', 'عرض الطباعة'); -define('_NEWS_AM_TOPIC_SHOWMAIL', 'عرض أخبار الأصدقاء'); -define('_NEWS_AM_TOPIC_SHOWNAV', 'نمایش ناوبری'); -define('_NEWS_AM_TOPIC_SHOWHITS', 'عرض الزایارات'); -define('_NEWS_AM_TOPIC_SHOWCOMS', 'عرض التعلیقات المنشورة '); -define('_NEWS_AM_TOPIC_HOMEPAGE', 'خیارات الصفحة الأولی للفئة'); -define('_NEWS_AM_TOPIC_HOMEPAGE_DESC', 'Seting content show type in topic pages'); -define('_NEWS_AM_TOPIC_HOMEPAGE_1', 'List all contents from this topic and subtopics'); -define('_NEWS_AM_TOPIC_HOMEPAGE_2', 'List all subtopics'); -define('_NEWS_AM_TOPIC_HOMEPAGE_3', 'List all contents from just this topic'); -define('_NEWS_AM_TOPIC_HOMEPAGE_4', 'Show selected content from this topic'); -define('_NEWS_AM_TOPIC_OPTIONS', 'Sellect topic show options'); -define('_NEWS_AM_TOPIC_OPTIONS_DESC', 'Sellect topic show options'); -define('_NEWS_AM_TOPIC_ALIAS', 'الاسم المستعار'); +// Global page +define('_NEWS_AM_GLOBAL_ADD_CONTENT', 'إنشاء الصفحة'); +define('_NEWS_AM_GLOBAL_ADD_TOPIC', 'أنشاء الفئة'); +define('_NEWS_AM_GLOBAL_ADD_FILE', 'إنشاء الملف'); +define('_NEWS_AM_GLOBAL_IMG', 'الصورة'); +define('_NEWS_AM_GLOBAL_FORMUPLOAD', 'إختیار الصورة'); +// Index page +define("_NEWS_AM_INDEX_ADMENU1", "الفئات"); +define("_NEWS_AM_INDEX_ADMENU2", "الصفحات"); +define("_NEWS_AM_INDEX_TOPICS", "<span class='green'>%s</span> تقع الفئة في قاعدة البیانات"); +define("_NEWS_AM_INDEX_CONTENTS", "<span class='green'>%s</span> تقع الصفحة في قاعدة البیانات "); +define("_NEWS_AM_INDEX_CONTENTS_OFFLINE", "There are <span class='red'>%s</span> Offline news in our database"); +define("_NEWS_AM_INDEX_CONTENTS_EXPIRE", "There are <span class='red'>%s</span> Expire news in our database"); +// Topic page +define('_NEWS_AM_TOPIC_FORM', 'إدارة الفئات'); +define('_NEWS_AM_TOPIC_ID', 'ID'); +define('_NEWS_AM_TOPIC_NUM', 'وزن'); +define('_NEWS_AM_TOPIC_NAME', 'العنوان'); +define('_NEWS_AM_TOPIC_PARENT', 'الفئة الرئیسیة'); +define('_NEWS_AM_TOPIC_DESC', 'الوصف'); +define('_NEWS_AM_TOPIC_IMG', 'الصورة'); +define('_NEWS_AM_TOPIC_WEIGHT', 'العرض'); +define('_NEWS_AM_TOPIC_SHOWTYPE','طریقة العرض'); +define('_NEWS_AM_TOPIC_SHOWTYPE_DESC', 'إذا كنت تريد استخدام الإعدادات التالية.<br /> یجب تغییر <b>طریقة العرض</b> من وحدة القاعدة <br />الی خیارات أخری ها.'); +define('_NEWS_AM_TOPIC_PERPAGE', 'کل الصفحة'); +define('_NEWS_AM_TOPIC_COLUMNS', 'عمود'); +define('_NEWS_AM_TOPIC_ONLINE', 'نشیط'); +define('_NEWS_AM_TOPIC_MENU', 'القائمة'); +define('_NEWS_AM_TOPIC_SHOW', 'العرض'); +define('_NEWS_AM_TOPIC_ACTION', 'نشیط'); +define('_NEWS_AM_TOPIC_PID', 'والد'); +define('_NEWS_AM_TOPIC_DATE_CREATED','ساعة الإنشاء'); +define('_NEWS_AM_TOPIC_DATE_UPDATE', 'ساعة التحدیث'); +define('_NEWS_AM_TOPIC_SHOWTOPIC', 'عرض الفئة'); +define('_NEWS_AM_TOPIC_SHOWAUTHOR', 'عرض المحرر'); +define('_NEWS_AM_TOPIC_SHOWDATE', 'عرض التاریخ'); +define('_NEWS_AM_TOPIC_SHOWDPF', 'عرض PDF'); +define('_NEWS_AM_TOPIC_SHOWPRINT', 'عرض الطباعة'); +define('_NEWS_AM_TOPIC_SHOWMAIL', 'عرض أخبار الأصدقاء'); +define('_NEWS_AM_TOPIC_SHOWNAV', 'نمایش ناوبری'); +define('_NEWS_AM_TOPIC_SHOWHITS', 'عرض الزایارات'); +define('_NEWS_AM_TOPIC_SHOWCOMS', 'عرض التعلیقات المنشورة '); +define('_NEWS_AM_TOPIC_HOMEPAGE', 'خیارات الصفحة الأولی للفئة'); +define('_NEWS_AM_TOPIC_HOMEPAGE_DESC', 'Seting content show type in topic pages'); +define('_NEWS_AM_TOPIC_HOMEPAGE_1', 'List all contents from this topic and subtopics'); +define('_NEWS_AM_TOPIC_HOMEPAGE_2', 'List all subtopics'); +define('_NEWS_AM_TOPIC_HOMEPAGE_3', 'List all contents from just this topic'); +define('_NEWS_AM_TOPIC_HOMEPAGE_4', 'Show selected content from this topic'); +define('_NEWS_AM_TOPIC_OPTIONS', 'Sellect topic show options'); +define('_NEWS_AM_TOPIC_OPTIONS_DESC', 'Sellect topic show options'); +define('_NEWS_AM_TOPIC_ALIAS', 'الاسم المستعار'); define('_NEWS_AM_TOPIC_SHOWTYPE_0', 'Module based'); define('_NEWS_AM_TOPIC_SHOWTYPE_1', 'News type'); define('_NEWS_AM_TOPIC_SHOWTYPE_2', 'Table type'); define('_NEWS_AM_TOPIC_SHOWTYPE_3', 'Photo type'); -define('_NEWS_AM_TOPIC_SHOWTYPE_4', 'List type'); -define('_NEWS_AM_TOPIC_SHOWTYPE_5', 'Spotlight'); -// Content page -define('_NEWS_AM_CONTENT_FORM', 'إدارة المحتوى'); -define('_NEWS_AM_CONTENT_FORMTITLE', 'العنوان'); -define('_NEWS_AM_CONTENT_FORMTITLE_DISP', 'عرض عنوان الصفحة؟'); -define('_NEWS_AM_CONTENT_FORMAUTHOR', 'سازنده ( الإسم)'); -define('_NEWS_AM_CONTENT_FORMSOURCE', 'مصدر ( الرابط)'); -define('_NEWS_AM_CONTENT_FORMTEXT', 'النص'); -define('_NEWS_AM_CONTENT_FORMTEXT_DESC', ' إنشاء أو تحرير صفحة'); -define('_NEWS_AM_CONTENT_FORMGROUP', 'المجموعات'); -define('_NEWS_AM_CONTENT_FORMALIAS', 'الإسم المستعار'); -define('_NEWS_AM_CONTENT_FORMACTIF', 'نشیط'); -define('_NEWS_AM_CONTENT_IMPORTANT', 'عاجل'); -define('_NEWS_AM_CONTENT_FORMDEFAULT', 'الإفتراضي'); -define('_NEWS_AM_CONTENT_FORMPREV', 'السابقة'); -define('_NEWS_AM_CONTENT_FORMNEXT', 'اللاحقة'); -define('_NEWS_AM_CONTENT_DOHTML', 'العرض علی شکل Html'); -define('_NEWS_AM_CONTENT_BREAKS', 'تبدیل خط شکسته فعال'); -define('_NEWS_AM_CONTENT_DOIMAGE', 'عرض صورة النص'); -define('_NEWS_AM_CONTENT_DOXCODE', 'عرض کود النص'); -define('_NEWS_AM_CONTENT_DOSMILEY', 'عرض لبخند های محتوا'); -define('_NEWS_AM_CONTENT_SHORT', 'الملخص'); -define('_NEWS_AM_CONTENT_TITLE', 'العنوان'); -define('_NEWS_AM_CONTENT_MANAGER', 'إدارة المحتوی'); -define('_NEWS_AM_CONTENT_FILE', 'File'); -define('_NEWS_AM_CONTENT_ID', 'ID'); -define('_NEWS_AM_CONTENT_NUM', 'وزن'); -define('_NEWS_AM_CONTENT_PAGE', 'الصفحة'); -define('_NEWS_AM_CONTENT_TYPE', 'النوع'); -define('_NEWS_AM_CONTENT_OWNER', 'سازنده'); -define('_NEWS_AM_CONTENT_ACTIF', 'نشیط'); -define('_NEWS_AM_CONTENT_DEFAULT', 'المقترض'); -define('_NEWS_AM_CONTENT_ORDER', 'النظام'); -define('_NEWS_AM_CONTENT_ACTION', 'العامل'); -define('_NEWS_AM_CONTENT_VIEW', 'العرض'); -define('_NEWS_AM_CONTENT_EDIT', 'ویرایش'); -define('_NEWS_AM_CONTENT_DELETE', 'الغاء'); -define('_NEWS_AM_CONTENT_SHORTDESC', 'بیان الملخص'); -define('_NEWS_AM_CONTENT_TOPIC', 'فئة'); -define('_NEWS_AM_CONTENT_TOPIC_DESC', 'إذ لم یتم إختیار فئة معینة، ستکون صفحتک ثابتة'); -define('_NEWS_AM_CONTENT_STATIC', 'صفحة ثابتة'); -define('_NEWS_AM_CONTENT_STATICS', 'صفحات متغیرة'); -define('_NEWS_AM_CONTENT_ALL_ITEMS', 'جمیع الصفحات و الفهرسة من جمیع الفئات'); -define('_NEWS_AM_CONTENT_ALL_ITEMS_FROM', 'جمیع الصفحات و الفهرسة من فئة :'); -define('_NEWS_AM_CONTENT_FILE_DESC', 'For add more files you must use admin file system in admin side'); -define('_NEWS_AM_CONTENT_SUBTITLE', 'Subtitle'); -define('_NEWS_AM_CONTENT_ALL', 'All News'); -define('_NEWS_AM_CONTENT_OFFLINE', 'Offline news'); -define('_NEWS_AM_CONTENT_EXPIRE', 'Expire news'); -define('_NEWS_AM_CONTENT_PEDATE', 'Set publish and expiration date'); -define('_NEWS_AM_CONTENT_SETDATETIME', 'Set the date/time of publish'); -define('_NEWS_AM_CONTENT_SETEXPDATETIME', 'Set the date/time of expiration'); -define('_NEWS_AM_CONTENT_SLIDE', 'Set as slide'); +define('_NEWS_AM_TOPIC_SHOWTYPE_4', 'List type'); +define('_NEWS_AM_TOPIC_SHOWTYPE_5', 'Spotlight'); +define('_NEWS_AM_TOPIC_STYLE', 'Topic Style'); + +// Content page +define('_NEWS_AM_CONTENT_FORM', 'إدارة المحتوى'); +define('_NEWS_AM_CONTENT_FORMTITLE', 'العنوان'); +define('_NEWS_AM_CONTENT_FORMTITLE_DISP', 'عرض عنوان الصفحة؟'); +define('_NEWS_AM_CONTENT_FORMAUTHOR', 'سازنده ( الإسم)'); +define('_NEWS_AM_CONTENT_FORMSOURCE', 'مصدر ( الرابط)'); +define('_NEWS_AM_CONTENT_FORMTEXT', 'النص'); +define('_NEWS_AM_CONTENT_FORMTEXT_DESC', ' إنشاء أو تحرير صفحة'); +define('_NEWS_AM_CONTENT_FORMGROUP', 'المجموعات'); +define('_NEWS_AM_CONTENT_FORMALIAS', 'الإسم المستعار'); +define('_NEWS_AM_CONTENT_FORMACTIF', 'نشیط'); +define('_NEWS_AM_CONTENT_IMPORTANT', 'عاجل'); +define('_NEWS_AM_CONTENT_FORMDEFAULT', 'الإفتراضي'); +define('_NEWS_AM_CONTENT_FORMPREV', 'السابقة'); +define('_NEWS_AM_CONTENT_FORMNEXT', 'اللاحقة'); +define('_NEWS_AM_CONTENT_DOHTML', 'العرض علی شکل Html'); +define('_NEWS_AM_CONTENT_BREAKS', 'تبدیل خط شکسته فعال'); +define('_NEWS_AM_CONTENT_DOIMAGE', 'عرض صورة النص'); +define('_NEWS_AM_CONTENT_DOXCODE', 'عرض کود النص'); +define('_NEWS_AM_CONTENT_DOSMILEY', 'عرض لبخند های محتوا'); +define('_NEWS_AM_CONTENT_SHORT', 'الملخص'); +define('_NEWS_AM_CONTENT_TITLE', 'العنوان'); +define('_NEWS_AM_CONTENT_MANAGER', 'إدارة المحتوی'); +define('_NEWS_AM_CONTENT_FILE', 'File'); +define('_NEWS_AM_CONTENT_ID', 'ID'); +define('_NEWS_AM_CONTENT_NUM', 'وزن'); +define('_NEWS_AM_CONTENT_PAGE', 'الصفحة'); +define('_NEWS_AM_CONTENT_TYPE', 'النوع'); +define('_NEWS_AM_CONTENT_OWNER', 'سازنده'); +define('_NEWS_AM_CONTENT_ACTIF', 'نشیط'); +define('_NEWS_AM_CONTENT_DEFAULT', 'المقترض'); +define('_NEWS_AM_CONTENT_ORDER', 'النظام'); +define('_NEWS_AM_CONTENT_ACTION', 'العامل'); +define('_NEWS_AM_CONTENT_VIEW', 'العرض'); +define('_NEWS_AM_CONTENT_EDIT', 'ویرایش'); +define('_NEWS_AM_CONTENT_DELETE', 'الغاء'); +define('_NEWS_AM_CONTENT_SHORTDESC', 'بیان الملخص'); +define('_NEWS_AM_CONTENT_TOPIC', 'فئة'); +define('_NEWS_AM_CONTENT_TOPIC_DESC', 'إذ لم یتم إختیار فئة معینة، ستکون صفحتک ثابتة'); +define('_NEWS_AM_CONTENT_STATIC', 'صفحة ثابتة'); +define('_NEWS_AM_CONTENT_STATICS', 'صفحات متغیرة'); +define('_NEWS_AM_CONTENT_ALL_ITEMS', 'جمیع الصفحات و الفهرسة من جمیع الفئات'); +define('_NEWS_AM_CONTENT_ALL_ITEMS_FROM', 'جمیع الصفحات و الفهرسة من فئة :'); +define('_NEWS_AM_CONTENT_FILE_DESC', 'For add more files you must use admin file system in admin side'); +define('_NEWS_AM_CONTENT_SUBTITLE', 'Subtitle'); +define('_NEWS_AM_CONTENT_ALL', 'All News'); +define('_NEWS_AM_CONTENT_OFFLINE', 'Offline news'); +define('_NEWS_AM_CONTENT_EXPIRE', 'Expire news'); +define('_NEWS_AM_CONTENT_PEDATE', 'Set publish and expiration date'); +define('_NEWS_AM_CONTENT_SETDATETIME', 'Set the date/time of publish'); +define('_NEWS_AM_CONTENT_SETEXPDATETIME', 'Set the date/time of expiration'); +define('_NEWS_AM_CONTENT_SLIDE', 'Set as slide'); define('_NEWS_AM_CONTENT_MARQUE', 'Set sd margue'); -// Tools page -define('_NEWS_AM_TOOLS_FORMFOLDER_TITLE', 'استنساخ النسخ المتماثلة'); -define('_NEWS_AM_TOOLS_FORMFOLDER_NAME', 'اسم المجلد'); -define('_NEWS_AM_TOOLS_LOG_TITLE', 'تقریر استنساخ الوحدة'); -define('_NEWS_AM_TOOLS_FORMPURGE_TITLE', 'Purge page of deleted clone'); -define('_NEWS_AM_TOOLS_ALIAS_TITLE', 'تحدیث الإسم'); -define('_NEWS_AM_TOOLS_ALIAS_CONTENT', 'تحدیث إسم الصفحة'); -define('_NEWS_AM_TOOLS_ALIAS_TOPIC', 'تحدیث إسم الفئة'); +// Tools page +define('_NEWS_AM_TOOLS_FORMFOLDER_TITLE', 'استنساخ النسخ المتماثلة'); +define('_NEWS_AM_TOOLS_FORMFOLDER_NAME', 'اسم المجلد'); +define('_NEWS_AM_TOOLS_LOG_TITLE', 'تقریر استنساخ الوحدة'); +define('_NEWS_AM_TOOLS_FORMPURGE_TITLE', 'Purge page of deleted clone'); +define('_NEWS_AM_TOOLS_ALIAS_TITLE', 'تحدیث الإسم'); +define('_NEWS_AM_TOOLS_ALIAS_CONTENT', 'تحدیث إسم الصفحة'); +define('_NEWS_AM_TOOLS_ALIAS_TOPIC', 'تحدیث إسم الفئة'); define('_NEWS_AM_TOOLS_META_TITLE', 'Rebuild Metas'); define('_NEWS_AM_TOOLS_META_KEYWORD', 'Rebuild Meta keywords'); -define('_NEWS_AM_TOOLS_META_DESCRIPTION', 'Rebuild Meta Description'); -define('_NEWS_AM_TOOLS_PRUNE', 'Prune news'); -define('_NEWS_AM_TOOLS_PRUNE_BEFORE', 'Prune stories that were published before'); -define('_NEWS_AM_TOOLS_PRUNE_EXPIREDONLY', 'Only remove stories who have expired'); -define('_NEWS_AM_TOOLS_PRUNE_TOPICS', 'Limit to the following topics'); -define('_NEWS_AM_TOOLS_PRUNE_EXPORT_DSC', 'If you dont check anything then all the topics will be used else only the selected topics will be used'); -// Permissions -define('_NEWS_AM_PERMISSIONS_ACCESS', 'إتاحة العرض'); -define('_NEWS_AM_PERMISSIONS_SUBMIT', 'إتاحة الإرسال'); -define('_NEWS_AM_PERMISSIONS_GLOBAL', 'أتاحة عامة'); -define('_NEWS_AM_PERMISSIONS_GLOBAL_4', 'مشارکة'); -define('_NEWS_AM_PERMISSIONS_GLOBAL_8', 'الإرسال في قسم المستخدمین'); -define('_NEWS_AM_PERMISSIONS_GLOBAL_16', 'الموافقة التلقائية '); -// Attach files -define('_NEWS_AM_FILE', 'File'); -define('_NEWS_AM_FILE_ID', 'ID'); -define('_NEWS_AM_FILE_ONLINE', 'اونلاین'); -define('_NEWS_AM_FILE_ACTION', 'نشیط'); -define('_NEWS_AM_FILE_FORM', ' إضافة ملف '); -define('_NEWS_AM_FILE_TITLE', 'العنوان'); -define('_NEWS_AM_FILE_CONTENT', 'الصفحة'); -define('_NEWS_AM_FILE_STATUS', 'نشیط'); -define('_NEWS_AM_FILE_SELECT', 'اختیار ملف'); -define('_NEWS_AM_FILE_TYPE', 'النوع'); -// Admin message -define('_NEWS_AM_MSG_DBUPDATE', 'تم تحدیث قاعدة بیانات!'); -define('_NEWS_AM_MSG_ERRORDELETE', 'لایمکنک إلغاء هذه الوثیقة <br />الرجاء إلغاء أو نقل جمیع الوثائق التالیة'); -define('_NEWS_AM_MSG_WAIT', 'انتظر قلیلا !'); -define('_NEWS_AM_MSG_DELETE', 'هل أنت متأکد للحذف؟'); -define('_NEWS_AM_MSG_EDIT_ERROR', ' لم يتم العثور على هذه الصفحة أورقم الصفحة غير صحيح !'); -define('_NEWS_AM_MSG_UPDATE_ERROR', ' غير قادر على تحديث قاعدة البيانات! خطأ في تحديث الصفحة '); -define('_NEWS_AM_MSG_INSERT_ERROR', 'غير قادر على تحديث قاعدة البيانات! خطأ في الموضوع '); -define('_NEWS_AM_MSG_CLONE_ERROR', 'هذا الدليل هو متاح الآن !'); -define("_NEWS_AM_MSG_NOPERMSSET", "لایمکن تعدیل الإتاحات: لم یتم تحدیث أي فئة ! الرجاء تحدیث فئة أولا."); -define('_NEWS_AM_MSG_ALIASERROR', 'لقد تم اختیار هذا الإسم. الرجاء اختیار اسم آخر.'); -define('_NEWS_AM_MSG_INPROC', 'Rebuilding ... '); -define('_NEWS_AM_MSG_PRUNE_DELETED', '%s Articles deleted'); -// about -define('_NEWS_AM_ABOUT_ADMIN', 'درباره'); -define('_NEWS_AM_ABOUT_DESCRIPTION', 'وصف:'); -define('_NEWS_AM_ABOUT_AUTHOR', 'المتنج:'); -define('_NEWS_AM_ABOUT_CREDITS', 'معارفه:'); -define('_NEWS_AM_ABOUT_LICENSE', 'إتاحة:'); -define('_NEWS_AM_ABOUT_MODULE_INFO', 'معلومات الوحدة:'); -define('_NEWS_AM_ABOUT_RELEASEDATE', 'ساعة النشر:'); -define("_NEWS_AM_ABOUT_UPDATEDATE", "ساعة التحدیث: "); -define('_NEWS_AM_ABOUT_MODULE_STATUS', 'الوضع:'); -define('_NEWS_AM_ABOUT_WEBSITE', 'الموقع:'); -define('_NEWS_AM_ABOUT_AUTHOR_INFO', 'معلومات المنتج'); -define('_NEWS_AM_ABOUT_AUTHOR_NAME', 'الإسم:'); -define('_NEWS_AM_ABOUT_CHANGELOG', 'قائمة التعدیلات'); +define('_NEWS_AM_TOOLS_META_DESCRIPTION', 'Rebuild Meta Description'); +define('_NEWS_AM_TOOLS_PRUNE', 'Prune news'); +define('_NEWS_AM_TOOLS_PRUNE_BEFORE', 'Prune stories that were published before'); +define('_NEWS_AM_TOOLS_PRUNE_EXPIREDONLY', 'Only remove stories who have expired'); +define('_NEWS_AM_TOOLS_PRUNE_TOPICS', 'Limit to the following topics'); +define('_NEWS_AM_TOOLS_PRUNE_EXPORT_DSC', 'If you dont check anything then all the topics will be used else only the selected topics will be used'); +// Permissions +define('_NEWS_AM_PERMISSIONS_ACCESS', 'إتاحة العرض'); +define('_NEWS_AM_PERMISSIONS_SUBMIT', 'إتاحة الإرسال'); +define('_NEWS_AM_PERMISSIONS_GLOBAL', 'أتاحة عامة'); +define('_NEWS_AM_PERMISSIONS_GLOBAL_4', 'مشارکة'); +define('_NEWS_AM_PERMISSIONS_GLOBAL_8', 'الإرسال في قسم المستخدمین'); +define('_NEWS_AM_PERMISSIONS_GLOBAL_16', 'الموافقة التلقائية '); +// Attach files +define('_NEWS_AM_FILE', 'File'); +define('_NEWS_AM_FILE_ID', 'ID'); +define('_NEWS_AM_FILE_ONLINE', 'اونلاین'); +define('_NEWS_AM_FILE_ACTION', 'نشیط'); +define('_NEWS_AM_FILE_FORM', ' إضافة ملف '); +define('_NEWS_AM_FILE_TITLE', 'العنوان'); +define('_NEWS_AM_FILE_CONTENT', 'الصفحة'); +define('_NEWS_AM_FILE_STATUS', 'نشیط'); +define('_NEWS_AM_FILE_SELECT', 'اختیار ملف'); +define('_NEWS_AM_FILE_TYPE', 'النوع'); +// Admin message +define('_NEWS_AM_MSG_DBUPDATE', 'تم تحدیث قاعدة بیانات!'); +define('_NEWS_AM_MSG_ERRORDELETE', 'لایمکنک إلغاء هذه الوثیقة <br />الرجاء إلغاء أو نقل جمیع الوثائق التالیة'); +define('_NEWS_AM_MSG_WAIT', 'انتظر قلیلا !'); +define('_NEWS_AM_MSG_DELETE', 'هل أنت متأکد للحذف؟'); +define('_NEWS_AM_MSG_EDIT_ERROR', ' لم يتم العثور على هذه الصفحة أورقم الصفحة غير صحيح !'); +define('_NEWS_AM_MSG_UPDATE_ERROR', ' غير قادر على تحديث قاعدة البيانات! خطأ في تحديث الصفحة '); +define('_NEWS_AM_MSG_INSERT_ERROR', 'غير قادر على تحديث قاعدة البيانات! خطأ في الموضوع '); +define('_NEWS_AM_MSG_CLONE_ERROR', 'هذا الدليل هو متاح الآن !'); +define("_NEWS_AM_MSG_NOPERMSSET", "لایمکن تعدیل الإتاحات: لم یتم تحدیث أي فئة ! الرجاء تحدیث فئة أولا."); +define('_NEWS_AM_MSG_ALIASERROR', 'لقد تم اختیار هذا الإسم. الرجاء اختیار اسم آخر.'); +define('_NEWS_AM_MSG_INPROC', 'Rebuilding ... '); +define('_NEWS_AM_MSG_PRUNE_DELETED', '%s Articles deleted'); +// about +define('_NEWS_AM_ABOUT_ADMIN', 'درباره'); +define('_NEWS_AM_ABOUT_DESCRIPTION', 'وصف:'); +define('_NEWS_AM_ABOUT_AUTHOR', 'المتنج:'); +define('_NEWS_AM_ABOUT_CREDITS', 'معارفه:'); +define('_NEWS_AM_ABOUT_LICENSE', 'إتاحة:'); +define('_NEWS_AM_ABOUT_MODULE_INFO', 'معلومات الوحدة:'); +define('_NEWS_AM_ABOUT_RELEASEDATE', 'ساعة النشر:'); +define("_NEWS_AM_ABOUT_UPDATEDATE", "ساعة التحدیث: "); +define('_NEWS_AM_ABOUT_MODULE_STATUS', 'الوضع:'); +define('_NEWS_AM_ABOUT_WEBSITE', 'الموقع:'); +define('_NEWS_AM_ABOUT_AUTHOR_INFO', 'معلومات المنتج'); +define('_NEWS_AM_ABOUT_AUTHOR_NAME', 'الإسم:'); +define('_NEWS_AM_ABOUT_CHANGELOG', 'قائمة التعدیلات'); ?> \ No newline at end of file Modified: XoopsModules/fmcontent/branches/news/language/english/admin.php =================================================================== --- XoopsModules/fmcontent/branches/news/language/english/admin.php 2012-04-04 08:11:26 UTC (rev 9274) +++ XoopsModules/fmcontent/branches/news/language/english/admin.php 2012-04-04 08:17:16 UTC (rev 9275) @@ -75,6 +75,8 @@ define('_NEWS_AM_TOPIC_SHOWTYPE_3', 'Photo type'); define('_NEWS_AM_TOPIC_SHOWTYPE_4', 'List type'); define('_NEWS_AM_TOPIC_SHOWTYPE_5', 'Spotlight'); +define('_NEWS_AM_TOPIC_STYLE', 'Topic Style'); + // Content page define('_NEWS_AM_CONTENT_FORM', 'Manage Article'); define('_NEWS_AM_CONTENT_FORMTITLE', 'Title'); Modified: XoopsModules/fmcontent/branches/news/language/persian/admin.php =================================================================== --- XoopsModules/fmcontent/branches/news/language/persian/admin.php 2012-04-04 08:11:26 UTC (rev 9274) +++ XoopsModules/fmcontent/branches/news/language/persian/admin.php 2012-04-04 08:17:16 UTC (rev 9275) @@ -21,31 +21,31 @@ // Global page define('_NEWS_AM_GLOBAL_ADD_CONTENT', 'ساخت صفحه'); define('_NEWS_AM_GLOBAL_ADD_TOPIC', 'ساخت شاخه'); -define('_NEWS_AM_GLOBAL_ADD_FILE', 'ساخت فایل'); +define('_NEWS_AM_GLOBAL_ADD_FILE', 'ساخت فایل'); define('_NEWS_AM_GLOBAL_IMG', 'تصویر'); -define('_NEWS_AM_GLOBAL_FORMUPLOAD', 'انتخاب تصویر'); +define('_NEWS_AM_GLOBAL_FORMUPLOAD', 'انتخاب تصویر'); // Index page define("_NEWS_AM_INDEX_ADMENU1", "شاخه ها"); define("_NEWS_AM_INDEX_ADMENU2", "صفحه ها"); -define("_NEWS_AM_INDEX_TOPICS", "<span class='green'>%s</span> شاخه در پایکاه داده ها قرار دارد"); -define("_NEWS_AM_INDEX_CONTENTS", "<span class='green'>%s</span> خبر در پایگاه داده ها قرار دارد"); -define("_NEWS_AM_INDEX_CONTENTS_OFFLINE", "<span class='red'>%s</span> خبر منتظر برای تایید در پایگاه داده ها قرار دارد"); +define("_NEWS_AM_INDEX_TOPICS", "<span class='green'>%s</span> شاخه در پایکاه داده ها قرار دارد"); +define("_NEWS_AM_INDEX_CONTENTS", "<span class='green'>%s</span> خبر در پایگاه داده ها قرار دارد"); +define("_NEWS_AM_INDEX_CONTENTS_OFFLINE", "<span class='red'>%s</span> خبر منتظر برای تایید در پایگاه داده ها قرار دارد"); define("_NEWS_AM_INDEX_CONTENTS_EXPIRE", "<span class='red'>%s</span> خبر منقضی شده در پایگاه داده ها قرار دارد"); // Topic page define('_NEWS_AM_TOPIC_FORM', 'مدیریت شاخه ها'); -define('_NEWS_AM_TOPIC_ID', 'شماره'); +define('_NEWS_AM_TOPIC_ID', 'شماره'); define('_NEWS_AM_TOPIC_NUM', 'وزن'); -define('_NEWS_AM_TOPIC_NAME', 'عنوان'); +define('_NEWS_AM_TOPIC_NAME', 'عنوان'); define('_NEWS_AM_TOPIC_PARENT', 'شاخه والد'); define('_NEWS_AM_TOPIC_DESC', 'توضیحات'); define('_NEWS_AM_TOPIC_IMG', 'تصویر'); -define('_NEWS_AM_TOPIC_WEIGHT', 'عرض'); -define('_NEWS_AM_TOPIC_SHOWTYPE', 'حالت نمایش'); +define('_NEWS_AM_TOPIC_WEIGHT', 'عرض'); +define('_NEWS_AM_TOPIC_SHOWTYPE', 'حالت نمایش'); define('_NEWS_AM_TOPIC_SHOWTYPE_DESC', 'اگر میخواهید از تنظیمات زیر استفاده کنید.<br /> باید گزینه <b>حالت نمایش</b> را از پایه ماژول <br />به یکی دیگر از گزینه ها تغییر دهید.'); define('_NEWS_AM_TOPIC_PERPAGE', 'هر صفحه'); define('_NEWS_AM_TOPIC_COLUMNS', 'ستون'); define('_NEWS_AM_TOPIC_ONLINE', 'فعال'); -define('_NEWS_AM_TOPIC_MENU', 'منو'); +define('_NEWS_AM_TOPIC_MENU', 'منو'); define('_NEWS_AM_TOPIC_SHOW', 'نمایش'); define('_NEWS_AM_TOPIC_ACTION', 'فعال'); define('_NEWS_AM_TOPIC_PID', 'والد'); @@ -59,22 +59,23 @@ define('_NEWS_AM_TOPIC_SHOWMAIL', 'نمایش معرفی به دوستان'); define('_NEWS_AM_TOPIC_SHOWNAV', 'نمایش ناوبری'); define('_NEWS_AM_TOPIC_SHOWHITS', 'نمایش بازدید ها'); -define('_NEWS_AM_TOPIC_SHOWCOMS', 'نمایش نظرهای ارسال'); -define('_NEWS_AM_TOPIC_HOMEPAGE', 'تنظیمات صفحه اول شاخه'); -define('_NEWS_AM_TOPIC_HOMEPAGE_DESC', 'انتخاب نوع نمایش مطالب در صفحه اول شاخه'); -define('_NEWS_AM_TOPIC_HOMEPAGE_1', 'فهرست تمام اخبار و از شاخه و زیر شاخه ها'); -define('_NEWS_AM_TOPIC_HOMEPAGE_2', 'فهرست همه زیر شاخه ها'); -define('_NEWS_AM_TOPIC_HOMEPAGE_3', 'فهرست اخبار فقط همین شاخه'); -define('_NEWS_AM_TOPIC_HOMEPAGE_4', 'یه خبر انتخابی از شاخه'); -define('_NEWS_AM_TOPIC_OPTIONS', 'انتخاب حالت نمایش شاخه ها'); -define('_NEWS_AM_TOPIC_OPTIONS_DESC', 'انتخاب حالت نمایش شاخه ها'); -define('_NEWS_AM_TOPIC_ALIAS', 'نام مستعار'); +define('_NEWS_AM_TOPIC_SHOWCOMS', 'نمایش نظرهای ارسال'); +define('_NEWS_AM_TOPIC_HOMEPAGE', 'تنظیمات صفحه اول شاخه'); +define('_NEWS_AM_TOPIC_HOMEPAGE_DESC', 'انتخاب نوع نمایش مطالب در صفحه اول شاخه'); +define('_NEWS_AM_TOPIC_HOMEPAGE_1', 'فهرست تمام اخبار و از شاخه و زیر شاخه ها'); +define('_NEWS_AM_TOPIC_HOMEPAGE_2', 'فهرست همه زیر شاخه ها'); +define('_NEWS_AM_TOPIC_HOMEPAGE_3', 'فهرست اخبار فقط همین شاخه'); +define('_NEWS_AM_TOPIC_HOMEPAGE_4', 'یه خبر انتخابی از شاخه'); +define('_NEWS_AM_TOPIC_OPTIONS', 'انتخاب حالت نمایش شاخه ها'); +define('_NEWS_AM_TOPIC_OPTIONS_DESC', 'انتخاب حالت نمایش شاخه ها'); +define('_NEWS_AM_TOPIC_ALIAS', 'نام مستعار'); define('_NEWS_AM_TOPIC_SHOWTYPE_0', 'برپایه ماژول'); define('_NEWS_AM_TOPIC_SHOWTYPE_1', 'حالت خبری'); define('_NEWS_AM_TOPIC_SHOWTYPE_2', 'حالت جدولی'); define('_NEWS_AM_TOPIC_SHOWTYPE_3', 'حالت تصویر'); -define('_NEWS_AM_TOPIC_SHOWTYPE_4', 'حالت لیستی'); -define('_NEWS_AM_TOPIC_SHOWTYPE_5', 'اسپایت لایت'); +define('_NEWS_AM_TOPIC_SHOWTYPE_4', 'حالت لیستی'); +define('_NEWS_AM_TOPIC_SHOWTYPE_5', 'اسپایت لایت'); +define('_NEWS_AM_TOPIC_STYLE', 'استایل تاپیک'); // Content page define('_NEWS_AM_CONTENT_FORM', 'مدیریت اخبار'); define('_NEWS_AM_CONTENT_FORMTITLE', 'عنوان'); @@ -97,7 +98,7 @@ define('_NEWS_AM_CONTENT_DOSMILEY', 'نمایش لبخند ها'); define('_NEWS_AM_CONTENT_SHORT', 'متن خلاصه'); define('_NEWS_AM_CONTENT_TITLE', 'عنوان'); -define('_NEWS_AM_CONTENT_MANAGER', 'مدیریت اخبار'); +define('_NEWS_AM_CONTENT_MANAGER', 'مدیریت اخبار'); define('_NEWS_AM_CONTENT_FILE', 'فایل'); define('_NEWS_AM_CONTENT_ID', 'شماره'); define('_NEWS_AM_CONTENT_NUM', 'وزن'); @@ -112,55 +113,55 @@ define('_NEWS_AM_CONTENT_EDIT', 'ویرایش'); define('_NEWS_AM_CONTENT_DELETE', 'حذف'); define('_NEWS_AM_CONTENT_SHORTDESC', 'توضیح خلاصه'); -define('_NEWS_AM_CONTENT_TOPIC', 'شاخه'); +define('_NEWS_AM_CONTENT_TOPIC', 'شاخه'); define('_NEWS_AM_CONTENT_TOPIC_DESC', 'اگر شاخه ای انتخاب نکنید <br />صفحه شما یک صفحه استاتیک خواهد بود'); define('_NEWS_AM_CONTENT_STATIC', 'صفحه استاتیک'); define('_NEWS_AM_CONTENT_STATICS', 'صفحات استاتیک'); define('_NEWS_AM_CONTENT_ALL_ITEMS', 'تمام صفحه ها و منو ها از تمام شاخه ها'); -define('_NEWS_AM_CONTENT_ALL_ITEMS_FROM', 'تمام صفحه ها و منو ها از شاخه :'); -define('_NEWS_AM_CONTENT_FILE_DESC', 'برای اضافه کردن فایل های بیشتر به بخش مدیریت فایل ها مراجعه نمایید'); -define('_NEWS_AM_CONTENT_SUBTITLE', 'عنوان دوم'); -define('_NEWS_AM_CONTENT_ALL', 'همه اخبار'); -define('_NEWS_AM_CONTENT_OFFLINE', 'اخبار منتظر برای تایید'); -define('_NEWS_AM_CONTENT_EXPIRE', 'اخبار باطل شده'); -define('_NEWS_AM_CONTENT_PEDATE', 'تنظیم زمان نمایش و باطل شدن'); -define('_NEWS_AM_CONTENT_SETDATETIME', 'تعیین زمان/تاریخ قرار گرفتن خبر در سایت'); -define('_NEWS_AM_CONTENT_SETEXPDATETIME', 'تعیین زمان/تاریخ منقضی شدن خبر در سایت'); -define('_NEWS_AM_CONTENT_SLIDE', 'استفاده در اسلایدشو'); +define('_NEWS_AM_CONTENT_ALL_ITEMS_FROM', 'تمام صفحه ها و منو ها از شاخه :'); +define('_NEWS_AM_CONTENT_FILE_DESC', 'برای اضافه کردن فایل های بیشتر به بخش مدیریت فایل ها مراجعه نمایید'); +define('_NEWS_AM_CONTENT_SUBTITLE', 'عنوان دوم'); +define('_NEWS_AM_CONTENT_ALL', 'همه اخبار'); +define('_NEWS_AM_CONTENT_OFFLINE', 'اخبار منتظر برای تایید'); +define('_NEWS_AM_CONTENT_EXPIRE', 'اخبار باطل شده'); +define('_NEWS_AM_CONTENT_PEDATE', 'تنظیم زمان نمایش و باطل شدن'); +define('_NEWS_AM_CONTENT_SETDATETIME', 'تعیین زمان/تاریخ قرار گرفتن خبر در سایت'); +define('_NEWS_AM_CONTENT_SETEXPDATETIME', 'تعیین زمان/تاریخ منقضی شدن خبر در سایت'); +define('_NEWS_AM_CONTENT_SLIDE', 'استفاده در اسلایدشو'); define('_NEWS_AM_CONTENT_MARQUE', 'استفاده در مارکیو'); // Tools page define('_NEWS_AM_TOOLS_FORMFOLDER_TITLE', 'تکثیر ماژول'); define('_NEWS_AM_TOOLS_FORMFOLDER_NAME', 'نام پوشه'); define('_NEWS_AM_TOOLS_LOG_TITLE', 'گزارش تکثیر ماژول'); -define('_NEWS_AM_TOOLS_FORMPURGE_TITLE', 'حذف اخباری که ماژول تکثیر شدیشان حذف شده است'); -define('_NEWS_AM_TOOLS_ALIAS_TITLE', 'دوباره سازی نام مستعار'); -define('_NEWS_AM_TOOLS_ALIAS_CONTENT', 'دوباره سازی نام مستعار صفحه'); -define('_NEWS_AM_TOOLS_ALIAS_TOPIC', 'دوباره سازی نام مستعار شاخه'); +define('_NEWS_AM_TOOLS_FORMPURGE_TITLE', 'حذف اخباری که ماژول تکثیر شدیشان حذف شده است'); +define('_NEWS_AM_TOOLS_ALIAS_TITLE', 'دوباره سازی نام مستعار'); +define('_NEWS_AM_TOOLS_ALIAS_CONTENT', 'دوباره سازی نام مستعار صفحه'); +define('_NEWS_AM_TOOLS_ALIAS_TOPIC', 'دوباره سازی نام مستعار شاخه'); define('_NEWS_AM_TOOLS_META_TITLE', 'دوباره سازی متا ها'); define('_NEWS_AM_TOOLS_META_KEYWORD', 'دوباره سازی کلمات کلیدی متا'); -define('_NEWS_AM_TOOLS_META_DESCRIPTION', 'دوباره سازی توضیحات متا'); -define('_NEWS_AM_TOOLS_PRUNE', 'هرس کردن خبرها'); -define('_NEWS_AM_TOOLS_PRUNE_BEFORE', 'هرس کردن خبرهایی که قبل از این تاریخ در سایت قرار گرفتهاند'); -define('_NEWS_AM_TOOLS_PRUNE_EXPIREDONLY', 'فقط خبرهایی را حذف کن که منقضی شدهاند '); -define('_NEWS_AM_TOOLS_PRUNE_TOPICS', 'محدود به سرفصلهای زیر'); -define('_NEWS_AM_TOOLS_PRUNE_EXPORT_DSC', 'اگر هیچکدام را انتخاب نکنید همه سرفصلها در نظر گرفته میشوند وگرنه فقط سرفصلهای انتخاب شده در نظر گرفته میشوند'); +define('_NEWS_AM_TOOLS_META_DESCRIPTION', 'دوباره سازی توضیحات متا'); +define('_NEWS_AM_TOOLS_PRUNE', 'هرس کردن خبرها'); +define('_NEWS_AM_TOOLS_PRUNE_BEFORE', 'هرس کردن خبرهایی که قبل از این تاریخ در سایت قرار گرفتهاند'); +define('_NEWS_AM_TOOLS_PRUNE_EXPIREDONLY', 'فقط خبرهایی را حذف کن که منقضی شدهاند '); +define('_NEWS_AM_TOOLS_PRUNE_TOPICS', 'محدود به سرفصلهای زیر'); +define('_NEWS_AM_TOOLS_PRUNE_EXPORT_DSC', 'اگر هیچکدام را انتخاب نکنید همه سرفصلها در نظر گرفته میشوند وگرنه فقط سرفصلهای انتخاب شده در نظر گرفته میشوند'); // Permissions define('_NEWS_AM_PERMISSIONS_ACCESS', 'دسترسی نمایش'); define('_NEWS_AM_PERMISSIONS_SUBMIT', 'دسترسی ارسال'); define('_NEWS_AM_PERMISSIONS_GLOBAL', 'دسترسی سراسری'); define('_NEWS_AM_PERMISSIONS_GLOBAL_4', 'رای'); define('_NEWS_AM_PERMISSIONS_GLOBAL_8', 'ارسال در بخش کاربر'); -define('_NEWS_AM_PERMISSIONS_GLOBAL_16', 'تایید خودکار'); -// Attach files -define('_NEWS_AM_FILE', 'فایل'); -define('_NEWS_AM_FILE_ID', 'شماره'); -define('_NEWS_AM_FILE_ONLINE', 'آنلاین'); -define('_NEWS_AM_FILE_ACTION', 'فعال'); -define('_NEWS_AM_FILE_FORM', 'اضافه کردن فایل'); -define('_NEWS_AM_FILE_TITLE', 'عنوان'); -define('_NEWS_AM_FILE_CONTENT', 'صفحه'); -define('_NEWS_AM_FILE_STATUS', 'فعال'); -define('_NEWS_AM_FILE_SELECT', 'انتخاب فایل'); +define('_NEWS_AM_PERMISSIONS_GLOBAL_16', 'تایید خودکار'); +// Attach files +define('_NEWS_AM_FILE', 'فایل'); +define('_NEWS_AM_FILE_ID', 'شماره'); +define('_NEWS_AM_FILE_ONLINE', 'آنلاین'); +define('_NEWS_AM_FILE_ACTION', 'فعال'); +define('_NEWS_AM_FILE_FORM', 'اضافه کردن فایل'); +define('_NEWS_AM_FILE_TITLE', 'عنوان'); +define('_NEWS_AM_FILE_CONTENT', 'صفحه'); +define('_NEWS_AM_FILE_STATUS', 'فعال'); +define('_NEWS_AM_FILE_SELECT', 'انتخاب فایل'); define('_NEWS_AM_FILE_TYPE', 'نوع'); // Admin message define('_NEWS_AM_MSG_DBUPDATE', 'پایگاه داده ها با موفقیت به روز شد!'); @@ -171,9 +172,9 @@ define('_NEWS_AM_MSG_UPDATE_ERROR', 'ناتوان در به روز رسانی پایگاه داده ها! خطا در به روز رسانی صفحه'); define('_NEWS_AM_MSG_INSERT_ERROR', 'ناتوان در به روز رسانی پایگاه داده ها! خطا در مورد اخبار'); define('_NEWS_AM_MSG_CLONE_ERROR', 'این شاخه هماکنون موجود است!'); -define("_NEWS_AM_MSG_NOPERMSSET", "هیچ دسترسی قابل تنظیم نیست : هنوز هیچ شاخه ای ساخته نشده است! لطفا ابتدا یک شاخه بسازید."); -define('_NEWS_AM_MSG_ALIASERROR', 'نام مستعار مورد انتخاب شما گرفته شده است. لطفا یک نام دیگر انتخاب کنید.'); -define('_NEWS_AM_MSG_INPROC', 'دوباره سازی ...'); +define("_NEWS_AM_MSG_NOPERMSSET", "هیچ دسترسی قابل تنظیم نیست : هنوز هیچ شاخه ای ساخته نشده است! لطفا ابتدا یک شاخه بسازید."); +define('_NEWS_AM_MSG_ALIASERROR', 'نام مستعار مورد انتخاب شما گرفته شده است. لطفا یک نام دیگر انتخاب کنید.'); +define('_NEWS_AM_MSG_INPROC', 'دوباره سازی ...'); define('_NEWS_AM_MSG_PRUNE_DELETED', '%s خبر حذف شده.'); // about define('_NEWS_AM_ABOUT_ADMIN', 'درباره'); @@ -188,6 +189,6 @@ define('_NEWS_AM_ABOUT_WEBSITE', 'وب سایت:'); define('_NEWS_AM_ABOUT_AUTHOR_INFO', 'اطلاعات سازنده'); define('_NEWS_AM_ABOUT_AUTHOR_NAME', 'نام:'); -define('_NEWS_AM_ABOUT_CHANGELOG', 'فهرست تغییرات'); +define('_NEWS_AM_ABOUT_CHANGELOG', 'فهرست تغییرات'); ?> \ No newline at end of file Modified: XoopsModules/fmcontent/branches/news/sql/mysql.sql =================================================================== --- XoopsModules/fmcontent/branches/news/sql/mysql.sql 2012-04-04 08:11:26 UTC (rev 9274) +++ XoopsModules/fmcontent/branches/news/sql/mysql.sql 2012-04-04 08:17:16 UTC (rev 9275) @@ -72,7 +72,8 @@ `topic_showcoms` tinyint (1) NOT NULL default '1', `topic_alias` varchar(255) NOT NULL, `topic_homepage` tinyint (4) NOT NULL , -`topic_show` tinyint (1) NOT NULL default '1', +`topic_show` tinyint (1) NOT NULL default '1', +`topic_style` varchar(64) NOT NULL, PRIMARY KEY (`topic_id`,`topic_modid`), UNIQUE KEY `file_id` (`topic_id`,`topic_modid`) ) ENGINE=MyISAM; Modified: XoopsModules/fmcontent/branches/news/templates/news_article.html =================================================================== --- XoopsModules/fmcontent/branches/news/templates/news_article.html 2012-04-04 08:11:26 UTC (rev 9274) +++ XoopsModules/fmcontent/branches/news/templates/news_article.html 2012-04-04 08:17:16 UTC (rev 9275) @@ -1,6 +1,6 @@ <{include file="db:news_header.html"}> -<div class="fmcontent"> +<div class="news"> <!-- Display error message --> <{if $story_error}> <div class="errorMsg"><{$story_error}></div> Modified: XoopsModules/fmcontent/branches/news/templates/news_index.html =================================================================== --- XoopsModules/fmcontent/branches/news/templates/news_index.html 2012-04-04 08:11:26 UTC (rev 9274) +++ XoopsModules/fmcontent/branches/news/templates/news_index.html 2012-04-04 08:17:16 UTC (rev 9275) @@ -1,5 +1,5 @@ <{include file="db:news_header.html"}> -<div class="fmcontent"> +<div class="news"> <{if $type == type1 || $type == type3}> <{if $default}> Modified: XoopsModules/fmcontent/branches/news/templates/news_topic.html =================================================================== --- XoopsModules/fmcontent/branches/news/templates/news_topic.html 2012-04-04 08:11:26 UTC (rev 9274) +++ XoopsModules/fmcontent/branches/news/templates/news_topic.html 2012-04-04 08:17:16 UTC (rev 9275) @@ -1,4 +1,4 @@ -<div class="fmcontent"> +<div class="news"> <{if $advertisement}> <div class="itemAde"><{$advertisement}></div> <{/if}> Modified: XoopsModules/fmcontent/branches/news/xoops_version.php =================================================================== --- XoopsModules/fmcontent/branches/news/xoops_version.php 2012-04-04 08:11:26 UTC (rev 9274) +++ XoopsModules/fmcontent/branches/news/xoops_version.php 2012-04-04 08:17:16 UTC (rev 9275) @@ -26,7 +26,7 @@ // Main setting 'name' => $modsDirname, 'description' => _MI_NEWS_DESC, - 'version' => 1.81, + 'version' => 1.82, 'author' => '', 'credits' => '', 'license' => 'GNU GPL 2.0', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |