|
From: <be...@us...> - 2013-10-23 02:38:55
|
Revision: 12201
http://sourceforge.net/p/xoops/svn/12201
Author: beckmi
Date: 2013-10-23 02:38:48 +0000 (Wed, 23 Oct 2013)
Log Message:
-----------
Updating trunk to revision 11358 (timgno): Test Beta 4, Added permissions and notifications file and code, Toggle effect in admin/tables.php
Revision Links:
--------------
http://sourceforge.net/p/xoops/svn/11358
Modified Paths:
--------------
XoopsModules/TDMCreate/trunk/TDMCreate/admin/about.php
XoopsModules/TDMCreate/trunk/TDMCreate/admin/admin_footer.php
XoopsModules/TDMCreate/trunk/TDMCreate/admin/admin_header.php
XoopsModules/TDMCreate/trunk/TDMCreate/admin/building.php
XoopsModules/TDMCreate/trunk/TDMCreate/admin/includes.php
XoopsModules/TDMCreate/trunk/TDMCreate/admin/index.php
XoopsModules/TDMCreate/trunk/TDMCreate/admin/menu.php
XoopsModules/TDMCreate/trunk/TDMCreate/admin/modules.php
XoopsModules/TDMCreate/trunk/TDMCreate/admin/tables.php
XoopsModules/TDMCreate/trunk/TDMCreate/class/tdmcreate_modules.php
XoopsModules/TDMCreate/trunk/TDMCreate/class/tdmcreate_tables.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_admin_about.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_admin_footer.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_admin_header.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_admin_help.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_admin_index.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_admin_language.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_admin_menu.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_admin_pages.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_admin_permissions.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_architecture.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_blocks.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_blocks_language.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_blocks_templates.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_changelog.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_class.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_css_style.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_header.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_help_language.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_include_functions.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_include_install.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_include_search.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_js_jquery.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_languages.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_main_language.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_modinfo_language.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_sql.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_templates.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_templates_admin_about.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_templates_admin_help.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_templates_footer.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_templates_header.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_templates_index.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_templates_pages.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_user_header.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_user_index.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_user_pages.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_xoopsversion.php
XoopsModules/TDMCreate/trunk/TDMCreate/docs/changelog.txt
XoopsModules/TDMCreate/trunk/TDMCreate/docs/credits.txt
XoopsModules/TDMCreate/trunk/TDMCreate/docs/install.txt
XoopsModules/TDMCreate/trunk/TDMCreate/docs/lang_diff.txt
XoopsModules/TDMCreate/trunk/TDMCreate/docs/readme.txt
XoopsModules/TDMCreate/trunk/TDMCreate/images/icons/off.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/icons/on.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/tables/cat.png
XoopsModules/TDMCreate/trunk/TDMCreate/include/functions.php
XoopsModules/TDMCreate/trunk/TDMCreate/include/functions_const.php
XoopsModules/TDMCreate/trunk/TDMCreate/js/index.html
XoopsModules/TDMCreate/trunk/TDMCreate/language/english/admin.php
XoopsModules/TDMCreate/trunk/TDMCreate/language/english/help/help.html
XoopsModules/TDMCreate/trunk/TDMCreate/language/english/modinfo.php
XoopsModules/TDMCreate/trunk/TDMCreate/language/update language 1.0 to 1.1.txt
XoopsModules/TDMCreate/trunk/TDMCreate/language/update language 1.1 to 1.15.txt
XoopsModules/TDMCreate/trunk/TDMCreate/language/update language 1.1 to 1.37.txt
XoopsModules/TDMCreate/trunk/TDMCreate/language/update language 1.15 to 1.37.txt
XoopsModules/TDMCreate/trunk/TDMCreate/language/update language 1.37 to 1.38.txt
XoopsModules/TDMCreate/trunk/TDMCreate/language/update language 1.38 to 1.39.txt
XoopsModules/TDMCreate/trunk/TDMCreate/sql/mysql.sql
XoopsModules/TDMCreate/trunk/TDMCreate/xoops_version.php
Added Paths:
-----------
XoopsModules/TDMCreate/trunk/TDMCreate/class/constArch.php
XoopsModules/TDMCreate/trunk/TDMCreate/class/logoGenerator.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_include_comments.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_include_common.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_include_functions_comments.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_include_jquery.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_include_notification.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_include_notifications.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_user_comments.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_waiting.php
XoopsModules/TDMCreate/trunk/TDMCreate/docs/license.txt
XoopsModules/TDMCreate/trunk/TDMCreate/images/32/
XoopsModules/TDMCreate/trunk/TDMCreate/images/32/addmodule.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/32/addtable.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/32/builder.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/32/dashboard.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/32/index.html
XoopsModules/TDMCreate/trunk/TDMCreate/images/icons/16/
XoopsModules/TDMCreate/trunk/TDMCreate/images/icons/16/arrow.gif
XoopsModules/TDMCreate/trunk/TDMCreate/images/icons/16/index.html
XoopsModules/TDMCreate/trunk/TDMCreate/images/icons/16/off.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/icons/16/on.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/icons/16/toggle.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/icons/32/
XoopsModules/TDMCreate/trunk/TDMCreate/images/icons/32/addmodule.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/icons/32/addtable.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/icons/32/builder.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/icons/32/dashboard.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/icons/32/index.html
XoopsModules/TDMCreate/trunk/TDMCreate/images/icons/arrow.gif
XoopsModules/TDMCreate/trunk/TDMCreate/images/icons/blank.gif
XoopsModules/TDMCreate/trunk/TDMCreate/images/logos/
XoopsModules/TDMCreate/trunk/TDMCreate/images/logos/VeraBd.ttf
XoopsModules/TDMCreate/trunk/TDMCreate/images/logos/green.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/logos/red.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/logos/xoops2.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/module_logo.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/txmodxoops_logo.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/modules/Hotel_logo.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/modules/My Module_logo.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/modules/MyShop_logo.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/modules/Real Estate_logo.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/modules/Shopper_logo.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/modules/Shopping_logo.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/modules/album_logo.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/modules/ams_slogo.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/modules/empty.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/modules/module1_logo.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/modules/moduleimport_logo.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/modules/realestate_logo.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/modules/travel_logo.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/modules/txmLinks_logo.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/modules/txmrestaurant_logo.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/xoops2.png
XoopsModules/TDMCreate/trunk/TDMCreate/js/functions.js
XoopsModules/TDMCreate/trunk/TDMCreate/modules/index.html
Removed Paths:
-------------
XoopsModules/TDMCreate/trunk/TDMCreate/admin/changelog.php
XoopsModules/TDMCreate/trunk/TDMCreate/admin/css.php
XoopsModules/TDMCreate/trunk/TDMCreate/admin/filesmanager.php
XoopsModules/TDMCreate/trunk/TDMCreate/admin/jquery.php
XoopsModules/TDMCreate/trunk/TDMCreate/admin/languages.php
XoopsModules/TDMCreate/trunk/TDMCreate/admin/readme.php
XoopsModules/TDMCreate/trunk/TDMCreate/class/tdmcreate_architecture.php
XoopsModules/TDMCreate/trunk/TDMCreate/class/tdmcreate_champ_attributes.php
XoopsModules/TDMCreate/trunk/TDMCreate/class/tdmcreate_champ_elements.php
XoopsModules/TDMCreate/trunk/TDMCreate/class/tdmcreate_champ_key.php
XoopsModules/TDMCreate/trunk/TDMCreate/class/tdmcreate_champ_null.php
XoopsModules/TDMCreate/trunk/TDMCreate/class/tdmcreate_champ_type.php
XoopsModules/TDMCreate/trunk/TDMCreate/class/tdmcreate_champs.php
XoopsModules/TDMCreate/trunk/TDMCreate/class/tdmcreate_languages.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_class_admin.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_css_admin.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_include_coms.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_include_configs.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_main_header.php
XoopsModules/TDMCreate/trunk/TDMCreate/const/const_main_index.php
XoopsModules/TDMCreate/trunk/TDMCreate/css/code_mirror/
XoopsModules/TDMCreate/trunk/TDMCreate/docs/licence.txt
XoopsModules/TDMCreate/trunk/TDMCreate/docs/typeoflicense/
XoopsModules/TDMCreate/trunk/TDMCreate/images/deco/
XoopsModules/TDMCreate/trunk/TDMCreate/images/logo.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/menu/
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/modules/TDMLogo.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/modules/blank.gif
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/tables/broken.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/tables/contact.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/tables/links.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/tables/shoutbox.png
XoopsModules/TDMCreate/trunk/TDMCreate/images/uploads/tables/topic.png
XoopsModules/TDMCreate/trunk/TDMCreate/include/comment_delete.php
XoopsModules/TDMCreate/trunk/TDMCreate/include/comment_edit.php
XoopsModules/TDMCreate/trunk/TDMCreate/include/comment_new.php
XoopsModules/TDMCreate/trunk/TDMCreate/include/comment_post.php
XoopsModules/TDMCreate/trunk/TDMCreate/include/comment_reply.php
XoopsModules/TDMCreate/trunk/TDMCreate/js/code_mirror/
XoopsModules/TDMCreate/trunk/TDMCreate/js/filemanager.js
XoopsModules/TDMCreate/trunk/TDMCreate/js/jqueryFileTree.js
XoopsModules/TDMCreate/trunk/TDMCreate/language/arabic/
XoopsModules/TDMCreate/trunk/TDMCreate/language/bulgarian/
XoopsModules/TDMCreate/trunk/TDMCreate/language/english/help.php
XoopsModules/TDMCreate/trunk/TDMCreate/language/french/
XoopsModules/TDMCreate/trunk/TDMCreate/language/italian/
XoopsModules/TDMCreate/trunk/TDMCreate/sql/mysql137.sql
XoopsModules/TDMCreate/trunk/TDMCreate/sql/mysql138.sql
XoopsModules/TDMCreate/trunk/TDMCreate/sql/mysql139a.sql
XoopsModules/TDMCreate/trunk/TDMCreate/templates/admin/help.html
XoopsModules/TDMCreate/trunk/TDMCreate/templates/admin/tdmcreate_filemanager.html
XoopsModules/TDMCreate/trunk/TDMCreate/templates/blocks/
XoopsModules/TDMCreate/trunk/TDMCreate/templates/help/
Modified: XoopsModules/TDMCreate/trunk/TDMCreate/admin/about.php
===================================================================
--- XoopsModules/TDMCreate/trunk/TDMCreate/admin/about.php 2013-10-23 01:59:18 UTC (rev 12200)
+++ XoopsModules/TDMCreate/trunk/TDMCreate/admin/about.php 2013-10-23 02:38:48 UTC (rev 12201)
@@ -1,33 +1,24 @@
<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
/**
- * ****************************************************************************
- * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
- * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
- * - Revision Copyright (c) (http://www.txmodxoops.org)
+ * tdmcreate module
*
- * This license contains restrictions!!!
- *
- * You may not change or alter any portion of this comment or credits
- * of supporting developers from this source code or any supporting source code
- * 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
- * @author TXMod Xoops (in...@tx...)
- *
- * Version : 1.39 Tue 2012/02/14 16:20:18 : Timgno Exp $
- * ****************************************************************************
+ * @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 tdmcreate
+ * @since 2.5.0
+ * @author Txmod Xoops http://www.txmodxoops.org
+ * @version $Id: about.php 11084 2013-02-23 15:44:20Z timgno $
*/
-
-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
+include 'admin_header.php';
+echo $adminMenu->addNavigation('about.php');
+echo $adminMenu->renderabout('6KJ7RW5DR3VTJ', false);
+include 'admin_footer.php';
\ No newline at end of file
Modified: XoopsModules/TDMCreate/trunk/TDMCreate/admin/admin_footer.php
===================================================================
--- XoopsModules/TDMCreate/trunk/TDMCreate/admin/admin_footer.php 2013-10-23 01:59:18 UTC (rev 12200)
+++ XoopsModules/TDMCreate/trunk/TDMCreate/admin/admin_footer.php 2013-10-23 02:38:48 UTC (rev 12201)
@@ -1,28 +1,26 @@
-<?php
-/**
- * ****************************************************************************
- * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
- * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
- * - Revision Copyright (c) (http://www.txmodxoops.org)
- *
- * This license contains restrictions!!!
- *
- * You may not change or alter any portion of this comment or credits
- * of supporting developers from this source code or any supporting source code
- * 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
- * @author TXMod Xoops (in...@tx...)
- *
- * Version : 1.39 Tue 2012/02/14 16:20:18 : Timgno Exp $
- * ****************************************************************************
- */
- global $pathImageAdmin;
- echo "<div align='center'><a href='http://www.xoops.org' target='_blank'>
- <img src='".$pathImageAdmin."/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a></div>";
- echo "<div class='center pad5'>" . sprintf(_AM_TDMCREATE_MAINTAINEDBY, $xoopsModule->getVar('name')) . "</div>";
-xoops_cp_footer();
\ No newline at end of file
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/**
+ * tdmcreate module
+ *
+ * @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 tdmcreate
+ * @since 2.5.0
+ * @author Txmod Xoops http://www.txmodxoops.org
+ * @version $Id: admin_footer.php 11084 2013-02-23 15:44:20Z timgno $
+ */
+echo "<div align='center'><a href='http://www.xoops.org' title='Visit XOOPS' target='_blank'>
+ <img src='".$pathIcon32."/xoopsmicrobutton.gif' alt='XOOPS' /></a></div>";
+echo "<div class='center smallsmall italic pad5'>
+ <strong>" . $xoopsModule->getVar('name') . "</strong> is maintained by the
+ <a href='http://xoops.org/forums/newbb' title='Visit Support Forum' class='tooltip' rel='external'>Support Forum</a></div>";
+xoops_cp_footer();
\ No newline at end of file
Modified: XoopsModules/TDMCreate/trunk/TDMCreate/admin/admin_header.php
===================================================================
--- XoopsModules/TDMCreate/trunk/TDMCreate/admin/admin_header.php 2013-10-23 01:59:18 UTC (rev 12200)
+++ XoopsModules/TDMCreate/trunk/TDMCreate/admin/admin_header.php 2013-10-23 02:38:48 UTC (rev 12201)
@@ -1,78 +1,56 @@
-<?php
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
/**
- * ****************************************************************************
- * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
- * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
- * - Revision Copyright (c) (http://www.txmodxoops.org)
+ * tdmcreate module
*
- * This license contains restrictions!!!
- *
- * You may not change or alter any portion of this comment or credits
- * of supporting developers from this source code or any supporting source code
- * 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
- * @author TXMod Xoops (in...@tx...)
- *
- * Version : 1.39 Tue 2012/02/14 16:20:18 : Timgno Exp $
- * ****************************************************************************
+ * @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 tdmcreate
+ * @since 2.5.0
+ * @author Txmod Xoops http://www.txmodxoops.org
+ * @version $Id: admin_header.php 11084 2013-02-23 15:44:20Z timgno $
*/
include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php';
include_once XOOPS_ROOT_PATH . '/include/cp_header.php';
-include_once '../include/functions.php';
+include_once("../include/functions.php");
include_once 'includes.php';
+//
+$thisDirname = $GLOBALS['xoopsModule']->getVar('dirname');
+//
-//echo TDMCreate_adminMenu(_AM_ERROR_NOFRAMEWORKS);
-$pathDir = $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin');
-if ( file_exists($pathDir.'/moduleadmin.php')){
- include_once $pathDir.'/moduleadmin.php';
- //return true;
-}else{
- xoops_cp_header();
- echo xoops_error(_AM_MODULEADMIN_MISSING);
- xoops_cp_footer();
- //return false;
-}
+$pathIcon16 = '../' . $xoopsModule->getInfo('icons16');
+$pathIcon32 = '../' . $xoopsModule->getInfo('icons32');
+$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin');
-$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');
-
-$modPath = XOOPS_ROOT_PATH.'/modules/TDMCreate';
-
-$modsHandler=& xoops_getModuleHandler('tdmcreate_modules', $dirname);
-$tblsHandler=& xoops_getModuleHandler('tdmcreate_tables', $dirname);
-$lngsHandler=& xoops_getModuleHandler('tdmcreate_languages', $dirname);
-
+//load class
+$modulesHandler =& xoops_getModuleHandler('tdmcreate_modules', 'TDMCreate');
+$tablesHandler =& xoops_getModuleHandler('tdmcreate_tables', 'TDMCreate');
+//
$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);
-
+//
+$xoopsTpl->assign('pathIcon16', $pathIcon16);
+$xoopsTpl->assign('pathIcon32', $pathIcon32);
//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
+xoops_loadLanguage('admin', $thisDirname);
+xoops_loadLanguage('modinfo', $thisDirname);
+xoops_loadLanguage('main', $thisDirname);
+// Locad admin menu class
+if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){
+ include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php');
+}else{
+ redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false);
+}
+xoops_cp_header();
+$adminMenu = new ModuleAdmin();
\ No newline at end of file
Modified: XoopsModules/TDMCreate/trunk/TDMCreate/admin/building.php
===================================================================
--- XoopsModules/TDMCreate/trunk/TDMCreate/admin/building.php 2013-10-23 01:59:18 UTC (rev 12200)
+++ XoopsModules/TDMCreate/trunk/TDMCreate/admin/building.php 2013-10-23 02:38:48 UTC (rev 12201)
@@ -1,240 +1,233 @@
<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
/**
- * ****************************************************************************
- * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
- * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
- * - Revision Copyright (c) (http://www.txmodxoops.org)
+ * tdmcreate module
*
- * This license contains restrictions!!!
- *
- * You may not change or alter any portion of this comment or credits
- * of supporting developers from this source code or any supporting source code
- * 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
- * @author TXMod Xoops (in...@tx...)
- *
- * Version : 1.39 Tue 2012/02/14 16:20:18 : Timgno Exp $
- * ****************************************************************************
+ * @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 tdmcreate
+ * @since 2.5.0
+ * @author Txmod Xoops http://www.txmodxoops.org
+ * @version $Id: building.php 11084 2013-02-23 15:44:20Z timgno $
*/
include 'admin_header.php';
-xoops_cp_header();
+$op = TDMCreate_CleanVars( $_REQUEST, 'op', 'default', 'string' );
-$indexAdmin = new ModuleAdmin();
-echo $indexAdmin->addNavigation('building.php');
+if (isset($_REQUEST['mod_name'])) {
+ $modules =& $modulesHandler->get($_REQUEST['mod_name']);
+} else {
+ $modules =& $modulesHandler;
+}
-$op = TDMCreate_CleanVars($_REQUEST, 'op', 'default', 'string');
+$mod_name = strtolower($modules->getVar('mod_name'));
+$mod_desc = $modules->getVar('mod_description');
+$mod_author_website_name = $modules->getVar('mod_author_website_name');
+$mod_author_website_url = $modules->getVar('mod_author_website_url');
+$mod_image = $modules->getVar('mod_image');
+$mod_active_search = $modules->getVar('mod_search');
+$mod_active_comments = $modules->getVar('mod_comments');
+$mod_active_notifications = $modules->getVar('mod_notifications');
+$mod_paypal_button = $modules->getVar('mod_donations');
+$mod_subversion = $modules->getVar('mod_subversion');
+if (isset($_REQUEST['table_name'])) {
+ $tables =& $tablesHandler->get(isset($_REQUEST['table_name']));
+} else {
+ $tables =& $tablesHandler;
+}
+
+//Name of tables
+$criteria = new CriteriaCompo();
+if (isset($_REQUEST['mod_name'])) {
+ $criteria->add(new Criteria('table_mid', $_REQUEST['mod_name']));
+} else {
+ $criteria->add(new Criteria('table_mid'));
+}
+
+$nb_tables = $tablesHandler->getCount($criteria);
+$tables_arr = $tablesHandler->getAll($criteria);
+
+echo $adminMenu->addNavigation('building.php');
switch ($op) {
- case "creation":
- $mods =& $modsHandler->get($_REQUEST['modules_name']);
- $mods_name = $mods->getVar('modules_name');
- $mods_fname = $mods->getVar('modules_fname');
- $mods_desc = $mods->getVar('modules_description');
- $mods_author_website_name = $mods->getVar('modules_author_website_name');
- $mods_author_website_url = $mods->getVar('modules_author_website_url');
- $mods_image = $mods->getVar('modules_image');
- $mods_display_admin = $mods->getVar('modules_display_admin');
- $mods_display_user = $mods->getVar('modules_display_user');
- $mods_donations = $mods->getVar('modules_donations');
- //Remove the new module directory if it exists
- //clearDir($modPath.'/modules/'.$modules_fname);
-
- //Nom des tables et combien de tables
- $criteria = new CriteriaCompo();
- $criteria->add(new Criteria('tables_modules', $_REQUEST['modules_name']));
- $nb_tables = $tblsHandler->getCount($criteria);
- $tbls_arr = $tblsHandler->getall($criteria);
-
- //Debut
- echo '<table width="100%" cellspacing="1" style="background: #fff;">
- <tr class="marg2">
- <td class="ui-corner-all">';
+ case 'build':
+ // Effacer repertoire of nouveau module s'il existe
+ TDMCreate_clearDir($modPath.'/modules/'.$mod_name);
+ // Debut
+ OpenTable();
/************************************************/
/*Structure*/
- /************************************************/
- //Creation de l'architecture
- const_architecture($mods_fname, $mods_image);
- //Creation du changelog.txt
- const_changelog($mods, $mods_fname);
-
- // Files cicles
- foreach (array_keys($tbls_arr) as $i)
+ /************************************************/
+ //Creation of architecture
+ const_architecture($mod_name, $mod_image);
+ //Creation of changelog.txt
+ const_changelog($modules, $mod_name);
+
+ $result = $xoopsDB->queryF("SELECT COUNT(*) FROM " . $xoopsDB->prefix('tdmcreate_tables') . " WHERE table_name = 'mod_".$mod_name."_categories'");
+ list( $category ) = $xoopsDB->fetchRow($result);
+
+ foreach (array_keys($tables_arr) as $i)
{
- //Variables
- $tbls_id = $tbls_arr[$i]->getVar('tables_id');
- $tbls_name = $tbls_arr[$i]->getVar('tables_name');
- $tbls_module_table = $tbls_arr[$i]->getVar('tables_module_table');
- $tbls_img = $tbls_arr[$i]->getVar('tables_img');
- $tbls_champs = $tbls_arr[$i]->getVar('tables_champs');
- $tbls_parametres = $tbls_arr[$i]->getVar('tables_parametres');
- $tbls_blocks = $tbls_arr[$i]->getVar('tables_blocks');
- $tbls_display_admin = $tbls_arr[$i]->getVar('tables_display_admin');
- $tbls_display_user = $tbls_arr[$i]->getVar('tables_display_user');
- $tbls_online = $tbls_arr[$i]->getVar('tables_online');
- $tbls_pending = $tbls_arr[$i]->getVar('tables_pending');
- $tbls_search = $tbls_arr[$i]->getVar('tables_search');
- $tbls_coms = $tbls_arr[$i]->getVar('tables_coms');
+ // Variables
+ $table_name = $tables_arr[$i]->getVar('table_name');
+ $table_fieldname = $tables_arr[$i]->getVar('table_fieldname');
+ $table_category = $tables_arr[$i]->getVar('table_category');
+ $table_fields = $tables_arr[$i]->getVar('table_fields');
+ $table_parameters = $tables_arr[$i]->getVar('table_parameters');
+ $table_image = $tables_arr[$i]->getVar('table_image');
+ $table_blocks = $tables_arr[$i]->getVar('table_blocks');
+ $table_admin = $tables_arr[$i]->getVar('table_admin');
+ $table_user = $tables_arr[$i]->getVar('table_user');
+ if ($mod_active_search != 0) {
+ $table_search = $tables_arr[$i]->getVar('table_search');
+ }
+ if ($mod_active_comments != 0) {
+ $table_comments = $tables_arr[$i]->getVar('table_comments');
+ }
+ if ($mod_active_notifications != 0) {
+ $table_notifications = $tables_arr[$i]->getVar('table_notifications');
+ }
+ $table_waiting = $tables_arr[$i]->getVar('table_waiting');
- //Fabrication
- //Copie of images tables
- $tbls_img1 = $modPath."/images/uploads/tables/".$tbls_img;
- if (file_exists($tbls_img1)) {
- copy($tbls_img1, $modPath."/modules/".$mods_name."/images/deco/".$tbls_img);
+ // Fabrication
+ // Copy of images tables
+ $table_image1 = $modPath . '/images/uploads/tables/' . $table_image;
+ if (file_exists($table_image1)) {
+ copy($table_image1, $modPath . '/modules/' . $mod_name . '/images/icons/32/' . $table_image);
}
- //Creation des classes
- const_class($mods, $mods_fname, $tbls_module_table, $tbls_name, $tbls_champs, $tbls_parametres);
-
- //Creation of pages admin
- if ( $mods_display_admin == 1 ) {
- const_admin_pages($mods, $mods_fname, $tbls_id, $tbls_module_table, $tbls_name, $tbls_img, $tbls_champs, $tbls_parametres, $tbls_online, $tbls_pending);
+ // Creation of classes
+ if ( $table_admin == 1 || $table_user == 1) {
+ const_class($modules, $mod_name, $table_name, $table_fieldname, $category, $table_fields, $table_parameters, $category);
}
- //Creation of pages and templates user
- if ( $mods_display_user == 1 ) {
- const_user_pages($mods, $mods_fname, $tbls_name, $tbls_champs, $tbls_champs, $tbls_parametres);
- // Creation of templates pages
- const_templates_pages($mods, $mods_fname, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres);
- }
- //Creation of search
- if ( $tbls_search == 1 ) {
- const_include_search($mods, $mods_fname, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres, $tbls_img);
+ // Creation of permissions
+ if ( $table_category == 1) {
+ const_admin_permissions($modules, $mod_name, $table_name, $table_fieldname);
}
- //Creation of the comments
- if ( $tbls_coms == 1 ) {
- const_include_coms($mods, $mods_fname, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres);
+ // Creation of pages admin
+ if ( $table_admin == 1 ) {
+ const_admin_pages($modules, $mod_name, $table_name, $table_fieldname, $table_fields, $table_parameters, $category);
}
+ // Creation of pages and templates user
+ if ( $table_user == 1 && $table_name != null ) {
+ const_user_pages($modules, $mod_name, $table_name, $table_fieldname, $table_fields, $table_parameters);
+ const_templates_pages($modules, $mod_name, $table_name, $table_fieldname, $table_fields);
+ }
+ // Creation of search
+ if ( isset($table_search) ) {
+ const_include_search($modules, $mod_name, $table_name, $table_fieldname, $table_fields, $table_parameters, $table_image);
+ }
+ // Creation of comments
+ if ( isset($table_comments) ) {
+ const_include_comments($modules, $mod_name, $table_name, $table_fieldname, $table_fields, $table_parameters);
+ }
+ // Creation of notifications
+ if ( isset($table_notifications) ) {
+ const_include_notifications($modules, $modules_name, $table_name, $table_fieldname);
+ }
+ // Creation of the file mysql.sql
+ const_sql($mod_name, $table_name, $table_fieldname, $category, $table_fields);
- //Creation of the file mysql.sql
- const_sql($mods_fname, $tbls_module_table, $tbls_name, $tbls_champs);
- $result = $xoopsDB->queryF("SELECT COUNT(*) FROM " . $xoopsDB->prefix('tdmcreate_tables').
- " WHERE tables_name = 'cat' OR tables_name = 'category'
- OR tables_name = 'categories'
- OR tables_name = '".$tbls_name."_cat'
- OR tables_name = '".$tbls_name."_category'
- OR tables_name = '".$tbls_name."_categories' ");
- list( $topic ) = $xoopsDB->fetchRow($result);
- //Creation of the blocks
- if ( $tbls_blocks != 1 ) {
- const_blocks($mods, $mods_fname, $tbls_module_table, $tbls_name, $tbls_champs, $tbls_parametres, $topic);
- //Creation of template blocks
- const_blocks_templates($mods, $mods_fname, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres);
- }
- }
- //Variables
- $tbls_id = $tblsHandler->getVar('tables_id');
- $tbls_name = $tblsHandler->getVar('tables_name');
- $tbls_module_table = $tblsHandler->getVar('tables_module_table');
- $tbls_img = $tblsHandler->getVar('tables_img');
- $tbls_champs = $tblsHandler->getVar('tables_champs');
- $tbls_parametres = $tblsHandler->getVar('tables_parametres');
- $tbls_blocks = $tblsHandler->getVar('tables_blocks');
- $tbls_display_admin = $tblsHandler->getVar('tables_display_admin');
- $tbls_display_user = $tblsHandler->getVar('tables_display_user');
- $tbls_online = $tblsHandler->getVar('tables_online');
- $tbls_pending = $tblsHandler->getVar('tables_pending');
- $tbls_search = $tblsHandler->getVar('tables_search');
- $tbls_coms = $tblsHandler->getVar('tables_coms');
- //Creation of xoopsversion.php file
- //Xoops version set to integrate the end of the block, etc.
- const_xoopsversion($mods, $mods_fname, $tbls_arr, $tbls_module_table, $tbls_blocks);
- if($mods_display_user == 1){
- // Creation of template index
- const_templates_index($mods, $mods_fname, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres);
- // Creation of template header
- const_templates_header($mods, $mods_fname);
- // Creation of template footer
- const_templates_footer($mods, $mods_fname, $tbls_module_table);
- }
- //Creation of the file permissions
- $topic = 0;
- if ( $topic == 1 || $tbls_module_table != null) { //
- const_admin_permissions($mods, $mods_fname, $tbls_name, $topic);
+ // Creation of blocks
+ if ( $table_blocks == 1 ) {
+ const_blocks($modules, $mod_name, $table_name, $table_fieldname, $table_fields, $table_parameters, $category);
+ //Creation of template per blocks
+ const_blocks_templates($modules, $mod_name, $table_name, $table_fieldname, $table_fields, $table_parameters);
+ }
}
- // JQuery
- const_js_jquery($mods, $mods_name);
- //Include
- //Configs
- const_include_configs($mods, $mods_fname, $mods_author_website_name, $mods_author_website_url);
- //Style
- const_css_admin($mods, $mods_fname);
- const_css_style($mods, $mods_fname);
- //Functions
- const_include_functions($mods, $mods_fname);
- //Creation of the install file for uploads
- const_include_install($mods, $mods_fname, $tbls_arr);
- //Language
+ //Creation of architecture of more fields and data
+ //const_architecture(null, null, $table_admin, $table_blocks, $table_admin, $table_blocks );
+
+ if ( $table_waiting == 1 ) {
+ // Creation of Waiting Plugin
+ const_waiting($modules, $mod_name, $tables_arr);
+ }
+ // Creation of xoopsversion.php
+ const_xoopsversion($modules, $mod_name, $table_name, $table_fields, $table_parameters, $tables_arr);
+ if ( $table_user == 1 && $table_name != null ) {
+ // Creation of template index
+ const_templates_index($modules, $mod_name);
+ // Creation of template header
+ const_templates_header($modules, $mod_name, $tables_arr);
+ // Creation of template footer
+ const_templates_footer($modules, $mod_name, $table_comments, $table_notifications);
+ }
+ if ( $table_admin == 1 ) {
+ // Creation of template admin about
+ const_templates_admin_about($modules, $mod_name);
+ // Creation of template admin help
+ const_templates_admin_help($modules, $mod_name);
+ }
+ // Include
+ ///////////////////////////////////////////////////////////////////////
+ // Configs
+ const_include_common($modules, $mod_name, $mod_author_website_name, $mod_author_website_url);
+ // Functions
+ const_include_functions($modules, $mod_name);
+ //Creation of file install per l'uploads
+ const_include_install($modules, $mod_name, $tables_arr);
+ // Language
///////////////////////////////////////////////////////////////////////
- //Creation of language main.php
- const_main_language($mods, $mods_fname, $mods_desc);
- //Creation of language modinfo.php
- const_modinfo_language($mods, $mods_fname, $tbls_arr, $mods_desc);
- //Creation of language admin.php
- const_admin_language($mods, $mods_fname, $mods_desc, $tbls_name, $tbls_arr, $tbls_pending);
- //Creation of language blocks.php
- const_blocks_language($mods, $mods_fname);
- //Creation of language help.php
- const_help_language($mods, $mods_fname, $mods_desc);
- //Creation of language
- //const_language($mods, $mods_name);
- ///////////////////////////////////////////////////////////////////////
+ if ( $table_user == 1 ) {
+ //Creation of language main.php
+ const_main_language($modules, $mod_name, $mod_desc, $tables_arr);
+ }
+ // Creation of language modinfo.php
+ const_modinfo_language($modules, $mod_name, $mod_desc, $table_name, $table_image, $tables_arr, $category);
+ // Creation of language admin.php
+ const_admin_language($modules, $mod_name, $tables_arr, $category);
+ if ( $table_blocks == 1 ) {
+ // Creation of language blocks.php
+ const_blocks_language($modules, $mod_name, $tables_arr);
+ }
+ // Creation of language help/help.html
+ const_help_language($modules, $mod_name, $mod_desc);
+ ///////////////////////////////////////////////////////////////////////
+ //Creation of style.css
+ const_css_style($modules, $mod_name);
/************************************************/
/*Admin*/
/************************************************/
- if ( $mods_display_admin == 1 ) {
- //Creation of admin file admin_header.php
- const_admin_header($mods, $mods_fname, $tbls_arr);
- //Creation of admin file admin_footer.php
- const_admin_footer($mods, $mods_fname, $tbls_arr);
- //Creation of admin file menu.php
- const_admin_menu($mods, $mods_fname, $tbls_arr, $topic);
- //Creation of admin file about.php
- const_admin_about($mods, $mods_fname, $mods_donations);
- //Creation of admin file index.php
- const_admin_index($mods, $mods_fname, $tbls_arr, $tbls_online, $tbls_pending);
- }
+ // Creation of admin header.php
+ const_admin_header($modules, $mod_name, $tables_arr);
+ // Creation of admin index.php
+ const_admin_index($modules, $mod_name, $table_name, $tables_arr);
+ // Creation of admin footer.php
+ const_admin_footer($modules, $mod_name, $tables_arr);
+ // Creation of admin menu.php
+ const_admin_menu($modules, $mod_name, $tables_arr, $category);
+ // Creation of admin about.php
+ const_admin_about($modules, $mod_name, $mod_paypal_button);
/************************************************/
/*User*/
/************************************************/
- if ( $mods_display_user == 1 ) {
- const_user_header($mods, $mods_fname, $tbls_arr, $tbls_module_table);
- const_user_index($mods, $mods_fname);
+ if ( $table_user == 1 ) {
+ const_user_header($modules, $mod_name);
+ const_user_index($modules, $mod_name);
}
- echo '</td></tr></table>';
-
+ CloseTable();
break;
- case "default":
- default:
-
- include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php");
+ 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);
+ $form = new XoopsThemeForm(_AM_TDMCREATE_ADMIN_CONST, 'buildform', $action, 'post', true);
- $mods_select = new XoopsFormSelect(_AM_TDMCREATE_CONST_MODULES, 'modules_name', 'modules_name', 10);
- $mods_select->addOptionArray($modsHandler->getList());
- $form->addElement($mods_select, true);
-
- $modules_name = xoops_getModuleHandler('tdmcreate_modules', 'TDMCreate');
- $criteria = new CriteriaCompo(new Criteria('modules_name', $modules_name));
- $criteria->setSort('tables_name');
- $criteria->setOrder('ASC');
- $tbls_name_arr = $tblsHandler->getAll($criteria);
- foreach (array_keys($tbls_name_arr) as $i)
- {
- $tbls_option_name = $tbls_name_arr[$i]->getVar('tables_name');
- }
- $tbls_select = new XoopsFormSelect(_AM_TDMCREATE_CONST_TABLES, 'tables_name', 'tables_name', 4, true);
- $tbls_select->addOptionArray($tblsHandler->getList($criteria)); // $tbls_option_name
- $form->addElement($tbls_select, false);
-
- $form->addElement(new XoopsFormHidden('op', 'creation'));
+ $mod_select = new XoopsFormSelect(_AM_TDMCREATE_CONST_MODULES, 'mod_name', 'mod_name');
+ $mod_select->addOptionArray($modulesHandler->getList());
+ $form->addElement($mod_select, true);
+
+ $form->addElement(new XoopsFormHidden('op', 'build'));
$form->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit'));
$form->display();
- break;
+ break;
}
-include "admin_footer.php";
\ No newline at end of file
+include 'admin_footer.php';
\ No newline at end of file
Deleted: XoopsModules/TDMCreate/trunk/TDMCreate/admin/changelog.php
===================================================================
--- XoopsModules/TDMCreate/trunk/TDMCreate/admin/changelog.php 2013-10-23 01:59:18 UTC (rev 12200)
+++ XoopsModules/TDMCreate/trunk/TDMCreate/admin/changelog.php 2013-10-23 02:38:48 UTC (rev 12201)
@@ -1,32 +0,0 @@
-<?php
-/**
- * ****************************************************************************
- * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
- * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
- * - Revision Copyright (c) (http://www.txmodxoops.org)
- *
- * This license contains restrictions!!!
- *
- * You may not change or alter any portion of this comment or credits
- * of supporting developers from this source code or any supporting source code
- * 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
- * @author TXMod Xoops (in...@tx...)
- *
- * Version : 1.39 Tue 2012/02/14 16:20:18 : Timgno Exp $
- * ****************************************************************************
- */
-
-include "admin_header.php";
-xoops_cp_header();
-
-$changelogAdmin = new ModuleAdmin();
-echo $changelogAdmin->addNavigation("changelog.php");
-
-include "admin_footer.php";
-?>
\ No newline at end of file
Deleted: XoopsModules/TDMCreate/trunk/TDMCreate/admin/css.php
===================================================================
--- XoopsModules/TDMCreate/trunk/TDMCreate/admin/css.php 2013-10-23 01:59:18 UTC (rev 12200)
+++ XoopsModules/TDMCreate/trunk/TDMCreate/admin/css.php 2013-10-23 02:38:48 UTC (rev 12201)
@@ -1,32 +0,0 @@
-<?php
-/**
- * ****************************************************************************
- * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
- * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
- * - Revision Copyright (c) (http://www.txmodxoops.org)
- *
- * This license contains restrictions!!!
- *
- * You may not change or alter any portion of this comment or credits
- * of supporting developers from this source code or any supporting source code
- * 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
- * @author TXMod Xoops (in...@tx...)
- *
- * Version : 1.39 Tue 2012/02/14 16:20:18 : Timgno Exp $
- * ****************************************************************************
- */
-
-include "admin_header.php";
-xoops_cp_header();
-
-$cssAdmin = new ModuleAdmin();
-echo $cssAdmin->addNavigation("css.php");
-
-include "admin_footer.php";
-?>
\ No newline at end of file
Deleted: XoopsModules/TDMCreate/trunk/TDMCreate/admin/filesmanager.php
===================================================================
--- XoopsModules/TDMCreate/trunk/TDMCreate/admin/filesmanager.php 2013-10-23 01:59:18 UTC (rev 12200)
+++ XoopsModules/TDMCreate/trunk/TDMCreate/admin/filesmanager.php 2013-10-23 02:38:48 UTC (rev 12201)
@@ -1,244 +0,0 @@
-<?php
-/**
- * ****************************************************************************
- * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
- * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
- * - Revision Copyright (c) (http://www.txmodxoops.org)
- *
- * This license contains restrictions!!!
- *
- * You may not change or alter any portion of this comment or credits
- * of supporting developers from this source code or any supporting source code
- * 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
- * @author TXMod Xoops (in...@tx...)
- *
- * Version : 1.39 Tue 2012/02/14 16:20:18 : Timgno Exp $
- * ****************************************************************************
- */
-include 'admin_header.php';
-// Get Action type
-$op = TDMCreate_CleanVars( $_REQUEST, 'op', 'default', 'string' );
-// Define main template
-$xoopsOption['template_main'] = 'tdmcreate_filemanager.html';
-// Call Header
-xoops_cp_header();
-
-$xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js');
-$xoTheme->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js');
-$xoTheme->addScript('modules/system/js/jquery.easing.js');
-$xoTheme->addScript('modules/system/js/admin.js');
-$xoTheme->addScript('modules/system/js/code_mirror/codemirror.js');
-$xoTheme->addScript('modules/TDMCreate/js/jqueryFileTree.js');
-$xoTheme->addScript('modules/TDMCreate/js/filemanager.js');
-// Define Stylesheet
-$xoTheme->addStylesheet( XOOPS_URL . '/modules/system/css/admin.css');
-$xoTheme->addStylesheet( XOOPS_URL . '/modules/system/css/code_mirror/docs.css');
-$xoTheme->addStylesheet( XOOPS_URL . '/modules/system/css/ui/' . xoops_getModuleOption('jquery_theme', 'system') . '/ui.all.css');
-
-xoops_load('XoopsFile');
-XoopsFile::load('file');
-
-switch ($op) {
- default:
- $nbcolonnes_file = 4;
- $width = 100/$nbcolonnes_file;
- $root = XOOPS_ROOT_PATH.'/modules/TDMCreate/modules/';
- $url_file = XOOPS_URL.'/modules/TDMCreate/modules/';
- $xoopsTpl->assign('width', $width);
-
- if( file_exists($root) )
- {
- $files = scandir($root);
- natcasesort($files);
- if( count($files) > 2 )
- {
- $count_file = 1;
- $file_arr = array();
- $edit = false;
- // All files
- foreach( $files as $file )
- {
- if (!preg_match('#.back#', $file))
- {
- if( file_exists($root . $file) && $file != '.' && $file != '..' && !is_dir($root . $file) )
- {
- $folder = XoopsFile::getHandler('file', $root.$file);
- $extension_verif = $folder->ext();
-
- switch ( $extension_verif ) {
- case 'ico': case 'png': case 'gif': case 'jpg': case 'jpeg':
- $extension_verif = 'picture';
- break;
- case 'html': case 'htm':
- $extension_verif = 'html';
- $edit = true;
- break;
- case 'zip': case 'rar': case 'tar': case 'gz':
- $extension_verif = 'rar';
- $edit = true;
- $unzip = '<img class="cursorpointer" src="./images/icons/untar.png" onclick=\'filemanager_unzip_file("'.$path_file . $file.'", "'.$path_file.'", "'.$file.'");\' width="16" alt="edit" /> ';
- break;
- case 'css':
- $extension_verif = 'css';
- $edit = true;
- break;
- case 'avi': case 'mov': case 'real': case 'flv': case 'swf':
- $extension_verif = 'movie';
- break;
- case 'log':
- $extension_verif = 'log';
- $edit = true;
- break;
- case 'php':
- $extension_verif = 'php';
- $edit = true;
- break;
- case 'info': case 'htaccess':
- $extension_verif = 'info';
- break;
- case 'sql':
- $extension_verif = 'sql';
- $edit = true;
- break;
- default:
- $extension_verif = 'file';
- $edit = true;
- break;
- }
-
- //Edit ?
- $file_arr['edit'] = $edit;
- //File
- $file_arr['path_file'] = $root.$file;
- $file_arr['path'] = $root;
- //Chmod
- $file_arr['chmod'] = substr($folder->perms(), 1);
-
- $file_arr['chmod'] = modify_chmod($file_arr['chmod'], $file_arr['path_file'], $count_file);
-
- if($extension_verif == 'picture') {
- list($width, $height) = getimagesize($root . $file);
- if($height > 60){
- $file_arr['img'] = '<img src="'.$url_file.$file.'" height="47" title="" alt="" />';
- } else {
- $file_arr['img'] = '<img src="'.$url_file.$file.'" title="" alt="" />';
- }
- } else {
- $file_arr['img'] = '<img src="'.XOOPS_URL.'/modules/system/images/mimetypes/'.$extension_verif.'_48.png" title="" alt="" />';
- }
- $file_arr['extension'] = $extension_verif;
- $file_arr['file'] = htmlentities($file);
- $count_file++;
- $file_arr['newline'] = ($count_file % $nbcolonnes_file == 1) ? true : false;
- $xoopsTpl->assign('newline', $file_arr['newline']);
- $xoopsTpl->append('files', $file_arr);
- }
- $edit = false;
- }
- }
- }
- }
- break;
-
- //save
- case 'filemanager_save':
- //Save the file or restore file
- if(isset($_REQUEST['path_file']))
- {
- //save file
- $copy_file = $_REQUEST['path_file'];
- copy($copy_file, $_REQUEST['path'].$_REQUEST['file'].'.back');
- //Save modif
- if(isset($_REQUEST['filemanager']))
- {
- $open = fopen("".$_REQUEST['path_file']."","w+");
- if(!fwrite($open, utf8_encode(stripslashes($_REQUEST['filemanager']))))
- {
- redirect_header("filemanager.php", 2, _AM_TDMCREATE_FILEMANAGER_ERROR);
- }
- fclose($open);
- }
- redirect_header("filemanager.php", 2, _AM_TDMCREATE_DBUPDATED);
- } else {
- //restore
- $old_file = $_REQUEST['path_file'].'.back';
- //echo $old_file;
- $new_file = $_REQUEST['path_file'];
- //echo $new_file;
- if(file_exists($old_file))
- {
- if(unlink($new_file))
- {
- if(rename($old_file, $new_file))
- {
- redirect_header("filemanager.php", 2, _AM_TDMCREATE_DBUPDATED);
- }else{
- redirect_header("filemanager.php", 2, _AM_TDMCREATE_FILEMANAGER_RESTORE_ERROR_FILE_RENAME);
- }
- }else{
- redirect_header("filemanager.php", 2, _AM_TDMCREATE_FILEMANAGER_RESTORE_ERROR_FILE_DELETE);
- }
- }else{
- redirect_header("filemanager.php", 2, _AM_TDMCREATE_FILEMANAGER_RESTORE_ERROR_FILE_EXISTS);
- }
- }
- break;
-
- case 'filemanager_upload_save':
- if($_REQUEST['path'] != '') {
- $path = trim($_REQUEST['path']);
- } else {
- $path = XOOPS_ROOT_PATH.'/';
- }
- include_once XOOPS_ROOT_PATH . '/class/uploader.php';
- $mimetypes = include $GLOBALS['xoops']->path('include/mimetypes.inc.php');
- $uploader = new XoopsMediaUploader( $path, $mimetypes, 500000);
- if ($uploader->fetchMedia('upload_file')) {
-
- if (!$uploader->upload()) {
- $err[] = $uploader->getErrors();
- }
- }
- if ( isset($err) ) {
- foreach ( $err as $line ){
- echo $line;
- }
- }
- redirect_header("filemanager.php", 2, _AM_TDMCREATE_FILEMANAGER_UPLOAD_FILE);
- break;
-
- case 'filemanager_add_dir_save':
- $path = TDMCreate_CleanVars ( $_REQUEST, 'path', XOOPS_ROOT_PATH . '/modules/TDMCreate/modules/', 'string' );
-
- xoops_load('XoopsFile');
- XoopsFile::load('folder');
- $folder = XoopsFile::getHandler('folder');
- if ($folder->create ($path . $_REQUEST['dir_name'], 0777)) {
- $indexFile = XOOPS_ROOT_PATH."/modules/TDMCreate/index.html";
- copy($indexFile, $path.$_REQUEST['dir_name']."/index.html");
- redirect_header( 'filemanager.php', 2, _AM_TDMCREATE_FILEMANAGER_DIR_SUCCESS );
- } else {
- redirect_header( 'filemanager.php', 2, _AM_TDMCREATE_FILEMANAGER_DIR_ERROR );
- }
- break;
-
- case 'filemanager_add_file_save':
- $path = TDMCreate_CleanVars ( $_REQUEST, 'path', XOOPS_ROOT_PATH . '/modules/TDMCreate/modules/', 'string' );
- if ( $path == '' ) $path = XOOPS_ROOT_PATH . '/modules/TDMCreate/modules/';
- $open = fopen($path . $_REQUEST['file_name'],"w+");
- fclose($open);
- redirect_header( 'filemanager.php', 2, _AM_TDMCREATE_FILEMANAGER_FILE_SUCCESS );
- //if ($file->create ($path . $_REQUEST['file_name'])) {
- // redirect_header( 'filemanager.php', 2, _AM_TDMCREATE_FILEMANAGER_DIR_SUCCESS );
- //} else {
- // redirect_header( 'filemanager.php', 2, _AM_TDMCREATE_FILEMANAGER_DIR_ERROR );
- //}
- break;
-}
-include "admin_footer.php";
\ No newline at end of file
Modified: XoopsModules/TDMCreate/trunk/TDMCreate/admin/includes.php
===================================================================
--- XoopsModules/TDMCreate/trunk/TDMCreate/admin/includes.php 2013-10-23 01:59:18 UTC (rev 12200)
+++ XoopsModules/TDMCreate/trunk/TDMCreate/admin/includes.php 2013-10-23 02:38:48 UTC (rev 12201)
@@ -1,62 +1,62 @@
<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
/**
- * ****************************************************************************
- * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
- * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
- * - Revision Copyright (c) (http://www.txmodxoops.org)
+ * tdmcreate module
*
- * This license contains restrictions!!!
- *
- * You may not change or alter any portion of this comment or credits
- * of supporting developers from this source code or any supporting source code
- * 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
- * @author TXMod Xoops (in...@tx...)
- *
- * Version : 1.39 Sat 2012/02/14 16:20:18 : Timgno Exp $
- * ****************************************************************************
+ * @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 tdmcreate
+ * @since 2.5.0
+ * @author Txmod Xoops http://www.txmodxoops.org
+ * @version $Id: includes.php 11084 2013-02-23 15:44:20Z timgno $
*/
-$dir_const = XOOPS_ROOT_PATH.'/modules/TDMCreate/const';
+include '../../../include/cp_header.php';
+include_once("../include/functions.php");
-include_once $dir_const.'/const_architecture.php';
-include_once $dir_const.'/const_xoopsversion.php';
-include_once $dir_const.'/const_changelog.php';
-include_once $dir_const.'/const_include_search.php';
-include_once $dir_const.'/const_include_coms.php';
-include_once $dir_const.'/const_include_configs.php';
-include_once $dir_const.'/const_include_functions.php';
-include_once $dir_const.'/const_include_install.php';
-include_once $dir_const.'/const_css_admin.php';
-include_once $dir_const.'/const_css_style.php...
[truncated message content] |