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-02-02 17:05:33
|
Revision: 8874 http://xoops.svn.sourceforge.net/xoops/?rev=8874&view=rev Author: beckmi Date: 2012-02-02 17:05:21 +0000 (Thu, 02 Feb 2012) Log Message: ----------- Release 1.37 (By Timgno) Added Paths: ----------- XoopsModules/TDMCreate/releases/1.37/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/about.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/admin_footer.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/admin_header.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/const.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/includes.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/index.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/menu.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/modules.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/tables.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/class/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/class/constArchitecture.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/class/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/class/object.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/class/tdmcreate_modules.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/class/tdmcreate_tables.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_about_language.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_admin_about.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_admin_footer.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_admin_header.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_admin_help.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_admin_index.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_admin_language.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_admin_menu.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_admin_pages.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_admin_permissions.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_architecture.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_blocks.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_blocks_language.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_blocks_templates.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_changelog.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_class.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_class_admin.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_css_admin.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_entete.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_help_language.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_include_coms.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_include_configs.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_include_functions.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_include_install.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_include_search.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_main_header.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_main_index.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_main_language.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_modinfo_language.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_sql.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_templates.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_templates_admin_about.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_templates_admin_help.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_templates_footer.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_templates_header.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_templates_index.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_templates_pages.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_user_header.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_user_index.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_user_pages.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/const/const_xoopsversion.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/css/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/css/admin.css XoopsModules/TDMCreate/releases/1.37/TDMCreate/css/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/docs/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/docs/changelog.TXT XoopsModules/TDMCreate/releases/1.37/TDMCreate/docs/credits.txt XoopsModules/TDMCreate/releases/1.37/TDMCreate/docs/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/docs/install.txt XoopsModules/TDMCreate/releases/1.37/TDMCreate/docs/lang_diff.txt XoopsModules/TDMCreate/releases/1.37/TDMCreate/docs/licence.txt XoopsModules/TDMCreate/releases/1.37/TDMCreate/docs/readme.txt XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/about.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/arrow.gif XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/blank.gif XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/const.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/delete.gif XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/delete.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/edit.gif XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/edit.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/fields.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/index.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/modules.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/off.gif XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/off.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/on.gif XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/on.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/permissions.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/pref.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/tables.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/deco/update.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/icons/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/icons/about.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/icons/const.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/icons/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/icons/index.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/icons/modules.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/icons/off.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/icons/on.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/icons/tables.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/icons/update.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/logo.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/menu/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/menu/bg.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/menu/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/menu/left_both.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/menu/right_both.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/modules/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/modules/TDMCreate_slogo.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/modules/TDMLogo.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/modules/Test1Logo.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/modules/blank.gif XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/modules/documentation_slogo.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/modules/imprintLogo.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/modules/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/modules/mytubeLogo.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/modules/partadsLogo.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/modules/xcvLogo.txt XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/modules/xnews_slogo.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/modules/xsitemapLogo.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/modules/xtransamLogo.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/modules/xtransam_slogo.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/modules/xtutorialsLogo.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/modules/xtutorials_slogo.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/tables/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/tables/ads.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/tables/blank.gif XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/tables/broken.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/tables/cat.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/tables/contact.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/tables/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/tables/plugin.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/tables/shoutbox.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/images/uploads/tables/topic.png XoopsModules/TDMCreate/releases/1.37/TDMCreate/include/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/include/comment_delete.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/include/comment_edit.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/include/comment_new.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/include/comment_post.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/include/comment_reply.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/include/functions.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/include/functions_const.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/include/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/include/install.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/include/jq.init.js XoopsModules/TDMCreate/releases/1.37/TDMCreate/include/update.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/arabic/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/arabic/admin.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/arabic/help.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/arabic/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/arabic/modinfo.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/bulgarian/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/bulgarian/admin.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/bulgarian/help.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/bulgarian/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/bulgarian/modinfo.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/english/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/english/admin.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/english/help/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/english/help/help.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/english/help/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/english/help.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/english/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/english/modinfo.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/french/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/french/admin.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/french/help.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/french/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/french/modinfo.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/italian/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/italian/admin.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/italian/help/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/italian/help/help.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/italian/help/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/italian/help.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/italian/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/italian/modinfo.php XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/update language 1.0 to 1.1.txt XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/update language 1.1 to 1.15.txt XoopsModules/TDMCreate/releases/1.37/TDMCreate/language/update language 1.1 to 1.37.txt XoopsModules/TDMCreate/releases/1.37/TDMCreate/modules/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/sql/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/sql/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/sql/mysql.sql XoopsModules/TDMCreate/releases/1.37/TDMCreate/templates/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/templates/admin/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/templates/admin/help.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/templates/admin/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/templates/blocks/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/templates/help/ XoopsModules/TDMCreate/releases/1.37/TDMCreate/templates/help/help.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/templates/help/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/templates/index.html XoopsModules/TDMCreate/releases/1.37/TDMCreate/xoops_version.php Added: XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/about.php =================================================================== --- XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/about.php (rev 0) +++ XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/about.php 2012-02-02 17:05:21 UTC (rev 8874) @@ -0,0 +1,29 @@ +<?php +/** + * TDMCreate 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://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 '../../../include/cp_header.php'; +include 'admin_header.php'; +xoops_cp_header(); + +$aboutAdmin = new ModuleAdmin(); + +echo $aboutAdmin->addNavigation('about.php'); +echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false); + +include 'admin_footer.php'; \ No newline at end of file Added: XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/admin_footer.php =================================================================== --- XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/admin_footer.php (rev 0) +++ XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/admin_footer.php 2012-02-02 17:05:21 UTC (rev 8874) @@ -0,0 +1,24 @@ +<?php +/** + * XoopsPoll 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 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 Added: XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/admin_header.php =================================================================== --- XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/admin_header.php (rev 0) +++ XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/admin_header.php 2012-02-02 17:05:21 UTC (rev 8874) @@ -0,0 +1,64 @@ +<?php +/** + * Marquee 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 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 'includes.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; + } +//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'); + +$myts =& MyTextSanitizer::getInstance(); + +if ($xoopsUser) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar( 'mid' ), $xoopsUser->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); +} + +if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $xoopsTpl = new XoopsTpl(); +} + +$xoopsTpl->assign('pathImageIcon', $pathImageIcon); +$xoopsTpl->assign('pathImageAdmin', $pathImageAdmin); +//xoops_cp_header(); + +//Load languages +xoops_loadLanguage('admin', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('main', $xoopsModule->getVar("dirname")); \ No newline at end of file Added: XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/const.php =================================================================== --- XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/const.php (rev 0) +++ XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/const.php 2012-02-02 17:05:21 UTC (rev 8874) @@ -0,0 +1,219 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * + * 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. + * 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. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * + * **************************************************************************** + */ + +include 'admin_header.php'; +xoops_cp_header(); + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation('const.php'); + +if (isset($_REQUEST['op'])) { + $op = $_REQUEST['op']; +} else { + @$op = 'default'; +} + +//Class +$modulesHandler =& xoops_getModuleHandler('TDMCreate_modules', 'TDMCreate'); +$tablesHandler =& xoops_getModuleHandler('TDMCreate_tables', 'TDMCreate'); + +//Nom du module +$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'); +$modules_active_search = $modules->getVar('modules_active_search'); +$modules_active_comments = $modules->getVar('modules_active_comments'); + +//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); + +switch ($op) { + case "creation": + + //Effacer repertoire du nouveau module s'il existe + clearDir($modPath.'/modules/'.$modules_name); + + //Debut + echo '<table width="100%" cellspacing="1" class="outer">'; + /************************************************/ + /*Structure*/ + /************************************************/ + //Creation de l'architecture + const_architecture($modules_name, $modules_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) + { + //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_blocs'); + $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'); + + //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); + } + //Creation des classes + const_class($modules, $modules_name, $tables_module_table, $tables_name, $tables_champs, $tables_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); + } + //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, $tables_img, $tables_champs, $tables_parametres); + const_templates_pages($modules, $modules_name, $tables_name, $tables_module_table, $tables_champs, $tables_parametres); + } + //Creation de search + if ( $modules_active_search == 1 && $tables_search == 1 ) { + const_include_search($modules, $modules_name, $tables_name, $tables_module_table, $tables_champs, $tables_parametres, $tables_img); + } + //Creation des coms + if ( $modules_active_comments == 1 && $tables_coms == 1 ) { + const_include_coms($modules, $modules_name, $tables_name, $tables_module_table, $tables_champs, $tables_parametres, $tables_img); + } + + //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'"); + 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 de xoopsversion.php + /*Mettre xoops version vers la fin pour integrer les bloc, etc*/ + const_xoopsversion($modules, $modules_name, $tables_arr, $tables_module_table); + // 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 + if ( $topic == 1) { //|| $tables_module_table != null + const_admin_permissions($modules, $modules_name, $tables_arr, $topic); + } + + //Include + //Configs + const_include_configs($modules, $modules_name, $modules_author_website_name, $modules_author_website_url); + //Style + //const_css_admin($modules, $modules_name); + //const_include_style($modules, $modules_name); + //Functions + const_include_functions($modules, $modules_name); + //Creation du fichier install pour l'uploads + const_include_install($modules, $modules_name, $tables_arr); + //Language + /////////////////////////////////////////////////////////////////////// + //Creation du language main.php + const_main_language($modules, $modules_name, $modules_desc, $tables_arr); + //Creation du language modinfo.php + const_modinfo_language($modules, $modules_name, $modules_desc, $tables_arr, $topic); + //Creation du language admin.php + const_admin_language($modules, $modules_name, $tables_arr, $tables_name); + //Creation du language blocks.php + const_blocks_language($modules, $modules_name, $tables_arr); + //Creation du language help/help.html + const_help_language($modules, $modules_name, $modules_desc); + /////////////////////////////////////////////////////////////////////// + //Creation de la class menu + //const_class_menu($modules, $modules_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); + /************************************************/ + /*Admin*/ + /************************************************/ + 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); + echo '</table>'; + + break; + + case "default": + default: + + include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); + $action = $_SERVER['REQUEST_URI']; + + $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) + { + //Variables + $tables_name = $tables_arr[$i]->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); + + $form->addElement(new XoopsFormHidden('op', 'creation')); + $form->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit')); + $form->display(); + break; +} +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/includes.php =================================================================== --- XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/includes.php (rev 0) +++ XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/includes.php 2012-02-02 17:05:21 UTC (rev 8874) @@ -0,0 +1,66 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * + * 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. + * 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. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * + * **************************************************************************** + */ +include '../../../include/cp_header.php'; +include_once("../include/functions.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 Added: XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/index.html =================================================================== --- XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/index.html (rev 0) +++ XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/index.html 2012-02-02 17:05:21 UTC (rev 8874) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/index.php =================================================================== --- XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/index.php (rev 0) +++ XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/index.php 2012-02-02 17:05:21 UTC (rev 8874) @@ -0,0 +1,46 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * + * 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. + * 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. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * + * **************************************************************************** + */ + +include '../../../include/cp_header.php'; +include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); +include_once(XOOPS_ROOT_PATH."/class/tree.php"); +include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; +include_once("../include/functions.php"); +include 'admin_header.php'; +//xoops_cp_header(); +//apelle du menu admin + + +xoops_cp_header(); + + $criteria = new CriteriaCompo(); + $count_modules = $modulesHandler->getCount($criteria); + + $indexAdmin = new ModuleAdmin(); + + +$indexAdmin->addInfoBox(_AM_TDMCREATE_ADMIN_NUMMODULES) ; +$indexAdmin->addInfoBoxLine(_AM_TDMCREATE_ADMIN_NUMMODULES, "<label>" ._AM_TDMCREATE_THEREARE_NUMMODULES. "</label>", $count_modules, 'Green') ; + + echo $indexAdmin->addNavigation('index.php'); + echo $indexAdmin->renderIndex(); + +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/menu.php =================================================================== --- XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/menu.php (rev 0) +++ XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/menu.php 2012-02-02 17:05:21 UTC (rev 8874) @@ -0,0 +1,50 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * + * 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. + * 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. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * + * **************************************************************************** + */ + + +$module_handler =& xoops_gethandler('module'); +$xoopsModule =& XoopsModule::getByDirname('TDMCreate'); +$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid')); +//$pathImageAdmin = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32'); +$pathImageAdmin = $moduleInfo->getInfo('icons32'); + +$adminmenu = array(); + +$i = 1; +$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMIN_INDEX; +$adminmenu[$i]["link"] = 'admin/index.php'; +$adminmenu[$i]["icon"] = '../../'.$pathImageAdmin.'/home.png'; +$i++; +$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMIN_MODULES; +$adminmenu[$i]["link"] = 'admin/modules.php'; +$adminmenu[$i]["icon"] = '../../'.$pathImageAdmin.'/add.png'; +$i++; +$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMIN_TABLES; +$adminmenu[$i]["link"] = 'admin/tables.php'; +$adminmenu[$i]["icon"] = '../../'.$pathImageAdmin.'/index.png'; +$i++; +$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMIN_CONST; +$adminmenu[$i]["link"] = 'admin/const.php'; +$adminmenu[$i]["icon"] = '../../'.$pathImageAdmin.'/modifiedlink.png'; +$i++; +$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMIN_ABOUT; +$adminmenu[$i]["link"] = 'admin/about.php'; +$adminmenu[$i]["icon"] = '../../'.$pathImageAdmin.'/about.png'; Added: XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/modules.php =================================================================== --- XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/modules.php (rev 0) +++ XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/modules.php 2012-02-02 17:05:21 UTC (rev 8874) @@ -0,0 +1,177 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * + * 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. + * 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. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * + * **************************************************************************** + */ +include '../../../include/cp_header.php'; +include_once("../include/functions.php"); +include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/class/tdmcreate_modules.php'; +include 'admin_header.php'; +xoops_cp_header(); + +if (isset($_REQUEST['op'])) { + $op = $_REQUEST['op']; +} else { + @$op = 'default'; +} + +switch ($op) { + case "modules_save": + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header('modules.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + } + + if (isset($_REQUEST['modules_id'])) { + $obj =& $modulesHandler->get($_REQUEST['modules_id']); + } else { + $obj =& $modulesHandler->create(); + } + //Image + include_once XOOPS_ROOT_PATH.'/class/uploader.php'; + $uploaddir = XOOPS_ROOT_PATH . "/modules/".$xoopsModule->dirname()."/images/uploads/modules/"; + $uploader = new XoopsMediaUploader($uploaddir, "gif|jpeg|pjpeg|png", 104857600, null, null); + + if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) { + $extension = preg_replace( "/^.+\.([^.]+)$/sU" , "\\1" , $_FILES["attachedfile"]['name']) ; + $name_img = $_REQUEST['modules_name'].'_slogo.'.$extension; + $uploader->setTargetFileName($name_img); + $uploader->fetchMedia($_POST['xoops_upload_file'][0]); + if (!$uploader->upload()) { + $errors = $uploader->getErrors(); + redirect_header("javascript:history.go(-1)",3, $errors); + } else { + $obj->setVar('modules_image', $uploader->getSavedFileName()); + } + } else { + $obj->setVar('modules_image', $_REQUEST['modules_image']); + } + + $obj->setVar('modules_name', $_REQUEST['modules_name']); + $obj->setVar('modules_version', $_REQUEST['modules_version']); + $obj->setVar('modules_description', $_REQUEST['modules_description']); + $obj->setVar('modules_author', $_REQUEST['modules_author']); + $obj->setVar('modules_author_mail', $_REQUEST['modules_author_mail']); + $obj->setVar('modules_author_website_url', $_REQUEST['modules_author_website_url']); + $obj->setVar('modules_author_website_name', $_REQUEST['modules_author_website_name']); + $obj->setVar('modules_credits', $_REQUEST['modules_credits']); + $obj->setVar('modules_license', $_REQUEST['modules_license']); + $obj->setVar('modules_release_info', $_REQUEST['modules_release_info']); + $obj->setVar('modules_release_file', $_REQUEST['modules_release_file']); + $obj->setVar('modules_manual', $_REQUEST['modules_manual']); + $obj->setVar('modules_manual_file', $_REQUEST['modules_manual_file']); + $obj->setVar('modules_demo_site_url', $_REQUEST['modules_demo_site_url']); + $obj->setVar('modules_demo_site_name', $_REQUEST['modules_demo_site_name']); + $obj->setVar('modules_forum_site_url', $_REQUEST['modules_forum_site_url']); + $obj->setVar('modules_forum_site_name', $_REQUEST['modules_forum_site_name']); + $obj->setVar('modules_module_website_url', $_REQUEST['modules_module_website_url']); + $obj->setVar('modules_module_website_name', $_REQUEST['modules_module_website_name']); + $obj->setVar('modules_release', $_REQUEST['modules_release']); + $obj->setVar('modules_module_status', $_REQUEST['modules_module_status']); + $obj->setVar('modules_display_admin', $_REQUEST['modules_display_admin']); + $obj->setVar('modules_display_user', $_REQUEST['modules_display_user']); + $obj->setVar('modules_active_search', $_REQUEST['modules_active_search']); + $obj->setVar('modules_active_comments', $_REQUEST['modules_active_comments']); + + if ($modulesHandler->insert($obj)) { + redirect_header('modules.php?op=default', 2, _AM_TDMCREATE_FORMOK); + } + break; + + case "modules_create": + $modcreate_admin = new ModuleAdmin(); + echo $modcreate_admin->addNavigation('modules.php'); + $modcreate_admin->addItemButton(_AM_TDMCREATE_MODULES_LIST, 'modules.php?op=modules_list', 'list'); + echo $modcreate_admin->renderButton(); + + $obj =& $modulesHandler->create(); + $form = $obj->getForm(); + break; + case "modules_edit": + $obj =& $modulesHandler->get($_REQUEST['modules_id']); + $form = $obj->getForm(); + break; + case "modules_delete": + $obj =& $modulesHandler->get($_REQUEST['modules_id']); + if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) + { + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header('modules.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + } + if ($modulesHandler->delete($obj)) { + $xoopsDB->queryF("DELETE FROM ".$xoopsDB->prefix("tdmcreate_modules")." WHERE modules_id = ".$_REQUEST['modules_id']); + redirect_header('modules.php', 3, _AM_TDMCREATE_FORMDELOK); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array('ok' => 1, 'modules_id' => $_REQUEST['modules_id'], 'op' => 'modules_delete'), $_SERVER['REQUEST_URI'], sprintf(_AM_TDMCREATE_FORMSUREDEL, $obj->getVar('modules_name'))); + } + break; + case "modules_list": + default: + $modcreate_admin = new ModuleAdmin(); + echo $modcreate_admin->addNavigation('modules.php'); + $modcreate_admin->addItemButton(_AM_TDMCREATE_MODULES_NEW, 'modules.php?op=modules_create', 'add'); + echo $modcreate_admin->renderButton(); + + $criteria = new CriteriaCompo(); + $criteria->setSort('modules_name'); + $criteria->setOrder('ASC'); + $modules_arr = $modulesHandler->getall($criteria); + $numrows_modules = $modulesHandler->getCount(); + + if ( $numrows_modules > 0 ) + { + echo '<table width="100%" cellspacing="1" class="outer">'; + echo '<tr class="center">'; + echo '<th width="20%">'._AM_TDMCREATE_NAME.'</th>'; + echo '<th width="10%">'._AM_TDMCREATE_IMAGE.'</th>'; + echo '<th width="15%">'._AM_TDMCREATE_DISPLAY_ADMIN.'</th>'; + echo '<th width="15%">'._AM_TDMCREATE_DISPLAY_USER.'</th>'; + echo '<th width="10%">'._AM_TDMCREATE_BLOCS.'</th>'; + echo '<th width="10%">'._AM_TDMCREATE_NB_CHAMPS.'</th>'; + echo '<th width="10%">'._AM_TDMCREATE_FORMACTION.'</th>'; + echo '</tr>'; + $class = 'odd'; + foreach (array_keys($modules_arr) as $i) + { + $modules_id = $modules_arr[$i]->getVar('modules_id'); + $modules_name = $modules_arr[$i]->getVar('modules_name'); + $modules_image = $modules_arr[$i]->getVar('modules_image'); + //$modules_blocks = $modules_arr[$i]->getVar('modules_blocs'); + $modules_display_admin = $modules_arr[$i]->getVar('modules_display_admin'); + $modules_display_user = $modules_arr[$i]->getVar('modules_display_user'); + $display_admin = ($modules_display_admin == 1) ? _YES : _NO; + $display_user = ($modules_display_user == 1) ? _YES : _NO; + echo '<tr class="odd center">'; + echo '<td><b>'.$modules_name.'</b></td>'; + echo '<td><img src="../images/uploads/modules/'.$modules_image.'" height="30px"></td>'; + echo '<td>'.$display_admin.'</td>'; + echo '<td>'.$display_user.'</td>'; + echo '<td> </td>'; + echo '<td> </td>'; + echo '<td>'; + echo '<a href="modules.php?op=modules_edit&modules_id='.$modules_id.'"><img src='. $pathImageIcon ."/edit.png alt="._AM_TDMCREATE_FORMEDIT.'" title="'._AM_TDMCREATE_FORMEDIT.'"></a> <a href="modules.php?op=modules_delete&modules_id='.$modules_id.'"><img src='. $pathImageIcon ."/delete.png alt="._AM_TDMCREATE_FORMDEL.'" title="'._AM_TDMCREATE_FORMDEL.'"></a>'; + echo '</td>'; + echo '</tr>'; + } + echo '</table><br><br>'; + } + break; +} +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/tables.php =================================================================== --- XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/tables.php (rev 0) +++ XoopsModules/TDMCreate/releases/1.37/TDMCreate/admin/tables.php 2012-02-02 17:05:21 UTC (rev 8874) @@ -0,0 +1,526 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * + * 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. + * 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. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * + * **************************************************************************** + */ +include 'admin_header.php'; +include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/class/tdmcreate_tables.php'; +xoops_cp_header(); + +if (isset($_REQUEST['op'])) { + $op = $_REQUEST['op']; +} else { + @$op = 'default'; +} + +switch ($op) { + case "tables_save": + + if (isset($_REQUEST['tables_id'])) { + $obj =& $tablesHandler->get($_REQUEST['tables_id']); + } else { + $obj =& $tablesHandler->create(); + } + + //Nom du module + $modules =& $modulesHandler->get($_REQUEST['tables_modules']); + $modules_name = $modules->getVar('modules_name'); + + $obj->setVar('tables_modules', $_REQUEST['tables_modules']); + + if ( $_REQUEST['select'] == 1 ) + { + $obj->setVar('tables_module_table', strtolower($modules_name.'_topic')); + $obj->setVar('tables_name', 'topic'); + $obj->setVar('tables_blocs', 0); + $obj->setVar('tables_display_admin', 1); + $obj->setVar('tables_display_user', 1); + $obj->setVar('tables_search', 0); + $obj->setVar('tables_coms', 0); + $obj->setVar('tables_nb_champs', 7); + + $tables_champs = 'topic_id:int:11:unsigned:NOT NULL: :|topic_pid:int:5:unsigned:NOT NULL:0:|topic_title:varchar:255: :NOT NULL: :|topic_desc:text: : :NOT NULL: :|topic_img:varchar:255: :NOT NULL: :|topic_weight:int:5: :NOT NULL:0:|topic_color:varchar:10: :NULL: :'; + if ( isset($_REQUEST['tables_submitter']) == 1 ) + $tables_champs .= '|topic_submitter:int:10: :NOT NULL:0:'; + if ( isset($_REQUEST['tables_date_created']) == 1 ) + $tables_champs .= '|topic_date_created:int:10: :NOT NULL:0:'; + if ( isset($_REQUEST['tables_online']) == 1 ) + $tables_champs .= '|topic_online:tinyint:1: :NOT NULL:0:'; + + $tables_parametres = 'XoopsFormTopic:0:0:0:0:0:0|XoopsFormText:1:1:0:1:0:1|XoopsFormTextArea:0:1:0:0:0:1|XoopsFormUploadImage:1:1:0:0:0:0|XoopsFormText:1:1:0:0:0:1|XoopsFormColorPicker:1:1:0:0:0:0|XoopsFormSelectUser:0:0:0:0:0:1|XoopsFormTextDateSelect:0:0:0:0:0:1|XoopsFormCheckBox:1:1:0:0:0:1'; + + //Image + include_once XOOPS_ROOT_PATH.'/class/uploader.php'; + + if(is_dir($pathImageAdmin)){ + $uploaddir = $pathImageAdmin; + }else{ + $uploaddir = XOOPS_ROOT_PATH . "/modules/".$xoopsModule->dirname()."/images/uploads/tables/"; + } + + $uploader = new XoopsMediaUploader($uploaddir, "gif|jpeg|pjpeg|png", 104857600, null, null); + + if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) { + $extension = preg_replace( "/^.+\.([^.]+)$/sU" , "\\1" , $_FILES["attachedfile1"]['name']) ; + $name_img = 'topic.'.$extension; + $uploader->setTargetFileName($name_img); + $uploader->fetchMedia($_POST['xoops_upload_file'][0]); + if (!$uploader->upload()) { + $errors = $uploader->getErrors(); + redirect_header("javascript:history.go(-1)",3, $errors); + } else { + $obj->setVar('tables_img', $uploader->getSavedFileName()); + } + } else { + $obj->setVar('tables_img', $_REQUEST['tables_img1']); + } + } else { + + $obj->setVar('tables_module_table', strtolower($modules_name.'_'.$_REQUEST['tables_name'])); + $obj->setVar('tables_name', strtolower($_REQUEST['tables_name'])); + $obj->setVar('tables_blocs', $_REQUEST['tables_blocs']); + $obj->setVar('tables_display_admin', $_REQUEST['tables_display_admin']); + $obj->setVar('tables_display_user', $_REQUEST['tables_display_user']); + $obj->setVar('tables_search', $_REQUEST['tables_search']); + $obj->setVar('tables_coms', $_REQUEST['tables_coms']); + $obj->setVar('tables_nb_champs', $_REQUEST['tables_nb_champs']); + + $tables_champs = ''; + $tables_parametres = ''; + for($i=0; $i<$_REQUEST['tables_nb_champs']; $i++) + { + //Rajouts des parametres: text:on:off: ... + if ( $i != 0 ) { + $tables_parametres .= ( !empty($_REQUEST['champs_param_elements'][$i]) ) ? "".$_REQUEST['champs_param_elements'][$i].":" : " :"; + $tables_parametres .= ( !empty($_REQUEST['champs_param_display_admin'][$i]) ) ? "1:" : "0:"; + $tables_parametres .= ( !empty($_REQUEST['champs_param_display_user'][$i]) ) ? "1:" : "0:"; + $tables_parametres .= ( !empty($_REQUEST['champs_param_display_blocs'][$i]) ) ? "1:" : "0:"; + $tables_parametres .= ( $i == $_REQUEST['champs_param_main_field']) ? "1:" : "0:"; + $tables_parametres .= ( !empty($_REQUEST['champs_param_search_field'][$i]) ) ? "1:" : "0:"; + $tables_parametres .= ( !empty($_REQUEST['champs_param_required_field'][$i]) ) ? "1" : "0"; + } + + //Rajouts des champs: test:int:4: ... + $tables_champs .= (!empty($_REQUEST['champs_name'][$i])) ? "".$_REQUEST['champs_name'][$i].":" : " :"; + $tables_champs .= (!empty($_REQUEST['champs_type'][$i])) ? "".$_REQUEST['champs_type'][$i].":" : " :"; + $tables_champs .= (!empty($_REQUEST['champs_valeur'][$i])) ? "".$_REQUEST['champs_valeur'][$i].":" : " :"; + $tables_champs .= (!empty($_REQUEST['champs_attributs'][$i])) ? "".$_REQUEST['champs_attributs'][$i].":" : " :"; + $tables_champs .= (!empty($_REQUEST['champs_null'][$i])) ? "".strtoupper($_REQUEST['champs_null'][$i]).":" : " :"; + $tables_champs .= (!empty($_REQUEST['champs_default'][$i])) ? "".$_REQUEST['champs_default'][$i].":" : " :"; + $tables_champs .= (!empty($_REQUEST['champs_clef'][$i])) ? "".$_REQUEST['champs_clef'][$i]."" : " "; + + //Coupure entre les champs et coupre entre les parametres + if ( $i != $_REQUEST['tables_nb_champs'] - 1) { + $tables_champs .= '|'; + if ( $i != 0 ) + $tables_parametres .= '|'; + } else { + if ( isset($_REQUEST['tables_submitter']) == 1 ) + $tables_champs .= '|'.strtolower($_REQUEST['tables_name']).'_submitter:int:10: :NOT NULL:0:'; + if ( isset($_REQUEST['tables_date_created']) == 1 ) + $tables_champs .= '|'.strtolower($_REQUEST['tables_name']).'_date_created:int:10: :NOT NULL:0:'; + if ( isset($_REQUEST['tables_online']) == 1 ) + $tables_champs .= '|'.strtolower($_REQUEST['tables_name']).'_online:tinyint:1: :NOT NULL:0:'; + + $tables_parametres .= '|XoopsFormSelectUser:1:1:1:0:0:1|XoopsFormTextDateSelect:1:1:1:0:0:1|XoopsFormCheckBox:1:1:1:0:0:1'; + } + } + } + $obj->setVar('tables_champs', $tables_champs); + $obj->setVar('tables_parametres', $tables_parametres); + + if ($tablesHandler->insert($obj)) + { + redirect_header('tables.php?op=default', 2, _AM_TDMCREATE_FORMOK); + } + + break; + + case "tables_save1": + + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header('tables.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + } + + if (isset($_REQUEST['tables_id'])) { + $obj =& $tablesHandler->get($_REQUEST['tables_id']); + } else { + $obj =& $tablesHandler->create(); + } + //Nom du module + $modules =& $modulesHandler->get($_REQUEST['tables_modules']); + $modules_name = $modules->getVar('modules_name'); + + $tables_blocks = (isset($_REQUEST['tables_blocs'])) ? $_REQUEST['tables_blocs'] : '0'; + $tables_display_admin = (isset($_REQUEST['tables_display_admin'])) ? $_REQUEST['tables_display_admin'] : '0'; + $tables_display_user = (isset($_REQUEST['tables_display_user'])) ? $_REQUEST['tables_display_user'] : '0'; + $tables_search = (isset($_REQUEST['tables_search'])) ? $_REQUEST['tables_search'] : '0'; + $tables_coms = (isset($_REQUEST['tables_coms'])) ? $_REQUEST['tables_coms'] : '0'; + $select = (isset($_REQUEST['select'])) ? $_REQUEST['select'] : '0'; + + //Image + include_once XOOPS_ROOT_PATH.'/class/uploader.php'; + if(is_dir($pathImageAdmin)){ + $uploaddir = $pathImageAdmin; + }else{ + $uploaddir = XOOPS_ROOT_PATH . "/modules/".$xoopsModule->dirname()."/images/uploads/tables/"; + } + $uploader = new XoopsMediaUploader($uploaddir, "gif|jpeg|pjpeg|png", 104857600, null, null); + + if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) { + $extension = preg_replace( "/^.+\.([^.]+)$/sU" , "\\1" , $_FILES["attachedfile"]['name']) ; + $name_img = $_REQUEST['tables_name'].'.'.$extension; + $uploader->setTargetFileName($name_img); + $uploader->fetchMedia($_POST['xoops_upload_file'][0]); + if (!$uploader->upload()) { + $errors = $uploader->getErrors(); + redirect_header("javascript:history.go(-1)",3, $errors); + } else { + $obj->setVar('tables_img', $uploader->getSavedFileName()); + } + } else { + $obj->setVar('tables_img', $_REQUEST['tables_img']); + } + + $obj->setVar('tables_modules', strtolower($_REQUEST['tables_modules'])); + $obj->setVar('tables_module_table', strtolower($modules_name.'_'.$_REQUEST['tables_name'])); + $obj->setVar('tables_name', strtolower($_REQUEST['tables_name'])); + $obj->setVar('tables_blocs', $_REQUEST['tables_blocs']); + $obj->setVar('tables_display_admin', $_REQUEST['tables_display_admin']); + $obj->setVar('tables_display_user', $_REQUEST['tables_display_user']); + //mettre des isset pour search + if ( isset($_REQUEST['tables_search']) ) + $obj->setVar('tables_search', $_REQUEST['tables_search']); + if ( isset($_REQUEST['tables_coms']) ) + $obj->setVar('tables_coms', $_REQUEST['tables_coms']); + $obj->setVar('tables_nb_champs', $_REQUEST['tables_nb_champs']); + + if ($tablesHandler->insert($obj)) { + redirect_header('tables.php?op=default', 2, _AM_TDMCREATE_FORMOK); + } + break; + + case "edit_tables": + $obj =& $tablesHandler->get($_REQUEST['tables_id']); + $form = $obj->getFormTable(); + break; + + case "edit_champs": + $obj =& $tablesHandler->get($_REQUEST['tables_id']); + $form = $obj->getFormEditChamps(false, $_REQUEST['tables_id']); + break; + + case "delete_tables": + $obj =& $tablesHandler->get($_REQUEST['tables_id']); + if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) { + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header('tables.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); + } + if ($tablesHandler->delete($obj)) { + redirect_header('tables.php', 3, _AM_TDMCREATE_FORMDELOK); + } else { + echo $obj->getHtmlErrors(); + } + } else { + ... [truncated message content] |
From: <txm...@us...> - 2012-02-02 16:44:44
|
Revision: 8873 http://xoops.svn.sourceforge.net/xoops/?rev=8873&view=rev Author: txmodxoops Date: 2012-02-02 16:44:38 +0000 (Thu, 02 Feb 2012) Log Message: ----------- Minor Revision Removed Paths: ------------- XoopsModules/TDMCreate/releases/1.37/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dj...@us...> - 2012-02-02 15:20:22
|
Revision: 8872 http://xoops.svn.sourceforge.net/xoops/?rev=8872&view=rev Author: djculex Date: 2012-02-02 15:20:11 +0000 (Thu, 02 Feb 2012) Log Message: ----------- - BUG: User website not added to form - BUG: Ie adding horizontal scroll to colorbox when not needed (Yeeeeahh IE - Personal: Update personal hate-list...IE still no.1 Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/css/smallworld.css XoopsModules/smallworld/trunk/smallworld/editprofile.php XoopsModules/smallworld/trunk/smallworld/js/smallworld.js XoopsModules/smallworld/trunk/smallworld/templates/smallworld_userprofile_edittemplate.html Modified: XoopsModules/smallworld/trunk/smallworld/css/smallworld.css =================================================================== --- XoopsModules/smallworld/trunk/smallworld/css/smallworld.css 2012-02-02 13:46:31 UTC (rev 8871) +++ XoopsModules/smallworld/trunk/smallworld/css/smallworld.css 2012-02-02 15:20:11 UTC (rev 8872) @@ -469,7 +469,7 @@ .smallworld_remove2 { position:relative; top:-120px; - left: 400px; + left: 50%; font-size:8px; } Modified: XoopsModules/smallworld/trunk/smallworld/editprofile.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/editprofile.php 2012-02-02 13:46:31 UTC (rev 8871) +++ XoopsModules/smallworld/trunk/smallworld/editprofile.php 2012-02-02 15:20:11 UTC (rev 8872) @@ -315,6 +315,7 @@ $xoopsTpl->append('smallworld_register_title',_SMALLWORLD_REGRISTATION_TITLE); $xoopsTpl->assign('smallworld_beforesubmit',_SMALLWORLD_TEXTBEFORESUBMIT); $xoopsTpl->assign('smallworld_save',_SMALLWORLD_SUBMIT); + $xoopsTpl->assign('smallworld_user_website',$r['website']); $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.colorbox.js'); $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/colorbox.css'); Modified: XoopsModules/smallworld/trunk/smallworld/js/smallworld.js =================================================================== --- XoopsModules/smallworld/trunk/smallworld/js/smallworld.js 2012-02-02 13:46:31 UTC (rev 8871) +++ XoopsModules/smallworld/trunk/smallworld/js/smallworld.js 2012-02-02 15:20:11 UTC (rev 8872) @@ -41,7 +41,7 @@ if (xoops_smallworld('#smallworld_regform1').length) { // implies *not* zero xoops_smallworld('#smallworld_regform1').show(); xoops_smallworld.fn.colorbox({ - width:"50%", + innerWidth:"75%", height:"70%", inline:true, onComplete: function() { Modified: XoopsModules/smallworld/trunk/smallworld/templates/smallworld_userprofile_edittemplate.html =================================================================== --- XoopsModules/smallworld/trunk/smallworld/templates/smallworld_userprofile_edittemplate.html 2012-02-02 13:46:31 UTC (rev 8871) +++ XoopsModules/smallworld/trunk/smallworld/templates/smallworld_userprofile_edittemplate.html 2012-02-02 15:20:11 UTC (rev 8872) @@ -233,7 +233,7 @@ <{if $show_website != 'no'}> <tr> <td valign="top"><p><{$smarty.const._SMALLWORLD_WEBSITE}></p></td> - <td><textarea name="website" id="website">http://</textarea> + <td><textarea name="website" id="website"><{$smallworld_user_website}></textarea> </td> </tr> <{/if}> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <txm...@us...> - 2012-02-02 13:46:38
|
Revision: 8871 http://xoops.svn.sourceforge.net/xoops/?rev=8871&view=rev Author: txmodxoops Date: 2012-02-02 13:46:31 +0000 (Thu, 02 Feb 2012) Log Message: ----------- Beta 2 Added Paths: ----------- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/building.php Removed Paths: ------------- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/const.php Added: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/building.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/building.php (rev 0) +++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/building.php 2012-02-02 13:46:31 UTC (rev 8871) @@ -0,0 +1,222 @@ +<?php +/** + * **************************************************************************** + * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS + * - Licence GPL Copyright (c) (http://www.tdmxoops.net) + * + * 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. + * 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. + * + * @license TDM GPL license + * @author TDM TEAM DEV MODULE + * + * **************************************************************************** + */ + +include 'admin_header.php'; +xoops_cp_header(); + +$indexAdmin = new ModuleAdmin(); +echo $indexAdmin->addNavigation('const.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); + + //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); + + //Debut + echo '<table width="100%" cellspacing="1" class="outer">'; + /************************************************/ + /*Structure*/ + /************************************************/ + //Creation de l'architecture + const_architecture($modules_name, $modules_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) + { + //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'); + + //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); + } + //Creation des classes + const_class($modules, $modules_name, $tables_module_table, $tables_name, $tables_champs, $tables_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); + } + //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); + } + //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 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'"); + 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); + } + } + //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 + $topic = 0; + if ( $topic == 1 || $tables_module_table != null) { // + const_admin_permissions($modules, $modules_name, $tables_arr, $topic); + } + + //Include + //Configs + const_include_configs($modules, $modules_name, $modules_author_website_name, $modules_author_website_url); + //Style + //const_css_admin($modules, $modules_name); + //const_include_style($modules, $modules_name); + //Functions + const_include_functions($modules, $modules_name); + //Creation du fichier install pour l'uploads + const_include_install($modules, $modules_name, $tables_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); + + /************************************************/ + /*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); + /************************************************/ + /*Admin*/ + /************************************************/ + 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); + } + echo '</table>'; + + break; + + case "default": + default: + + include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); + $action = $_SERVER['REQUEST_URI']; + + $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) + { + //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); + + $form->addElement(new XoopsFormHidden('op', 'creation')); + $form->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit')); + $form->display(); + break; +} +include "admin_footer.php"; \ No newline at end of file Deleted: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/const.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/const.php 2012-02-02 13:45:24 UTC (rev 8870) +++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/const.php 2012-02-02 13:46:31 UTC (rev 8871) @@ -1,222 +0,0 @@ -<?php -/** - * **************************************************************************** - * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS - * - Licence GPL Copyright (c) (http://www.tdmxoops.net) - * - * 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. - * 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. - * - * @license TDM GPL license - * @author TDM TEAM DEV MODULE - * - * **************************************************************************** - */ - -include 'admin_header.php'; -xoops_cp_header(); - -$indexAdmin = new ModuleAdmin(); -echo $indexAdmin->addNavigation('const.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); - - //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); - - //Debut - echo '<table width="100%" cellspacing="1" class="outer">'; - /************************************************/ - /*Structure*/ - /************************************************/ - //Creation de l'architecture - const_architecture($modules_name, $modules_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) - { - //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'); - - //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); - } - //Creation des classes - const_class($modules, $modules_name, $tables_module_table, $tables_name, $tables_champs, $tables_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); - } - //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); - } - //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 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'"); - 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); - } - } - //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 - $topic = 0; - if ( $topic == 1 || $tables_module_table != null) { // - const_admin_permissions($modules, $modules_name, $tables_arr, $topic); - } - - //Include - //Configs - const_include_configs($modules, $modules_name, $modules_author_website_name, $modules_author_website_url); - //Style - //const_css_admin($modules, $modules_name); - //const_include_style($modules, $modules_name); - //Functions - const_include_functions($modules, $modules_name); - //Creation du fichier install pour l'uploads - const_include_install($modules, $modules_name, $tables_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); - - /************************************************/ - /*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); - /************************************************/ - /*Admin*/ - /************************************************/ - 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); - } - echo '</table>'; - - break; - - case "default": - default: - - include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php"); - $action = $_SERVER['REQUEST_URI']; - - $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) - { - //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); - - $form->addElement(new XoopsFormHidden('op', 'creation')); - $form->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit')); - $form->display(); - break; -} -include "admin_footer.php"; \ 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: <txm...@us...> - 2012-02-02 13:45:35
|
Revision: 8870 http://xoops.svn.sourceforge.net/xoops/?rev=8870&view=rev Author: txmodxoops Date: 2012-02-02 13:45:24 +0000 (Thu, 02 Feb 2012) Log Message: ----------- fixed minor bugs Modified Paths: -------------- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/about.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/menu.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/tables.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/tdmcreate_modules.php XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/xoops_version.php Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/about.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/about.php 2012-02-02 12:32:01 UTC (rev 8869) +++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/about.php 2012-02-02 13:45:24 UTC (rev 8870) @@ -44,6 +44,6 @@ $aboutAdmin = new ModuleAdmin(); echo $aboutAdmin->addNavigation("about.php"); -echo $aboutAdmin->renderabout($GLOBALS['xoopsModuleConfig']['id_paypal'], false); +echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false); include "admin_footer.php"; \ No newline at end of file Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/menu.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/menu.php 2012-02-02 12:32:01 UTC (rev 8869) +++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/menu.php 2012-02-02 13:45:24 UTC (rev 8870) @@ -68,7 +68,7 @@ $i++; $adminmenu[$i]["title"] = _MI_TDMCREATE_ADMENU5; //$adminmenu[$i]["desc"] = _MI_TDMCREATE_ADMENU5_DESC -$adminmenu[$i]["link"] = 'admin/const.php'; +$adminmenu[$i]["link"] = 'admin/building.php'; $adminmenu[$i]["icon"] = '../../'.$pathImageAdmin.'/builder.png'; $i++; $adminmenu[$i]["title"] = _MI_TDMCREATE_ADMENU6; Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/tables.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/tables.php 2012-02-02 12:32:01 UTC (rev 8869) +++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/tables.php 2012-02-02 13:45:24 UTC (rev 8870) @@ -79,7 +79,7 @@ if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) { $extension = preg_replace( "/^.+\.([^.]+)$/sU" , "\\1" , $_FILES["attachedfile1"]['name']) ; - $name_img = 'topic.'.$extension; + $name_img = $_GET['tables_name'].'.'.$extension; $uploader->setTargetFileName($name_img); $uploader->fetchMedia($_POST['xoops_upload_file'][0]); if (!$uploader->upload()) { Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/tdmcreate_modules.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/tdmcreate_modules.php 2012-02-02 12:32:01 UTC (rev 8869) +++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/tdmcreate_modules.php 2012-02-02 13:45:24 UTC (rev 8870) @@ -95,7 +95,7 @@ $editor_configs["cols"] = 100; $editor_configs["width"] = "100%"; $editor_configs["height"] = "100px"; - $editor_configs["editor"] = $GLOBALS['xoopsModuleConfig']['TDMCreate_editor']; + $editor_configs["editor"] = $GLOBALS['xoopsModuleConfig']['tdmcreate_editor']; $form->addElement( new XoopsFormEditor(_AM_TDMCREATE_MODULES_DESCRIPTION, "modules_description", $editor_configs), true); $form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULES_AUTHOR, 'modules_author', 50, 255, $this->getVar('modules_author')), true); $form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULES_LICENSE, 'modules_license', 50, 255, $this->getVar('modules_license')), true); @@ -106,8 +106,7 @@ $modules_active_search = $this->isNew() ? '1' : $this->getVar('modules_active_search'); $form->addElement(new XoopsFormRadioYN(_AM_TDMCREATE_MODULES_ACTIVE_SEARCH, 'modules_active_search', $modules_active_search, _YES, _NO)); - $modules_image = $this->getVar('modules_image') ? $this->getVar('modules_image') : 'blank.gif'; - + $modules_image = $this->getVar('modules_image') ? $this->getVar('modules_image') : 'blank.gif'; $uploadirectory = "/modules/".$xoopsModule->dirname()."/images/uploads/modules"; $imgtray = new XoopsFormElementTray(_AM_TDMCREATE_MODULES_IMAGE,'<br />'); $imgpath = sprintf(_AM_TDMCREATE_FORMIMAGE_PATH, "./modules/".$xoopsModule->dirname()."/images/uploads/modules"); Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/xoops_version.php =================================================================== --- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/xoops_version.php 2012-02-02 12:32:01 UTC (rev 8869) +++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/xoops_version.php 2012-02-02 13:45:24 UTC (rev 8870) @@ -53,14 +53,16 @@ $modversion['license'] = 'GNU GPL 2.0'; $modversion['license_url'] = "www.gnu.org/licenses/gpl-2.0.html/"; -$modversion['release_info'] = "Beta 1 18/12/2011"; +$modversion['release_info'] = "Beta 2 30/01/2012"; $modversion['release_file'] = XOOPS_URL."/modules/".$dirname."/docs/changelog.txt"; -$modversion['release_date'] = "2011/12/18"; +$modversion['release_date'] = "2012/01/30"; $modversion['manual'] = "Install Manual"; $modversion['manual_file'] = XOOPS_URL."/modules/".$dirname."/docs/install.txt"; $modversion['min_php'] = "5.2"; $modversion['min_xoops'] = "2.5"; +$modversion['min_admin']= "1.1"; +$modversion['min_db']= array('mysql'=> "5.0.7", 'mysqli'=> "5.0.7"); $modversion['image'] = "images/{$dirname}_slogo.png"; $modversion['dirname'] = "$dirname"; @@ -75,8 +77,8 @@ $modversion['forum_site_name'] = "Xoops Community"; $modversion['module_website_url'] = "http://www.xoops.org/"; $modversion['module_website_name'] = "Xoops"; -$modversion['release'] = "18-12-2011"; -$modversion['module_status'] = "Beta 1"; +$modversion['release'] = "30/01/2012"; +$modversion['module_status'] = "Beta 2"; // Admin things $modversion['hasAdmin'] = 1; @@ -97,6 +99,8 @@ $modversion["onInstall"] = "include/install.php"; //$modversion["onUpdate"] = "include/update.php"; +$modversion['hasMain'] = 0; + $modversion['templates'][] = array( 'file' => 'tdmcreate_filemanager.html', 'description' => '', 'type' => 'admin' ); // Config @@ -117,13 +121,5 @@ $modversion['config'][$i]['formtype'] = 'textbox'; $modversion['config'][$i]['valuetype'] = 'int'; $modversion['config'][$i]['default'] = 15; -$i++; -$modversion["config"][$i]["name"] = "id_paypal"; -$modversion["config"][$i]["title"] = "_MI_TDMCREATE_IDPAYPAL"; -$modversion["config"][$i]["description"] = "_MI_TDMCREATE_IDPAYPAL_DESC"; -$modversion["config"][$i]["formtype"] = "textbox"; -$modversion["config"][$i]["valuetype"] = "text"; -$modversion["config"][$i]["default"] = '6KJ7RW5DR3VTJ'; unset($i); - ?> \ 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: <txm...@us...> - 2012-02-02 12:32:16
|
Revision: 8869 http://xoops.svn.sourceforge.net/xoops/?rev=8869&view=rev Author: txmodxoops Date: 2012-02-02 12:32:01 +0000 (Thu, 02 Feb 2012) Log Message: ----------- Added buttons, deleted links in category, fields and steps Added Paths: ----------- XoopsModules/profile/branches/timgno/ XoopsModules/profile/branches/timgno/Frameworks/ XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/ XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/ XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/ XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/about.png XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/category.png XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/fields.png XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/help.png XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/home.png XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/permissions.png XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/stats.png XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/users.png XoopsModules/profile/branches/timgno/class/ XoopsModules/profile/branches/timgno/class/captcha/ XoopsModules/profile/branches/timgno/class/captcha/config.recaptcha.php XoopsModules/profile/branches/timgno/modules/ XoopsModules/profile/branches/timgno/modules/profile/ XoopsModules/profile/branches/timgno/modules/profile/activate.php XoopsModules/profile/branches/timgno/modules/profile/admin/ XoopsModules/profile/branches/timgno/modules/profile/admin/about.php XoopsModules/profile/branches/timgno/modules/profile/admin/admin_footer.php XoopsModules/profile/branches/timgno/modules/profile/admin/admin_header.php XoopsModules/profile/branches/timgno/modules/profile/admin/category.php XoopsModules/profile/branches/timgno/modules/profile/admin/deactivate.php XoopsModules/profile/branches/timgno/modules/profile/admin/directory.php XoopsModules/profile/branches/timgno/modules/profile/admin/field.php XoopsModules/profile/branches/timgno/modules/profile/admin/header.php XoopsModules/profile/branches/timgno/modules/profile/admin/index.html XoopsModules/profile/branches/timgno/modules/profile/admin/index.php XoopsModules/profile/branches/timgno/modules/profile/admin/menu.php XoopsModules/profile/branches/timgno/modules/profile/admin/permissions.php XoopsModules/profile/branches/timgno/modules/profile/admin/step.php XoopsModules/profile/branches/timgno/modules/profile/admin/user.php XoopsModules/profile/branches/timgno/modules/profile/admin/validation.php XoopsModules/profile/branches/timgno/modules/profile/admin/visibility.php XoopsModules/profile/branches/timgno/modules/profile/changelog.txt XoopsModules/profile/branches/timgno/modules/profile/changemail.php XoopsModules/profile/branches/timgno/modules/profile/changepass.php XoopsModules/profile/branches/timgno/modules/profile/class/ XoopsModules/profile/branches/timgno/modules/profile/class/category.php XoopsModules/profile/branches/timgno/modules/profile/class/field.php XoopsModules/profile/branches/timgno/modules/profile/class/index.html XoopsModules/profile/branches/timgno/modules/profile/class/profile.php XoopsModules/profile/branches/timgno/modules/profile/class/regstep.php XoopsModules/profile/branches/timgno/modules/profile/class/validation.php XoopsModules/profile/branches/timgno/modules/profile/class/visibility.php XoopsModules/profile/branches/timgno/modules/profile/comment_delete.php XoopsModules/profile/branches/timgno/modules/profile/comment_edit.php XoopsModules/profile/branches/timgno/modules/profile/comment_new.php XoopsModules/profile/branches/timgno/modules/profile/comment_post.php XoopsModules/profile/branches/timgno/modules/profile/comment_reply.php XoopsModules/profile/branches/timgno/modules/profile/directory.php XoopsModules/profile/branches/timgno/modules/profile/docs/ XoopsModules/profile/branches/timgno/modules/profile/docs/changelog.txt XoopsModules/profile/branches/timgno/modules/profile/docs/credits.txt XoopsModules/profile/branches/timgno/modules/profile/docs/index.html XoopsModules/profile/branches/timgno/modules/profile/docs/install.txt XoopsModules/profile/branches/timgno/modules/profile/docs/lang_diff.txt XoopsModules/profile/branches/timgno/modules/profile/docs/licence.txt XoopsModules/profile/branches/timgno/modules/profile/docs/readme.txt XoopsModules/profile/branches/timgno/modules/profile/dojsonvalidate.php XoopsModules/profile/branches/timgno/modules/profile/edituser.php XoopsModules/profile/branches/timgno/modules/profile/footer.php XoopsModules/profile/branches/timgno/modules/profile/header.php XoopsModules/profile/branches/timgno/modules/profile/images/ XoopsModules/profile/branches/timgno/modules/profile/images/index.html XoopsModules/profile/branches/timgno/modules/profile/images/left_both.gif XoopsModules/profile/branches/timgno/modules/profile/images/logo.png XoopsModules/profile/branches/timgno/modules/profile/images/modadminbg.gif XoopsModules/profile/branches/timgno/modules/profile/images/no.png XoopsModules/profile/branches/timgno/modules/profile/images/right_both.gif XoopsModules/profile/branches/timgno/modules/profile/images/yes.png XoopsModules/profile/branches/timgno/modules/profile/include/ XoopsModules/profile/branches/timgno/modules/profile/include/forms.php XoopsModules/profile/branches/timgno/modules/profile/include/index.html XoopsModules/profile/branches/timgno/modules/profile/include/install.php XoopsModules/profile/branches/timgno/modules/profile/include/update.php XoopsModules/profile/branches/timgno/modules/profile/index.php XoopsModules/profile/branches/timgno/modules/profile/js/ XoopsModules/profile/branches/timgno/modules/profile/js/index.html XoopsModules/profile/branches/timgno/modules/profile/js/jquery.json.validation.js XoopsModules/profile/branches/timgno/modules/profile/language/ XoopsModules/profile/branches/timgno/modules/profile/language/english/ XoopsModules/profile/branches/timgno/modules/profile/language/english/admin.php XoopsModules/profile/branches/timgno/modules/profile/language/english/help/ XoopsModules/profile/branches/timgno/modules/profile/language/english/help/help.html XoopsModules/profile/branches/timgno/modules/profile/language/english/help/index.html XoopsModules/profile/branches/timgno/modules/profile/language/english/index.html XoopsModules/profile/branches/timgno/modules/profile/language/english/mail_template/ XoopsModules/profile/branches/timgno/modules/profile/language/english/mail_template/emailchanged.tpl XoopsModules/profile/branches/timgno/modules/profile/language/english/mail_template/index.html XoopsModules/profile/branches/timgno/modules/profile/language/english/main.php XoopsModules/profile/branches/timgno/modules/profile/language/english/modinfo.php XoopsModules/profile/branches/timgno/modules/profile/language/index.html XoopsModules/profile/branches/timgno/modules/profile/language/italian/ XoopsModules/profile/branches/timgno/modules/profile/language/italian/admin.php XoopsModules/profile/branches/timgno/modules/profile/language/italian/help/ XoopsModules/profile/branches/timgno/modules/profile/language/italian/help/help.html XoopsModules/profile/branches/timgno/modules/profile/language/italian/help/index.html XoopsModules/profile/branches/timgno/modules/profile/language/italian/index.html XoopsModules/profile/branches/timgno/modules/profile/language/italian/mail_template/ XoopsModules/profile/branches/timgno/modules/profile/language/italian/mail_template/emailchanged.tpl XoopsModules/profile/branches/timgno/modules/profile/language/italian/mail_template/index.html XoopsModules/profile/branches/timgno/modules/profile/language/italian/main.php XoopsModules/profile/branches/timgno/modules/profile/language/italian/modinfo.php XoopsModules/profile/branches/timgno/modules/profile/lostpass.php XoopsModules/profile/branches/timgno/modules/profile/preloads/ XoopsModules/profile/branches/timgno/modules/profile/preloads/core.php XoopsModules/profile/branches/timgno/modules/profile/preloads/index.html XoopsModules/profile/branches/timgno/modules/profile/register.php XoopsModules/profile/branches/timgno/modules/profile/search.php XoopsModules/profile/branches/timgno/modules/profile/sql/ XoopsModules/profile/branches/timgno/modules/profile/sql/index.html XoopsModules/profile/branches/timgno/modules/profile/sql/mysql.sql XoopsModules/profile/branches/timgno/modules/profile/templates/ XoopsModules/profile/branches/timgno/modules/profile/templates/index.html XoopsModules/profile/branches/timgno/modules/profile/templates/profile_admin_categorylist.html XoopsModules/profile/branches/timgno/modules/profile/templates/profile_admin_fieldlist.html XoopsModules/profile/branches/timgno/modules/profile/templates/profile_admin_steplist.html XoopsModules/profile/branches/timgno/modules/profile/templates/profile_admin_visibility.html XoopsModules/profile/branches/timgno/modules/profile/templates/profile_avatar.html XoopsModules/profile/branches/timgno/modules/profile/templates/profile_breadcrumbs.html XoopsModules/profile/branches/timgno/modules/profile/templates/profile_changepass.html XoopsModules/profile/branches/timgno/modules/profile/templates/profile_directory_catlist.html XoopsModules/profile/branches/timgno/modules/profile/templates/profile_directory_index.html XoopsModules/profile/branches/timgno/modules/profile/templates/profile_directory_search.html XoopsModules/profile/branches/timgno/modules/profile/templates/profile_editprofile.html XoopsModules/profile/branches/timgno/modules/profile/templates/profile_email.html XoopsModules/profile/branches/timgno/modules/profile/templates/profile_form.html XoopsModules/profile/branches/timgno/modules/profile/templates/profile_register.html XoopsModules/profile/branches/timgno/modules/profile/templates/profile_results.html XoopsModules/profile/branches/timgno/modules/profile/templates/profile_search.html XoopsModules/profile/branches/timgno/modules/profile/templates/profile_userform.html XoopsModules/profile/branches/timgno/modules/profile/templates/profile_userinfo.html XoopsModules/profile/branches/timgno/modules/profile/templates/style.css XoopsModules/profile/branches/timgno/modules/profile/user.php XoopsModules/profile/branches/timgno/modules/profile/userinfo.php XoopsModules/profile/branches/timgno/modules/profile/xoops_version.php Added: XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/about.png =================================================================== (Binary files differ) Property changes on: XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/about.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/category.png =================================================================== (Binary files differ) Property changes on: XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/category.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/fields.png =================================================================== (Binary files differ) Property changes on: XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/fields.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/help.png =================================================================== (Binary files differ) Property changes on: XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/help.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/home.png =================================================================== (Binary files differ) Property changes on: XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/home.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/permissions.png =================================================================== (Binary files differ) Property changes on: XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/permissions.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/stats.png =================================================================== (Binary files differ) Property changes on: XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/stats.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/users.png =================================================================== (Binary files differ) Property changes on: XoopsModules/profile/branches/timgno/Frameworks/moduleclasses/icons/32/users.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/profile/branches/timgno/class/captcha/config.recaptcha.php =================================================================== --- XoopsModules/profile/branches/timgno/class/captcha/config.recaptcha.php (rev 0) +++ XoopsModules/profile/branches/timgno/class/captcha/config.recaptcha.php 2012-02-02 12:32:01 UTC (rev 8869) @@ -0,0 +1,29 @@ +<?php +/** + * CAPTCHA configurations for Recaptcha mode + * + * 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 class + * @subpackage CAPTCHA + * @since 2.5.2 + * @author trabis <lus...@gm...> + * @version $Id: config.recaptcha.php 8066 2011-11-06 05:09:33Z beckmi $ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +return $config = array( + 'private_key' => $GLOBALS['xoopsModuleConfig']['profile_privateapikey'], //'YourPrivateApiKey' + 'public_key' => $GLOBALS['xoopsModuleConfig']['profile_publicapikey'], //'YourPublicApiKey', + 'theme' => 'clean', // 'red' | 'white' | 'blackglass' | 'clean' | 'custom' + 'lang' => _LANGCODE + ); +?> \ No newline at end of file Added: XoopsModules/profile/branches/timgno/modules/profile/activate.php =================================================================== --- XoopsModules/profile/branches/timgno/modules/profile/activate.php (rev 0) +++ XoopsModules/profile/branches/timgno/modules/profile/activate.php 2012-02-02 12:32:01 UTC (rev 8869) @@ -0,0 +1,110 @@ +<?php +/** + * Extended User Profile + * + * 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 profile + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: activate.php 8066 2011-11-06 05:09:33Z beckmi $ + */ + +$xoopsOption['pagetype'] = "user"; +include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'header.php'; + +include $GLOBALS['xoops']->path('header.php'); +if (!empty($_GET['id']) && !empty($_GET['actkey'])) { + $id = intval($_GET['id']); + $actkey = trim($_GET['actkey']); + if (empty($id)) { + redirect_header(XOOPS_URL, 1, ''); + exit(); + } + $member_handler =& xoops_gethandler('member'); + $thisuser =& $member_handler->getUser($id); + if (!is_object($thisuser)) { + redirect_header(XOOPS_URL, 1, ''); + exit(); + } + if ($thisuser->getVar('actkey') != $actkey) { + redirect_header(XOOPS_URL . '/', 5, _US_ACTKEYNOT); + } else { + if ($thisuser->getVar('level') > 0) { + redirect_header(XOOPS_URL . '/modules/' . $GLOBALS['xoopsModule']->getVar('dirname', 'n'). '/index.php', 5, _US_ACONTACT, false); + } else { + if (false != $member_handler->activateUser($thisuser)) { + $config_handler =& xoops_gethandler('config'); + $GLOBALS['xoopsConfigUser'] = $config_handler->getConfigsByCat(XOOPS_CONF_USER); + if ($GLOBALS['xoopsConfigUser']['activation_type'] == 2) { + $myts =& MyTextSanitizer::getInstance(); + $xoopsMailer = xoops_getMailer(); + $xoopsMailer->useMail(); + $xoopsMailer->setTemplate('activated.tpl'); + $xoopsMailer->assign('SITENAME', $GLOBALS['xoopsConfig']['sitename']); + $xoopsMailer->assign('ADMINMAIL', $GLOBALS['xoopsConfig']['adminmail']); + $xoopsMailer->assign('SITEURL', XOOPS_URL . "/"); + $xoopsMailer->setToUsers($thisuser); + $xoopsMailer->setFromEmail($GLOBALS['xoopsConfig']['adminmail']); + $xoopsMailer->setFromName($GLOBALS['xoopsConfig']['sitename']); + $xoopsMailer->setSubject(sprintf(_US_YOURACCOUNT, $GLOBALS['xoopsConfig']['sitename']) ); + include $GLOBALS['xoops']->path('header.php'); + if (!$xoopsMailer->send()) { + printf(_US_ACTVMAILNG, $thisuser->getVar('uname') ); + } else { + printf(_US_ACTVMAILOK, $thisuser->getVar('uname') ); + } + include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footer.php'; + } else { + redirect_header(XOOPS_URL . '/user.php', 5, _US_ACTLOGIN, false); + } + } else { + redirect_header(XOOPS_URL . '/index.php', 5, 'Activation failed!'); + } + } + } +// Not implemented yet: re-send activiation code +} else if (!empty($_REQUEST['email']) && $xoopsConfigUser['activation_type'] != 0) { + $myts =& MyTextSanitizer::getInstance(); + $member_handler =& xoops_gethandler('member'); + $getuser =& $member_handler->getUsers(new Criteria('email', $myts->addSlashes(trim($_REQUEST['email'])))); + if (count($getuser) == 0) { + redirect_header(XOOPS_URL, 2, _US_SORRYNOTFOUND); + } + if ($getuser[0]->isActive()) { + redirect_header(XOOPS_URL, 2, sprintf(_US_USERALREADYACTIVE, $getuser[0]->getVar('email'))); + } + $xoopsMailer =& xoops_getMailer(); + $xoopsMailer->useMail(); + $xoopsMailer->setTemplate('register.tpl'); + $xoopsMailer->assign('SITENAME', $GLOBALS['xoopsConfig']['sitename']); + $xoopsMailer->assign('ADMINMAIL', $GLOBALS['xoopsConfig']['adminmail']); + $xoopsMailer->assign('SITEURL', XOOPS_URL . "/"); + $xoopsMailer->setToUsers($getuser[0]); + $xoopsMailer->setFromEmail($GLOBALS['xoopsConfig']['adminmail']); + $xoopsMailer->setFromName($GLOBALS['xoopsConfig']['sitename']); + $xoopsMailer->setSubject(sprintf(_US_USERKEYFOR, $getuser[0]->getVar('uname') )); + if (!$xoopsMailer->send()) { + echo _US_YOURREGMAILNG; + } else { + echo _US_YOURREGISTERED; + } +} else { + include_once $GLOBALS['xoops']->path('class/xoopsformloader.php'); + $form = new XoopsThemeForm('', 'form', 'activate.php'); + $form->addElement(new XoopsFormText(_US_EMAIL, 'email', 25, 255) ); + $form->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit') ); + $form->display(); +} + +$xoBreadcrumbs[] = array('title' => _PROFILE_MA_REGISTER); +include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'footer.php'; +?> \ No newline at end of file Added: XoopsModules/profile/branches/timgno/modules/profile/admin/about.php =================================================================== --- XoopsModules/profile/branches/timgno/modules/profile/admin/about.php (rev 0) +++ XoopsModules/profile/branches/timgno/modules/profile/admin/about.php 2012-02-02 12:32:01 UTC (rev 8869) @@ -0,0 +1,31 @@ +<?php +/** + * XOOPS Profile 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://www.xoops.org) + * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/) + * @package xoopsPoll + * @since 2.5.0 + * @author Mage, Mamba + * @version $Id $ + **/ + +include '../../../include/cp_header.php'; +include 'admin_header.php'; +xoops_cp_header(); + +$module_info =& $module_handler->get($xoopsModule->getVar("mid")); + +$aboutAdmin = new ModuleAdmin(); + +echo $aboutAdmin->addNavigation('about.php'); +echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false); + +include 'admin_footer.php'; \ No newline at end of file Added: XoopsModules/profile/branches/timgno/modules/profile/admin/admin_footer.php =================================================================== --- XoopsModules/profile/branches/timgno/modules/profile/admin/admin_footer.php (rev 0) +++ XoopsModules/profile/branches/timgno/modules/profile/admin/admin_footer.php 2012-02-02 12:32:01 UTC (rev 8869) @@ -0,0 +1,22 @@ +<?php +/** + * xSitemMap 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 xSitemMap + * @since 2.5.0 + * @author XOOPS Module Team + * @version $Id $ +**/ +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(); \ No newline at end of file Added: XoopsModules/profile/branches/timgno/modules/profile/admin/admin_header.php =================================================================== --- XoopsModules/profile/branches/timgno/modules/profile/admin/admin_header.php (rev 0) +++ XoopsModules/profile/branches/timgno/modules/profile/admin/admin_header.php 2012-02-02 12:32:01 UTC (rev 8869) @@ -0,0 +1,55 @@ +<?php +/** + * Extended User Profile + * + * 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 profile + * @since 2.3.0 + * @author Taiwen Jiang <ph...@us...> + * @version $Id: admin_header.php 8067 2011-12-06 20:13:21Z timgno $ + */ + +include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php'; +include_once XOOPS_ROOT_PATH . '/include/cp_functions.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(_PROFILE_AM_NOFRAMEWORKS); + xoops_cp_footer(); + //return false; + } + +$dirname = basename(dirname(dirname( __FILE__ ) )); +$module_handler =& xoops_gethandler('module'); +$xoopsModule = & $module_handler->getByDirname($dirname); +$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid')); +$pathImageIcon = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16'); +$pathImageAdmin = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32'); + +$myts =& MyTextSanitizer::getInstance(); + +if ( !isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl']) ) { + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xoopsTpl'] = new XoopsTpl(); +} +//xoops_cp_header(); +$xoopsTpl->assign('pathImageIcon', $pathImageIcon); +$xoopsTpl->assign('pathImageAdmin', $pathImageAdmin); + +//Load languages +xoops_loadLanguage('admin', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('main', $xoopsModule->getVar("dirname")); +xoops_loadLanguage('user'); +?> \ No newline at end of file Added: XoopsModules/profile/branches/timgno/modules/profile/admin/category.php =================================================================== --- XoopsModules/profile/branches/timgno/modules/profile/admin/category.php (rev 0) +++ XoopsModules/profile/branches/timgno/modules/profile/admin/category.php 2012-02-02 12:32:01 UTC (rev 8869) @@ -0,0 +1,106 @@ +<?php +// $Id: category.php 8066 2011-11-06 05:09:33Z beckmi $ +// ------------------------------------------------------------------------ // +// 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 // +// ------------------------------------------------------------------------ // +// Author: XOOPS Foundation // +// URL: http://www.xoops.org/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // +include 'admin_header.php'; +xoops_cp_header(); +$indexAdmin = new ModuleAdmin(); +echo $indexAdmin->addNavigation('category.php'); + +$op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['id']) ? "edit" : 'list'); + +$handler =& xoops_getmodulehandler('category'); +switch($op ) { +default: +case "list": + $criteria = new CriteriaCompo(); + $criteria->setSort('cat_weight'); + $criteria->setOrder('ASC'); + $GLOBALS['xoopsTpl']->assign('categories', $handler->getObjects($criteria, true, false) ); + $indexAdmin->addItemButton(_ADD.' '._PROFILE_AM_CATEGORY, 'category.php?op=new', 'add'); + $GLOBALS['xoopsTpl']->assign('addcategory', $indexAdmin->renderButton() ); + $template_main = "profile_admin_categorylist.html"; + break; + +case "new": + include_once '../include/forms.php'; + $obj =& $handler->create(); + $form = $obj->getForm(); + $form->display(); + break; + +case "edit": + include_once '../include/forms.php'; + $obj = $handler->get($_REQUEST['id']); + $form = $obj->getForm(); + $form->display(); + break; + +case "save": + if ( !$GLOBALS['xoopsSecurity']->check() ) { + redirect_header('category.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors() )); + } + if ( isset($_REQUEST['id']) ) { + $obj =& $handler->get($_REQUEST['id']); + } else { + $obj =& $handler->create(); + } + $obj->setVar('cat_title', $_REQUEST['cat_title']); + $obj->setVar('cat_description', $_REQUEST['cat_description']); + $obj->setVar('cat_weight', $_REQUEST['cat_weight']); + if ( $handler->insert($obj) ) { + redirect_header('category.php', 3, sprintf(_PROFILE_AM_SAVEDSUCCESS, _PROFILE_AM_CATEGORY) ); + } + include_once '../include/forms.php'; + echo $obj->getHtmlErrors(); + $form =& $obj->getForm(); + $form->display(); + break; + +case "delete": + $obj =& $handler->get($_REQUEST['id']); + if ( isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1 ) { + if ( !$GLOBALS['xoopsSecurity']->check() ) { + redirect_header('category.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors() )); + } + if ( $handler->delete($obj) ) { + redirect_header('category.php', 3, sprintf(_PROFILE_AM_DELETEDSUCCESS, _PROFILE_AM_CATEGORY) ); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array('ok' => 1, 'id' => $_REQUEST['id'], 'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_PROFILE_AM_RUSUREDEL, $obj->getVar('cat_title') )); + } + break; +} +if ( isset($template_main) ) { + $GLOBALS['xoopsTpl']->display("db:{$template_main}"); +} +include 'admin_footer.php'; +//xoops_cp_footer(); \ No newline at end of file Added: XoopsModules/profile/branches/timgno/modules/profile/admin/deactivate.php =================================================================== --- XoopsModules/profile/branches/timgno/modules/profile/admin/deactivate.php (rev 0) +++ XoopsModules/profile/branches/timgno/modules/profile/admin/deactivate.php 2012-02-02 12:32:01 UTC (rev 8869) @@ -0,0 +1,32 @@ +<?php +include 'header.php'; +xoops_cp_header(); + +if ( !isset($_REQUEST['uid']) ) { + redirect_header("index.php", 2, _PROFILE_AM_NOSELECTION); +} +$member_handler = xoops_gethandler('member'); +$user = $member_handler->getUser($_REQUEST['uid']); +if ( !$user || $user->isNew() ) { + redirect_header("index.php", 2, _PROFILE_AM_USERDONEXIT); +} + +if ( in_array(XOOPS_GROUP_ADMIN, $user->getGroups() ) ) { + redirect_header("index.php", 2, _PROFILE_AM_CANNOTDEACTIVATEWEBMASTERS); +} +$user->setVar('level', $_REQUEST['level']); +if ( $member_handler->insertUser($user) ) { + if ( $_REQUEST['level'] == 1 ) { + $message = _PROFILE_AM_USER_ACTIVATED; + } else { + $message = _PROFILE_AM_USER_DEACTIVATED; + } +} else { + if ( $_REQUEST['level'] == 1 ) { + $message = _PROFILE_AM_USER_NOT_ACTIVATED; + } else { + $message = _PROFILE_AM_USER_NOT_DEACTIVATED; + } +} +redirect_header("../userinfo.php?uid=" . $user->getVar('uid'), 3, $message); +?> \ No newline at end of file Added: XoopsModules/profile/branches/timgno/modules/profile/admin/directory.php =================================================================== --- XoopsModules/profile/branches/timgno/modules/profile/admin/directory.php (rev 0) +++ XoopsModules/profile/branches/timgno/modules/profile/admin/directory.php 2012-02-02 12:32:01 UTC (rev 8869) @@ -0,0 +1,71 @@ +<?php +// $Id: directory.php 5204 2010-09-06 20:10:52Z mageg $ +// ------------------------------------------------------------------------ // +// 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 // +// ------------------------------------------------------------------------ // +// Author: XOOPS Foundation // +// URL: http://www.xoops.org/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + + include ('header.php'); + xoops_loadLanguage('admin', 'profile'); + + switch ($_REQUEST['op']){ + case 'reset': + XoopsCache::delete($GLOBALS['xoopsModule']->getVar('dirname').'_fields', $fields, 8000); + XoopsCache::delete($GLOBALS['xoopsModule']->getVar('dirname').'_fields_cache', $fields, 8000*1000); + redirect_header('directory.php?op='.'order'.'&fct='.'fields', 5, _PROFILE_AM_MSG_FIELDORDER_RESET); + exit(0); + case 'save': + switch($_REQUEST['fct']) { + case 'fields': + $weights = $_POST['weight']; + $fields = array(); + foreach($weights as $field => $weight){ + $fields[] = array('field' => $field, 'weight' => $weight); + } + $fields = profile_orderfields($fields, false); + + XoopsCache::delete($GLOBALS['xoopsModule']->getVar('dirname').'_fields', $fields, 8000); + XoopsCache::delete($GLOBALS['xoopsModule']->getVar('dirname').'_fields_cache', $fields, 8000*1000); + XoopsCache::write($GLOBALS['xoopsModule']->getVar('dirname').'_fields', $fields, 8000); + XoopsCache::write($GLOBALS['xoopsModule']->getVar('dirname').'_fields_cache', $fields, 8000*1000); + redirect_header('directory.php?op='.'order'.'&fct='.'fields', 5, _PROFILE_AM_MSG_FIELDORDERSAVED); + exit(0); + } + default: + case 'order': + switch($_REQUEST['fct']) { + default: + case 'fields': + xoops_cp_header(); + echo profile_directory_listorder(); + xoops_cp_footer(); + break; + } + break; + + } +?> \ No newline at end of file Added: XoopsModules/profile/branches/timgno/modules/profile/admin/field.php =================================================================== --- XoopsModules/profile/branches/timgno/modules/profile/admin/field.php (rev 0) +++ XoopsModules/profile/branches/timgno/modules/profile/admin/field.php 2012-02-02 12:32:01 UTC (rev 8869) @@ -0,0 +1,308 @@ +<?php +/** + * Extended User Profile + * + * 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 profile + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: field.php 8066 2011-11-06 05:09:33Z beckmi $ + */ +include 'admin_header.php'; +xoops_cp_header(); +$indexAdmin = new ModuleAdmin(); +echo $indexAdmin->addNavigation('field.php'); + +$op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['id']) ? "edit" : 'list'); + +$profilefield_handler =& xoops_getmodulehandler('field'); + +switch($op ) { +default: +case "list": + $fields = $profilefield_handler->getObjects(null, true, false); + + $module_handler =& xoops_gethandler('module'); + $modules = $module_handler->getObjects(null, true); + + $cat_handler =& xoops_getmodulehandler('category'); + $criteria = new CriteriaCompo(); + $criteria->setSort('cat_weight'); + $cats = $cat_handler->getObjects($criteria, true); + unset($criteria); + + $categories[0] = _PROFILE_AM_DEFAULT; + if ( count($cats) > 0 ) { + foreach (array_keys($cats) as $i ) { + $categories[$cats[$i]->getVar('cat_id')] = $cats[$i]->getVar('cat_title'); + } + } + $GLOBALS['xoopsTpl']->assign('categories', $categories); + unset($categories); + $valuetypes = array(XOBJ_DTYPE_ARRAY => _PROFILE_AM_ARRAY, + XOBJ_DTYPE_EMAIL => _PROFILE_AM_EMAIL, + XOBJ_DTYPE_INT => _PROFILE_AM_INT, + XOBJ_DTYPE_TXTAREA => _PROFILE_AM_TXTAREA, + XOBJ_DTYPE_TXTBOX => _PROFILE_AM_TXTBOX, + XOBJ_DTYPE_URL => _PROFILE_AM_URL, + XOBJ_DTYPE_OTHER => _PROFILE_AM_OTHER, + XOBJ_DTYPE_MTIME => _PROFILE_AM_DATE); + + $fieldtypes = array('checkbox' => _PROFILE_AM_CHECKBOX, + 'group' => _PROFILE_AM_GROUP, + 'group_multi' => _PROFILE_AM_GROUPMULTI, + 'language' => _PROFILE_AM_LANGUAGE, + 'radio' => _PROFILE_AM_RADIO, + 'select' => _PROFILE_AM_SELECT, + 'select_multi' => _PROFILE_AM_SELECTMULTI, + 'textarea' => _PROFILE_AM_TEXTAREA, + 'dhtml' => _PROFILE_AM_DHTMLTEXTAREA, + 'textbox' => _PROFILE_AM_TEXTBOX, + 'timezone' => _PROFILE_AM_TIMEZONE, + 'yesno' => _PROFILE_AM_YESNO, + 'date' => _PROFILE_AM_DATE, + 'datetime' => _PROFILE_AM_DATETIME, + 'longdate' => _PROFILE_AM_LONGDATE, + 'theme' => _PROFILE_AM_THEME, + 'autotext' => _PROFILE_AM_AUTOTEXT, + 'rank' => _PROFILE_AM_RANK); + + foreach (array_keys($fields) as $i ) { + $fields[$i]['canEdit'] = $fields[$i]['field_config'] || $fields[$i]['field_show'] || $fields[$i]['field_edit']; + $fields[$i]['canDelete'] = $fields[$i]['field_config']; + $fields[$i]['fieldtype'] = $fieldtypes[$fields[$i]['field_type']]; + $fields[$i]['valuetype'] = $valuetypes[$fields[$i]['field_valuetype']]; + $categories[$fields[$i]['cat_id']][] = $fields[$i]; + $weights[$fields[$i]['cat_id']][] = $fields[$i]['field_weight']; + } + //sort fields order in categories + foreach (array_keys($categories) as $i ) { + array_multisort($weights[$i], SORT_ASC, array_keys($categories[$i]), SORT_ASC, $categories[$i]); + } + ksort($categories); + $GLOBALS['xoopsTpl']->assign('fieldcategories', $categories); + $GLOBALS['xoopsTpl']->assign('token', $GLOBALS['xoopsSecurity']->getTokenHTML() ); + $indexAdmin->addItemButton(_ADD.' '._PROFILE_AM_FIELD, 'field.php?op=new', 'add'); + $GLOBALS['xoopsTpl']->assign('addfield', $indexAdmin->renderButton() ); + $template_main = "profile_admin_fieldlist.html"; + break; + +case "new": + include_once('../include/forms.php'); + $obj =& $profilefield_handler->create(); + $form = profile_getFieldForm($obj); + $form->display(); + break; + +case "edit": + $obj =& $profilefield_handler->get($_REQUEST['id']); + if ( !$obj->getVar('field_config') && !$obj->getVar('field_show') && !$obj->getVar('field_edit') ) { //If no configs exist + redirect_header('field.php', 2, _PROFILE_AM_FIELDNOTCONFIGURABLE); + } + include_once('../include/forms.php'); + $form = profile_getFieldForm($obj); + $form->display(); + break; + +case "reorder": + if ( !$GLOBALS['xoopsSecurity']->check() ) { + redirect_header('field.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors() )); + } + if ( isset($_POST['field_ids']) && count($_POST['field_ids']) > 0 ) { + $oldweight = $_POST['oldweight']; + $oldcat = $_POST['oldcat']; + $category = $_POST['category']; + $weight = $_POST['weight']; + $ids = array(); + foreach ($_POST['field_ids'] as $field_id ) { + if ( $oldweight[$field_id] != $weight[$field_id] || $oldcat[$field_id] != $category[$field_id] ) { + //if field has changed + $ids[] = intval($field_id); + } + } + if ( count($ids) > 0 ) { + $errors = array(); + //if there are changed fields, fetch the fieldcategory objects + $field_handler =& xoops_getmodulehandler('field'); + $fields = $field_handler->getObjects(new Criteria('field_id', "(" . implode(',', $ids) . ")", "IN"), true); + foreach ($ids as $i ) { + $fields[$i]->setVar('field_weight', intval($weight[$i]) ); + $fields[$i]->setVar('cat_id', intval($category[$i]) ); + if ( !$field_handler->insert($fields[$i]) ) { + $errors = array_merge($errors, $fields[$i]->getErrors() ); + } + } + if ( count($errors) == 0 ) { + //no errors + redirect_header('field.php', 2, sprintf(_PROFILE_AM_SAVEDSUCCESS, _PROFILE_AM_FIELDS) ); + } else { + redirect_header('field.php', 3, implode('<br />', $errors) ); + } + } + } + break; + +case "save": + if ( !$GLOBALS['xoopsSecurity']->check() ) { + redirect_header('field.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors() )); + } + $redirect_to_edit = false; + if ( isset($_REQUEST['id']) ) { + $obj =& $profilefield_handler->get($_REQUEST['id']); + if ( !$obj->getVar('field_config') && !$obj->getVar('field_show') && !$obj->getVar('field_edit') ) { //If no configs exist + redirect_header('admin.php', 2, _PROFILE_AM_FIELDNOTCONFIGURABLE); + } + } else { + $obj =& $profilefield_handler->create(); + $obj->setVar('field_name', $_REQUEST['field_name']); + $obj->setVar('field_moduleid', $GLOBALS['xoopsModule']->getVar('mid') ); + $obj->setVar('field_show', 1); + $obj->setVar('field_edit', 1); + $obj->setVar('field_config', 1); + $redirect_to_edit = true; + } + $obj->setVar('field_title', $_REQUEST['field_title']); + $obj->setVar('field_description', $_REQUEST['field_description']); + if ( $obj->getVar('field_config') ) { + $obj->setVar('field_type', $_REQUEST['field_type']); + if ( isset($_REQUEST['field_valuetype']) ) { + $obj->setVar('field_valuetype', $_REQUEST['field_valuetype']); + } + $options = $obj->getVar('field_options'); + + if ( isset($_REQUEST['removeOptions']) && is_array($_REQUEST['removeOptions']) ) { + foreach ($_REQUEST['removeOptions'] as $index ) { + unset($options[$index]); + } + $redirect_to_edit = true; + } + + if ( !empty($_REQUEST['addOption']) ) { + foreach ($_REQUEST['addOption'] as $option ) { + if ( empty($option['value']) ) continue; + $options[$option['key']] = $option['value']; + $redirect_to_edit = true; + } + } + $obj->setVar('field_options', $options); + } + if ( $obj->getVar('field_edit') ) { + $required = isset($_REQUEST['field_required']) ? $_REQUEST['field_required'] : 0; + $obj->setVar('field_required', $required); //0 = no, 1 = yes + if ( isset($_REQUEST['field_maxlength']) ) { + $obj->setVar('field_maxlength', $_REQUEST['field_maxlength']); + } + if ( isset($_REQUEST['field_default']) ) { + $field_default = $obj->getValueForSave($_REQUEST['field_default']); + //Check for multiple selections + if ( is_array($field_default) ) { + $obj->setVar('field_default', serialize($field_default) ); + } else { + $obj->setVar('field_default', $field_default); + } + } + } + + if ( $obj->getVar('field_show') ) { + $obj->setVar('field_weight', $_REQUEST['field_weight']); + $obj->setVar('cat_id', $_REQUEST['field_category']); + } + if ( /*$obj->getVar('field_edit') && */isset($_REQUEST['step_id']) ) { + $obj->setVar('step_id', $_REQUEST['step_id']); + } + if ( $profilefield_handler->insert($obj) ) { + $groupperm_handler =& xoops_gethandler('groupperm'); + + $perm_arr = array(); + if ( $obj->getVar('field_show') ) { + $perm_arr[] = 'profile_show'; + $perm_arr[] = 'profile_visible'; + } + if ( $obj->getVar('field_edit') ) { + $perm_arr[] = 'profile_edit'; + } + if ( $obj->getVar('field_edit') || $obj->getVar('field_show') ) { + $perm_arr[] = 'profile_search'; + } + if ( count($perm_arr) > 0 ) { + foreach ($perm_arr as $perm ) { + $criteria = new CriteriaCompo(new Criteria('gperm_name', $perm) ); + $criteria->add(new Criteria('gperm_itemid', intval($obj->getVar('field_id') )) ); + $criteria->add(new Criteria('gperm_modid', intval($GLOBALS['xoopsModule']->getVar('mid') )) ); + if ( isset($_REQUEST[$perm]) && is_array($_REQUEST[$perm]) ) { + $perms = $groupperm_handler->getObjects($criteria); + if ( count($perms) > 0 ) { + foreach (array_keys($perms) as $i ) { + $groups[$perms[$i]->getVar('gperm_groupid')] =& $perms[$i]; + } + } else { + $groups = array(); + } + foreach ($_REQUEST[$perm] as $groupid ) { + $groupid = intval($groupid); + if ( !isset($groups[$groupid]) ) { + $perm_obj =& $groupperm_handler->create(); + $perm_obj->setVar('gperm_name', $perm); + $perm_obj->setVar('gperm_itemid', intval($obj->getVar('field_id') )); + $perm_obj->setVar('gperm_modid', $GLOBALS['xoopsModule']->getVar('mid') ); + $perm_obj->setVar('gperm_groupid', $groupid); + $groupperm_handler->insert($perm_obj); + unset($perm_obj); + } + } + $removed_groups = array_diff(array_keys($groups), $_REQUEST[$perm]); + if ( count($removed_groups) > 0 ) { + $criteria->add(new Criteria('gperm_groupid', "(".implode(',', $removed_groups).")", "IN") ); + $groupperm_handler->deleteAll($criteria); + } + unset($groups); + + } else { + $groupperm_handler->deleteAll($criteria); + } + unset($criteria); + } + } + $url = $redirect_to_edit ? 'field.php?op=edit&id=' . $obj->getVar('field_id') : 'field.php'; + redirect_header($url, 3, sprintf(_PROFILE_AM_SAVEDSUCCESS, _PROFILE_AM_FIELD) ); + } + include_once('../include/forms.php'); + echo $obj->getHtmlErrors(); + $form = profile_getFieldForm($obj); + $form->display(); + break; + +case "delete": + $obj =& $profilefield_handler->get($_REQUEST['id']); + if ( !$obj->getVar('field_config') ) { + redirect_header('index.php', 2, _PROFILE_AM_FIELDNOTCONFIGURABLE); + } + if ( isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1 ) { + if ( !$GLOBALS['xoopsSecurity']->check() ) { + redirect_header('field.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors() )); + } + if ( $profilefield_handler->delete($obj) ) { + redirect_header('field.php', 3, sprintf(_PROFILE_AM_DELETEDSUCCESS, _PROFILE_AM_FIELD) ); + } else { + echo $obj->getHtmlErrors(); + } + } else { + xoops_confirm(array('ok' => 1, 'id' => $_REQUEST['id'], 'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_PROFILE_AM_RUSUREDEL, $obj->getVar('field_title') )); + } + break; +} + +if ( isset($template_main) ) { + $GLOBALS['xoopsTpl']->display("db:{$template_main}"); +} +include 'admin_footer.php'; +//xoops_cp_footer(); \ No newline at end of file Added: XoopsModules/profile/branches/timgno/modules/profile/admin/header.php =================================================================== --- XoopsModules/profile/branches/timgno/modules/profile/admin/header.php (rev 0) +++ XoopsModules/profile/branches/timgno/modules/profile/admin/header.php 2012-02-02 12:32:01 UTC (rev 8869) @@ -0,0 +1,27 @@ +<?php +/** + * Extended User Profile + * + * 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 profile + * @since 2.3.0 + * @author Taiwen Jiang <ph...@us...> + * @version $Id: header.php 5204 2010-09-06 20:10:52Z mageg $ + */ + +require_once "../../../include/cp_header.php"; + +xoops_loadLanguage('user'); +if ( !isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl']) ) { + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xoopsTpl'] = new XoopsTpl(); +} +?> \ No newline at end of file Added: XoopsModules/profile/branches/timgno/modules/profile/admin/index.html =================================================================== --- XoopsModules/profile/branches/timgno/modules/profile/admin/index.html (rev 0) +++ XoopsModules/profile/branches/timgno/modules/profile/admin/index.html 2012-02-02 12:32:01 UTC (rev 8869) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/profile/branches/timgno/modules/profile/admin/index.php =================================================================== --- XoopsModules/profile/branches/timgno/modules/profile/admin/index.php (rev 0) +++ XoopsModules/profile/branches/timgno/modules/profile/admin/index.php 2012-02-02 12:32:01 UTC (rev 8869) @@ -0,0 +1,53 @@ +<?php +// $Id: index.php 8066 2011-11-06 05:09:33Z beckmi $ +// ------------------------------------------------------------------------ // +// 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 // +// ------------------------------------------------------------------------ // +// Author: Raul Recio (AKA UNFOR) // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + +include_once 'admin_header.php'; +xoops_cp_header(); + +$indexAdmin = new ModuleAdmin(); +//----------------------- +// $xpPartnerHandler =& xoops_getmodulehandler('partners', $xoopsModule->getVar('dirname')); + +// $totalPartners = $xpPartnerHandler->getCount(); +// $totalNonActivePartners = $xpPartnerHandler->getCount(new Criteria('status', 0, '=')); +// $totalActivePartners = $totalPartners - $totalNonActivePartners; + +// $indexAdmin->addInfoBox(_MD_XPARTNERS_DASHBOARD); + +// $indexAdmin->addInfoBoxLine(_MD_XPARTNERS_DASHBOARD, "<infolabel>" ._MD_XPARTNERS_TOTALACTIVE. "</infolabel>", $totalActivePartners, 'Green'); +// $indexAdmin->addInfoBoxLine(_MD_XPARTNERS_DASHBOARD, "<infolabel>" ._MD_XPARTNERS_TOTALNONACTIVE. "</infolabel>", $totalNonActivePartners, 'Red'); +// $indexAdmin->addInfoBoxLine(_MD_XPARTNERS_DASHBOARD, "<infolabel>" ._MD_XPARTNERS_TOTALPARTNERS. "</infolabel><infotext>", $totalPartners."</infotext>"); +//---------------------------- + +echo $indexAdmin->addNavigation('index.php'); +echo $indexAdmin->renderIndex(); + +include 'admin_footer.php'; +//xoops_cp_footer(); \ No newline at end of file Added: XoopsModules/profile/branches/timgno/modules/profile/admin/menu.php =================================================================== --- XoopsModules/profile/branches/timgno/modules/profile/admin/menu.php (rev 0) +++ XoopsModules/profile/branches/timgno/modules/profile/admin/menu.php 2012-02-02 12:32:01 UTC (rev 8869) @@ -0,0 +1,55 @@ +<?php +/** + * Extended User Profile + * + * 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 profile + * @since 2.3.0 + * @author Jan Pedersen + * @author Taiwen Jiang <ph...@us...> + * @version $Id: menu.php 8066 2011-11-06 05:09:33Z beckmi $ + */ + +$module_handler =& xoops_gethandler('module'); +$xoopsModule =& XoopsModule::getByDirname('profile'); +$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid')); +$pathIcon32 = $moduleInfo->getInfo('icons32'); + +$adminmenu = array(); + +$i = 1; +$adminmenu[$i]['title'] = _PROFILE_MI_HOME; +$adminmenu[$i]['link'] = "admin/index.php"; +$adminmenu[$i]['icon'] = '../../'.$pathIcon32.'/home.png' ; +$i++; +$adminmenu[$i]['title'] = _PROFILE_MI_USERS; +$adminmenu[$i]['link'] = "... [truncated message content] |
From: <be...@us...> - 2012-02-01 12:36:00
|
Revision: 8868 http://xoops.svn.sourceforge.net/xoops/?rev=8868&view=rev Author: beckmi Date: 2012-02-01 12:35:49 +0000 (Wed, 01 Feb 2012) Log Message: ----------- Updating to 2.36 Beta 2 (JJDai) Modified Paths: -------------- XoopsModules/extcal/branches/jjdai/extcal/class/event.php XoopsModules/extcal/branches/jjdai/extcal/docs/changelog.txt XoopsModules/extcal/branches/jjdai/extcal/edit_event.php XoopsModules/extcal/branches/jjdai/extcal/header.php XoopsModules/extcal/branches/jjdai/extcal/include/functions.php XoopsModules/extcal/branches/jjdai/extcal/language/french/changelog.txt XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_event_list1.html XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_info_bulle.html XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_agenda-day.html XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_agenda-week.html XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_calendar-month.html XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_calendar-week.html XoopsModules/extcal/branches/jjdai/extcal/view_year.php XoopsModules/extcal/branches/jjdai/extcal/xoops_version.php Added Paths: ----------- XoopsModules/extcal/branches/jjdai/extcal/class/colorTools.php XoopsModules/extcal/branches/jjdai/extcal/css/images/ XoopsModules/extcal/branches/jjdai/extcal/css/images/Critical.png XoopsModules/extcal/branches/jjdai/extcal/css/images/Help.png XoopsModules/extcal/branches/jjdai/extcal/css/images/Info.png XoopsModules/extcal/branches/jjdai/extcal/css/images/Warning.png XoopsModules/extcal/branches/jjdai/extcal/css/infobulle.css Added: XoopsModules/extcal/branches/jjdai/extcal/class/colorTools.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/class/colorTools.php (rev 0) +++ XoopsModules/extcal/branches/jjdai/extcal/class/colorTools.php 2012-02-01 12:35:49 UTC (rev 8868) @@ -0,0 +1,223 @@ +<?PHP + +class ColorTools{ + + function __construct(){ + } + + +/************************************************************** +Ajoute ou rtir un icrement sur chaque compsante RGB d'une couleur +Les valeur sont limiter au bornes inf\xE9rieure et sup\xE9rieure 0 et 255 +***************************************************************/ +Function modifierCouleur($colorHexa, + $incrementRouge, $incrementVert, $incrementBleu, + $plancherRouge = 0, $plafondRouge = 255, + $plancherVert = 0, $plafondVert = 255, + $plancherBleu = 0, $plafondBleu = 255 + ) { + + + $t10 = $this->hexa2rgbA($colorHexa); + + $t10[1] = $this->bornerValeur($t10[1] + $incrementRouge, $plancherRouge, $plafondRouge); + $t10[2] = $this->bornerValeur($t10[2] + $incrementVert, $plancherVert, $plafondVert); + $t10[3] = $this->bornerValeur($t10[3] + $incrementBleu, $plancherBleu, $plafondBleu); + + $newColorHexa = $this->getHexaColorFromA($t10); + + return $newColorHexa; + + } + + +/************************************************************** +Eclairci une couleur +elle born\xE9 pa un plancher et un plafond pur \xE9vite le tout blanc ou tout blanc +ou les blocage sur une couleur pur (ex #FF0000) +***************************************************************/ +Function eclaircir($colorHexa, $plancher = 0, $plafond = 255){ + + $tMin = Array('', $plancher, $plancher, $plancher); + $tMax = Array('', $plafond, $plafond, $plafond); + + $t10 = $this->hexa2rgbA($colorHexa); +// echo "<hr>"; +// ext_echoArray($t10); + $max = $plancher; + For ($h = 1 ; $h <= 3 ; $h++){ + If ($max < $t10[$h]) { + $max = $t10[$h]; + } + } + + + $increment = $plafond - $max; + +// $t10[1] = $t10[1] + $increment; +// $t10[2] = $t10[2] + $increment; +// $t10[3] = $t10[3] + $increment; + + $min = 0; + For ($h = 1 ; $h <= 3 ; $h++){ + $t10[$h] = $t10[$h] + $increment; + If ($t10[$h] < $tMin[$h] && $min < ($tMin[$h] - $t10[$h])) { + $min = ($tMin[$h] - $t10[$h]); + } + } + +// echo "{$colorHexa}-{$plancher}-{$plafond}<br>"; +// echo "{$min}-{$max}-{$increment}<br>"; + + $t10[1] = $this->bornerValeur($t10[1] + $min, $plancher, $plafond); + $t10[2] = $this->bornerValeur($t10[2] + $min, $plancher, $plafond); + $t10[3] = $this->bornerValeur($t10[3] + $min, $plancher, $plafond); + +// ext_echoArray($t10); + + $newColorHexa = $this->getHexaColorFromA($t10); +// echo "colorHexa = {$newColorHexa}-{$colorHexa}<br>"; + return $newColorHexa; +} + +/************************************************************** +Fonce une couleur +elle born\xE9 pa un plancher et un plafond pur \xE9vite le tout blanc ou tout blanc +ou les blocage sur une couleur pur (ex #FFFF00) +***************************************************************/ +Function foncer($colorHexa, $plancher = 0, $plafond = 255){ + + $tMin = Array('', $plancher, $plancher, $plancher); + $tMax = Array('', $plafond, $plafond, $plafond); + + + $t10 = $this->hexa2rgbA($colorHexa); + $max = 255; + + For ($h = 1 ; $h <= 3 ; $h++){ + If ($max > $t10[$h]) { + $max = $t10[$h]; + } + } + + $increment = -$max; + +// $t10[1] = $t10[1] + $increment; +// $t10[2] = $t10[2] + $increment; +// $t10[3] = $t10[3] + $increment; + + $min = 0; + For ($h = 1 ; $h <= 3 ; $h++){ + $t10[$h] = $t10[$h] + $increment; + If ($t10[$h] > $tMax[$h] && $min < ($t10[$h] - $tMax[$h])) { + $min = ($t10[$h] - $tMax[$h]); + } + } + + $t10[1] = $this->bornerValeur($t10[1] - $min, $plancher, $plafond); + $t10[2] = $this->bornerValeur($t10[2] - $min, $plancher, $plafond); + $t10[2] = $this->bornerValeur($t10[3] - $min, $plancher, $plafond); + + $colorHexa = $this->getHexaColorFromA($t10); + + return $colorHexa; + +} + + +/************************************************************** +Renvoi une couleur RGB en hexa a partir du tableau passe en parametr +Description du tableau +0 = doit contenir '#' ou '' +1 = int red +2 = int vert +3 = int bleu +***************************************************************/ +Function getHexaColorFromA($aColors) { + + $tHex = array("","","",""); + + $tHex[0] = $aColors[0]; + $tHex[1] = substr('00' . dechex($aColors[1]), -2); + $tHex[2] = substr('00' . dechex($aColors[2]), -2); + $tHex[3] = substr('00' . dechex($aColors[3]), -2); + + $colorHexa = implode('', $tHex); + return $colorHexa; +} + +/************************************************************** +Transforme les composante d'une couleur en valeu hexa +prefixe doit contenir '#' ou '' +***************************************************************/ +Function rgb2hexa($r, $g, $b, $prefixe = ''){ + + $colorHexa = $this->getHexaColorFromA(Array($prefixe, $r, $g, $b)); + + return $colorHexa; + +} + +/************************************************************** +renvoi un tableau d'entier des valeur rgbd d'une couleur a partir d'un hexa +Description du tableau renvoy\xE9 +0 = contient '#' ou '' (selon premier cactere de la couleur hexa) +1 = int red +2 = int vert +3 = int bleu +***************************************************************/ +Function hexa2rgbA($colorHexa){ + + $t = array("","","",""); + + If (substr($colorHexa, 0, 1) == '#'){ + $t[0] = '#'; + $offsetCar = 1; + }else{ + $t[0] = ''; + $offsetCar = 0; + } + + $t[1] = hexdec(substr($colorHexa, $offsetCar + 0, 2)); + $t[2] = hexdec(substr($colorHexa, $offsetCar + 2, 2)); + $t[3] = hexdec(substr($colorHexa, $offsetCar + 4, 2)); + + return $t; +} + +/************************************************************** +Renvoi les composante rgb d'une couleur par r\xE9f\xE9rence +***************************************************************/ +Function hexa2rgb($colorHexa, &$r, &$v, &$b, &$diese){ + + $t = $this->hexa2rgbA($colorHexa); + $r = $t[1]; + $v = $t[2]; + $v = $t[3]; + $diese = $t[0]; + + return true; +} + + +/************************************************************** +Borne les valeurs max et min d'une valeur +***************************************************************/ +Function bornerValeur($val, $min, $max){ + + If ($val < $min){ + $val = $min; + } else if($val > $max){ + $val = $max; + } + + return $val; + +} + +//-------------------------------------------------------- +} // --- fin de la classe colors +//-------------------------------------------------------- + + +?> Modified: XoopsModules/extcal/branches/jjdai/extcal/class/event.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/class/event.php 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/class/event.php 2012-02-01 12:35:49 UTC (rev 8868) @@ -303,6 +303,8 @@ while(list($k,$v)=each($events)){ $ordre[] = intval($v['event_start']); $this->formatEventDate($v, $extcalConfig['event_date_week']); + //$v['cat']['cat_light_color'] = $v['cat']['cat_color']; + $v['cat']['cat_light_color'] = eclaircirCouleur($v['cat']['cat_color'],180,250); $eventArray[]= $v; } array_multisort($eventArray, SORT_ASC, SORT_NUMERIC, $ordre, SORT_ASC, SORT_NUMERIC); @@ -1993,6 +1995,8 @@ while ($myrow = $xoopsDB->fetchArray($result)) { $myrow['cat']['cat_name'] = $myrow['cat_name']; $myrow['cat']['cat_color'] = $myrow['cat_color']; + $myrow['cat']['cat_light_color'] = eclaircirCouleur($myrow['cat']['cat_color'],180,250); + $ret[] = $myrow; } return $ret; Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/Critical.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/Critical.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/Help.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/Help.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/Info.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/Info.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/images/Warning.png =================================================================== (Binary files differ) Property changes on: XoopsModules/extcal/branches/jjdai/extcal/css/images/Warning.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/extcal/branches/jjdai/extcal/css/infobulle.css =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/css/infobulle.css (rev 0) +++ XoopsModules/extcal/branches/jjdai/extcal/css/infobulle.css 2012-02-01 12:35:49 UTC (rev 8868) @@ -0,0 +1,80 @@ + +.tooltip { + border-bottom: 1px dotted #000000; color: #000000; outline: none; + cursor: help; text-decoration: none; + position: relative; +} +.tooltip span { + margin-left: -999em; + position: absolute; +} +.tooltip:hover span { + border-radius: 5px 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); -moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); + font-family: Calibri, Tahoma, Geneva, sans-serif; + position: absolute; left: 1em; top: 2em; z-index: 99; + margin-left: 0; width: 300px; +} + + + +.tooltip:hover span[width50] { + width: 50px; +} +.tooltip:hover span[width100] { + width: 100px; +} +.tooltip:hover span[width150] { + width: 150px; +} +.tooltip:hover span[width200] { + width: 200px; +} +.tooltip:hover span[width250] { + width: 250px; +} +.tooltip:hover span[width300] { + width: 300px; +} +.tooltip:hover span[width350] { + width: 350px; +} +.tooltip:hover span[width400] { + width: 400px; +} + + +.tooltip:hover img:first-child { + border: 0; margin: -10px 0 0 -55px; + float: left; position: absolute; +} +.tooltip:hover em { + font-family: Candara, Tahoma, Geneva, sans-serif; font-size: 1.2em; font-weight: bold; + display: block; padding: 0.2em 0 0.6em 0; +} +.classic { padding: 0.8em 1em; } +.custom { padding: 0.5em 0.8em 0.8em 2em; } +* html a:hover { background: transparent; } +.classic {background: #FFFFAA; border: 1px solid #FFAD33; } +.critical { background: #FFCCAA; border: 1px solid #FF3334; } +.help { background: #9FDAEE; border: 1px solid #2BB0D7; } +.info { background: #9FDAEE; border: 1px solid #2BB0D7; } +.warning { background: #FFFFAA; border: 1px solid #FFAD33; } + +.custom img:first-child { +src:url(images/Critical.png); + height:48px; + width:48px; +} + + +.tooltip:hover img[alinea] { +margin-bottom: 5px; +margin-right: 5px; +position: relative; +width:120px; +align:left; +float:left; + background-repeat: no-repeat; +} + Modified: XoopsModules/extcal/branches/jjdai/extcal/docs/changelog.txt =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/docs/changelog.txt 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/docs/changelog.txt 2012-02-01 12:35:49 UTC (rev 8868) @@ -1,3 +1,8 @@ +2012/01/31: Version 2.36 (JJD.fr) +=================================== +- Fixed display +- Replacement of infobulle by another model more pro + 2012/01/21: Version 2.35 (JJD.fr) =================================== - Réintrégation file update extcal_2_34.php omitted in the previous version Modified: XoopsModules/extcal/branches/jjdai/extcal/edit_event.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/edit_event.php 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/edit_event.php 2012-02-01 12:35:49 UTC (rev 8868) @@ -24,7 +24,7 @@ // Tooltips include $xoTheme->addScript('modules/extcal/include/ToolTips.js'); -$xoTheme->addStylesheet('modules/extcal/include/style.css'); +$xoTheme->addStylesheet('modules/extcal/css/infobulle.css'); Modified: XoopsModules/extcal/branches/jjdai/extcal/header.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/header.php 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/header.php 2012-02-01 12:35:49 UTC (rev 8868) @@ -28,7 +28,7 @@ //------------------------------------------------------ // Tooltips include $xoTheme->addScript('modules/extcal/include/ToolTips.js'); -$xoTheme->addStylesheet('modules/extcal/include/style.css'); +$xoTheme->addStylesheet('modules/extcal/css/infobulle.css'); ////////////////////////////////////////////////////////////// Modified: XoopsModules/extcal/branches/jjdai/extcal/include/functions.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/include/functions.php 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/include/functions.php 2012-02-01 12:35:49 UTC (rev 8868) @@ -368,7 +368,81 @@ /**************************************************************************/ +function eclaircirCouleur($color, $plancher, $plafond){ +include_once(XOOPS_ROOT_PATH . '/modules/extcal/class/colorTools.php'); + + $ct = new ColorTools(); + return $ct->eclaircir($color,$plancher,$plafond); +// if (substr($color,0,1) == "#"){ +// $color = substr($color,1); +// $diese = "#"; +// }else{ +// $diese = ""; +// } +// +// $r16 = hexdec(substr($color,0,2)); //conversion du canal rouge +// $v16 = hexdec(substr($color,2,4)); //conversion du canal vert +// $b16 = hexdec(substr($color,4,6)); //conversion du canal bleu +// +// +// +// // Initialisation +// $gain = 0.2; // 0.2 = 20% +// $gain = 0.1; +// +// // Affichage +// // echo "<div style='background-color:#",$r16,$v16,$b16,"'>"; +// // echo "composante 1 : ".$r16."<br />"; +// // echo "composante 2 : ".$v16."<br />"; +// // echo "composante 3 : ".$b16."<br />"; +// // echo "</div><br />"; +// +// // Conversion HEX -> DEC +// $r10 = hexdec($r16); +// $v10 = hexdec($v16); +// $b10 = hexdec($b16); +// +// // Eclaircissement +// $r10 = floor($r10 * (0.5)); +// $v10 = floor($v10 * (0.5)); +// $b10 = floor($b10 * (0.5)); +// // $r10 = floor($r10 * (1 + $gain)); +// // $v10 = floor($v10 * (1 + $gain)); +// // $b10 = floor($b10 * (1 + $gain)); +// +// // Limitations +// if ($r10>255) $r10=255; +// if ($v10>255) $v10=255; +// if ($b10>255) $b10=255; +// +// if ($r10<0) $r10=0; +// if ($v10<0) $v10=0; +// if ($b10<0) $b10=0; +// +// // Conversion DEC -> HEX +// // $r16 = dechex($r10); +// // $v16 = dechex($v10); +// // $b16 = dechex($b10); +// $r16 = substr('00' . dechex($r10),-2); +// $v16 = substr('00' . dechex($v10),-2); +// $b16 = substr('00' . dechex($b10),-2); +// +// $newColor = strtoupper($diese.$r16.$v16.$b16); +// +// // Affichage +// // echo "<div style='background-color:#",$r16,$v16,$b16,"'>"; +// // echo "<div>"; +// // echo "composante 1 : ".$r16."<br />"; +// // echo "composante 2 : ".$v16."<br />"; +// // echo "composante 3 : ".$b16."<br />"; +// // echo "</div>"; +// // echo "{$color} : {$newColor}<br>"; +// +// //$newColor = strtoupper($diese.'220000'); +// +// return $newColor; +} +/**************************************************************************/ - ?> Modified: XoopsModules/extcal/branches/jjdai/extcal/language/french/changelog.txt =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/language/french/changelog.txt 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/language/french/changelog.txt 2012-02-01 12:35:49 UTC (rev 8868) @@ -1,3 +1,8 @@ +2012/01/31: Version 2.36 (JJD.fr) +=================================== +- Correction d'affichage +- Remplacement des infobulle par une autre modèle plus pro + 2012/01/21: Version 2.35 (JJD.fr) =================================== - Réintrégation du fichier de mise à jour extcal_2_34.php omis dans la version précédente Modified: XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_event_list1.html =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_event_list1.html 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_event_list1.html 2012-02-01 12:35:49 UTC (rev 8868) @@ -12,12 +12,7 @@ </td> <td class="odd" style="vertical-align:middle;"> - <a href="<{$xoops_url}>/modules/extcal/event.php?event=<{$event.event_id}>" - class="extcalTips infobulle" - title=""> <{include file="db:extcal_info_bulle.html"}> - <{$event.event_title}> - </a> </td> Modified: XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_info_bulle.html =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_info_bulle.html 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_info_bulle.html 2012-02-01 12:35:49 UTC (rev 8868) @@ -3,7 +3,7 @@ <div style="height:12px; width:12px; background-color:#<{$event.cat.cat_color}>; border:1px solid black; float:left; margin-right:5px;" > </div> - +<!-- <{if $event.event_picture1!=""}> <span infoBulle_zone1> <img align=left style="border:1px solid #333333;margin-right:6px" src="<{$xoops_url}>/uploads/extcal/<{$event.event_picture1}>" width="150px" height="150px" /> @@ -16,12 +16,31 @@ <{if $showId}>(#<{$event.event_id}>)<{/if}> <{$event.event_title}><br /> <b><{$smarty.const._MD_EXTCAL_START}></b> <{$event.formated_event_start}><br /> <b><{$smarty.const._MD_EXTCAL_END}></b> <{$event.formated_event_end}><br /> - <{$event.event_desc}> </span> +--> + + <a class="tooltip" href="<{$xoops_url}>/modules/extcal/event.php?event=<{$event.event_id}>"> + <{if $showId}>(#<{$event.event_id}>)<{/if}> <{$event.event_title}><br /> + <span class="custom info" width350 style="background: #<{$event.cat.cat_light_color}>;"> + <img src="css/images/Info.png" alt="Information" /> + <em><{if $showId}>(#<{$event.event_id}>)<{/if}> <{$event.event_title}></em> + <{if $event.event_picture1!=""}> + <img src="<{$xoops_url}>/uploads/extcal/<{$event.event_picture1}>" alinea/> + <{/if}> + <{if $showId}>(#<{$event.event_id}>)<{/if}> <{$event.event_title}><br /> + <b><{$smarty.const._MD_EXTCAL_START}></b> <{$event.formated_event_start}><br /> + <b><{$smarty.const._MD_EXTCAL_END}></b> <{$event.formated_event_end}><br /> + + </span> + </a> + + + <{else}> <div style="height:12px; width:12px; background-color:#<{$event.cat.cat_color}>; border:1px solid black; float:left; margin-right:5px;" title='<{if $showId}>(#<{$event.event_id}>)<{/if}> <{$event.formated_event_start}> - <{$event.formated_event_end}> : <{$event.event_title}>'> </div> <{/if}> + Modified: XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_agenda-day.html =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_agenda-day.html 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_agenda-day.html 2012-02-01 12:35:49 UTC (rev 8868) @@ -42,13 +42,8 @@ <td class='<{$trancheHeure.class}>' style="border: 1px solid #808080;"> <{foreach item=event from=$jour.events}> - <a href="<{$xoops_url}>/modules/extcal/event.php?event=<{$event.event_id}>" - class="extcalTips infobulle" - title=""> <{include file="db:extcal_info_bulle.html"}> - <{$event.event_title}> - </a> - <br /> + <br /> <{/foreach}> </td> <{/foreach}> Modified: XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_agenda-week.html =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_agenda-week.html 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_agenda-week.html 2012-02-01 12:35:49 UTC (rev 8868) @@ -50,11 +50,7 @@ <{foreach item=jour from=$trancheHeure.jours}> <td class='<{$trancheHeure.class}>' style="border: 1px solid #808080;" width='<{$params.colJourWidth}>%' <{$jour.bg}>> <{foreach item=event from=$jour.events}> - <a class='extcalTips infobulle' - href="<{$xoops_url}>/modules/extcal/event.php?event=<{$event.event_id}>" - title=""> <{include file="db:extcal_info_bulle.html"}> - </a> <{/foreach}> </td> Modified: XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_calendar-month.html =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_calendar-month.html 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_calendar-month.html 2012-02-01 12:35:49 UTC (rev 8868) @@ -26,22 +26,20 @@ <{foreachq item=cell from=$row.week}> <td class="<{if $cell.isEmpty}>even<{else}>odd<{/if}>" style="width:14%; height:80px; vertical-align:top;<{if $cell.isSelected}> background-color:#B6CDE4;<{/if}>"> - <{if $cell.isEmpty}> <{else}><a - href="<{$xoops_url}>/modules/extcal/view_day.php?year=<{$year}>&month=<{$month}>&day=<{$cell.number}>"><{$cell.number}></a><{/if}><br/> - <{foreach item=event from=$cell.events}> - <{if $event}> - - <a href="<{$xoops_url}>/modules/extcal/event.php?event=<{$event.event_id}>" - class="extcalTips infobulle" - title=""> - - <{include file="db:extcal_info_bulle.html"}> - <{$event.event_title}> - </a> - - <div style="background-color:#<{$event.cat.cat_color}>; height:2px; font-size:2px;"> - </div> + <{if $cell.isEmpty}> + <{else}> + <a href="<{$xoops_url}>/modules/extcal/view_day.php?year=<{$year}>&month=<{$month}>&day=<{$cell.number}>"><{$cell.number}></a> + <br/> <{/if}> + + <{foreach item=event from=$cell.events}> + <{if $event}> + + <{include file="db:extcal_info_bulle.html"}> + + <div style="background-color:#<{$event.cat.cat_color}>; height:2px; font-size:2px;"> + </div> + <{/if}> <{/foreach}> </td> <{/foreach}> Modified: XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_calendar-week.html =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_calendar-week.html 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/templates/extcal_view_calendar-week.html 2012-02-01 12:35:49 UTC (rev 8868) @@ -26,12 +26,7 @@ <{foreach item=event from=$day.events}> <{if $event}> - <a href="<{$xoops_url}>/modules/extcal/event.php?event=<{$event.event_id}>" - class="extcalTips infobulle" - title=""> <{include file="db:extcal_info_bulle.html"}> - <{$event.event_title}> - </a> <div style="background-color:#<{$event.cat.cat_color}>; height:2px; font-size:2px;"> </div> Modified: XoopsModules/extcal/branches/jjdai/extcal/view_year.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/view_year.php 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/view_year.php 2012-02-01 12:35:49 UTC (rev 8868) @@ -16,9 +16,8 @@ // Tooltips include $xoTheme->addScript('modules/extcal/include/ToolTips.js'); -$xoTheme->addStylesheet('modules/extcal/include/style.css'); +$xoTheme->addStylesheet('modules/extcal/css/infobulle.css'); - $form = new XoopsSimpleForm('', 'navigSelectBox', $params['file'], 'get'); $form->addElement(getListYears($year,$xoopsModuleConfig['agenda_nb_years_before'],$xoopsModuleConfig['agenda_nb_years_after'])); @@ -62,6 +61,9 @@ // // Sort event array by event start // usort($eventsArray, "orderEvents"); +// $t=print_r($eventsArray,true); +// echo "<pre>{$t}</pre>"; + // Assigning events to the template $xoopsTpl->assign('events', $eventsArray); Modified: XoopsModules/extcal/branches/jjdai/extcal/xoops_version.php =================================================================== --- XoopsModules/extcal/branches/jjdai/extcal/xoops_version.php 2012-02-01 09:41:46 UTC (rev 8867) +++ XoopsModules/extcal/branches/jjdai/extcal/xoops_version.php 2012-02-01 12:35:49 UTC (rev 8868) @@ -16,7 +16,7 @@ // @author Gregory Mage (Aka Mage) //*************************************************************************************** $modversion['name'] = _MI_EXTCAL_NAME; -$modversion['version'] = '2.35'; +$modversion['version'] = '2.36'; $modversion['description'] = _MI_EXTCAL_DESC; $modversion['credits'] = 'Zoullou'; $modversion['author'] = 'Zoullou, Mage, Mamba, JJ Delalandre(JJDai)'; @@ -41,7 +41,7 @@ //about $modversion["module_website_url"] = "http://www.xoops.org/"; $modversion["module_website_name"] = "XOOPS"; -$modversion["release_date"] = "2012/01/22"; +$modversion["release_date"] = "2012/01/31"; $modversion['module_status'] = "Beta 2"; $modversion['min_php'] = '5.2'; $modversion['min_xoops'] = "2.5.0"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-02-01 09:41:56
|
Revision: 8867 http://xoops.svn.sourceforge.net/xoops/?rev=8867&view=rev Author: beckmi Date: 2012-02-01 09:41:46 +0000 (Wed, 01 Feb 2012) Log Message: ----------- adding small version info Modified Paths: -------------- XoopsModules/waiting/trunk/waiting/docs/readme.txt Modified: XoopsModules/waiting/trunk/waiting/docs/readme.txt =================================================================== --- XoopsModules/waiting/trunk/waiting/docs/readme.txt 2012-02-01 08:40:13 UTC (rev 8866) +++ XoopsModules/waiting/trunk/waiting/docs/readme.txt 2012-02-01 09:41:46 UTC (rev 8867) @@ -1,8 +1,6 @@ README =========== -[xlang:en] - - WAITING MODULE - This module offers you an extensible waiting contents block into your XOOPS. @@ -14,7 +12,10 @@ By installing this module and adding proper plug-ins only, you as webmaster can confirm any approval waitings of any modules at one view. +NEW FEATURE in 0.96 +Update to XOOPS 2.5.0 ModuleAdmin GUI + NEW FEATURE in 0.8 - plug-ins for waiting can be placed inside module's directory @@ -56,9 +57,6 @@ This module is made by Ryuji (http://ryus.co.jp/) If you can read Japanese, let's visit Ryuji's site! - -[/xlang:en] - PLUGINS: -addresses (by gruessle) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |