|
From: <txm...@us...> - 2014-06-27 15:47:57
|
Revision: 12659
http://sourceforge.net/p/xoops/svn/12659
Author: txmodxoops
Date: 2014-06-27 15:47:48 +0000 (Fri, 27 Jun 2014)
Log Message:
-----------
- Fixed bugs
- Updated
- Still work to do
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/building.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/include/install.php
Added Paths:
-----------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/assets/images/logos/xoopsdevelopmentteam_logo.gif
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/building.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/building.php 2014-06-27 14:22:17 UTC (rev 12658)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/admin/building.php 2014-06-27 15:47:48 UTC (rev 12659)
@@ -63,7 +63,7 @@
}
$GLOBALS['xoopsTpl']->append('builds', $build);
}
- unset($builds);
+ unset($build);
// Directory to saved all files
$GLOBALS['xoopsTpl']->assign('building_directory', sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY, str_replace(' ', '', strtolower($mod_name))));
// Copy this module in root modules
Added: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/assets/images/logos/xoopsdevelopmentteam_logo.gif
===================================================================
(Binary files differ)
Index: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/assets/images/logos/xoopsdevelopmentteam_logo.gif
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/assets/images/logos/xoopsdevelopmentteam_logo.gif 2014-06-27 14:22:17 UTC (rev 12658)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/assets/images/logos/xoopsdevelopmentteam_logo.gif 2014-06-27 15:47:48 UTC (rev 12659)
Property changes on: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/assets/images/logos/xoopsdevelopmentteam_logo.gif
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php 2014-06-27 14:22:17 UTC (rev 12658)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/architecture.php 2014-06-27 15:47:48 UTC (rev 12659)
@@ -341,7 +341,7 @@
if ( $table->getVar('table_notifications') == 1 ) {
// Include Notifications File
$includeNotifications = IncludeNotifications::getInstance();
- $includeNotifications->write($module, $table, 'notifications.php');
+ $includeNotifications->write($module, $table, 'notifications.inc.php');
$ret[] = $includeNotifications->render();
// Language Mail Template Category File
$languageMailTpl = LanguageMailTpl::getInstance();
@@ -363,7 +363,7 @@
if ( $table->getVar('table_search') == 1) {
// Include Search File
$includeSearch = IncludeSearch::getInstance();
- $includeSearch->write($module, $table, 'search.php');
+ $includeSearch->write($module, $table, 'search.inc.php');
$ret[] = $includeSearch->render();
}
// Creation of comments files
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/include/install.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/include/install.php 2014-06-27 14:22:17 UTC (rev 12658)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/files/include/install.php 2014-06-27 15:47:48 UTC (rev 12659)
@@ -54,6 +54,25 @@
$this->setFileName($filename);
}
/*
+ * @private function getHeaderInstall
+ * @param string $module_name
+ */
+ private function getHeaderInstall($module_name) {
+ $ret = <<<EOT
+defined('XOOPS_ROOT_PATH') or die('Restricted access');
+\$indexFile = XOOPS_UPLOAD_PATH.'/index.html';
+\$blankFile = XOOPS_UPLOAD_PATH.'/blank.gif';
+
+// Making of "uploads/{$module_name}" folder
+\${$module_name} = XOOPS_UPLOAD_PATH.'/{$module_name}';
+if(!is_dir(\${$module_name}))
+ mkdir(\${$module_name}, 0777);
+ chmod(\${$module_name}, 0777);
+copy(\$indexFile, \${$module_name}.'/index.html');
+EOT;
+ return $ret;
+ }
+ /*
* @public function render
* @param null
*/
@@ -81,8 +100,8 @@
{
$table_name = $tables[$t]->getVar('table_name');
$fields = $this->getTableFields($tables[$t]->getVar('table_id'));
- foreach(array_keys($fields) as $f) {
- {
+ foreach(array_keys($fields) as $f)
+ {
$field_name = $fields[$f]->getVar('field_name');
if ( ($f > 0) && ($tables[$t]->getVar('table_autoincrement') == 1) ) {
$field_element = $fields[$f]->getVar('field_element');
@@ -94,12 +113,12 @@
if(!is_dir(\${$table_name}))
mkdir(\${$table_name}, 0777);
chmod(\${$table_name}, 0777);
-copy(\$indexFile, \${$table_name}.'/index.html');
+copy(\$indexFile, \${$table_name}.'/index.html');\n
EOT;
} else {
if ( $field_element == 9 ) {
$content .= <<<EOT
-\n// Making of "{$field_name}" images folder
+// Making of "{$field_name}" images folder
\${$table_name} = \${$module_name}.'/images';
if(!is_dir(\${$table_name}))
mkdir(\${$table_name}, 0777);
@@ -134,7 +153,6 @@
}
}
}
- }
}
$this->tdmcfile->create($module_name, 'include', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
|