From: <txm...@us...> - 2012-04-12 18:31:22
|
Revision: 9311 http://xoops.svn.sourceforge.net/xoops/?rev=9311&view=rev Author: txmodxoops Date: 2012-04-12 18:31:14 +0000 (Thu, 12 Apr 2012) Log Message: ----------- Fixed all bugs Modified Paths: -------------- XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/admin/building.php XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/admin/includes.php XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/admin/modules.php XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/admin/tables.php XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/const/const_admin_header.php XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/const/const_modinfo_language.php XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/const/const_user_index.php XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/include/functions.php Modified: XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/admin/building.php =================================================================== --- XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/admin/building.php 2012-04-12 18:30:10 UTC (rev 9310) +++ XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/admin/building.php 2012-04-12 18:31:14 UTC (rev 9311) @@ -27,7 +27,7 @@ switch ($op) { case "creation": - $mods =& $modsHandler->get($_REQUEST['modules_name']); + $mods =& $modulesHandler->get($_REQUEST['modules_name']); $mods_name = $mods->getVar('modules_name'); //$mods_fname = $mods->getVar('modules_fname'); $mods_desc = $mods->getVar('modules_description'); @@ -37,13 +37,13 @@ $mods_display_admin = $mods->getVar('modules_display_admin'); $mods_display_user = $mods->getVar('modules_display_user'); //Remove the new module directory if it exists - TDMCreate_clearDir($modPath.'/modules/'.$modules_fname); + TDMCreate_clearDir($modPath.'/modules/'.$mods_name); //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); + $nb_tables = $tablesHandler->getCount($criteria); + $tbls_arr = $tablesHandler->getall($criteria); //Debut echo '<table width="100%" cellspacing="1" style="background: #fff;"> @@ -122,19 +122,19 @@ } } //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'); + $tbls_id = $tablesHandler->getVar('tables_id'); + $tbls_name = $tablesHandler->getVar('tables_name'); + $tbls_module_table = $tablesHandler->getVar('tables_module_table'); + $tbls_img = $tablesHandler->getVar('tables_img'); + $tbls_champs = $tablesHandler->getVar('tables_champs'); + $tbls_parametres = $tablesHandler->getVar('tables_parametres'); + $tbls_blocks = $tablesHandler->getVar('tables_blocks'); + $tbls_display_admin = $tablesHandler->getVar('tables_display_admin'); + $tbls_display_user = $tablesHandler->getVar('tables_display_user'); + $tbls_online = $tablesHandler->getVar('tables_online'); + $tbls_pending = $tablesHandler->getVar('tables_pending'); + $tbls_search = $tablesHandler->getVar('tables_search'); + $tbls_coms = $tablesHandler->getVar('tables_coms'); //Creation of xoopsversion.php file //Xoops version set to integrate the end of the block, etc. const_xoopsversion($mods, $mods_name, $tbls_arr, $tbls_module_table, $tbls_blocks); @@ -142,7 +142,7 @@ // Creation of template index const_templates_index($mods, $mods_name, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres); // Creation of template header - const_templates_header($mods, $mods_name); + const_templates_header($mods, $mods_name, $mods_desc); // Creation of template footer const_templates_footer($mods, $mods_name, $tbls_module_table); } @@ -157,7 +157,7 @@ //Configs const_include_configs($mods, $mods_name, $mods_author_website_name, $mods_author_website_url); //Style - const_css_admin($mods, $mods_name); + //const_css_admin($mods, $mods_name); const_css_style($mods, $mods_name); //Functions const_include_functions($mods, $mods_name); @@ -166,13 +166,13 @@ //Language /////////////////////////////////////////////////////////////////////// //Creation of language main.php - const_main_language($mods, $mods_name, $mods_desc); + const_main_language($mods, $mods_name, $mods_desc, $tbls_arr); //Creation of language modinfo.php - const_modinfo_language($mods, $mods_name, $tbls_arr, $mods_desc); + const_modinfo_language($mods, $mods_name, $tbls_arr, $mods_desc, $topic); //Creation of language admin.php - const_admin_language($mods, $mods_name, $mods_desc, $tbls_name, $tbls_arr, $tbls_pending); + const_admin_language($mods, $mods_name, $tbls_arr, $tbls_name); //Creation of language blocks.php - const_blocks_language($mods, $mods_name); + const_blocks_language($mods, $mods_name, $tbls_arr); //Creation of language help.php const_help_language($mods, $mods_name, $mods_desc); //Creation of language @@ -212,22 +212,22 @@ $form = new XoopsThemeForm(_AM_TDMCREATE_ADMIN_CONST, 'form_creation', $action, 'post', true); - $mods_select = new XoopsFormSelect(_AM_TDMCREATE_CONST_MODULES, 'modules_name', 'modules_name', 10); - $mods_select->addOptionArray($modsHandler->getList()); + $mods_select = new XoopsFormSelect(_AM_TDMCREATE_CONST_MODULES, 'modules_name', 'modules_name'); + $mods_select->addOptionArray($modulesHandler->getList()); $form->addElement($mods_select, true); - $modules_name = xoops_getModuleHandler('tdmcreate_modules', 'TDMCreate'); + /*$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); + $tbls_name_arr = $tablesHandler->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); + $tbls_select = new XoopsFormSelect(_AM_TDMCREATE_CONST_TABLES, 'tables_name', 'tables_name'); + $tbls_select->addOptionArray($tablesHandler->getList($criteria)); // $tbls_option_name + $form->addElement($tbls_select, false);*/ $form->addElement(new XoopsFormHidden('op', 'creation')); $form->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit')); Modified: XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/admin/includes.php =================================================================== --- XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/admin/includes.php 2012-04-12 18:30:10 UTC (rev 9310) +++ XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/admin/includes.php 2012-04-12 18:31:14 UTC (rev 9311) @@ -36,7 +36,6 @@ 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_js_jquery.php'; include_once $cPath.'/const_admin_header.php'; @@ -48,7 +47,6 @@ 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'; Modified: XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/admin/modules.php =================================================================== --- XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/admin/modules.php 2012-04-12 18:30:10 UTC (rev 9310) +++ XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/admin/modules.php 2012-04-12 18:31:14 UTC (rev 9311) @@ -2,8 +2,10 @@ /** * **************************************************************************** * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS - * - Licence GPL Copyright (c) (http://www.xoops.org) + * - 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. @@ -12,9 +14,8 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @license TDM GPL license - * @author TDM TEAM DEV MODULE + * @author TDM TEAM DEV MODULE * - * Version : 1.38 Thu 2012/04/12 14:04:25 : Timgno Exp $ * **************************************************************************** */ include '../../../include/cp_header.php'; Modified: XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/admin/tables.php =================================================================== --- XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/admin/tables.php 2012-04-12 18:30:10 UTC (rev 9310) +++ XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/admin/tables.php 2012-04-12 18:31:14 UTC (rev 9311) @@ -2,8 +2,10 @@ /** * **************************************************************************** * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS - * - Licence GPL Copyright (c) (http://www.xoops.org) + * - 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. @@ -14,7 +16,6 @@ * @license TDM GPL license * @author TDM TEAM DEV MODULE * - * Version : 1.38 Thu 2012/04/12 14:04:25 : Timgno Exp $ * **************************************************************************** */ include 'admin_header.php'; Modified: XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/const/const_admin_header.php =================================================================== --- XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/const/const_admin_header.php 2012-04-12 18:30:10 UTC (rev 9310) +++ XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/const/const_admin_header.php 2012-04-12 18:31:14 UTC (rev 9311) @@ -57,8 +57,8 @@ $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\'); +$pathImageIcon = XOOPS_URL .\'/\'. $moduleInfo->getInfo(\'icons16\'); +$pathImageAdmin = XOOPS_URL .\'/\'. $moduleInfo->getInfo(\'icons32\'); '; Modified: XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/const/const_modinfo_language.php =================================================================== --- XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/const/const_modinfo_language.php 2012-04-12 18:30:10 UTC (rev 9310) +++ XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/const/const_modinfo_language.php 2012-04-12 18:31:14 UTC (rev 9311) @@ -38,8 +38,8 @@ $text = '<?php'.$en_tete.' // Admin -define("'.$language.'NAME","'.ucfirst( $modules_name ).'"); -define("'.$language.'DESC","'.ucfirst( $modules_desc ).'"); +define("'.$language.'NAME","'. $modules_name .'"); +define("'.$language.'DESC","'. $modules_desc .'"); //Menu define("'.$language.'ADMENU'.$menu.'","Dashboard"); @@ -47,7 +47,7 @@ foreach (array_keys($tables_arr) as $i) { $menu++; - $text .= 'define("'.$language.'ADMENU'.$menu.'","'.ucfirst(strtolower($tables_arr[$i]->getVar("tables_name"))).'"); + $text .= 'define("'.$language.'ADMENU'.$menu.'","'.UcFirstAndToLower($tables_arr[$i]->getVar("tables_name")).'"); '; } if ( $topic == 1 ) { Modified: XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/const/const_user_index.php =================================================================== --- XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/const/const_user_index.php 2012-04-12 18:30:10 UTC (rev 9310) +++ XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/const/const_user_index.php 2012-04-12 18:31:14 UTC (rev 9311) @@ -20,7 +20,7 @@ include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_entete.php'; include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/include/functions_const.php'; -function const_user_index($modules, $modules_name, $tables_id, $tables_module_table, $tables_name) +function const_user_index($modules, $modules_name) { $language = '_MA_'.strtoupper($modules_name).''; $file = "index.php"; Modified: XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/include/functions.php =================================================================== --- XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/include/functions.php 2012-04-12 18:30:10 UTC (rev 9310) +++ XoopsModules/TDMCreate/releases/1.38/modules/TDMCreate/include/functions.php 2012-04-12 18:31:14 UTC (rev 9311) @@ -42,7 +42,7 @@ while($file=readdir($opening)) { if ($file == '.' || $file == '..') continue; if (is_dir($folder."/".$file)) { - $r=clearDir($folder."/".$file); + $r=TDMCreate_clearDir($folder."/".$file); if (!$r) return false; } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |