|
From: <txm...@us...> - 2013-03-24 19:34:48
|
Revision: 11299
http://sourceforge.net/p/xoops/svn/11299
Author: txmodxoops
Date: 2013-03-24 19:34:43 +0000 (Sun, 24 Mar 2013)
Log Message:
-----------
Updated
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/about.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/building.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/fields.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/includes.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/modules.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/tables.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_architecture.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldattributes.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldelements.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldkey.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldnull.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fields.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldtype.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_themeform.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_about.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_footer.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_header.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_help.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_index.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_menu.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_pages.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_permissions.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_architecture.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_blocks.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_changelog.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_class.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_css_style.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_header.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_sql.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_user_pages.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/include/functions.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/include/functions_const.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/language/english/admin.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/sql/mysql.sql
Removed Paths:
-------------
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/language/english/help.php
XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/modules/
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/about.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/about.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/about.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -18,7 +18,7 @@
* @author Txmod Xoops <su...@tx...>
* @version $Id: 1.59 about.php 11297 2013-03-24 10:58:10Z timgno $
*/
-include "admin_header.php";
-echo $adminMenu->addNavigation("about.php");
+include 'admin_header.php';
+echo $adminMenu->addNavigation('about.php');
echo $adminMenu->renderAbout('YDRUY5QZQHAHS', false);
-include "admin_footer.php";
\ No newline at end of file
+include 'admin_footer.php';
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/building.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/building.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/building.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -19,33 +19,60 @@
* @version $Id: 1.59 building.php 11297 2013-03-24 10:58:10Z timgno $
*/
include 'admin_header.php';
-// Define Stylesheet
-//$xoTheme->addStylesheet( $sysjquistyle );
-// Define scripts
-//$xoTheme->addScript( $js );
-// Recovered the value of the argument op in the URL $
-$op = TDMCreate_CleanVars($_REQUEST, 'op', 'default', 'string');
+$op = TDMCreate_CleanVars( $_REQUEST, 'op', 'default', 'string' );
+$table_id = TDMCreate_CleanVars( $_REQUEST, 'table_id', 0 );
+$table_name = TDMCreate_CleanVars( $_REQUEST, 'table_name', '', 'string' );
+$table_fieldname = TDMCreate_CleanVars( $_REQUEST, 'table_fieldname', '', 'string' );
+$table_blocks = TDMCreate_CleanVars( $_REQUEST, 'table_blocks', '', 'string' );
+$table_submenu = TDMCreate_CleanVars( $_REQUEST, 'table_submenu', '', 'string' );
+$table_search = TDMCreate_CleanVars( $_REQUEST, 'table_search', '', 'string' );
+$table_comments = TDMCreate_CleanVars( $_REQUEST, 'table_comments', '', 'string' );
+$mod_id = TDMCreate_CleanVars( $_REQUEST, 'mod_id', 0 );
+$mod_name = TDMCreate_CleanVars( $_REQUEST, 'mod_name', '', 'string' );
+
+if (isset($mod_name)) {
+ $modules =& $modulesHandler->get($mod_name);
+} else {
+ $modules =& $modulesHandler;
+}
+/*
+$table_name =& $tablesHandler->get($table_name);
+$table_fieldname =& $tablesHandler->get($table_fieldname);
+$table_blocks =& $tablesHandler->get($table_blocks);
+$table_submenu =& $tablesHandler->get($table_submenu);
+$table_search =& $tablesHandler->get($table_search);
+$table_comments =& $tablesHandler->get($table_comments);*/
+
+$mod_name = $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');
+
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('table_mid', $mod_name));
+$nb_tables = $tablesHandler->getCount($criteria);
+$tables_arr = $tablesHandler->getAll($criteria);
+unset($criteria);
+
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('field_mid', $mod_id));
+$criteria->add(new Criteria('field_tid', $table_id));
+$nb_fields = $fieldsHandler->getCount($criteria);
+$fields_arr = $fieldsHandler->getAll($criteria);
+unset($criteria);
+
echo $adminMenu->addNavigation('building.php');
switch ($op) {
- case "creation":
- $mods =& $modulesHandler->get($_REQUEST['module_name']);
- $mods_name = $mods->getVar('module_name');
- //$mods_fname = $mods->getVar('module_fname');
- $mods_desc = $mods->getVar('module_description');
- $mods_a_w_name = $mods->getVar('module_author_website_name');
- $mods_a_w_url = $mods->getVar('module_author_website_url');
- $mods_image = $mods->getVar('module_image');
- $mods_display_admin = $mods->getVar('module_display_admin');
- $mods_display_user = $mods->getVar('module_display_user');
- $mods_display_submenu = $mods->getVar('module_display_submenu');
+ case 'build':
+
//Remove the new module directory if it exists
- TDMCreate_clearDir($modPath.'/modules/'.$mods_name);
-
- //Nom des tables et combien de tables
- $criteria = new CriteriaCompo();
- $criteria->add(new Criteria('table_module', $_REQUEST['module_name']));
- $nb_tables = $tablesHandler->getCount($criteria);
- $tbls_arr = $tablesHandler->getall($criteria);
+ TDMCreate_clearDir($modPath.'/repository/'.$mod_name);
//Debut
OpenTable();
@@ -53,152 +80,134 @@
/*Structure*/
/************************************************/
//Creation de l'architecture
- const_architecture($mods_name, $mods_image);
+ const_architecture($mod_name, $mod_image);
//Creation du changelog.txt
- const_changelog($mods, $mods_name);
+ const_changelog($modules, $mod_name);
// Files cicles
- foreach (array_keys($tbls_arr) as $i)
+ foreach (array_keys($tables_arr) as $i)
{
//Variables
- $tbls_id = $tbls_arr[$i]->getVar('table_id');
- $tbls_name = $tbls_arr[$i]->getVar('table_name');
- $tbls_module = $tbls_arr[$i]->getVar('table_module');
- $tbls_field = $tbls_arr[$i]->getVar('table_field');
- $tbls_img = $tbls_arr[$i]->getVar('table_img');
- $tbls_nbfields = $tbls_arr[$i]->getVar('table_nbfields');
- $tbls_blocks = $tbls_arr[$i]->getVar('table_blocks');
- $tbls_display_admin = $tbls_arr[$i]->getVar('table_display_admin');
- $tbls_display_user = $tbls_arr[$i]->getVar('table_display_user');
- $tbls_online = $tbls_arr[$i]->getVar('table_online');
- $tbls_submenu = $tbls_arr[$i]->getVar('table_submenu');
- $tbls_search = $tbls_arr[$i]->getVar('table_search');
- $tbls_coms = $tbls_arr[$i]->getVar('table_coms');
+ $table_id = $tables_arr[$i]->getVar('table_id');
+ $table_mid = $tables_arr[$i]->getVar('table_mid');
+ $table_name = $tables_arr[$i]->getVar('table_name');
+ $table_fieldname = $tables_arr[$i]->getVar('table_fieldname');
+ $table_image = $tables_arr[$i]->getVar('table_image');
+ $table_nbfields = $tables_arr[$i]->getVar('table_nbfields');
+ $table_blocks = $tables_arr[$i]->getVar('table_blocks');
+ $table_admin = $tables_arr[$i]->getVar('table_admin');
+ $table_user = $tables_arr[$i]->getVar('table_user');
+ $table_online = $tables_arr[$i]->getVar('table_online');
+ $table_submenu = $tables_arr[$i]->getVar('table_submenu');
+ $table_search = $tables_arr[$i]->getVar('table_search');
+ $table_coms = $tables_arr[$i]->getVar('table_comments');
//Creation of the file mysql.sql
- const_sql($mods_name, $tbls_module_table, $tbls_name, $tbls_champs);
- $result = $xoopsDB->queryF("SELECT COUNT(*) FROM " . $xoopsDB->prefix("tdmcreate_tables")." WHERE table_name = ".$mods_name."'_topic'");
- list( $topic ) = $xoopsDB->fetchRow($result);
-
- //Fabrication
+ const_sql($mod_name, $table_name, $table_fieldname, $fields_arr);
//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);
+ $table_img1 = $modPath.'/images/uploads/tables/'.$table_image;
+ if (file_exists($table_img1)) {
+ copy($table_img1, $modPath.'/modules/'.$mod_name.'/images/icons/32/'.$table_image);
}
//Creation des classes
- const_class($mods, $mods_name, $tbls_module_table, $tbls_name, $tbls_champs, $tbls_parametres);
+ const_class($modules, $mod_name, $table_name, $table_fieldname, $fields_arr);
//Creation of pages admin
- if ( $mods_display_admin == 1 ) {
- const_admin_pages($mods, $mods_name, $tbls_id, $tbls_module_table, $tbls_name, $tbls_img, $tbls_champs, $tbls_parametres, $topic);
+ if ( $mod_admin == 1 ) {
+ const_admin_pages($modules, $mod_name, $table_id, $table_name, $table_fieldname, $table_image, $fields_arr, $topic);
}
//Creation of pages and templates user
- if ( $mods_display_user == 1 ) {
- const_user_pages($mods, $mods_name, $tbls_name, $tbls_champs, $tbls_parametres, $topic);
+ if ( $mod_user == 1 ) {
+ const_user_pages($modules, $mod_name, $table_fieldname, $fields_arr, $topic);
// Creation of templates pages
- const_templates_pages($mods, $mods_name, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres);
+ const_templates_pages($modules, $mod_name, $table_fieldname, $table_name, $fields_arr);
}
//Creation of search
- if ( $tbls_search == 1 ) {
- const_include_search($mods, $mods_name, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres, $tbls_img);
+ if ( $table_search == 1 ) {
+ const_include_search($modules, $mod_name, $table_fieldname, $table_name, $fields_arr, $table_img);
}
//Creation of the comments
- if ( $tbls_coms == 1 ) {
- const_user_comments($mods, $mods_name, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres);
+ if ( $table_coms == 1 ) {
+ const_user_comments($modules, $mod_name, $table_fieldname, $table_name, $fields_arr);
}
//Creation of the blocks
- if ( $tbls_blocks != 1 ) {
- const_blocks($mods, $mods_name, $tbls_module_table, $tbls_name, $tbls_champs, $tbls_parametres, $topic);
+ if ( $table_blocks != 1 ) {
+ const_blocks($modules, $mod_name, $table_name, $table_fieldname, $fields_arr, $topic);
//Creation of template blocks
- const_blocks_templates($mods, $mods_name, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres);
+ const_blocks_templates($mod_name, $table_name, $table_fieldname, $fields_arr);
}
}
- //Variables
- $tbls_id = $tablesHandler->getVar('table_id');
- $tbls_name = $tablesHandler->getVar('table_name');
- $tbls_module_table = $tablesHandler->getVar('table_module_table');
- $tbls_img = $tablesHandler->getVar('table_img');
- $tbls_champs = $tablesHandler->getVar('table_champ');
- $tbls_parametres = $tablesHandler->getVar('table_parametres');
- $tbls_blocks = $tablesHandler->getVar('table_blocks');
- $tbls_display_admin = $tablesHandler->getVar('table_display_admin');
- $tbls_display_user = $tablesHandler->getVar('table_display_user');
- $tbls_online = $tablesHandler->getVar('table_online');
- $tbls_submenu = $tablesHandler->getVar('table_submenu');
- $tbls_search = $tablesHandler->getVar('table_search');
- $tbls_coms = $tablesHandler->getVar('table_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, $tbls_submenu, $tbls_search, $tbls_coms);
- if($mods_display_user == 1){
+ const_xoopsversion($modules, $mod_name, $tables_arr, $table_name, $table_blocks, $table_submenu, $table_search, $table_comments);
+ if($mod_user == 1){
// Creation of template index
- const_templates_index($mods, $mods_name, $tbls_name, $tbls_module_table, $tbls_champs, $tbls_parametres);
+ const_templates_index($modules, $mod_name, $table_fieldname, $table_name, $fields_arr);
// Creation of template header
- const_templates_header($mods, $mods_name, $mods_desc);
+ const_templates_header($modules, $mod_name, $mod_desc);
// Creation of template footer
- const_templates_footer($mods, $mods_name, $tbls_module_table);
+ const_templates_footer($modules, $mod_name, $table_name);
}
//Creation of the file permissions
$topic = 0;
- if ( $topic == 1 || $tbls_module_table != null) { //
- const_admin_permissions($mods, $mods_name, $tbls_name, $topic);
+ if ( $topic == 1 || $table_name != null) {
+ const_admin_permissions($modules, $mod_name, $table_fieldname, $topic);
}
//Include
- const_js_jquery($mods, $mods_name);
+ const_js_jquery($modules, $mod_name);
//Configs
- const_include_configs($mods, $mods_name, $mods_a_w_name, $mods_a_w_url); // a_w = author_website
+ const_include_common($modules, $mod_name, $mod_a_w_name, $mod_a_w_url); // a_w = author_website
//Style
- //const_css_admin($mods, $mods_name);
- const_css_style($mods, $mods_name);
+ //const_css_admin($modules, $mod_name);
+ const_css_style($modules, $mod_name);
//Functions
- const_include_functions($mods, $mods_name);
+ const_include_functions($modules, $mod_name);
//Creation of the install file for uploads
- const_include_install($mods, $mods_name, $tbls_arr);
+ const_include_install($modules, $mod_name, $tables_arr);
//Language
///////////////////////////////////////////////////////////////////////
//Creation of language main.php
- const_main_language($mods, $mods_name, $mods_desc, $tbls_arr);
+ const_language_main($modules, $mod_name, $mod_desc, $tables_arr);
//Creation of language modinfo.php
- const_modinfo_language($mods, $mods_name, $mods_desc, $tbls_arr, $topic);
+ const_language_modinfo($modules, $mod_name, $mod_desc, $tables_arr, $topic);
//Creation of language admin.php
- const_admin_language($mods, $mods_name, $tbls_arr, $topic);
+ const_language_admin($modules, $mod_name, $tables_arr, $topic);
//Creation of language blocks.php
- const_blocks_language($mods, $mods_name, $tbls_arr);
+ const_language_blocks($modules, $mod_name, $tables_arr);
//Creation of language help.php
- const_help_language($mods, $mods_name, $mods_desc);
+ const_language_help($modules, $mod_name, $mod_desc);
//Creation of language
- //const_language($mods, $mods_name);
+ //const_language($modules, $mod_name);
///////////////////////////////////////////////////////////////////////
/************************************************/
/*Admin*/
/************************************************/
- if ( $mods_display_admin == 1 ) {
+ if ( $mod_admin == 1 ) {
//Creation of admin file admin_header.php
- const_admin_header($mods, $mods_name, $tbls_arr);
+ const_admin_header($modules, $mod_name, $tables_arr);
//Creation of admin file admin_footer.php
- const_admin_footer($mods, $mods_name, $tbls_arr);
+ const_admin_footer($modules, $mod_name, $tables_arr);
//Creation of admin file menu.php
- const_admin_menu($mods, $mods_name, $tbls_arr, $topic);
+ const_admin_menu($modules, $mod_name, $tables_arr, $topic);
//Creation of admin file about.php
- const_admin_about($mods, $mods_name);
+ const_admin_about($modules, $mod_name);
//Creation of admin file index.php
- const_admin_index($mods, $mods_name, $tbls_arr);
+ const_admin_index($modules, $mod_name, $tables_arr);
}
/************************************************/
/*User*/
/************************************************/
- if ( $mods_display_user == 1 ) {
- const_user_header($mods, $mods_name, $tbls_arr, $tbls_name, $tbls_module_table);
- const_user_index($mods, $mods_name);
+ if ( $mod_user == 1 ) {
+ const_user_header($modules, $mod_name, $tables_arr, $table_fieldname, $table_name);
+ const_user_index($modules, $mod_name);
}
CloseTable();
break;
- case "default":
+ case 'default':
default:
$mod_arr = $modulesHandler->getall();
$numrowsmod = count( $mod_arr );
@@ -210,15 +219,15 @@
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, 'module_name', 'module_name');
- $mods_select->addOptionArray($modulesHandler->getList());
- $form->addElement($mods_select, true);
+ $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', 'creation'));
+ $form->addElement(new XoopsFormHidden('op', 'build'));
$form->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit'));
$form->display();
break;
}
-include "admin_footer.php";
\ No newline at end of file
+include 'admin_footer.php';
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/fields.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/fields.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/fields.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -20,7 +20,7 @@
*/
include "admin_header.php";
// Recovered the value of the argument op in the URL $
-$op = TDMCreate_CleanVars($_REQUEST, 'op', 'default', 'string');
+$op = TDMCreate_CleanVars($_REQUEST, 'op', 'list', 'string');
$field_id = TDMCreate_CleanVars($_REQUEST, 'field_id', 0, 'int');
// Get table Variables
$table_id = TDMCreate_CleanVars($_REQUEST, 'field_tid', 0, 'int');
@@ -29,23 +29,23 @@
$table_fieldname = TDMCreate_CleanVars($_REQUEST, 'field_name', '', 'string');
switch ($op)
{
- case "default":
+ case 'list':
default:
echo $adminMenu->addNavigation('fields.php');
- $adminMenu->addItemButton(_AM_TDMCREATE_NEWTABLE, 'tables.php?op=add', 'add');
+ $adminMenu->addItemButton(_AM_TDMCREATE_NEWTABLE, 'tables.php?op=new', 'add');
$adminMenu->addItemButton(_AM_TDMCREATE_TABLESLIST, 'tables.php', 'list');
echo $adminMenu->renderButton();
echo '<div class="center errorMsg">Add, Edit or List View in Tables</div><br />';
break;
- case "add":
+ case 'new':
echo $adminMenu->addNavigation('fields.php');
$obj =& $fieldsHandler->create();
$form = $obj->getForm($table_id, $table_mid, $table_nbfields, $table_fieldname);
$form->display();
break;
- case "save":
+ case 'save':
if ( !$GLOBALS['xoopsSecurity']->check() ) {
redirect_header('fields.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
}
@@ -75,12 +75,11 @@
$form->display();
break;
- case "edit":
+ case 'edit':
echo $adminMenu->addNavigation('fields.php');
$obj = $fieldsHandler->get($field_id);
$form = $obj->getForm($table_id, $table_mid, $table_nbfields, $table_fieldname);
$form->display();
break;
}
-include "admin_footer.php";
-?>
\ No newline at end of file
+include 'admin_footer.php';
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/includes.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/includes.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/includes.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -24,19 +24,6 @@
$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_configs.php';
-include_once $cPath.'/const_include_functions.php';
-include_once $cPath.'/const_include_install.php';
-include_once $cPath.'/const_css_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_js_jquery.php';
include_once $cPath.'/const_admin_header.php';
include_once $cPath.'/const_admin_footer.php';
include_once $cPath.'/const_admin_menu.php';
@@ -44,18 +31,31 @@
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_help_language.php';
-include_once $cPath.'/const_blocks_language.php';
-include_once $cPath.'/const_main_language.php';
-include_once $cPath.'/const_user_comments.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_architecture.php';
+include_once $cPath.'/const_blocks.php';
+include_once $cPath.'/const_changelog.php';
+include_once $cPath.'/const_class.php';
+include_once $cPath.'/const_css_style.php';
+include_once $cPath.'/const_include_search.php';
+include_once $cPath.'/const_include_common.php';
+include_once $cPath.'/const_include_functions.php';
+include_once $cPath.'/const_include_install.php';
+include_once $cPath.'/const_js_jquery.php';
+include_once $cPath.'/const_language_admin.php';
+include_once $cPath.'/const_language_modinfo.php';
+include_once $cPath.'/const_language_help.php';
+include_once $cPath.'/const_language_blocks.php';
+include_once $cPath.'/const_language_main.php';
+include_once $cPath.'/const_sql.php';
include_once $cPath.'/const_templates_header.php';
+include_once $cPath.'/const_templates_blocks.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
+include_once $cPath.'/const_templates_admin_help.php';
+include_once $cPath.'/const_user_comments.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_xoopsversion.php';
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/modules.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/modules.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/modules.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -18,12 +18,12 @@
* @author Txmod Xoops <su...@tx...>
* @version $Id: 1.59 modules.php 11297 2013-03-24 10:58:10Z timgno $
*/
-include "admin_header.php";
+include 'admin_header.php';
// Recovered the value of the argument op in the URL $
$op = TDMCreate_CleanVars($_REQUEST, 'op', 'list', 'string');
switch ($op)
{
- case "list":
+ case 'list':
default:
echo $adminMenu->addNavigation('modules.php');
$adminMenu->addItemButton(_AM_TDMCREATE_NEWMODULE, 'modules.php?op=new', 'add');
@@ -128,7 +128,7 @@
}
break;
- case "new":
+ case 'new':
echo $adminMenu->addNavigation('modules.php');
$adminMenu->addItemButton(_AM_TDMCREATE_MODULESLIST, 'modules.php', 'list');
echo $adminMenu->renderButton();
@@ -138,7 +138,7 @@
$form->display();
break;
- case "save":
+ case 'save':
if ( !$GLOBALS['xoopsSecurity']->check() ) {
redirect_header('modules.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
}
@@ -191,7 +191,7 @@
'mod_notifications' => (($_REQUEST['mod_notifications'] == 1) ? '1' : '0')));
if ($modulesHandler->insert($obj)) {
- redirect_header('modules.php?op=list', 2, _AM_TDMCREATE_FORMOK);
+ redirect_header('modules.php', 2, _AM_TDMCREATE_FORMOK);
}
echo $obj->getHtmlErrors();
@@ -199,7 +199,7 @@
$form->display();
break;
- case "edit":
+ case 'edit':
echo $adminMenu->addNavigation('modules.php');
$adminMenu->addItemButton(_AM_TDMCREATE_NEWMODULE, 'modules.php?op=new', 'add');
$adminMenu->addItemButton(_AM_TDMCREATE_MODULESLIST, 'modules.php', 'list');
@@ -209,7 +209,7 @@
$form->display();
break;
- case "delete":
+ case 'delete':
$obj =& $modulesHandler->get($_REQUEST['mod_id']);
if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) {
if ( !$GLOBALS['xoopsSecurity']->check() ) {
@@ -225,4 +225,4 @@
}
break;
}
-include "admin_footer.php";
\ No newline at end of file
+include 'admin_footer.php';
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/tables.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/tables.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/admin/tables.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -18,12 +18,12 @@
* @author Txmod Xoops <su...@tx...>
* @version $Id: 1.59 tables.php 11297 2013-03-24 10:58:10Z timgno $
*/
-include "admin_header.php";
+include 'admin_header.php';
// Recovered the value of the argument op in the URL $
$op = TDMCreate_CleanVars($_REQUEST, 'op', 'list', 'string');
switch ($op)
{
- case "list":
+ case 'list':
default:
echo $adminMenu->addNavigation('tables.php');
$adminMenu->addItemButton(_AM_TDMCREATE_NEWTABLE, 'tables.php?op=new', 'add');
@@ -35,7 +35,7 @@
$numrows_modules = $modulesHandler->getCount();
// Redirect if there aren't modules
if ( $numrows_modules == 0 ) {
- redirect_header('modules.php?op=add_module', 2, _AM_TDMCREATE_NOTMODULES );
+ redirect_header('modules.php?op=new', 2, _AM_TDMCREATE_NOTMODULES );
}
if (isset($_REQUEST['limit'])) {
$criteria->setLimit($_REQUEST['limit']);
@@ -184,7 +184,7 @@
}
break;
- case "new":
+ case 'new':
echo $adminMenu->addNavigation('tables.php');
$adminMenu->addItemButton(_AM_TDMCREATE_TABLESLIST, 'tables.php', 'list');
echo $adminMenu->renderButton();
@@ -193,7 +193,7 @@
$form->display();
break;
- case "save":
+ case 'save':
if ( !$GLOBALS['xoopsSecurity']->check() ) {
redirect_header('tables.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
}
@@ -244,7 +244,7 @@
if( $tablesHandler->insert($obj) ) {
if( $obj->isNew() ) {
$tid = $GLOBALS['xoopsDB']->getInsertId();
- redirect_header('fields.php?op=add&field_tid='.$tid.'&field_mid='.$table_mid.'&field_numb='.$table_nbfields.'&field_name='.$table_fieldname, 3, _AM_TDMCREATE_FORMOK);
+ redirect_header('fields.php?op=new&field_tid='.$tid.'&field_mid='.$table_mid.'&field_numb='.$table_nbfields.'&field_name='.$table_fieldname, 3, _AM_TDMCREATE_FORMOK);
} else {
redirect_header('tables.php', 3, _AM_TDMCREATE_FORMOK);
}
@@ -255,7 +255,7 @@
$form->display();
break;
- case "edit":
+ case 'edit':
echo $adminMenu->addNavigation('tables.php');
$adminMenu->addItemButton(_AM_TDMCREATE_NEWTABLE, 'tables.php?op=new', 'add');
$adminMenu->addItemButton(_AM_TDMCREATE_TABLESLIST, 'tables.php', 'list');
@@ -265,7 +265,7 @@
$form->display();
break;
- case "delete":
+ case 'delete':
$obj =& $tablesHandler->get($_REQUEST['table_id']);
if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) {
if ( !$GLOBALS['xoopsSecurity']->check() ) {
@@ -281,4 +281,4 @@
}
break;
}
-include "admin_footer.php";
\ No newline at end of file
+include 'admin_footer.php';
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_architecture.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_architecture.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_architecture.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -1,31 +1,22 @@
<?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.
+ */
/**
- * ****************************************************************************
- * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
- * ****************************************************************************
- * TDMCREATE - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2012
- * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * Created by TDMCreate version 1.37
+ * 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. See the
- * GNU General Public License for more details.
- * ---------------------------------------------------------------------------
- * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * @license GNU GPL see License
- * @since 2.5.0
- * @package TDMCreate
- * @author TXMod Xoops (Timgno) ( su...@tx... )
- *
- * Version : 1.39 Thu 2012/05/31 14:10:39 : 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.5
+ * @author Txmod Xoops <su...@tx...>
+ * @version $Id: 1.59 tdmcreate_architecture.php 11297 2013-03-24 10:58:10Z timgno $
*/
if (!defined('XOOPS_ROOT_PATH')) {
die('XOOPS root path not defined');
@@ -130,12 +121,7 @@
$this->folder_name = $folder_name;
$this->copyFile = $copyFile;
$fname = $this->path . '/' .$this->module_name. '/' .$this->folder_name. '/'. $this->file_name;
- if(is_readable($fname)) {
- copy($this->copyFile, $fname);
- } else {
- chmod($fname, 0777);
- copy($this->copieFile, $fname);
- }
+ copy($this->copyFile, $fname);
}
}
?>
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldattributes.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldattributes.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldattributes.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -1,31 +1,22 @@
<?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.
+ */
/**
- * ****************************************************************************
- * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
- * ****************************************************************************
- * TDMCREATE - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2012
- * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * Created by TDMCreate version 1.37
+ * 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. See the
- * GNU General Public License for more details.
- * ---------------------------------------------------------------------------
- * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * @license GNU GPL see License
- * @since 2.5.0
- * @package TDMCreate
- * @author TXMod Xoops (Timgno) ( su...@tx... )
- *
- * Version : 1.39 Thu 2012/05/31 14:10:39 : 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.5
+ * @author Txmod Xoops <su...@tx...>
+ * @version $Id: 1.59 tdmcreate_fieldattributes.php 11297 2013-03-24 10:58:10Z timgno $
*/
if (!defined('XOOPS_ROOT_PATH')) { die("XOOPS root path not defined"); }
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldelements.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldelements.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldelements.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -1,31 +1,22 @@
<?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.
+ */
/**
- * ****************************************************************************
- * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
- * ****************************************************************************
- * TDMCREATE - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2012
- * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * Created by TDMCreate version 1.37
+ * 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. See the
- * GNU General Public License for more details.
- * ---------------------------------------------------------------------------
- * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * @license GNU GPL see License
- * @since 2.5.0
- * @package TDMCreate
- * @author TXMod Xoops (Timgno) ( su...@tx... )
- *
- * Version : 1.39 Thu 2012/05/31 14:10:39 : 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.5
+ * @author Txmod Xoops <su...@tx...>
+ * @version $Id: 1.59 tdmcreate_fieldelements.php 11297 2013-03-24 10:58:10Z timgno $
*/
if (!defined('XOOPS_ROOT_PATH')) { die("XOOPS root path not defined"); }
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldkey.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldkey.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldkey.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -1,31 +1,22 @@
<?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.
+ */
/**
- * ****************************************************************************
- * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
- * ****************************************************************************
- * TDMCREATE - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2012
- * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * Created by TDMCreate version 1.37
+ * 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. See the
- * GNU General Public License for more details.
- * ---------------------------------------------------------------------------
- * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * @license GNU GPL see License
- * @since 2.5.0
- * @package TDMCreate
- * @author TXMod Xoops (Timgno) ( su...@tx... )
- *
- * Version : 1.39 Thu 2012/05/31 14:10:39 : 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.5
+ * @author Txmod Xoops <su...@tx...>
+ * @version $Id: 1.59 tdmcreate_fieldkey.php 11297 2013-03-24 10:58:10Z timgno $
*/
if (!defined('XOOPS_ROOT_PATH')) { die("XOOPS root path not defined"); }
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldnull.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldnull.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldnull.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -1,31 +1,22 @@
<?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.
+ */
/**
- * ****************************************************************************
- * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
- * ****************************************************************************
- * TDMCREATE - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2012
- * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * Created by TDMCreate version 1.37
+ * 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. See the
- * GNU General Public License for more details.
- * ---------------------------------------------------------------------------
- * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * @license GNU GPL see License
- * @since 2.5.0
- * @package TDMCreate
- * @author TXMod Xoops (Timgno) ( su...@tx... )
- *
- * Version : 1.39 Thu 2012/05/31 14:10:39 : 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.5
+ * @author Txmod Xoops <su...@tx...>
+ * @version $Id: 1.59 tdmcreate_fieldnull.php 11297 2013-03-24 10:58:10Z timgno $
*/
if (!defined('XOOPS_ROOT_PATH')) { die("XOOPS root path not defined"); }
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fields.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fields.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fields.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -1,31 +1,22 @@
<?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.
+ */
/**
- * ****************************************************************************
- * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
- * ****************************************************************************
- * TDMCREATE - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2012
- * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * Created by TDMCreate version 1.37
+ * 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. See the
- * GNU General Public License for more details.
- * ---------------------------------------------------------------------------
- * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * @license GNU GPL see License
- * @since 2.5.0
- * @package TDMCreate
- * @author TXMod Xoops (Timgno) ( su...@tx... )
- *
- * Version : 1.39 Thu 2012/05/31 14:10:39 : 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.5
+ * @author Txmod Xoops <su...@tx...>
+ * @version $Id: 1.59 tdmcreate_fields.php 11297 2013-03-24 10:58:10Z timgno $
*/
if (!defined('XOOPS_ROOT_PATH')) { die("XOOPS root path not defined"); }
@@ -78,10 +69,11 @@
unset($criteria);
include_once(XOOPS_ROOT_PATH.'/class/xoopsformloader.php');
- include_once(XOOPS_ROOT_PATH.'/modules/TDMCreate/class/tdmcreate_themeform.php');
+ include_once(XOOPS_ROOT_PATH.'/modules/TDMCreate/class/tdmcreate_themeform.php');
+ $headers = array(_AM_TDMCREATE_FIELD_NUMBER, _AM_TDMCREATE_FIELD_NAME, _AM_TDMCREATE_FIELD_TYPE, _AM_TDMCREATE_FIELD_VALUE, _AM_TDMCREATE_FIELD_ATTRIBUTE, _AM_TDMCREATE_FIELD_NULL, _AM_TDMCREATE_FIELD_DEFAULT, _AM_TDMCREATE_FIELD_KEY, _AM_TDMCREATE_FIELD_OTHERS);
// $act = 'save&field_tid='.$tid.'&field_numb='.$tfn.'&field_name='.$tfname; .'?op='.$act
- $form = new TDMCreate_XoopsThemeForm($title, 'form', $action, 'post', true);
+ $form = new TDMCreate_XoopsThemeForm($title, $headers, 'form', $action, 'post', true);
$form->setExtra('enctype="multipart/form-data"');
if (!$this->isNew()) {
@@ -104,11 +96,7 @@
// New Object HtmlTable
$tableForm = new TDMCreate_HtmlTable(null, 'display outer');
- // header row
- $tableForm->addRow('center bgblue');
- $cells = array(_AM_TDMCREATE_FIELD_NUMBER, _AM_TDMCREATE_FIELD_NAME, _AM_TDMCREATE_FIELD_TYPE, _AM_TDMCREATE_FIELD_VALUE, _AM_TDMCREATE_FIELD_ATTRIBUTE, _AM_TDMCREATE_FIELD_NULL, _AM_TDMCREATE_FIELD_DEFAULT, _AM_TDMCREATE_FIELD_KEY, _AM_TDMCREATE_FIELD_OTHERS);
- $tableForm->addCells($cells, 'first', 'header');
-
+
for($i = 1; $i <= $nbfields; $i++)//3
{
$field_value = ( $i == 1 ) ? '8' : $this->getVar('field_value');
@@ -225,5 +213,4 @@
{
parent::__construct($db, 'tdmcreate_fields', 'tdmcreate_fields', 'field_id', 'field_tid');
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldtype.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldtype.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_fieldtype.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -1,31 +1,22 @@
<?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.
+ */
/**
- * ****************************************************************************
- * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org )
- * ****************************************************************************
- * TDMCREATE - MODULE FOR XOOPS
- * Copyright (c) 2007 - 2012
- * TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * Created by TDMCreate version 1.37
+ * 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. See the
- * GNU General Public License for more details.
- * ---------------------------------------------------------------------------
- * @copyright TXMod Xoops (Timgno) ( http://www.txmodxoops.org )
- * @license GNU GPL see License
- * @since 2.5.0
- * @package TDMCreate
- * @author TXMod Xoops (Timgno) ( su...@tx... )
- *
- * Version : 1.39 Thu 2012/05/31 14:10:39 : 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.5
+ * @author Txmod Xoops <su...@tx...>
+ * @version $Id: 1.59 tdmcreate_fieldtype.php 11297 2013-03-24 10:58:10Z timgno $
*/
if (!defined('XOOPS_ROOT_PATH')) { die("XOOPS root path not defined"); }
@@ -35,8 +26,8 @@
function __construct()
{
$this->XoopsObject();
- $this->initVar("fieldtype_value",XOBJ_DTYPE_TXTBOX, null, false, 255);
- $this->initVar("fieldtype_name",XOBJ_DTYPE_TXTBOX, null, false, 255);
+ $this->initVar('fieldtype_value', XOBJ_DTYPE_TXTBOX, null, false, 100);
+ $this->initVar('fieldtype_name', XOBJ_DTYPE_TXTBOX, null, false, 100);
}
//Constructor
@@ -49,7 +40,6 @@
{
function __construct(&$db)
{
- parent::__construct($db, "tdmcreate_fieldtype", 'tdmcreate_fieldtype', 'fieldtype_value', 'fieldtype_name');
+ parent::__construct($db, 'tdmcreate_fieldtype', 'tdmcreate_fieldtype', 'fieldtype_value', 'fieldtype_name');
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_themeform.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_themeform.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/class/tdmcreate_themeform.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -45,7 +45,7 @@
* @param string $method "method" attribute for the <form> tag
* @param bool $addtoken whether to add a security token to the form
*/
- function TDMCreate_XoopsThemeForm($title, $name, $action, $method = 'post', $addtoken = false, $tab_header = null, $summary = '')
+ function TDMCreate_XoopsThemeForm($title, $tab_header = null, $name, $action, $method = 'post', $addtoken = false, $summary = '')
{
parent::__construct($title, $name, $action, $method = 'post', $addtoken = false, $summary = '');
$this->addHeader($tab_header);
@@ -118,7 +118,7 @@
$ret .= $tableForm->addRow() . NWLINE;
$ret .= $tableForm->addCell($this->getTitle(), 'first', 'header', 'colspan="9"');
$ret .= $tableForm->addRow() . NWLINE;
- $ret .= $tableForm->addCell($this->getHeader(), 'first', 'header');
+ $ret .= $tableForm->addCells($this->getHeader(), 'first', 'header');
$hidden = '';
$class = ($class == 'even') ? 'odd' : 'even';
@@ -159,5 +159,4 @@
$ret .= $this->renderValidationJS(true);
return $ret;
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_about.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_about.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_about.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -19,17 +19,16 @@
* @version $Id: 1.59 const_admin_about.php 11297 2013-03-24 10:58:10Z timgno $
*/
include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/include/functions_const.php';
-function const_admin_about($modules, $modules_name)
+function const_admin_about($mod, $mod_name)
{
$file = 'about.php';
- $path_file = TDM_CREATE_MURL."/".$modules_name."/admin/".$file;
- $text = '<?php'.const_header($modules, $file).'
+ $path_file = TDM_CREATE_MURL . '/' . $mod_name . '/admin/' . $file;
+ $text = '<?php'.const_header($mod, $file).'
include "admin_header.php";
echo $adminMenu->addNavigation("about.php");
-echo $adminMenu->renderabout(\'6KJ7RW5DR3VTJ\', false);
+echo $adminMenu->renderabout(\'YDRUY5QZQHAHS\', false);
include "admin_footer.php";';
createFile($path_file, $text,
_AM_TDMCREATE_CONST_OK_ADMINS,
_AM_TDMCREATE_CONST_NOTOK_ADMINS, $file);
-
}
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_footer.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_footer.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_footer.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -18,12 +18,10 @@
* @author Txmod Xoops <su...@tx...>
* @version $Id: 1.59 const_admin_footer.php 11297 2013-03-24 10:58:10Z timgno $
*/
- $tdmc_path = XOOPS_ROOT_PATH.'/modules/TDMCreate';
-include_once $tdmc_path.'/include/functions_const.php';
-include_once $tdmc_path.'/class/tdmcreate_structures.php';
+include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/include/functions_const.php';
function const_admin_footer($modules, $modules_name, $tables_arr)
{
- $file = "admin_footer.php";
+ $file = 'admin_footer.php';
$path_file = TDM_CREATE_MURL."/".$modules_name."/admin/".$file;
$text = '<?php'.const_header($modules, $file).'
echo "<div class=\'center\'><a href=\'http://www.xoops.org\' target=\'_blank\'>
@@ -32,10 +30,13 @@
echo "<div class=\'center pad5\'>
<span class=\'bold\'>".$GLOBALS[\'xoopsModule\']->getVar(\'name\')."</span>
<span class=\'small italic\'> "._AM_TDMCREATE_MAINTAINEDBY."
- <a href=\''.$modules->getVar("modules_forum_site_url").'\' title=\'Visit '.$modules->getVar("modules_forum_site_name").'\' class=\'tooltip\' rel=\'external\'>'.$modules->getVar("modules_forum_site_name").'</a></span>
+ <a href=\''.$modules->getVar("mod_support_url").'\' title=\'Visit '.$modules->getVar("mod_support_name").'\' class=\'tooltip\' rel=\'external\'>'.$modules->getVar("mod_support_name").'</a></span>
</div>";
xoops_cp_footer();
';
-$cf = new TDMCreateStructureFile($path_file);
+//$cf = new TDMCreateStructureFile($path_file);
//$cf->createFile($text, _AM_TDMCREATE_CONST_OK_ADMINS, _AM_TDMCREATE_CONST_NOTOK_ADMINS, $file);
+createFile($path_file, $text,
+ _AM_TDMCREATE_CONST_OK_ADMINS,
+ _AM_TDMCREATE_CONST_NOTOK_ADMINS, $file);
}
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_header.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_header.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_header.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -19,10 +19,10 @@
* @version $Id: 1.59 const_admin_header.php 11297 2013-03-24 10:58:10Z timgno $
*/
include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/include/functions_const.php';
-function const_admin_header($modules, $modules_name, $tables_arr)
+function const_admin_header($modules, $mod_name, $tables_arr)
{
$file = 'admin_header.php';
- $path_file = TDM_CREATE_MURL."/".$modules_name."/admin/".$file;
+ $path_file = TDM_CREATE_MURL."/".$mod_name."/admin/".$file;
$text = '<?php'.const_header($modules, $file).'
include_once XOOPS_ROOT_PATH . \'/include/cp_header.php\';
include_once \'../include/config.php\';
@@ -39,7 +39,7 @@
foreach (array_keys($tables_arr) as $i)
{
$t_name = $tables_arr[$i]->getVar('tables_name');
-$text .= '$'.$t_name.'Handler=& xoops_getModuleHandler(\''.$modules_name.'\'_\''.$t_name.', $thisDirname);
+$text .= '$'.$t_name.'Handler=& xoops_getModuleHandler(\''.$mod_name.'\'_\''.$t_name.', $thisDirname);
';
}
$text .= '
Modified: XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_help.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_help.php 2013-03-24 11:59:23 UTC (rev 11298)
+++ XoopsModules/TDMCreate/branches/timgno/1.59/TDMCreate/const/const_admin_help.php 2013-03-24 19:34:43 UTC (rev 11299)
@@ -19,11 +19,11 @@
* @version $Id: 1.59 const_admin_help.php 11297 2013-03-24 10:58:10Z timgno $
*/
include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/include/functions_const.php';
-function const_admin_help($modules, $modules_name, $menu)
+function const_admin_help($modules, $mod_name, $menu)
{
- $language = '_AM_'.st...
[truncated message content] |