|
From: <txm...@us...> - 2014-07-07 09:01:35
|
Revision: 12680
http://sourceforge.net/p/xoops/svn/12680
Author: txmodxoops
Date: 2014-07-07 09:01:29 +0000 (Mon, 07 Jul 2014)
Log Message:
-----------
- Updated
- Clear unnecessary code
- Still work to do
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/building.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/header.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/assets/js/functions.js
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/docs/lang_diff.txt
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/docs/readme.txt
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/include/common.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/include/functions.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/include/update.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/building.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/building.php 2014-07-05 17:11:09 UTC (rev 12679)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/building.php 2014-07-07 09:01:29 UTC (rev 12680)
@@ -22,24 +22,24 @@
$op = XoopsRequest::getString('op', 'default');
$mid = XoopsRequest::getInt('mod_id');
$moduleObj = $tdmcreate->getHandler('modules')->get( $mid );
-//
+// Switch option
switch ($op) {
case 'build':
$template_main = 'tdmcreate_building.tpl';
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('building.php'));
// Get var module dirname
- $mod_dirname = $moduleObj->getVar('mod_dirname');
+ $moduleDirname = $moduleObj->getVar('mod_dirname');
// Directories for copy from to
- $from_dir = TDMC_UPLOAD_REPOSITORY_PATH.'/'.strtolower($mod_dirname);
- $to_dir = XOOPS_ROOT_PATH.'/modules/'.strtolower($mod_dirname);
- if(isset($mod_dirname)) {
+ $fromDir = TDMC_UPLOAD_REPOSITORY_PATH.'/'.strtolower($moduleDirname);
+ $toDir = XOOPS_ROOT_PATH.'/modules/'.strtolower($moduleDirname);
+ if(isset($moduleDirname)) {
// Clear this module if it's in repository
- if(is_dir($from_dir)) {
- TDMCreate_clearDir($from_dir);
+ if(is_dir($fromDir)) {
+ TDMCreate_clearDir($fromDir);
}
// Clear this module if it's in root/modules
- if(is_dir($to_dir)) {
- TDMCreate_clearDir($to_dir);
+ if(is_dir($toDir)) {
+ TDMCreate_clearDir($toDir);
}
}
// Structure
@@ -65,10 +65,10 @@
}
unset($build);
// Directory to saved all files
- $GLOBALS['xoopsTpl']->assign('building_directory', sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY, $mod_dirname));
+ $GLOBALS['xoopsTpl']->assign('building_directory', sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY, $moduleDirname));
// Copy this module in root modules
- if ( $moduleObj->getVar('mod_inroot_copy') == 1 ) {
- TDMCreate_copyr($from_dir, $to_dir);
+ if( $moduleObj->getVar('mod_inroot_copy') == 1 ) {
+ TDMCreate_copyr($fromDir, $toDir);
}
break;
@@ -77,17 +77,17 @@
$template_main = 'tdmcreate_building.tpl';
$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('building.php'));
// Redirect if there aren't modules
- $nb_modules = $tdmcreate->getHandler('modules')->getCount();
- if ( $nb_modules == 0 ) {
+ $nbModules = $tdmcreate->getHandler('modules')->getCount();
+ if( $nbModules == 0 ) {
redirect_header('modules.php?op=new', 2, _AM_TDMCREATE_NOTMODULES );
}
- unset($nb_modules);
+ unset($nbModules);
// Redirect if there aren't tables
- $nb_tables = $tdmcreate->getHandler('tables')->getCount();
- if ($nb_tables == 0) {
+ $nbTables = $tdmcreate->getHandler('tables')->getCount();
+ if($nbTables == 0) {
redirect_header('tables.php?op=new', 2, _AM_TDMCREATE_NOTTABLES );
}
- unset($nb_tables);
+ unset($nbTables);
include_once TDMC_PATH . '/class/building.php';
$handler = TDMCreateBuilding::getInstance();
$form = $handler->getForm();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/header.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/header.php 2014-07-05 17:11:09 UTC (rev 12679)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/header.php 2014-07-07 09:01:29 UTC (rev 12680)
@@ -20,7 +20,6 @@
*/
include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php';
include_once dirname(dirname(__FILE__)) . '/include/common.php';
-include_once dirname(dirname(__FILE__)) . '/include/functions.php';
//
$thisDirname = $GLOBALS['xoopsModule']->getVar('dirname');
// Link System Icons
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php 2014-07-05 17:11:09 UTC (rev 12679)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/tables.php 2014-07-07 09:01:29 UTC (rev 12680)
@@ -23,12 +23,12 @@
$op = XoopsRequest::getString('op', 'list');
//
$mod_id = XoopsRequest::getInt('mod_id');
+// Request vars
+$tableId = XoopsRequest::getInt('table_id');
+$tableMid = XoopsRequest::getInt('table_mid');
+$tableNumbFields = XoopsRequest::getInt('table_nbfields');
+$tableFieldname = XoopsRequest::getString('table_fieldname', '');
//
-$table_id = XoopsRequest::getInt('table_id');
-$table_mid = XoopsRequest::getInt('table_mid');
-$table_nbfields = XoopsRequest::getInt('table_nbfields');
-$table_fieldname = XoopsRequest::getString('table_fieldname', '');
-//
switch ($op)
{
case 'list':
@@ -54,21 +54,21 @@
$criteria = new CriteriaCompo();
$criteria->setSort('mod_id ASC, mod_name');
$criteria->setOrder('ASC');
- $nb_modules = $tdmcreate->getHandler('modules')->getCount($criteria);
+ $numbModules = $tdmcreate->getHandler('modules')->getCount($criteria);
// Redirect if there aren't modules
- if ( $nb_modules == 0 ) {
+ if ( $numbModules == 0 ) {
redirect_header('modules.php?op=new', 2, _AM_TDMCREATE_NOTMODULES );
}
$mods_arr = $tdmcreate->getHandler('modules')->getAll($criteria);
unset($criteria);
- $nb_tables = $tdmcreate->getHandler('tables')->getObjects(null);
+ $numbTables = $tdmcreate->getHandler('tables')->getObjects(null);
// Redirect if there aren't tables
- if ($nb_tables == 0) {
+ if ($numbTables == 0) {
redirect_header('tables.php?op=new', 2, _AM_TDMCREATE_NOTTABLES );
}
- unset($nb_tables);
+ unset($numbTables);
// Display modules list
- if ( $nb_modules > 0 )
+ if ( $numbModules > 0 )
{
foreach (array_keys($mods_arr) as $i)
{
@@ -86,13 +86,13 @@
$criteria->add(new Criteria('table_mid', $i));
$criteria->setSort('table_id ASC, table_name');
$criteria->setOrder('ASC');
- $nb_tables = $tdmcreate->getHandler('tables')->getCount($criteria);
+ $numbTables = $tdmcreate->getHandler('tables')->getCount($criteria);
$tables_arr = $tdmcreate->getHandler('tables')->getAll($criteria);
unset($criteria);
// Display tables list
$tables = array();
$lid = 1;
- if ( $nb_tables > 0 )
+ if ( $numbTables > 0 )
{
foreach (array_keys($tables_arr) as $t)
{
@@ -120,9 +120,9 @@
$GLOBALS['xoopsTpl']->append('modules_list', $mod);
unset($mod);
}
- if ( $nb_modules > $limit ) {
+ if ( $numbModules > $limit ) {
include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
- $pagenav = new XoopsPageNav($nb_modules, $limit, $start, 'start', 'op=list&limit=' . $limit);
+ $pagenav = new XoopsPageNav($numbModules, $limit, $start, 'start', 'op=list&limit=' . $limit);
$GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
}
} else {
@@ -147,30 +147,30 @@
redirect_header('tables.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
}
$tables =& $tdmcreate->getHandler('tables');
- if (!isset($table_id)) {
+ if (!isset($tableId)) {
// Checking if table name exist
$table_name_search = $tables->getObjects(null);
foreach (array_keys($table_name_search) as $t)
{
if( ($table_name_search[$t]->getVar('table_name') === $_POST['table_name']) &&
- ($table_name_search[$t]->getVar('table_mid') === $table_mid) &&
- ($table_name_search[$t]->getVar('table_id') === $table_id)) {
+ ($table_name_search[$t]->getVar('table_mid') === $tableMid) &&
+ ($table_name_search[$t]->getVar('table_id') === $tableId)) {
redirect_header('tables.php?op=new', 10, sprintf(_AM_TDMCREATE_ERROR_TABLE_NAME_EXIST, $_POST['table_name']));
exit();
}
}
} else {
- if (isset($table_id)) {
- $tablesObj =& $tables->get($table_id);
+ if (isset($tableId)) {
+ $tablesObj =& $tables->get($tableId);
} else {
$tablesObj =& $tables->create();
}
// Form save tables
- $tablesObj->setVars(array('table_mid' => $table_mid,
+ $tablesObj->setVars(array('table_mid' => $tableMid,
'table_name' => $_POST['table_name'],
'table_category' => (($_REQUEST['table_category'] == 1) ? '1' : '0'),
- 'table_nbfields' => $table_nbfields,
- 'table_fieldname' => $table_fieldname));
+ 'table_nbfields' => $tableNumbFields,
+ 'table_fieldname' => $tableFieldname));
//Form table_image
include_once XOOPS_ROOT_PATH.'/class/uploader.php';
$framePathIcon32 = XOOPS_ROOT_PATH . '/Frameworks/moduleclasses/icons/32';
@@ -200,14 +200,14 @@
//
if( $tables->insert($tablesObj) ) {
if( $tablesObj->isNew() ) {
- $table_iid = $GLOBALS['xoopsDB']->getInsertId();
- $table_action='&field_mid='.$table_mid.'&field_tid='.$table_iid.'&field_numb='.$table_nbfields.'&field_name='.$table_fieldname;
+ $tableIid = $GLOBALS['xoopsDB']->getInsertId();
+ $table_action='&field_mid='.$tableMid.'&field_tid='.$tableIid.'&field_numb='.$tableNumbFields.'&field_name='.$tableFieldname;
redirect_header('fields.php?op=new'.$table_action, 5, sprintf(_AM_TDMCREATE_TABLE_FORM_SAVED_OK, $_POST['table_name']));
} else {
// Get fields where table id
$fields =& $tdmcreate->getHandler('fields');
- $fieldsObj = $fields->get($table_id);
- $fieldsObj->setVar('field_numb', $table_nbfields);
+ $fieldsObj = $fields->get($tableId);
+ $fieldsObj->setVar('field_numb', $tableNumbFields);
$fields->insert($fieldsObj);
redirect_header('tables.php', 5, sprintf(_AM_TDMCREATE_TABLE_FORM_UPDATED_OK, $_POST['table_name']));
}
@@ -227,13 +227,13 @@
$adminMenu->addItemButton(_AM_TDMCREATE_TABLES_LIST, 'tables.php?op=list', 'list');
$GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
- $tablesObj = $tdmcreate->getHandler('tables')->get($table_id);
+ $tablesObj = $tdmcreate->getHandler('tables')->get($tableId);
$form = $tablesObj->getForm();
$GLOBALS['xoopsTpl']->assign('form', $form->render());
break;
case 'delete':
- $tablesObj =& $tdmcreate->getHandler('tables')->get($table_id);
+ $tablesObj =& $tdmcreate->getHandler('tables')->get($tableId);
if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) {
if ( !$GLOBALS['xoopsSecurity']->check() ) {
redirect_header('tables.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
@@ -244,38 +244,38 @@
echo $tablesObj->getHtmlErrors();
}
} else {
- xoops_confirm(array('ok' => 1, 'table_id' => $table_id, 'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_AM_TDMCREATE_FORMSUREDEL, $tablesObj->getVar('table_name')));
+ xoops_confirm(array('ok' => 1, 'table_id' => $tableId, 'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_AM_TDMCREATE_FORMSUREDEL, $tablesObj->getVar('table_name')));
}
break;
case 'display':
- $table_blocks = XoopsRequest::getInt('table_blocks');
- $table_admin = XoopsRequest::getInt('table_admin');
- $table_user = XoopsRequest::getInt('table_user');
- $table_submenu = XoopsRequest::getInt('table_submenu');
- $table_search = XoopsRequest::getInt('table_search');
- $table_comments = XoopsRequest::getInt('table_comments');
- $table_notifications = XoopsRequest::getInt('table_notifications');
- $table_permissions = XoopsRequest::getInt('table_permissions');
+ $tableBlocks = XoopsRequest::getInt('table_blocks');
+ $tableAdmin = XoopsRequest::getInt('table_admin');
+ $tableUser = XoopsRequest::getInt('table_user');
+ $tableSubmenu = XoopsRequest::getInt('table_submenu');
+ $tableSearch = XoopsRequest::getInt('table_search');
+ $tableComments = XoopsRequest::getInt('table_comments');
+ $tableNotifications = XoopsRequest::getInt('table_notifications');
+ $tablePermissions = XoopsRequest::getInt('table_permissions');
- if ( $table_id > 0 ) {
- $tablesObj =& $tdmcreate->getHandler('tables')->get($table_id);
- if(isset($table_blocks)) {
- $tablesObj->setVar('table_blocks', $table_blocks);
- } elseif(isset($table_adminm)) {
- $tablesObj->setVar('table_admin', $table_admin);
- } elseif(isset($table_user)) {
- $tablesObj->setVar('table_user', $table_user);
- } elseif(isset($table_submenu)) {
- $tablesObj->setVar('table_submenu', $table_submenu);
- } elseif(isset($table_search)) {
- $tablesObj->setVar('table_search', $table_search);
- } elseif(isset($table_comments)) {
- $tablesObj->setVar('table_comments', $table_comments);
- } elseif(isset($table_notifications)) {
- $tablesObj->setVar('table_notifications', $table_notifications);
- } elseif(isset($table_permissions)) {
- $tablesObj->setVar('table_permissions', $table_permissions);
+ if ( $tableId > 0 ) {
+ $tablesObj =& $tdmcreate->getHandler('tables')->get($tableId);
+ if(isset($tableBlocks)) {
+ $tablesObj->setVar('table_blocks', $tableBlocks);
+ } elseif(isset($tableAdminm)) {
+ $tablesObj->setVar('table_admin', $tableAdmin);
+ } elseif(isset($tableUser)) {
+ $tablesObj->setVar('table_user', $tableUser);
+ } elseif(isset($tableSubmenu)) {
+ $tablesObj->setVar('table_submenu', $tableSubmenu);
+ } elseif(isset($tableSearch)) {
+ $tablesObj->setVar('table_search', $tableSearch);
+ } elseif(isset($tableComments)) {
+ $tablesObj->setVar('table_comments', $tableComments);
+ } elseif(isset($tableNotifications)) {
+ $tablesObj->setVar('table_notifications', $tableNotifications);
+ } elseif(isset($tablePermissions)) {
+ $tablesObj->setVar('table_permissions', $tablePermissions);
}
if ($tdmcreate->getHandler('tables')->insert($tablesObj, true)) {
redirect_header('modules.php', 1, _AM_TDMCREATE_TOGGLE_SUCCESS);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/assets/js/functions.js
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/assets/js/functions.js 2014-07-05 17:11:09 UTC (rev 12679)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/assets/js/functions.js 2014-07-07 09:01:29 UTC (rev 12680)
@@ -1,31 +1,3 @@
-function addClick(id) {
- var xhr = getXMLHttpRequest(); // Pour récupérer un objet XMLHTTPRequest
- // -- bordel habituel (readyState == 4, etc, etc.)
- xhr.open('GET', 'click.php?id=' + id, true);
- xhr.send(null);
-}
-
-function getXMLHttpRequest() {
- var xhr = null;
-
- if (window.XMLHttpRequest || window.ActiveXObject) {
- if (window.ActiveXObject) {
- try {
- xhr = new ActiveXObject("Msxml2.XMLHTTP");
- } catch (e) {
- xhr = new ActiveXObject("Microsoft.XMLHTTP");
- }
- } else {
- xhr = new XMLHttpRequest();
- }
- } else {
- alert("Votre navigateur ne supporte pas l'objet XMLHTTPRequest...");
- return null;
- }
-
- return xhr;
-}
-
function swapImg(swap) {
obj = document.getElementById(swap);
obj.src = !(obj.src == img_minus) ? img_minus : img_plus;
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php 2014-07-05 17:11:09 UTC (rev 12679)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php 2014-07-07 09:01:29 UTC (rev 12680)
@@ -19,9 +19,8 @@
* @version $Id: architecture.php 12258 2014-01-02 09:33:29Z timgno $
*/
defined('XOOPS_ROOT_PATH') or die('Restricted access');
+include_once TDMC_PATH . '/class/autoloader.php';
require_once 'structure.php';
-/*include_once TDMC_PATH . '/include/functions.php';
-spl_autoload_register('tdmcreateAutoload');*/
class TDMCreateArchitecture extends TDMCreateStructure
{
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php 2014-07-05 17:11:09 UTC (rev 12679)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/user/xoopsversion.php 2014-07-07 09:01:29 UTC (rev 12680)
@@ -112,11 +112,11 @@
'help' => "page=help",
'license' => "GNU GPL 2.0",
'license_url' => "www.gnu.org/licenses/gpl-2.0.html/",
-
+ //
'release_info' => "{$module->getVar('mod_release_info')}",
'release_file' => XOOPS_URL."/modules/{\$dirname}/docs/{$module->getVar('mod_release_file')}",
'release_date' => "{$date}",
-
+ //
'manual' => "{$module->getVar('mod_manual')}",
'manual_file' => XOOPS_URL."/modules/{\$dirname}/docs/{$module->getVar('mod_manual_file')}",
'min_php' => "{$module->getVar('mod_min_php')}",
@@ -129,6 +129,7 @@
'dirmoduleadmin' => "Frameworks/moduleclasses/moduleadmin",
'sysicons16' => "../../Frameworks/moduleclasses/icons/16",
'sysicons32' => "../../Frameworks/moduleclasses/icons/32",
+ // Local path icons
'modicons16' => "assets/images/icons/16",
'modicons32' => "assets/images/icons/32",
//About
@@ -139,7 +140,7 @@
'module_website_url' => "{$module->getVar('mod_website_url')}",
'module_website_name' => "{$module->getVar('mod_website_name')}",
'release' => "{$module->getVar('mod_release')}",
- 'module_status' => "{$module->getVar('mod_status')}",\n
+ 'module_status' => "{$module->getVar('mod_status')}",\n
EOT;
if (is_object($table)) {
if ( $table->getVar('table_admin') == 1 ) {
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/docs/lang_diff.txt
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/docs/lang_diff.txt 2014-07-05 17:11:09 UTC (rev 12679)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/docs/lang_diff.txt 2014-07-07 09:01:29 UTC (rev 12680)
@@ -1,4 +1,4 @@
Read Me First
=============
-Please make sure that you download the XOOPS Icon Set, and upload it to uploads/images directory
\ No newline at end of file
+To see the differences of language files, see the language folder file name update language 1:59 to 1.91
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/docs/readme.txt
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/docs/readme.txt 2014-07-05 17:11:09 UTC (rev 12679)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/docs/readme.txt 2014-07-07 09:01:29 UTC (rev 12680)
@@ -2,4 +2,16 @@
=============
Please make sure that you download the XOOPS Icon Set, and upload it to uploads/images directory
-Read the table in admin help for the accurate description of the functionality of this module
\ No newline at end of file
+Read the table in admin help for the accurate description of the functionality of this module
+
+Using the new class xoopsrequest.php
+
+Version of xoops
+----------------
+TDMCreate is a module that create other basic modules for CMS Xoops.
+
+Tested with xoops 2.5.7, you can not use it with earlier versions, unless because you do not fit some core files in the background and after some tests.
+
+Now that is ahead xoops versions, and goes to 2.6.0, you should download xoops 2.5.7 and use with this latest version.
+
+Therefore recommended not to use TDMCreate 1.91, with previous versions, to xoops 2.5.7
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/include/common.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/include/common.php 2014-07-05 17:11:09 UTC (rev 12679)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/include/common.php 2014-07-07 09:01:29 UTC (rev 12680)
@@ -38,6 +38,7 @@
define('TDMC_UPLOAD_IMGTAB_URL', TDMC_UPLOAD_URL . '/images/tables' );
// Xoops Request
include_once XOOPS_ROOT_PATH . '/class/xoopsrequest.php';
+include_once TDMC_PATH . '/include/functions.php';
// Include files
$cf = '/class/files/';
$cfa = '/class/files/admin/';
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/include/functions.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/include/functions.php 2014-07-05 17:11:09 UTC (rev 12679)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/include/functions.php 2014-07-07 09:01:29 UTC (rev 12680)
@@ -19,7 +19,15 @@
* @version $Id: functions.php 11084 2013-02-23 15:44:20Z timgno $
*/
defined('XOOPS_ROOT_PATH') or die('Restricted access');
-
+/**
+ * Get Requests
+ *
+ * @param array $global
+ * @param string $key
+ * @param string $default
+ * @param mixed $type
+ * @return mixed Returns string, integer or array
+ */
function TDMCreate_CleanVars( &$global, $key, $default = '', $type = 'int' ) {
switch ( $type ) {
case 'string':
@@ -34,7 +42,12 @@
}
return $ret;
}
-
+/**
+ * Clear directory and its contents
+ *
+ * @param string $folder The contents
+ * @return bool Returns true on success, false on failure
+ */
function TDMCreate_clearDir($folder) {
$opening = @opendir($folder);
if (!$opening) return;
@@ -95,38 +108,8 @@
$dir->close();
return true;
}
-
-function TDMCreate_autoload($classname) {
- foreach($classname as $file) {
- if(file_exists($file)) {
- include_once TDMC_PATH . '/class/files/admin_' . $file . '.php';
- include_once TDMC_PATH . '/class/files/blocks_' . $file . '.php';
- include_once TDMC_PATH . '/class/files/class_' . $file . '.php';
- include_once TDMC_PATH . '/class/files/css_' . $file . '.php';
- include_once TDMC_PATH . '/class/files/docs_' . $file . '.php';
- include_once TDMC_PATH . '/class/files/include_' . $file . '.php';
- include_once TDMC_PATH . '/class/files/language_' . $file . '.php';
- include_once TDMC_PATH . '/class/files/templates_' . $file . '.php';
- include_once TDMC_PATH . '/class/files/user_' . $file . '.php';
- }
- }
-}
-
+//
function UcFirstAndToLower($str)
{
return ucfirst(strtolower(trim($str)));
-}
-
-/*
-if(function_exists(isset($_GET['f']))) { // get function name and parameter $_GET['f']($_GET["p"]);
- include_once TDMC_PATH . '/class/modules.php';
- $ret = TDMCreateModules::createLogo($_GET["iconName"], $_GET["caption"]);
- phpFunction($ret);
-} else {
- echo 'Method Not Exist';
-}
-
-function phpFunction($val='')
-{ // create php function here
- echo $val;
-}*/
\ No newline at end of file
+}
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/include/update.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/include/update.php 2014-07-05 17:11:09 UTC (rev 12679)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/include/update.php 2014-07-07 09:01:29 UTC (rev 12680)
@@ -1,22 +1,20 @@
-<?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)
+ * tdmcreate module
*
- * Cette licence, contient des limitations!!!
- *
- * You may not change or alter any portion of this comment or credits
- * of supporting developers from this source code or any supporting source code
- * which is considered copyrighted (c) material of the original comment or credit authors.
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- * @license TDM GPL license
- * @author TDM TEAM DEV MODULE
- *
- * ****************************************************************************
- */
-
-?>
\ No newline at end of file
+ * @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: update.php 12258 2014-01-02 09:33:29Z timgno $
+*/
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php 2014-07-05 17:11:09 UTC (rev 12679)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/xoops_version.php 2014-07-07 09:01:29 UTC (rev 12680)
@@ -427,5 +427,5 @@
$modversion['config'][$i]['description'] = "";
$modversion['config'][$i]['formtype'] = "textbox";
$modversion['config'][$i]['valuetype'] = "text";
-$modversion['config'][$i]['default'] = '12670';
+$modversion['config'][$i]['default'] = '12680';
unset($i);
\ No newline at end of file
|