You can subscribe to this list here.
| 2012 |
Jan
|
Feb
(214) |
Mar
(139) |
Apr
(198) |
May
(187) |
Jun
(151) |
Jul
(210) |
Aug
(169) |
Sep
(58) |
Oct
(53) |
Nov
(54) |
Dec
(301) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2013 |
Jan
(348) |
Feb
(178) |
Mar
(219) |
Apr
(154) |
May
(117) |
Jun
(194) |
Jul
(61) |
Aug
(132) |
Sep
(121) |
Oct
(110) |
Nov
(11) |
Dec
(18) |
| 2014 |
Jan
(34) |
Feb
(50) |
Mar
(82) |
Apr
(98) |
May
(39) |
Jun
(111) |
Jul
(67) |
Aug
(36) |
Sep
(33) |
Oct
(26) |
Nov
(53) |
Dec
(44) |
| 2015 |
Jan
(29) |
Feb
(47) |
Mar
(25) |
Apr
(19) |
May
(23) |
Jun
(20) |
Jul
(49) |
Aug
(7) |
Sep
(10) |
Oct
(10) |
Nov
(4) |
Dec
(25) |
| 2016 |
Jan
(8) |
Feb
(7) |
Mar
(1) |
Apr
|
May
(3) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(7) |
Dec
(5) |
| 2017 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
(15) |
Jun
|
Jul
(18) |
Aug
(24) |
Sep
|
Oct
(14) |
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
(22) |
Mar
|
Apr
(11) |
May
(1) |
Jun
(17) |
Jul
(2) |
Aug
(2) |
Sep
|
Oct
(6) |
Nov
(5) |
Dec
|
| 2019 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <be...@us...> - 2014-07-16 18:31:58
|
Revision: 12717
http://sourceforge.net/p/xoops/svn/12717
Author: beckmi
Date: 2014-07-16 18:31:49 +0000 (Wed, 16 Jul 2014)
Log Message:
-----------
improving makepdf with language options (rgriffith)
Modified Paths:
--------------
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/newbb/makepdf.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/news/makepdf.php
XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/makepdf.php
Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/newbb/makepdf.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/newbb/makepdf.php 2014-07-16 17:11:20 UTC (rev 12716)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/newbb/makepdf.php 2014-07-16 18:31:49 UTC (rev 12717)
@@ -32,12 +32,12 @@
// a complete rewrite by irmtfan to enhance: 1- RTL 2- Multilanguage (EMLH and Xlanguage)
error_reporting(0);
-include_once dirname(__FILE__) . "/header.php";
+include_once __DIR__ . "/header.php";
$forum = isset($_GET['forum']) ? intval($_GET['forum']) : 0;
$topic_id = isset($_GET['topic_id']) ? intval($_GET['topic_id']) : 0;
$post_id = !empty($_GET['post_id']) ? intval($_GET['post_id']) : 0;
-if (!is_file(XOOPS_ROOT_PATH.'/Frameworks/tcpdf/tcpdf.php')) {
+if (!is_file(XOOPS_PATH.'/vendor/tcpdf/tcpdf.php')) {
redirect_header(XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/viewtopic.php?topic_id='.$topic_id,3,'TCPF for Xoops not installed');
}
@@ -90,7 +90,7 @@
$pdf_data['cat_title']=$viewtopic_cat->getVar('cat_title');
$pdf_data['subject']=NEWBB_PDF_SUBJECT.': '.$pdf_data['topic_title'];
$pdf_data['keywords']=XOOPS_URL . ', '.'SIMPLE-XOOPS, '.$pdf_data['topic_title'];
-$pdf_data['HeadFirstLine']=$xoopsConfig['sitename'].' - '.$xoopsConfig['slogan'];
+$pdf_data['HeadFirstLine']= $xoopsConfig['sitename'].' - '.$xoopsConfig['slogan'];
$pdf_data['HeadSecondLine']=_MD_FORUMHOME.' - '.$pdf_data['cat_title'].' - '.$pdf_data['forum_title'].' - '.$pdf_data['topic_title'];
// START irmtfan to implement EMLH by GIJ
@@ -103,10 +103,16 @@
}
// END irmtfan to implement Xlanguage by phppp(DJ)
-require_once (XOOPS_ROOT_PATH.'/Frameworks/tcpdf/tcpdf.php');
+require_once (XOOPS_PATH.'/vendor/tcpdf/tcpdf.php');
+$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, _CHARSET, false);
+// load $localLanguageOptions array with language specific definitions and apply
+if (is_file(XOOPS_PATH.'/vendor/tcpdf/config/lang/'.$xoopsConfig['language'].'.php')) {
+ require_once( XOOPS_PATH.'/vendor/tcpdf/config/lang/'.$xoopsConfig['language'].'.php');
+} else {
+ require_once( XOOPS_PATH.'/vendor/tcpdf/config/lang/english.php');
+}
+$pdf->setLanguageArray($localLanguageOptions);
-//create the A4-PDF...
-$pdf=new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, _CHARSET, false);
// START irmtfan hack to add RTL-LTR local
// until _RTL added to core 2.6.0
if (!defined('_RTL')) {
@@ -122,10 +128,13 @@
$pdf->SetSubject($pdf_data['subject']);
$pdf->SetKeywords($pdf_data['keywords']);
-$pdf->SetHeaderData('', '5', $pdf_data['HeadFirstLine'], $pdf_data['HeadSecondLine']);
+//$pdf->SetHeaderData('', '5', $pdf_data['HeadFirstLine'], $pdf_data['HeadSecondLine']);
+$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, $pdf_data['HeadFirstLine'], $pdf_data['HeadSecondLine'], array(0,64,255), array(0,64,128));
+
//set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP , PDF_MARGIN_RIGHT);
+$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
//set auto page breaks
$pdf->SetAutoPageBreak(true, 25);
Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/news/makepdf.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/news/makepdf.php 2014-07-16 17:11:20 UTC (rev 12716)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/news/makepdf.php 2014-07-16 18:31:49 UTC (rev 12717)
@@ -30,9 +30,9 @@
// ------------------------------------------------------------------------- //
error_reporting(0);
-
+
include_once 'header.php';
-if (!is_file(XOOPS_ROOT_PATH.'/Frameworks/tcpdf/tcpdf.php')) {
+if (!is_file(XOOPS_PATH.'/vendor/tcpdf/tcpdf.php')) {
redirect_header(XOOPS_URL.'/modules/news/index.php',3,'tcpdf_for_xoops not installed');
}
$myts =& MyTextSanitizer::getInstance();
@@ -96,13 +96,16 @@
//create the A4-PDF...
$pdf_config['slogan'] = XOOPS_URL.' - '.$xoopsConfig['sitename'].' - '.$xoopsConfig['slogan'];
-require_once (XOOPS_ROOT_PATH.'/Frameworks/tcpdf/tcpdf.php');
-if (is_file(XOOPS_ROOT_PATH.'/Frameworks/tcpdf/config/lang/'.$xoopsConfig['language'].'.php')) {
- require_once( XOOPS_ROOT_PATH.'/Frameworks/tcpdf/config/lang/'.$xoopsConfig['language'].'.php');
+require_once (XOOPS_PATH.'/vendor/tcpdf/tcpdf.php');
+$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, _CHARSET, false);
+// load $localLanguageOptions array with language specific definitions and apply
+if (is_file(XOOPS_PATH.'/vendor/tcpdf/config/lang/'.$xoopsConfig['language'].'.php')) {
+ require_once( XOOPS_PATH.'/vendor/tcpdf/config/lang/'.$xoopsConfig['language'].'.php');
} else {
- require_once( XOOPS_ROOT_PATH.'/Frameworks/tcpdf/config/lang/english.php');
+ require_once( XOOPS_PATH.'/vendor/tcpdf/config/lang/english.php');
}
-$pdf=new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, _CHARSET, false);
+$pdf->setLanguageArray($localLanguageOptions);
+
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetTitle($pdf_data['title']);
@@ -116,15 +119,21 @@
$pdf->setHeaderFont(Array(PDF_FONT_NAME_SUB, '', PDF_FONT_SIZE_SUB));
$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
$pdf->setFooterData($tc=array(0,64,0), $lc=array(0,64,128));
-$pdf->SetHeaderData('','5',$pdf_config['slogan']);
+//$pdf->SetHeaderData('','5',$pdf_config['slogan']);
+$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, $pdf_config['slogan'], array(0,64,255), array(0,64,128));
+//set margins
+$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
+$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
+$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
+
$pdf->Open();
//First page
$pdf->AddPage();
-$pdf->SetXY(24,15);
+$pdf->SetXY(24,25);
$pdf->SetTextColor(10,60,160);
$pdf->SetFont(PDF_FONT_NAME_TITLE,PDF_FONT_STYLE_TITLE,PDF_FONT_SIZE_TITLE);
$pdf->WriteHTML($pdf_data['title'].' - '.$pdf_data['subtitle'],K_TITLE_MAGNIFICATION);
-$pdf->Line(25,20,190,20);
+//$pdf->Line(25,20,190,20);
if ($pdf_data['subsubtitle'] != '') {
$pdf->WriteHTML($puff,K_XSMALL_RATIO);
$pdf->SetFont(PDF_FONT_NAME_SUBSUB,PDF_FONT_STYLE_SUBSUB,PDF_FONT_SIZE_SUBSUB);
@@ -143,4 +152,3 @@
$pdf->WriteHTML($pdf_data['content'],$pdf_config['scale']);
$pdf->Output();
-?>
\ No newline at end of file
Modified: XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/makepdf.php
===================================================================
--- XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/makepdf.php 2014-07-16 17:11:20 UTC (rev 12716)
+++ XoopsModules/modulepacks/x257basicmodulepack/trunk/modules/publisher/makepdf.php 2014-07-16 18:31:49 UTC (rev 12717)
@@ -21,7 +21,7 @@
*/
error_reporting(0);
-include_once dirname(__FILE__) . '/header.php';
+include_once __DIR__ . '/header.php';
if (!is_file(XOOPS_PATH.'/vendor/tcpdf/tcpdf.php')) {
redirect_header(XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/viewtopic.php?topic_id='.$topic_id,3,'TCPDF for Xoops not installed');
}
@@ -68,12 +68,15 @@
$content .= $itemObj->plain_maintext();
require_once (XOOPS_PATH.'/vendor/tcpdf/tcpdf.php');
+
+$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, _CHARSET, false);
+// load $localLanguageOptions array with language specific definitions and apply
if (is_file(XOOPS_PATH.'/vendor/tcpdf/config/lang/'.$xoopsConfig['language'].'.php')) {
- require_once( XOOPS_PATH.'/vendor/tcpdf/config/lang/'.$xoopsConfig['language'].'.php');
+ require_once( XOOPS_PATH.'/vendor/tcpdf/config/lang/'.$xoopsConfig['language'].'.php');
} else {
- require_once( XOOPS_PATH.'/vendor/tcpdf/config/lang/english.php');
+ require_once( XOOPS_PATH.'/vendor/tcpdf/config/lang/english.php');
}
-$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, _CHARSET, false);
+$pdf->setLanguageArray($localLanguageOptions);
$doc_title = publisher_convertCharset($myts->undoHtmlSpecialChars($itemObj->title()));
$doc_keywords = 'XOOPS';
|
|
From: <be...@us...> - 2014-07-16 17:11:23
|
Revision: 12716
http://sourceforge.net/p/xoops/svn/12716
Author: beckmi
Date: 2014-07-16 17:11:20 +0000 (Wed, 16 Jul 2014)
Log Message:
-----------
adding code to .html template entries from the tpl table
Modified Paths:
--------------
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/pm/include/update.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/include/update.php
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/pm/include/update.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/pm/include/update.php 2014-07-16 17:10:42 UTC (rev 12715)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/pm/include/update.php 2014-07-16 17:11:20 UTC (rev 12716)
@@ -25,7 +25,7 @@
{
if ($oldversion <= 100) {
- GLOBAL $xoopsDB;
+ global $xoopsDB;
// Check pm table version
$sql = "SHOW COLUMNS FROM " . $xoopsDB->prefix("priv_msgs");
if (!$result = $xoopsDB->queryF($sql)) {
@@ -51,12 +51,15 @@
@unlink($templateDirectory . $v);
}
}
- // Load class XoopsFile
+
xoops_load('xoopsfile');
//remove /images directory
$imagesDirectory = XOOPS_ROOT_PATH . "/modules/" . $module->getVar('dirname', 'n') . "/images/";
$folderHandler = XoopsFile::getHandler("folder", $imagesDirectory);
$folderHandler->delete($imagesDirectory);
+ //delete .html entries from the tpl table
+ $sql = "DELETE FROM " . $xoopsDB->prefix("tplfile") . " WHERE `tpl_module` = '" .$module->getVar('dirname', 'n') . "' AND `tpl_file` LIKE '%.html%'";
+ $xoopsDB->queryF($sql);
}
return true;
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/include/update.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/include/update.php 2014-07-16 17:10:42 UTC (rev 12715)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/include/update.php 2014-07-16 17:11:20 UTC (rev 12716)
@@ -116,7 +116,7 @@
@unlink($templateDirectory . $v);
}
}
- // Load class XoopsFile
+
xoops_load('xoopsfile');
//delete /images directory
$imagesDirectory = XOOPS_ROOT_PATH . "/modules/" . $module->getVar('dirname', 'n') . "/images/";
@@ -126,6 +126,9 @@
$cssFile = XOOPS_ROOT_PATH . "/modules/" . $module->getVar('dirname', 'n') . "/templates/style.css";
$folderHandler = XoopsFile::getHandler("file", $cssFile);
$folderHandler->delete($cssFile);
+ //delete .html entries from the tpl table
+ $sql = "DELETE FROM " . $GLOBALS['xoopsDB']->prefix("tplfile") . " WHERE `tpl_module` = '" .$module->getVar('dirname', 'n') . "' AND `tpl_file` LIKE '%.html%'";
+ $GLOBALS['xoopsDB']->queryF($sql);
}
$profile_handler =& xoops_getModuleHandler("profile", $module->getVar('dirname', 'n'));
|
|
From: <be...@us...> - 2014-07-16 17:10:46
|
Revision: 12715
http://sourceforge.net/p/xoops/svn/12715
Author: beckmi
Date: 2014-07-16 17:10:42 +0000 (Wed, 16 Jul 2014)
Log Message:
-----------
adding code to .html template entries from the tpl table
Modified Paths:
--------------
XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/pm/include/update.php
XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/profile/include/update.php
Modified: XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/pm/include/update.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/pm/include/update.php 2014-07-16 14:05:18 UTC (rev 12714)
+++ XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/pm/include/update.php 2014-07-16 17:10:42 UTC (rev 12715)
@@ -25,7 +25,7 @@
{
if ($oldversion <= 100) {
- GLOBAL $xoopsDB;
+ global $xoopsDB;
// Check pm table version
$sql = "SHOW COLUMNS FROM " . $xoopsDB->prefix("priv_msgs");
if (!$result = $xoopsDB->queryF($sql)) {
@@ -51,12 +51,15 @@
@unlink($templateDirectory . $v);
}
}
- // Load class XoopsFile
+
xoops_load('xoopsfile');
//remove /images directory
$imagesDirectory = XOOPS_ROOT_PATH . "/modules/" . $module->getVar('dirname', 'n') . "/images/";
$folderHandler = XoopsFile::getHandler("folder", $imagesDirectory);
$folderHandler->delete($imagesDirectory);
+ //delete .html entries from the tpl table
+ $sql = "DELETE FROM " . $xoopsDB->prefix("tplfile") . " WHERE `tpl_module` = '" .$module->getVar('dirname', 'n') . "' AND `tpl_file` LIKE '%.html%'";
+ $xoopsDB->queryF($sql);
}
return true;
Modified: XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/profile/include/update.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/profile/include/update.php 2014-07-16 14:05:18 UTC (rev 12714)
+++ XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/profile/include/update.php 2014-07-16 17:10:42 UTC (rev 12715)
@@ -116,7 +116,7 @@
@unlink($templateDirectory . $v);
}
}
- // Load class XoopsFile
+
xoops_load('xoopsfile');
//delete /images directory
$imagesDirectory = XOOPS_ROOT_PATH . "/modules/" . $module->getVar('dirname', 'n') . "/images/";
@@ -126,6 +126,9 @@
$cssFile = XOOPS_ROOT_PATH . "/modules/" . $module->getVar('dirname', 'n') . "/templates/style.css";
$folderHandler = XoopsFile::getHandler("file", $cssFile);
$folderHandler->delete($cssFile);
+ //delete .html entries from the tpl table
+ $sql = "DELETE FROM " . $GLOBALS['xoopsDB']->prefix("tplfile") . " WHERE `tpl_module` = '" .$module->getVar('dirname', 'n') . "' AND `tpl_file` LIKE '%.html%'";
+ $GLOBALS['xoopsDB']->queryF($sql);
}
$profile_handler =& xoops_getModuleHandler("profile", $module->getVar('dirname', 'n'));
|
|
From: <be...@us...> - 2014-07-16 14:05:26
|
Revision: 12714
http://sourceforge.net/p/xoops/svn/12714
Author: beckmi
Date: 2014-07-16 14:05:18 +0000 (Wed, 16 Jul 2014)
Log Message:
-----------
removing unneeded % sign
Modified Paths:
--------------
XoopsModules/xoopspoll/branches/zyspec/templates/blocks/xoopspoll_block_singlepoll.html
Modified: XoopsModules/xoopspoll/branches/zyspec/templates/blocks/xoopspoll_block_singlepoll.html
===================================================================
--- XoopsModules/xoopspoll/branches/zyspec/templates/blocks/xoopspoll_block_singlepoll.html 2014-07-15 21:47:39 UTC (rev 12713)
+++ XoopsModules/xoopspoll/branches/zyspec/templates/blocks/xoopspoll_block_singlepoll.html 2014-07-16 14:05:18 UTC (rev 12714)
@@ -16,7 +16,7 @@
<td class='width30 left'><{$option.text}></td>
<td class='left' style='margin-left: 1em;'>
<{$option.percent}><{if $block.dispVotes}> (<{$option.count}>)<{/if}><br />
- <div class='width90'><img src='<{$xoops_url}>/modules/xoopspoll/images/colorbars/<{$option.color}>' style='height: 14px; width: <{$option.percent}>%;' alt='<{$option.percent}>' /></div>
+ <div class='width90'><img src='<{$xoops_url}>/modules/xoopspoll/images/colorbars/<{$option.color}>' style='height: 14px; width: <{$option.percent}>;' alt='<{$option.percent}>' /></div>
</td>
</tr>
<{ /foreach}>
|
|
From: <txm...@us...> - 2014-07-15 21:47:45
|
Revision: 12713
http://sourceforge.net/p/xoops/svn/12713
Author: txmodxoops
Date: 2014-07-15 21:47:39 +0000 (Tue, 15 Jul 2014)
Log Message:
-----------
- Updated
- added defines class file for languages
- Still work to do
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/architecture.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/admin.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/blocks.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/main.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/modinfo.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/admin/pages.php
Added Paths:
-----------
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/defines.php
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-14 07:53:04 UTC (rev 12712)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/architecture.php 2014-07-15 21:47:39 UTC (rev 12713)
@@ -430,7 +430,7 @@
$ret[] = $userIndex->render();
// Language Main File
$languageMain = LanguageMain::getInstance();
- $languageMain->write($module, $table, $tables, 'main.php');
+ $languageMain->write($module, $tables, 'main.php');
$ret[] = $languageMain->render();
}
}
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/admin.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/admin.php 2014-07-14 07:53:04 UTC (rev 12712)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/admin.php 2014-07-15 21:47:39 UTC (rev 12713)
@@ -19,16 +19,21 @@
* @version $Id: admin.php 12258 2014-01-02 09:33:29Z timgno $
*/
defined('XOOPS_ROOT_PATH') or die('Restricted access');
-
+require_once 'defines.php';
class LanguageAdmin extends TDMCreateFile
{
/*
+ * @var mixed
+ */
+ private $defines = null;
+ /*
* @public function constructor
* @param null
*/
public function __construct() {
parent::__construct();
- $this->tdmcfile = TDMCreateFile::getInstance();
+ $this->tdmcfile = TDMCreateFile::getInstance();
+ $this->defines = LanguageDefines::getInstance();
}
/*
* @static function &getInstance
@@ -60,19 +65,15 @@
*/
public function getLanguageAdminIndex($language, $tables)
{
- $ret = <<<EOT
-// ---------------- Admin Index ----------------
-define('{$language}STATISTICS', "Statistics");
-// There are\n
-EOT;
+ $ret = $this->defines->getAboveDefines('---------------- Admin Index ----------------');
+ $ret .= $this->defines->getDefine($language, 'STATISTICS', "Statistics");
+ $ret .= $this->defines->getAboveDefines('There are');
foreach (array_keys($tables) as $t)
{
$tableName = $tables[$t]->getVar('table_name');
$stuTableName = strtoupper($tableName);
$stlTableName = strtolower($tableName);
- $ret .= <<<EOT
-define('{$language}THEREARE_{$stuTableName}', "There are <span class='bold'>%s</span> {$stlTableName} in the database");\n
-EOT;
+ $ret .= $this->defines->getDefine($language, "THEREARE_{$stuTableName}", "There are <span class='bold'>%s</span> {$stlTableName} in the database");
}
return $ret;
}
@@ -83,51 +84,39 @@
*/
public function getLanguageAdminPages($language, $tables)
{
- $ret = <<<EOT
-// ---------------- Admin Files ----------------
-// There aren't\n
-EOT;
+ $ret = $this->defines->getAboveDefines('---------------- Admin Files ----------------');
+ $ret .= $this->defines->getAboveDefines('There aren\'t');
foreach (array_keys($tables) as $t)
{
$tableName = $tables[$t]->getVar('table_name');
$stuTableName = strtoupper($tableName);
$stlTableName = strtolower($tableName);
- $ret .= <<<EOT
-define('{$language}THEREARENT_{$stuTableName}', "There aren't {$stlTableName}");\n
-EOT;
+ $ret .= $this->defines->getDefine($language, "THEREARENT_{$stuTableName}", "There aren't {$stlTableName}");
}
- $ret .= <<<EOT
-// Save/Delete
-define('{$language}FORMOK', "Successfully saved");
-define('{$language}FORMDELOK', "Successfully deleted");
-define('{$language}FORMSUREDEL', "Are you sure to delete: <b><span style='color : Red'>%s </span></b>");
-define('{$language}FORMSURERENEW', "Are you sure to update: <b><span style='color : Red'>%s </span></b>");\n
-EOT;
- $ret .= <<<EOT
-// Buttons\n
-EOT;
+ $ret .= $this->defines->getAboveDefines('Save/Delete');
+ $ret .= $this->defines->getDefine($language, "FORMOK", "Successfully saved");
+ $ret .= $this->defines->getDefine($language, "FORMDELOK", "Successfully deleted");
+ $ret .= $this->defines->getDefine($language, "FORMSUREDEL", "Are you sure to delete: <b><span style='color : Red'>%s </span></b>");
+ $ret .= $this->defines->getDefine($language, "FORMSURERENEW", "Are you sure to update: <b><span style='color : Red'>%s </span></b>");
+ $ret .= $this->defines->getAboveDefines('Buttons');
+ //
foreach (array_keys($tables) as $t)
{
$tableName = $tables[$t]->getVar('table_name');
$tableFieldname = $tables[$t]->getVar('table_fieldname');
$stuTableFieldname = strtoupper($tableFieldname);
- $ucfTableFieldname = ucfirst($tableFieldname);
- $ret .= <<<EOT
-define('{$language}ADD_{$stuTableFieldname}', "Add {$ucfTableFieldname}");\n
-EOT;
+ $ucfTableFieldname = ucfirst($tableFieldname);
+ $ret .= $this->defines->getDefine($language, "ADD_{$stuTableFieldname}", "Add {$ucfTableFieldname}");
}
- $ret .= <<<EOT
-// Lists\n
-EOT;
+ $ret .= $this->defines->getAboveDefines('Lists');
+ //
foreach (array_keys($tables) as $t)
{
$tableName = $tables[$t]->getVar('table_name');
$tableFieldname = $tables[$t]->getVar('table_fieldname');
$stuTableName = strtoupper($tableName);
- $ucfTableName = ucfirst($tableName);
- $ret .= <<<EOT
-define('{$language}{$stuTableName}_LIST', "List of {$ucfTableName}");\n
-EOT;
+ $ucfTableName = ucfirst($tableName);
+ $ret .= $this->defines->getDefine($language, "{$stuTableName}_LIST", "List of {$ucfTableName}");
}
return $ret;
}
@@ -138,65 +127,57 @@
*/
public function getLanguageAdminClass($language, $tables)
{
- $ret = <<<EOT
-// ---------------- Admin Classes ----------------\n
-EOT;
+ $ret = $this->defines->getAboveDefines('---------------- Admin Classes ----------------');
+ //
foreach (array_keys($tables) as $t)
{
$tableId = $tables[$t]->getVar('table_id');
$tableName = $tables[$t]->getVar('table_name');
$stuTableName = strtoupper($tableName);
$ucfTableName = ucfirst($tableName);
- $ret .= <<<EOT
-// {$ucfTableName} add/edit
-define('{$language}{$stuTableName}_ADD', "Add {$tableName}");
-define('{$language}{$stuTableName}_EDIT', "Edit {$tableName}");
-// Elements of {$ucfTableName}\n
-EOT;
+ $ret .= $this->defines->getAboveDefines("{$ucfTableName} add/edit");
+ $ret .= $this->defines->getDefine($language, "{$stuTableName}_ADD", "Add {$tableName}");
+ $ret .= $this->defines->getDefine($language, "{$stuTableName}_EDIT", "Edit {$tableName}");
+ $ret .= $this->defines->getAboveDefines("Elements of {$ucfTableName}");
+ //
$fields = $this->getTableFields($tableId);
foreach(array_keys($fields) as $f)
{
$fieldName = $fields[$f]->getVar('field_name');
$fieldElement = $fields[$f]->getVar('field_element');
$stuFieldName = strtoupper($fieldName);
- $fieldNameDesc = ucfirst(str_replace('_', ' ', $fieldName));
- $ret .= <<<EOT
-define('{$language}{$stuFieldName}', "{$fieldNameDesc}");\n
-EOT;
+ //
+ $rpFieldName = $this->tdmcfile->getRightString($fieldName);
+ $lpFieldName = substr($fieldName, 0, strpos($fieldName, '_'));
+ //
+ $fieldNameDesc = ucfirst($rpFieldName);
+ //
+ $ret .= $this->defines->getDefine($language, $stuFieldName, $fieldNameDesc);
+ //
switch($fieldElement)
{
case 10:
- $ret .= <<<EOT
-define('{$language}FORM_UPLOAD_IMAGE_LIST_{$stuTableName}', "{$fieldNameDesc} in frameworks images");\n
-EOT;
+ $ret .= $this->defines->getDefine($language, "FORM_UPLOAD_IMAGE_LIST_{$stuTableName}", "{$fieldNameDesc} in frameworks images");
break;
case 11:
- $ret .= <<<EOT
-define('{$language}FORM_UPLOAD_IMAGE_{$stuTableName}', "{$fieldNameDesc} in uploads images");\n
-EOT;
+ $ret .= $this->defines->getDefine($language, "FORM_UPLOAD_IMAGE_{$stuTableName}", "{$fieldNameDesc} in uploads images");
break;
case 12:
- $ret .= <<<EOT
-define('{$language}FORM_UPLOAD_FILE_{$stuTableName}', "{$fieldNameDesc} in uploads files");\n
-EOT;
+ $ret .= $this->defines->getDefine($language, "FORM_UPLOAD_FILE_{$stuTableName}", "{$fieldNameDesc} in uploads files");
break;
}
}
}
- $ret .= <<<EOT
-// General
-define('{$language}FORMUPLOAD', "Upload file");
-define('{$language}FORMIMAGE_PATH', "Files in %s ");
-define('{$language}FORMACTION', "Action");
-define('{$language}FORMEDIT', "Modification");
-define('{$language}FORMDEL', "Clear");\n
-EOT;
- $ret .= <<<EOT
-// Permissions
-define('{$language}PERMISSIONS_APPROVE', "Permissions to approve");
-define('{$language}PERMISSIONS_SUBMIT', "Permissions to submit");
-define('{$language}PERMISSIONS_VIEW', "Permissions to view");\n
-EOT;
+ $ret .= $this->defines->getAboveDefines('General');
+ $ret .= $this->defines->getDefine($language, 'FORMUPLOAD', "Upload file");
+ $ret .= $this->defines->getDefine($language, 'FORMIMAGE_PATH', "Files in %s ");
+ $ret .= $this->defines->getDefine($language, 'FORMACTION', "Action");
+ $ret .= $this->defines->getDefine($language, 'FORMEDIT', "Modification");
+ $ret .= $this->defines->getDefine($language, 'FORMDEL', "Clear");
+ $ret .= $this->defines->getAboveDefines('Permissions');
+ $ret .= $this->defines->getDefine($language, 'PERMISSIONS_APPROVE', "Permissions to approve");
+ $ret .= $this->defines->getDefine($language, 'PERMISSIONS_SUBMIT', "Permissions to submit");
+ $ret .= $this->defines->getDefine($language, 'PERMISSIONS_VIEW', "Permissions to view");
return $ret;
}
/*
@@ -205,35 +186,31 @@
*/
public function getLanguageAdminPermissions($language)
{
- $ret = <<<EOT
-// ---------------- Admin Permissions ----------------
-// Permissions
-define('{$language}GLOBAL', "Permissions global");
-define('{$language}GLOBAL_DESC', "Permissions global");
-define('{$language}GLOBAL_4', "Permissions global");
-define('{$language}GLOBAL_8', "Permissions global");
-define('{$language}GLOBAL_16', "Permissions global");
-define('{$language}APPROVE', "Permissions to approve");
-define('{$language}APPROVE_DESC', "Permissions to approve");
-define('{$language}SUBMIT', "Permissions to submit");
-define('{$language}SUBMIT_DESC', "Permissions to submit");
-define('{$language}VIEW', "Permissions to view");
-define('{$language}VIEW_DESC', "Permissions to view");
-define('{$language}NOPERMSSET', "No permission set");\n
-EOT;
+ $ret = $this->defines->getAboveDefines('---------------- Admin Permissions ----------------');
+ $ret .= $this->defines->getAboveDefines('Permissions');
+ $ret .= $this->defines->getDefine($language, 'GLOBAL', "Permissions global");
+ $ret .= $this->defines->getDefine($language, 'GLOBAL_DESC', "Permissions global");
+ $ret .= $this->defines->getDefine($language, 'GLOBAL_4', "Permissions global");
+ $ret .= $this->defines->getDefine($language, 'GLOBAL_8', "Permissions global");
+ $ret .= $this->defines->getDefine($language, 'GLOBAL_16', "Permissions global");
+ $ret .= $this->defines->getDefine($language, 'APPROVE', "Permissions to approve");
+ $ret .= $this->defines->getDefine($language, 'APPROVE_DESC', "Permissions to approve");
+ $ret .= $this->defines->getDefine($language, 'SUBMIT', "Permissions to submit");
+ $ret .= $this->defines->getDefine($language, 'SUBMIT_DESC', "Permissions to submit");
+ $ret .= $this->defines->getDefine($language, 'VIEW', "Permissions to view");
+ $ret .= $this->defines->getDefine($language, 'VIEW_DESC', "Permissions to view");
+ $ret .= $this->defines->getDefine($language, 'NOPERMSSET', "No permission set");
return $ret;
}
/*
* @public function getLanguageAdminFoot
- * @param null
+ * @param string $language
*/
public function getLanguageAdminFoot($language)
{
- $ret = <<<EOT
-// ---------------- Admin Others ----------------
-define('{$language}MAINTAINEDBY', " is maintained by ");
-// ---------------- ----------------
-EOT;
+ $ret = $this->defines->getAboveDefines('---------------- Admin Others ----------------');
+ $ret .= $this->defines->getDefine($language, 'MAINTAINEDBY', " is maintained by ");
+ $ret .= $this->defines->getBelowDefines('---------------- End ----------------');
return $ret;
}
/*
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/blocks.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/blocks.php 2014-07-14 07:53:04 UTC (rev 12712)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/blocks.php 2014-07-15 21:47:39 UTC (rev 12713)
@@ -19,16 +19,21 @@
* @version $Id: blocks.php 12258 2014-01-02 09:33:29Z timgno $
*/
defined('XOOPS_ROOT_PATH') or die('Restricted access');
-
+require_once 'defines.php';
class LanguageBlocks extends TDMCreateFile
{
/*
+ * @var mixed
+ */
+ private $defines = null;
+ /*
* @public function constructor
* @param null
*/
public function __construct() {
parent::__construct();
- $this->tdmcfile = TDMCreateFile::getInstance();
+ $this->tdmcfile = TDMCreateFile::getInstance();
+ $this->defines = LanguageDefines::getInstance();
}
/*
* @static function &getInstance
@@ -54,41 +59,67 @@
$this->setTables($tables);
}
/*
- * @public function render
- * @param null
+ * @private function getLanguageBlock
+ * @param string $language
+ * @param string $module
*/
- public function render() {
- $module = $this->getModule();
- $tables = $this->getTables();
- $filename = $this->getFileName();
- $moduleDirname = $module->getVar('mod_dirname');
- $language = $this->getLanguage($moduleDirname, 'MB');
- $content = $this->getHeaderFilesComments($module, $filename);
- $content .= <<<EOT
-// Main
-define('{$language}DISPLAY', "How Many Tables to Display");
-define('{$language}TITLELENGTH', "Title Length");
-define('{$language}CATTODISPLAY', "Categories to Display");
-define('{$language}ALLCAT', "All Categories");\n
+ private function getLanguageBlock($module, $language)
+ {
+ $tables = $this->getTables();
+ $ret = <<<EOT
+// Admin Edit\n
EOT;
+ $ret .= $this->defines->getDefine($language, 'DISPLAY', "How Many Tables to Display");
+ $ret .= $this->defines->getDefine($language, 'TITLELENGTH', "Title Length");
+ $ret .= $this->defines->getDefine($language, 'CATTODISPLAY', "Categories to Display");
+ $ret .= $this->defines->getDefine($language, 'ALLCAT', "All Categories");
foreach (array_keys($tables) as $t)
{
$tableName = $tables[$t]->getVar('table_name');
- $ucf_table_name = ucfirst($tableName);
- $content .= <<<EOT
-// {$ucf_table_name}\n
+ $ucfTableName = ucfirst($tableName);
+ $ret .= <<<EOT
+// {$ucfTableName}\n
EOT;
$fields = $this->getTableFields($tables[$t]->getVar('table_id'));
foreach (array_keys($fields) as $f)
{
$fieldName = $fields[$f]->getVar('field_name');
- $lng_fields = $language.strtoupper($fieldName);
- $ucf_table_field = ucfirst($tableName.' '.str_replace('_', ' ', $fieldName));
- $content .= <<<EOT
-define('{$lng_fields}', "{$ucf_table_field}");\n
+ $stuFieldName = strtoupper($fieldName);
+ //
+ $rpFieldName = $this->tdmcfile->getRightString($fieldName);
+ $lpFieldName = substr($fieldName, 0, strpos($fieldName, '_'));
+ //
+ $fieldNameDesc = ucfirst($rpFieldName);
+ //
+ $ret .= $this->defines->getDefine($language, $stuFieldName, $fieldNameDesc);
+ }
+ }
+ return $ret;
+ }
+ /*
+ * @private function getFooter
+ * @param null
+ */
+ private function getLanguageFooter()
+ {
+ $ret = <<<EOT
+// ---------------- End ----------------
EOT;
- }
- }
+ return $ret;
+ }
+ /*
+ * @public function render
+ * @param null
+ */
+ public function render() {
+ $module = $this->getModule();
+ $filename = $this->getFileName();
+ $moduleDirname = $module->getVar('mod_dirname');
+ $language = $this->getLanguage($moduleDirname, 'MB');
+ $content = $this->getHeaderFilesComments($module, $filename);
+ $content .= $this->getLanguageBlock($module, $language);
+ $content .= $this->getLanguageFooter();
+ //
$this->tdmcfile->create($moduleDirname, 'language/'.$GLOBALS['xoopsConfig']['language'], $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
}
Added: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/defines.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/defines.php (rev 0)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/defines.php 2014-07-15 21:47:39 UTC (rev 12713)
@@ -0,0 +1,88 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/**
+ * tdmcreate module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package tdmcreate
+ * @since 2.5.0
+ * @author Txmod Xoops http://www.txmodxoops.org
+ * @version $Id: defines.php 12258 2014-01-02 09:33:29Z timgno $
+ */
+defined('XOOPS_ROOT_PATH') or die('Restricted access');
+
+class LanguageDefines
+{
+ /*
+ * @public function constructor
+ * @param null
+ */
+ public function __construct() { }
+ /*
+ * @static function &getInstance
+ * @param null
+ */
+ public static function &getInstance()
+ {
+ static $instance = false;
+ if (!$instance) {
+ $instance = new self();
+ }
+ return $instance;
+ }
+ /*
+ * @public function getAboveHeadDefines
+ * @param string $string
+ */
+ public function getAboveHeadDefines($string)
+ {
+ $ret = <<<EOT
+// ---------------- {$string} ----------------\n
+EOT;
+ return $ret;
+ }
+ /*
+ * @public function getAboveDefines
+ * @param string $string
+ */
+ public function getAboveDefines($string)
+ {
+ $ret = <<<EOT
+// {$string}\n
+EOT;
+ return $ret;
+ }
+ /*
+ * @public function getDefine
+ * @param string $language
+ * @param string $defined
+ * @param string $description
+ */
+ public function getDefine($language, $defined, $description)
+ {
+ $ret = <<<EOT
+define('{$language}{$defined}', "{$description}");\n
+EOT;
+ return $ret;
+ }
+ /*
+ * @public function getBelowDefines
+ * @param string $string
+ */
+ public function getBelowDefines($string)
+ {
+ $ret = <<<EOT
+// ---------------- {$string} ----------------
+EOT;
+ return $ret;
+ }
+}
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/main.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/main.php 2014-07-14 07:53:04 UTC (rev 12712)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/main.php 2014-07-15 21:47:39 UTC (rev 12713)
@@ -19,16 +19,21 @@
* @version $Id: include_search.php 12258 2014-01-02 09:33:29Z timgno $
*/
defined('XOOPS_ROOT_PATH') or die('Restricted access');
-
+require_once 'defines.php';
class LanguageMain extends TDMCreateFile
{
/*
+ * @var mixed
+ */
+ private $defines = null;
+ /*
* @public function constructor
* @param null
*/
public function __construct() {
parent::__construct();
- $this->tdmcfile = TDMCreateFile::getInstance();
+ $this->tdmcfile = TDMCreateFile::getInstance();
+ $this->defines = LanguageDefines::getInstance();
}
/*
* @static function &getInstance
@@ -45,65 +50,76 @@
/*
* @public function write
* @param string $module
- * @param mixed $table
* @param mixed $tables
* @param string $filename
*/
- public function write($module, $table, $tables, $filename) {
+ public function write($module, $tables, $filename) {
$this->setModule($module);
$this->setFileName($filename);
- $this->setTable($table);
$this->setTables($tables);
}
/*
- * @public function render
- * @param null
+ * @private function geLanguagetMain
+ * @param string $module
+ * @param string $language
*/
- public function render() {
- $module = $this->getModule();
+ private function geLanguagetMain($module, $language)
+ {
$tables = $this->getTables();
- $filename = $this->getFileName();
- $moduleName = $module->getVar('mod_name');
- $moduleDirname = $module->getVar('mod_dirname');
- $moduleDescription = $module->getVar('mod_description');
- $ucf_mod_name = ucfirst($moduleName);
- $language = $this->getLanguage($moduleDirname, 'MA');
- $content = $this->getHeaderFilesComments($module, $filename);
- $content .= <<<EOT
-// ---------------- Main ----------------
-define('{$language}INDEX', "Home");
-define('{$language}TITLE', "{$ucf_mod_name}");
-define('{$language}DESC', "{$moduleDescription}");
-define('{$language}INDEX_DESC', "Welcome to the homepage of your new module!<br />
-As you can see, you've created a page with a list of links at the top to navigate between the pages of your module. This description is only visible on the homepage of this module, the other pages you will see the content you created when you built this module with the module TDMCreate, and after creating new content in admin of this module. In order to expand this module with other resources, just add the code you need to extend the functionality of the same. The files are grouped by type, from the header to the footer to see how divided the source code.");\n
-EOT;
+ $ret = $this->defines->getAboveHeadDefines('Main');
+ $ret .= $this->defines->getDefine($language, 'INDEX', "Home");
+ $ret .= $this->defines->getDefine($language, 'TITLE', "{$module->getVar('mod_name')}");
+ $ret .= $this->defines->getDefine($language, 'DESC', "{$module->getVar('mod_description')}");
+ $ret .= $this->defines->getDefine($language, 'INDEX_DESC', "Welcome to the homepage of your new module!<br />
+As you can see, you've created a page with a list of links at the top to navigate between the pages of your module. This description is only visible on the homepage of this module, the other pages you will see the content you created when you built this module with the module TDMCreate, and after creating new content in admin of this module. In order to expand this module with other resources, just add the code you need to extend the functionality of the same. The files are grouped by type, from the header to the footer to see how divided the source code.");
+ $ret .= $this->defines->getAboveHeadDefines('Contents');
foreach (array_keys($tables) as $i)
{
$tableName = $tables[$i]->getVar('table_name');
- $lng_stu_table_name = $language.strtoupper($tableName);
- $ucf_table_name = UcFirstAndToLower($tableName);
- $content .= <<<EOT
-// {$ucf_table_name}
-define('{$lng_stu_table_name}', "{$ucf_table_name}");
-define('{$lng_stu_table_name}_DESC', "{$ucf_table_name} description");
-// Caption of {$ucf_table_name}\n
-EOT;
+ $stuTableName = strtoupper($tableName);
+ $ucfTableName = UcFirstAndToLower($tableName);
+ $ret .= $this->defines->getAboveDefines($ucfTableName);
+ $ret .= $this->defines->getDefine($language, $stuTableName, $ucfTableName);
+ $ret .= $this->defines->getDefine($language, "{$stuTableName}_DESC", "{$ucfTableName} description");
+ $ret .= $this->defines->getAboveDefines("Caption of {$ucfTableName}");
$fields = $this->getTableFields($tables[$i]->getVar('table_id'));
foreach (array_keys($fields) as $f)
{
- $field_name = $fields[$f]->getVar('field_name');
- $lng_stu_fields = $language.strtoupper($field_name);
- $ucf_field_name = ucfirst(str_replace('_', ' ', $field_name));
- $content .= <<<EOT
-define('{$lng_stu_fields}', "{$ucf_field_name}");\n
-EOT;
- }
+ $fieldName = $fields[$f]->getVar('field_name');
+ $stuFieldName = strtoupper($fieldName);
+ //
+ $rpFieldName = $this->tdmcfile->getRightString($fieldName);
+ $lpFieldName = substr($fieldName, 0, strpos($fieldName, '_'));
+ //
+ $fieldNameDesc = ucfirst($rpFieldName);
+ //
+ $ret .= $this->defines->getDefine($language, $stuFieldName, $fieldNameDesc);
+ }
}
- $content .= <<<EOT
-// Admin link
-define('{$language}ADMIN', "Admin");
-// ---------------- ----------------
-EOT;
+ return $ret;
+ }
+ /*
+ * @private function geLanguagetMainFooter
+ * @param null
+ */
+ private function geLanguagetMainFooter()
+ {
+ $ret = $this->defines->getBelowDefines('End');
+ return $ret;
+ }
+ /*
+ * @public function render
+ * @param null
+ */
+ public function render() {
+ $module = $this->getModule();
+ $filename = $this->getFileName();
+ $moduleDirname = $module->getVar('mod_dirname');
+ $language = $this->getLanguage($moduleDirname, 'MA');
+ $content = $this->getHeaderFilesComments($module, $filename);
+ $content .= $this->geLanguagetMain($module, $language);
+ $content .= $this->geLanguagetMainFooter();
+ //
$this->tdmcfile->create($moduleDirname, 'language/'.$GLOBALS['xoopsConfig']['language'], $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
}
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/modinfo.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/modinfo.php 2014-07-14 07:53:04 UTC (rev 12712)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/modinfo.php 2014-07-15 21:47:39 UTC (rev 12713)
@@ -19,16 +19,21 @@
* @version $Id: include_search.php 12258 2014-01-02 09:33:29Z timgno $
*/
defined('XOOPS_ROOT_PATH') or die('Restricted access');
-
+require_once 'defines.php';
class LanguageModinfo extends TDMCreateFile
{
/*
+ * @var mixed
+ */
+ private $defines = null;
+ /*
* @public function constructor
* @param null
*/
public function __construct() {
parent::__construct();
- $this->tdmcfile = TDMCreateFile::getInstance();
+ $this->tdmcfile = TDMCreateFile::getInstance();
+ $this->defines = LanguageDefines::getInstance();
}
/*
* @static function &getInstance
@@ -56,80 +61,68 @@
$this->setFileName($filename);
}
/*
- * @private function getMain
+ * @private function getLanguageMain
* @param string $language
* @param string $module
*/
- private function getMain($language, $module) {
- $ret = <<<EOT
-// Main
-define('{$language}NAME', "{$module->getVar('mod_name')}");
-define('{$language}DESC', "{$module->getVar('mod_description')}");\n
-EOT;
+ private function getLanguageMain($language, $module)
+ {
+ $ret = $this->defines->getAboveHeadDefines('Admin Main');
+ $ret .= $this->defines->getDefine($language, "NAME", "{$module->getVar('mod_name')}");
+ $ret .= $this->defines->getDefine($language, "DESC", "{$module->getVar('mod_description')}");
return $ret;
}
/*
- * @private function getMenu
+ * @private function getLanguageMenu
* @param string $language
+ * @param array $table
* @param array $tables
*/
- private function getMenu($language, $table, $tables) {
+ private function getLanguageMenu($language, $table, $tables)
+ {
$menu = 1;
- $ret = <<<EOT
-// Admin Menu
-define('{$language}ADMENU{$menu}', "Dashboard");\n
-EOT;
-
+ $ret = $this->defines->getAboveHeadDefines('Admin Menu');
+ $ret .= $this->defines->getDefine($language, "ADMENU{$menu}", "Dashboard");
foreach (array_keys($tables) as $i)
{
$menu++;
- $ucfTableName = ucfirst(str_replace('_', ' ', $tables[$i]->getVar('table_name')));
- $ret .= <<<EOT
-define('{$language}ADMENU{$menu}', "{$ucfTableName}");\n
-EOT;
+ $ucfTableName = ucfirst($tables[$i]->getVar('table_name'));
+ $ret .= $this->defines->getDefine($language, "ADMENU{$menu}", "{$ucfTableName}");
}
if (is_object($table) && $table->getVar('table_permissions') == 1) {
$menu++;
- $ret .= <<<EOT
-define('{$language}ADMENU{$menu}', "Permissions");\n
-EOT;
+ $ret .= $this->defines->getDefine($language, "ADMENU{$menu}", "Permissions");
}
$menu++;
- $ret .= <<<EOT
-define('{$language}ADMENU{$menu}', "About");\n
-EOT;
+ $ret .= $this->defines->getDefine($language, "ADMENU{$menu}", "About");
unset( $menu );
return $ret;
}
/*
- * @private function getAdmin
+ * @private function getLanguageAdmin
* @param string $language
*/
- private function getAdmin($language) {
- $ret = <<<EOT
-// Admin
-define('{$language}ADMINPAGER', "Admin pager");
-define('{$language}ADMINPAGER_DESC', "Admin per page list");\n
-EOT;
+ private function getLanguageAdmin($language)
+ {
+ $ret = $this->defines->getAboveHeadDefines('Admin Nav');
+ $ret .= $this->defines->getDefine($language, "ADMINPAGER", "Admin pager");
+ $ret .= $this->defines->getDefine($language, "ADMINPAGER_DESC", "Admin per page list");
return $ret;
}
/*
- * @private function getSubmenu
+ * @private function getLanguageSubmenu
* @param string $language
* @param array $tables
*/
- private function getSubmenu($language, $tables) {
- $ret = <<<EOT
-// Blocks\n
-EOT;
+ private function getLanguageSubmenu($language, $tables)
+ {
+ $ret = $this->defines->getAboveDefines('Submenu');
$i = 1;
- foreach (array_keys($tables) as $t)
+ foreach(array_keys($tables) as $t)
{
$tableName = $tables[$t]->getVar('table_name');
- if ( $tables[$t]->getVar('table_submenu') == 1 ) {
- $ret .= <<<EOT
-define('{$language}SMNAME{$i}', "{$tableName}");\n
-EOT;
+ if( $tables[$t]->getVar('table_submenu') == 1 ) {
+ $ret .= $this->defines->getDefine($language, "SMNAME{$i}", "{$tableName}");
}
$i++;
}
@@ -137,137 +130,135 @@
return $ret;
}
/*
- * @private function getBlocks
+ * @private function getLanguageBlocks
* @param string $language
* @param array $tables
*/
- private function getBlocks($language, $tables) {
- $ret = <<<EOT
-// Blocks\n
-EOT;
+ private function getLanguageBlocks($language, $tables)
+ {
+ $ret = $this->defines->getAboveDefines('Blocks');
foreach (array_keys($tables) as $i)
{
$tableName = $tables[$i]->getVar('table_name');
- $language1 = $language.strtoupper($tableName);
- $ucfTableName = str_replace("_", " ", ucfirst($tableName));
- if ( $tables[$i]->getVar('table_blocks') == 1 ) {
- $ret .= <<<EOT
-define('{$language1}_BLOCK', "{$ucfTableName} block");\n
-EOT;
+ $stuTableName = strtoupper($tableName);
+ $ucfTableName = ucfirst($tableName);
+ if( $tables[$i]->getVar('table_blocks') == 1 ) {
+ $ret .= $this->defines->getDefine($language, "{$stuTableName}_BLOCK", "{$ucfTableName} block");
}
}
return $ret;
}
/*
- * @private function getUser
+ * @private function getLanguageUser
* @param string $language
*/
- private function getUser($language) {
- $ret = <<<EOT
-// User
-define('{$language}USERPAGER', "User pager");
-define('{$language}USERPAGER_DESC', "User per page list");\n
-EOT;
+ private function getLanguageUser($language)
+ {
+ $ret = $this->defines->getAboveDefines('User');
+ $ret .= $this->defines->getDefine($language, "USERPAGER", "User pager");
+ $ret .= $this->defines->getDefine($language, "USERPAGER_DESC", "User per page list");
return $ret;
}
/*
- * @private function getConfig
+ * @private function getLanguageConfig
* @param string $language
- * @param string $table_image
+ * @param string $table
*/
- private function getConfig($language, $table) {
- $ret = <<<EOT
-// Config
-define('{$language}EDITOR', "Editor");
-define('{$language}EDITOR_DESC', "Select the Editor to use");
-define('{$language}KEYWORDS', "Keywords");
-define('{$language}KEYWORDS_DESC', "Insert here the keywords (separate by comma)");\n
-EOT;
+ private function getLanguageConfig($language, $table)
+ {
+ $ret = $this->defines->getAboveDefines('Config');
+ $ret .= $this->defines->getDefine($language, "EDITOR", "Editor");
+ $ret .= $this->defines->getDefine($language, "EDITOR_DESC", "Select the Editor to use");
+ $ret .= $this->defines->getDefine($language, "KEYWORDS", "Keywords");
+ $ret .= $this->defines->getDefine($language, "KEYWORDS_DESC", "Insert here the keywords (separate by comma)");
if ( $table->getVar('table_image') != '' )
{
- $ret .= <<<EOT
-define('{$language}MAXSIZE', "Max size");
-define('{$language}MAXSIZE_DESC', "Set a number of max size uploads file in byte");
-define('{$language}MIMETYPES', "Mime Types");
-define('{$language}MIMETYPES_DESC', "Set the mime types selected");\n
-EOT;
+ $ret .= $this->defines->getDefine($language, "MAXSIZE", "Max size");
+ $ret .= $this->defines->getDefine($language, "MAXSIZE_DESC", "Set a number of max size uploads file in byte");
+ $ret .= $this->defines->getDefine($language, "MIMETYPES", "Mime Types");
+ $ret .= $this->defines->getDefine($language, "MIMETYPES_DESC", "Set the mime types selected");
}
- $ret .= <<<EOT
-define('{$language}IDPAYPAL', "Paypal ID");
-define('{$language}IDPAYPAL_DESC', "Insert here your PayPal ID for donactions.");
-define('{$language}ADVERTISE', "Advertisement Code");
-define('{$language}ADVERTISE_DESC', "Insert here the advertisement code");
-define('{$language}BOOKMARKS', "Social Bookmarks");
-define('{$language}BOOKMARKS_DESC', "Show Social Bookmarks in the form");
-define('{$language}FBCOMMENTS', "Facebook comments");
-define('{$language}FBCOMMENTS_DESC', "Allow Facebook comments in the form");\n
-EOT;
+ $ret .= $this->defines->getDefine($language, "IDPAYPAL", "Paypal ID");
+ $ret .= $this->defines->getDefine($language, "IDPAYPAL_DESC", "Insert here your PayPal ID for donactions.");
+ $ret .= $this->defines->getDefine($language, "ADVERTISE", "Advertisement Code");
+ $ret .= $this->defines->getDefine($language, "ADVERTISE_DESC", "Insert here the advertisement code");
+ $ret .= $this->defines->getDefine($language, "BOOKMARKS", "Social Bookmarks");
+ $ret .= $this->defines->getDefine($language, "BOOKMARKS_DESC", "Show Social Bookmarks in the form");
+ $ret .= $this->defines->getDefine($language, "FBCOMMENTS", "Facebook comments");
+ $ret .= $this->defines->getDefine($language, "FBCOMMENTS_DESC", "Allow Facebook comments in the form");
return $ret;
}
/*
- * @private function getNotifications
+ * @private function getLanguageNotifications
* @param string $language
* @param mixed $table
*/
- private function getNotifications($language) {
- $ret = <<<EOT
-// Notifications
-define('{$language}GLOBAL_NOTIFY', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_NOTIFY_DESC', "Allow Facebook comments in the form");
-define('{$language}CATEGORY_NOTIFY', "Allow Facebook comments in the form");
-define('{$language}CATEGORY_NOTIFY_DESC', "Allow Facebook comments in the form");
-define('{$language}FILE_NOTIFY', "Allow Facebook comments in the form");
-define('{$language}FILE_NOTIFY_DESC', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_NEWCATEGORY_NOTIFY', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_NEWCATEGORY_NOTIFY_CAPTION', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_NEWCATEGORY_NOTIFY_DESC', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_NEWCATEGORY_NOTIFY_SUBJECT', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_FILEMODIFY_NOTIFY', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_FILEMODIFY_NOTIFY_CAPTION', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_FILEMODIFY_NOTIFY_DESC', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_FILEMODIFY_NOTIFY_SUBJECT', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_FILEBROKEN_NOTIFY', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_FILEBROKEN_NOTIFY_CAPTION', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_FILEBROKEN_NOTIFY_DESC', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_FILEBROKEN_NOTIFY_SUBJECT', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_FILESUBMIT_NOTIFY', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_FILESUBMIT_NOTIFY_CAPTION', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_FILESUBMIT_NOTIFY_DESC', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_FILESUBMIT_NOTIFY_SUBJECT', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_NEWFILE_NOTIFY', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_NEWFILE_NOTIFY_CAPTION', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_NEWFILE_NOTIFY_DESC', "Allow Facebook comments in the form");
-define('{$language}GLOBAL_NEWFILE_NOTIFY_SUBJECT', "Allow Facebook comments in the form");
-define('{$language}CATEGORY_FILESUBMIT_NOTIFY', "Allow Facebook comments in the form");
-define('{$language}CATEGORY_FILESUBMIT_NOTIFY_CAPTION', "Allow Facebook comments in the form");
-define('{$language}CATEGORY_FILESUBMIT_NOTIFY_DESC', "Allow Facebook comments in the form");
-define('{$language}CATEGORY_FILESUBMIT_NOTIFY_SUBJECT', "Allow Facebook comments in the form");
-define('{$language}CATEGORY_NEWFILE_NOTIFY', "Allow Facebook comments in the form");
-define('{$language}CATEGORY_NEWFILE_NOTIFY_CAPTION', "Allow Facebook comments in the form");
-define('{$language}CATEGORY_NEWFILE_NOTIFY_DESC', "Allow Facebook comments in the form");
-define('{$language}CATEGORY_NEWFILE_NOTIFY_SUBJECT', "Allow Facebook comments in the form");
-define('{$language}FILE_APPROVE_NOTIFY', "Allow Facebook comments in the form");
-define('{$language}FILE_APPROVE_NOTIFY_CAPTION', "Allow Facebook comments in the form");
-define('{$language}FILE_APPROVE_NOTIFY_DESC', "Allow Facebook comments in the form");
-define('{$language}FILE_APPROVE_NOTIFY_SUBJECT', "Allow Facebook comments in the form");\n
-EOT;
+ private function getLanguageNotifications($language)
+ {
+ $ret = $this->defines->getAboveDefines('Notifications');
+ $ret .= $this->defines->getDefine($language, "GLOBAL_NOTIFY", "Global notify");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_NOTIFY_DESC", "Global notify desc");
+ $ret .= $this->defines->getDefine($language, "CATEGORY_NOTIFY", "Category notify");
+ $ret .= $this->defines->getDefine($language, "CATEGORY_NOTIFY_DESC", "Category notify desc");
+ $ret .= $this->defines->getDefine($language, "FILE_NOTIFY", "File notify");
+ $ret .= $this->defines->getDefine($language, "FILE_NOTIFY_DESC", "File notify desc");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_NEWCATEGORY_NOTIFY", "Global newcategory notify");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_NEWCATEGORY_NOTIFY_CAPTION", "Global newcategory notify caption");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_NEWCATEGORY_NOTIFY_DESC", "Global newcategory notify desc");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_NEWCATEGORY_NOTIFY_SUBJECT", "Global newcategory notify subject");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_FILEMODIFY_NOTIFY", "Global filemodify notify");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_FILEMODIFY_NOTIFY_CAPTION", "Global filemodify notify caption");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_FILEMODIFY_NOTIFY_DESC", "Global filemodify notify desc");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_FILEMODIFY_NOTIFY_SUBJECT", "Global filemodify notify subject");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_FILEBROKEN_NOTIFY", "Global filebroken notify");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_FILEBROKEN_NOTIFY_CAPTION", "Global filebroken notify caption");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_FILEBROKEN_NOTIFY_DESC", "Global filebroken notify desc");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_FILEBROKEN_NOTIFY_SUBJECT", "Global filebroken notify subject");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_FILESUBMIT_NOTIFY", "Global filesubmit notify");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_FILESUBMIT_NOTIFY_CAPTION", "Global filesubmit notify caption");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_FILESUBMIT_NOTIFY_DESC", "Global filesubmit notify desc");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_FILESUBMIT_NOTIFY_SUBJECT", "Global filesubmit notify subject");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_NEWFILE_NOTIFY", "Global newfile notify");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_NEWFILE_NOTIFY_CAPTION", "Global newfile notify caption");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_NEWFILE_NOTIFY_DESC", "Global newfile notify desc");
+ $ret .= $this->defines->getDefine($language, "GLOBAL_NEWFILE_NOTIFY_SUBJECT", "Global newfile notify subject");
+ $ret .= $this->defines->getDefine($language, "CATEGORY_FILESUBMIT_NOTIFY", "Category filesubmit notify");
+ $ret .= $this->defines->getDefine($language, "CATEGORY_FILESUBMIT_NOTIFY_CAPTION", "Category filesubmit notify caption");
+ $ret .= $this->defines->getDefine($language, "CATEGORY_FILESUBMIT_NOTIFY_DESC", "Category filesubmit notify desc");
+ $ret .= $this->defines->getDefine($language, "CATEGORY_FILESUBMIT_NOTIFY_SUBJECT", "Category filesubmit notify subject");
+ $ret .= $this->defines->getDefine($language, "CATEGORY_NEWFILE_NOTIFY", "Category newfile notify");
+ $ret .= $this->defines->getDefine($language, "CATEGORY_NEWFILE_NOTIFY_CAPTION", "Category newfile notify caption");
+ $ret .= $this->defines->getDefine($language, "CATEGORY_NEWFILE_NOTIFY_DESC", "Category newfile notify desc");
+ $ret .= $this->defines->getDefine($language, "CATEGORY_NEWFILE_NOTIFY_SUBJECT", "Category newfile notify subject");
+ $ret .= $this->defines->getDefine($language, "FILE_APPROVE_NOTIFY", "File approve notify");
+ $ret .= $this->defines->getDefine($language, "FILE_APPROVE_NOTIFY_CAPTION", "File approve notify caption");
+ $ret .= $this->defines->getDefine($language, "FILE_APPROVE_NOTIFY_DESC", "File approve notify desc");
+ $ret .= $this->defines->getDefine($language, "FILE_APPROVE_NOTIFY_SUBJECT", "File approve notify subject");
return $ret;
}
/*
- * @private function getPermissions
+ * @private function getLanguagePermissions
* @param string $language
*/
- private function getPermissions($language) {
- $ret = <<<EOT
-// Permissions Groups
-define('{$language}GROUPS', "Groups access");
-define('{$language}GROUPS_DESC', "Select general access permission for groups.");
-define('{$language}ADMINGROUPS', "Admin Group Permissions");
-define('{$language}ADMINGROUPS_DESC', "Which groups have access to tools and permissions page");
-EOT;
+ private function getLanguagePermissions($language)
+ {
+ $ret = $this->defines->getAboveDefines('Permissions Groups');
+ $ret .= $this->defines->getDefine($language, "GROUPS", "Groups access");
+ $ret .= $this->defines->getDefine($language, "GROUPS_DESC", "Select general access permission for groups.");
+ $ret .= $this->defines->getDefine($language, "ADMINGROUPS", "Admin Group Permissions");
+ $ret .= $this->defines->getDefine($language, "ADMINGROUPS_DESC", "Which groups have access to tools and permissions page");
return $ret;
}
/*
+ * @private function getFooter
+ * @param null
+ */
+ private function getLanguageFooter()
+ {
+ $ret = $this->defines->getBelowDefines('End');
+ return $ret;
+ }
+ /*
* @public function render
* @param null
*/
@@ -279,28 +270,29 @@
$moduleDirname = $module->getVar('mod_dirname');
$language = $this->getLanguage($moduleDirname, 'MI');
$content = $this->getHeaderFilesComments($module, $filename);
- $content .= $this->getMain($language, $module);
- $content .= $this->getMenu($language, $table, $tables);
+ $content .= $this->getLanguageMain($language, $module);
+ $content .= $this->getLanguageMenu($language, $table, $tables);
if (is_object($table)) {
if ( $table->getVar('table_admin') == 1 ) {
- $content .= $this->getAdmin($language);
+ $content .= $this->getLanguageAdmin($language);
}
if ( $table->getVar('table_user') == 1 ) {
- $content .= $this->getUser($language);
+ $content .= $this->getLanguageUser($language);
}
if ( $table->getVar('table_submenu') == 1 ) {
- $content .= $this->getSubmenu($language, $tables);
+ $content .= $this->getLanguageSubmenu($language, $tables);
}
- $content .= $this->getBlocks($language, $tables);
- $content .= $this->getConfig($language, $table);
+ $content .= $this->getLanguageBlocks($language, $tables);
+ $content .= $this->getLanguageConfig($language, $table);
if ( $table->getVar('table_notifications') == 1 )
{
- $content .= $this->getNotifications($language);
+ $content .= $this->getLanguageNotifications($language);
}
if ( $table->getVar('table_permissions') == 1 ) {
- $content .= $this->getPermissions($language);
+ $content .= $this->getLanguagePermissions($language);
}
}
+ $content .= $this->getLanguageFooter();
//
$this->tdmcfile->create($moduleDirname, 'language/'.$GLOBALS['xoopsConfig']['language'], $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/admin/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/admin/pages.php 2014-07-14 07:53:04 UTC (rev 12712)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/admin/pages.php 2014-07-15 21:47:39 UTC (rev 12713)
@@ -105,13 +105,10 @@
{
$fieldName = $fields[$f]->getVar('field_name');
$fieldElement = $fields[$f]->getVar('field_element');
+ $rpFieldName = $this->tdmcfile->getRightString($fieldName);
if($f == 0) {
- $field_id = $fieldName;
- $rpFieldName = $this->tdmcfile->getRightString($field_id);
- } else {
- $rpFieldName = $this->tdmcfile->getRightString($fieldName);
- }
- $lp_field_name = substr($fieldName, 0, strpos($fieldName, '_'));
+ $field_id = $fieldName;
+ }
if( ($fields[$f]->getVar('field_inlist') == 1) || ($table->getVar('table_autoincrement') == 1) ) {
switch( $fieldElement ) {
case 9:
|
|
From: <be...@us...> - 2014-07-14 07:53:07
|
Revision: 12712
http://sourceforge.net/p/xoops/svn/12712
Author: beckmi
Date: 2014-07-14 07:53:04 +0000 (Mon, 14 Jul 2014)
Log Message:
-----------
Fixing typo (Timgno)
fix for Update setting Template import date to 0 (timgno/mamba)
Modified Paths:
--------------
XoopsCore/branches/2.5.x/2.5.7/docs/changelog.250.txt
XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/system/admin/modulesadmin/main.php
XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/system/admin/modulesadmin/modulesadmin.php
XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/system/language/english/admin/modulesadmin.php
Modified: XoopsCore/branches/2.5.x/2.5.7/docs/changelog.250.txt
===================================================================
--- XoopsCore/branches/2.5.x/2.5.7/docs/changelog.250.txt 2014-07-14 07:50:15 UTC (rev 12711)
+++ XoopsCore/branches/2.5.x/2.5.7/docs/changelog.250.txt 2014-07-14 07:53:04 UTC (rev 12712)
@@ -1,9 +1,17 @@
XOOPS 2.5.x Changelog (Language changes: see: /docs/lang_diff.txt)
+
===============================
-2014-06-14: Version 2.5.7 Final (Patch)
+NOT RELEASED Version 2.5.7 Final (Patch 2)
===============================
+- Fix issues when protector 'id_forceintval' preference is enabled, that manifests as an error when deleting private messages. (rgriffith)
+- fix for Update setting Template import date to 0 (timgno/mamba)
+
+===============================
+2014-06-14: Version 2.5.7 Final (Patch 1)
+===============================
+
- Updating docu for the correct version of tablesorter (mamba)
- Fix path specified for include (rgriffith, mamba)
- added mainfile.php to /extras for use on servers where write to root is not possible (rgriffith)
Modified: XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/system/admin/modulesadmin/main.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/system/admin/modulesadmin/main.php 2014-07-14 07:50:15 UTC (rev 12711)
+++ XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/system/admin/modulesadmin/main.php 2014-07-14 07:53:04 UTC (rev 12712)
@@ -582,7 +582,7 @@
$tplfile = empty($tplfiles) ? $tplfile_handler->create() : $tplfiles[0];
// END irmtfan solve templates duplicate issue
$tplfile->setVar('tpl_refid', $newmid);
- $tplfile->setVar('tpl_lastimported', 0);
+// $tplfile->setVar('tpl_lastimported', 0);
$tplfile->setVar('tpl_lastmodified', time());
$tplfile->setVar('tpl_type', $type);
$tplfile->setVar('tpl_source', $tpldata, true);
@@ -686,7 +686,7 @@
$tplfile_new->setVar('tpl_source', $content, true);
$tplfile_new->setVar('tpl_desc', $block['description'], true);
$tplfile_new->setVar('tpl_lastmodified', time());
- $tplfile_new->setVar('tpl_lastimported', 0);
+// $tplfile_new->setVar('tpl_lastimported', 0);
$tplfile_new->setVar(
'tpl_file',
$block['template'],
Modified: XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/system/admin/modulesadmin/modulesadmin.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/system/admin/modulesadmin/modulesadmin.php 2014-07-14 07:50:15 UTC (rev 12711)
+++ XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/system/admin/modulesadmin/modulesadmin.php 2014-07-14 07:53:04 UTC (rev 12712)
@@ -515,7 +515,7 @@
} else {
$msgs = array();
$msgs[] = '<div id="xo-module-log"><div class="header">';
- $msgs[] = $errs[] = '<h4>' . _AM_SYSTEM_MODULES_UNINSTAL . $module->getInfo('name', 's') . '</h4>';
+ $msgs[] = $errs[] = '<h4>' . _AM_SYSTEM_MODULES_UNINSTALL . $module->getInfo('name', 's') . '</h4>';
if ($module->getInfo('image') != false && trim($module->getInfo('image')) != '') {
$msgs[] ='<img src="' . XOOPS_URL . '/modules/' . $dirname . '/' . trim($module->getInfo('image')) . '" alt="" />';
}
Modified: XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/system/language/english/admin/modulesadmin.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/system/language/english/admin/modulesadmin.php 2014-07-14 07:50:15 UTC (rev 12711)
+++ XoopsCore/branches/2.5.x/2.5.7/htdocs/modules/system/language/english/admin/modulesadmin.php 2014-07-14 07:53:04 UTC (rev 12712)
@@ -18,7 +18,6 @@
define('_AM_SYSTEM_MODULES_RUSUREUPD',"Press the button below to update this module");
define('_AM_SYSTEM_MODULES_BTOMADMIN',"XOOPS Module Administration");
define('_AM_SYSTEM_MODULES_INSTALLING',"Installing ");
-define('_AM_SYSTEM_MODULES_UNINSTAL',"Uninstall ");
define('_AM_SYSTEM_MODULES_DEACTIVATE',"Deactivate ");
define('_AM_SYSTEM_MODULES_ACTIVATE',"Activate ");
define('_AM_SYSTEM_MODULES_UPDATING',"Updating ");
|
|
From: <be...@us...> - 2014-07-14 07:50:20
|
Revision: 12711
http://sourceforge.net/p/xoops/svn/12711
Author: beckmi
Date: 2014-07-14 07:50:15 +0000 (Mon, 14 Jul 2014)
Log Message:
-----------
Fixing typo (Timgno)
Modified Paths:
--------------
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/language/english/admin/modulesadmin.php
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/language/english/admin/modulesadmin.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/language/english/admin/modulesadmin.php 2014-07-14 07:42:44 UTC (rev 12710)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/language/english/admin/modulesadmin.php 2014-07-14 07:50:15 UTC (rev 12711)
@@ -18,7 +18,6 @@
define('_AM_SYSTEM_MODULES_RUSUREUPD',"Press the button below to update this module");
define('_AM_SYSTEM_MODULES_BTOMADMIN',"XOOPS Module Administration");
define('_AM_SYSTEM_MODULES_INSTALLING',"Installing ");
-define('_AM_SYSTEM_MODULES_UNINSTALL',"Uninstall ");
define('_AM_SYSTEM_MODULES_DEACTIVATE',"Deactivate ");
define('_AM_SYSTEM_MODULES_ACTIVATE',"Activate ");
define('_AM_SYSTEM_MODULES_UPDATING',"Updating ");
|
|
From: <be...@us...> - 2014-07-14 07:42:48
|
Revision: 12710
http://sourceforge.net/p/xoops/svn/12710
Author: beckmi
Date: 2014-07-14 07:42:44 +0000 (Mon, 14 Jul 2014)
Log Message:
-----------
Fixing typo (Timgno)
Modified Paths:
--------------
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/modulesadmin/modulesadmin.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/language/english/admin/modulesadmin.php
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/modulesadmin/modulesadmin.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/modulesadmin/modulesadmin.php 2014-07-13 10:24:13 UTC (rev 12709)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/modulesadmin/modulesadmin.php 2014-07-14 07:42:44 UTC (rev 12710)
@@ -515,7 +515,7 @@
} else {
$msgs = array();
$msgs[] = '<div id="xo-module-log"><div class="header">';
- $msgs[] = $errs[] = '<h4>' . _AM_SYSTEM_MODULES_UNINSTAL . $module->getInfo('name', 's') . '</h4>';
+ $msgs[] = $errs[] = '<h4>' . _AM_SYSTEM_MODULES_UNINSTALL . $module->getInfo('name', 's') . '</h4>';
if ($module->getInfo('image') != false && trim($module->getInfo('image')) != '') {
$msgs[] ='<img src="' . XOOPS_URL . '/modules/' . $dirname . '/' . trim($module->getInfo('image')) . '" alt="" />';
}
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/language/english/admin/modulesadmin.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/language/english/admin/modulesadmin.php 2014-07-13 10:24:13 UTC (rev 12709)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/language/english/admin/modulesadmin.php 2014-07-14 07:42:44 UTC (rev 12710)
@@ -18,7 +18,7 @@
define('_AM_SYSTEM_MODULES_RUSUREUPD',"Press the button below to update this module");
define('_AM_SYSTEM_MODULES_BTOMADMIN',"XOOPS Module Administration");
define('_AM_SYSTEM_MODULES_INSTALLING',"Installing ");
-define('_AM_SYSTEM_MODULES_UNINSTAL',"Uninstall ");
+define('_AM_SYSTEM_MODULES_UNINSTALL',"Uninstall ");
define('_AM_SYSTEM_MODULES_DEACTIVATE',"Deactivate ");
define('_AM_SYSTEM_MODULES_ACTIVATE',"Activate ");
define('_AM_SYSTEM_MODULES_UPDATING',"Updating ");
|
|
From: <txm...@us...> - 2014-07-13 10:24:24
|
Revision: 12709
http://sourceforge.net/p/xoops/svn/12709
Author: txmodxoops
Date: 2014-07-13 10:24:13 +0000 (Sun, 13 Jul 2014)
Log Message:
-----------
- Fixed bugs
- Updated
- Still work to do
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/admin/tables.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/objects.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/architecture.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/blocks/blocks.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/include/install.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/admin.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/structure.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/admin/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/user/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/objects.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/sql/mysql.sql
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/admin/tables.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/admin/tables.php 2014-07-13 00:34:40 UTC (rev 12708)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/admin/tables.php 2014-07-13 10:24:13 UTC (rev 12709)
@@ -202,7 +202,7 @@
if( $tablesObj->isNew() ) {
$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']));
+ redirect_header('fields.php?op=new'.$table_action, 5, sprintf(_AM_TDMCREATE_TABLE_FORM_CREATED_OK, $_POST['table_name']));
} else {
// Get fields where table id
$fields =& $tdmcreate->getHandler('fields');
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/objects.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/objects.php 2014-07-13 00:34:40 UTC (rev 12708)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/objects.php 2014-07-13 10:24:13 UTC (rev 12709)
@@ -169,6 +169,22 @@
return $ret;
}
/*
+ * @public function getUploadImageGetVar
+ * @param string $lpFieldName
+ * @param string $rpFieldName
+ * @param string $tableName
+ * @param string $fieldName
+ */
+ public function getUploadImageGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName) {
+ $ret = <<<EOT
+\t\t\t\t// Get Var {$fieldName}
+\t\t\t\t\${$fieldName} = \${$tableName}_arr[\$i]->getVar('{$fieldName}');
+\t\t\t\t\$upload_image = \${$fieldName} ? \${$fieldName} : 'blank.gif';
+\t\t\t\t\${$lpFieldName}['{$rpFieldName}'] = \$upload_image;\n
+EOT;
+ return $ret;
+ }
+ /*
* @public function getTextAreaGetVar
* @param string $lpFieldName
* @param string $rpFieldName
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/pages.php 2014-07-13 00:34:40 UTC (rev 12708)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/pages.php 2014-07-13 10:24:13 UTC (rev 12709)
@@ -61,7 +61,7 @@
* @param string $moduleDirname
* @param string $tableName
*/
- public function getAdminPagesHeader($moduleDirname, $tableName, $fpif) {
+ public function getAdminPagesHeader($moduleDirname, $table, $fpif) {
$ret = <<<EOT
include_once 'header.php';
@@ -127,9 +127,12 @@
case 4:
$ret .= $this->adminobjects->getTextAreaGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName);
break;
- case 5:
+ case 8:
$ret .= $this->adminobjects->getSelectUserGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName);
- break;
+ break;
+ case 11:
+ $ret .= $this->adminobjects->getUploadImageGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName);
+ break;
case 13:
$ret .= $this->adminobjects->getTextDateSelectGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName);
break;
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-13 00:34:40 UTC (rev 12708)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/architecture.php 2014-07-13 10:24:13 UTC (rev 12709)
@@ -320,6 +320,10 @@
}
// Creation of blocks language file
if (is_object($table)) {
+ // Include Install File
+ $includeInstall = IncludeInstall::getInstance();
+ $includeInstall->write($module, $table, $tables, 'install.php');
+ $ret[] = $includeInstall->render();
if ( $table->getVar('table_blocks') == 1) {
// Language Blocks File
$languageBlocks = LanguageBlocks::getInstance();
@@ -354,11 +358,7 @@
$languageMailTpl = LanguageMailTpl::getInstance();
$languageMailTpl->write($module);
$ret[] = $languageMailTpl->renderFile('category_new_notify.tpl');
- }
- // Include Install File
- $includeInstall = IncludeInstall::getInstance();
- $includeInstall->write($module, $table, $tables, 'install.php');
- $ret[] = $includeInstall->render();
+ }
// Creation of sql file
if ( $table->getVar('table_name') != null) {
// Sql File
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/blocks/blocks.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/blocks/blocks.php 2014-07-13 00:34:40 UTC (rev 12708)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/blocks/blocks.php 2014-07-13 10:24:13 UTC (rev 12709)
@@ -60,7 +60,7 @@
$ucfModuleDirname = ucfirst($moduleDirname);
$ret = <<<EOT
include_once XOOPS_ROOT_PATH.'/modules/{$moduleDirname}/include/common.php';
-include_once XOOPS_ROOT_PATH.'/modules/{$moduleDirname}/include/functions.php';
+// Function show block
function b_{$moduleDirname}_{$tableName}_show(\$options)
{
include_once XOOPS_ROOT_PATH.'/modules/{$moduleDirname}/class/{$tableName}.php';
@@ -128,6 +128,7 @@
$stuModuleDirname = strtoupper($moduleDirname);
$ucfModuleDirname = ucfirst($moduleDirname);
$ret = <<<EOT
+// Function edit block
function b_{$moduleDirname}_{$tableName}_edit(\$options)
{
include_once XOOPS_ROOT_PATH.'/modules/{$moduleDirname}/class/{$tableName}.php';
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-07-13 00:34:40 UTC (rev 12708)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/include/install.php 2014-07-13 10:24:13 UTC (rev 12709)
@@ -181,7 +181,7 @@
$fieldElement = $fields[$f]->getVar('field_element');
// All fields elements selected
switch( $fieldElement ) {
- case 10:
+ case 11:
$content .= $this->getInstallImagesFolder($moduleDirname);
foreach(array_keys($tables) as $t)
{
@@ -189,7 +189,7 @@
$content .= $this->getInstallTableImagesFolder($tableName);
}
break;
- case 11:
+ case 12:
$content .= $this->getInstallFilesFolder($moduleDirname);
foreach(array_keys($tables) as $t)
{
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/admin.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/admin.php 2014-07-13 00:34:40 UTC (rev 12708)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/admin.php 2014-07-13 10:24:13 UTC (rev 12709)
@@ -165,17 +165,17 @@
EOT;
switch($fieldElement)
{
- case 9:
+ case 10:
$ret .= <<<EOT
define('{$language}FORM_UPLOAD_IMAGE_LIST_{$stuTableName}', "{$fieldNameDesc} in frameworks images");\n
EOT;
break;
- case 10:
+ case 11:
$ret .= <<<EOT
define('{$language}FORM_UPLOAD_IMAGE_{$stuTableName}', "{$fieldNameDesc} in uploads images");\n
EOT;
break;
- case 11:
+ case 12:
$ret .= <<<EOT
define('{$language}FORM_UPLOAD_FILE_{$stuTableName}', "{$fieldNameDesc} in uploads files");\n
EOT;
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/structure.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/structure.php 2014-07-13 00:34:40 UTC (rev 12708)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/structure.php 2014-07-13 10:24:13 UTC (rev 12709)
@@ -43,6 +43,10 @@
*/
private $path = null;
/*
+ * @var mixed
+ */
+ //private $uploadPath = null;
+ /*
* @var string
*/
private $fromFile = null;
@@ -70,12 +74,40 @@
return $instance;
}
/*
+ * @public function setPath
+ * @param string $path
+ */
+ /*public function setPath($path) {
+ $this->path = TDMC_PATH . DIRECTORY_SEPARATOR . $path;
+ }*/
+ /*
+ * @public function setUploadPath
+ * @param string $path
+ */
+ /*public function setUploadPath($path) {
+ $this->uploadPath = TDMC_UPLOAD_PATH . DIRECTORY_SEPARATOR . $path;
+ }*/
+ /*
* @public function getPath
* @param string $path
*/
+ /*public function getPath() {
+ return $this->path;
+ }*/
+ /*
+ * @public function getUploadPath
+ * @param string $path
+ */
+ /*public function getUploadPath() {
+ return $this->uploadPath;
+ }*/
+ /*
+ * @public function getPath
+ * @param string $path
+ */
public function getPath($path) {
$this->path = $path;
- }
+ }
/*
* @public function isDir
* @param string $dname
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/admin/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/admin/pages.php 2014-07-13 00:34:40 UTC (rev 12708)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/admin/pages.php 2014-07-13 10:24:13 UTC (rev 12709)
@@ -58,7 +58,9 @@
* @param string $fields
* @param string $language
*/
- private function getTemplatesAdminPagesHeader($moduleDirname, $tableName, $fields, $language) {
+ private function getTemplatesAdminPagesHeader($moduleDirname, $table, $fields, $language)
+ {
+ $tableName = $table->getVar('table_name');
$ret = <<<EOT
<{include file="db:{$moduleDirname}_admin_header.tpl"}>
<{if {$tableName}_list}>
@@ -70,7 +72,8 @@
{
$fieldName = $fields[$f]->getVar('field_name');
$lang_fn = $language.strtoupper($fieldName);
- if( $fields[$f]->getVar('field_inlist') == 1 ) {
+ if( ($fields[$f]->getVar('field_inlist') == 1) || ($table->getVar('table_autoincrement') == 1)
+ ) {
$ret .= <<<EOT
<th class="center"><{\$smarty.const.{$lang_fn}}></th>\n
EOT;
@@ -90,8 +93,9 @@
* @param string $fields
* @param string $language
*/
- private function getTemplatesAdminPagesBody($moduleDirname, $tableName, $fields, $language)
+ private function getTemplatesAdminPagesBody($moduleDirname, $table, $fields, $language)
{
+ $tableName = $table->getVar('table_name');
$ret = <<<EOT
<tbody>
<{foreach item=list from=\${$tableName}_list}>
@@ -108,7 +112,7 @@
$rpFieldName = $this->tdmcfile->getRightString($fieldName);
}
$lp_field_name = substr($fieldName, 0, strpos($fieldName, '_'));
- if( $fields[$f]->getVar('field_inlist') == 1 ) {
+ if( ($fields[$f]->getVar('field_inlist') == 1) || ($table->getVar('table_autoincrement') == 1) ) {
switch( $fieldElement ) {
case 9:
$ret .= <<<EOT
@@ -156,8 +160,9 @@
* @param string $fields
* @param string $language
*/
- private function getTemplatesAdminPagesBodyFieldnameEmpty($moduleDirname, $tableName, $fields, $language)
+ private function getTemplatesAdminPagesBodyFieldnameEmpty($moduleDirname, $table, $fields, $language)
{
+ $tableName = $table->getVar('table_name');
$ret = <<<EOT
<tbody>
<{foreach item=list from=\${$tableName}_list}>
@@ -169,8 +174,8 @@
$fieldElement = $fields[$f]->getVar('field_element');
if($f == 0) {
$field_id = $fieldName;
- }
- if( $fields[$f]->getVar('field_inlist') == 1 ) {
+ }
+ if( ($fields[$f]->getVar('field_inlist') == 1) || ($table->getVar('table_autoincrement') == 1) ) {
switch( $fieldElement ) {
case 9:
$ret .= <<<EOT
@@ -222,11 +227,11 @@
<!-- Display navigation -->
<div class="xo-pagenav floatright"><{\$pagenav}></div><div class="clear spacer"></div>
<{/if}>
- <{if \$error}>
- <div class="errorMsg">
- <strong><{\$error}></strong>
- </div>
- <{/if}>
+<{/if}>
+<{if \$error}>
+ <div class="errorMsg">
+ <strong><{\$error}></strong>
+ </div>
<{/if}>
<{if \$form}>
<!-- Display form (add,edit) -->
@@ -246,16 +251,15 @@
$module = $this->getModule();
$table = $this->getTable();
$moduleDirname = $module->getVar('mod_dirname');
- $tableName = $table->getVar('table_name');
$tableFieldname = $table->getVar('table_fieldname');
$language = $this->getLanguage($moduleDirname, 'AM');
$fields = $this->getTableFields($table->getVar('table_id'));
- $content = $this->getTemplatesAdminPagesHeader($moduleDirname, $tableName, $fields, $language);
+ $content = $this->getTemplatesAdminPagesHeader($moduleDirname, $table, $fields, $language);
// Verify if table_fieldname is not empty
if(!empty($tableFieldname)) {
- $content .= $this->getTemplatesAdminPagesBody($moduleDirname, $tableName, $fields, $language);
+ $content .= $this->getTemplatesAdminPagesBody($moduleDirname, $table, $fields, $language);
} else {
- $content .= $this->getTemplatesAdminPagesBodyFieldnameEmpty($moduleDirname, $tableName, $fields, $language);
+ $content .= $this->getTemplatesAdminPagesBodyFieldnameEmpty($moduleDirname, $table, $fields, $language);
}
$content .= $this->getTemplatesAdminPagesFooter($moduleDirname);
//
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/user/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/user/pages.php 2014-07-13 00:34:40 UTC (rev 12708)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/user/pages.php 2014-07-13 10:24:13 UTC (rev 12709)
@@ -71,7 +71,7 @@
{
$fieldName = $fields[$f]->getVar('field_name');
$langStuFieldName = $language.strtoupper($fieldName);
- if( $fields[$f]->getVar('field_user') == 1 ) {
+ if( ($fields[$f]->getVar('field_user') == 1) || ($table->getVar('table_autoincrement') == 1) ) {
$ret .= <<<EOT
<th class="center"><{\$smarty.const.{$langStuFieldName}}></th>\n
EOT;
@@ -103,7 +103,7 @@
$fieldName = $fields[$f]->getVar('field_name');
$fieldElement = $fields[$f]->getVar('field_element');
$rpFieldName = $this->tdmcfile->getRightString($fieldName);
- if( $fields[$f]->getVar('field_user') == 1 ) {
+ if( ($fields[$f]->getVar('field_user') == 1) || ($table->getVar('table_autoincrement') == 1) ) {
switch( $fieldElement ) {
case 9:
$ret .= <<<EOT
@@ -155,7 +155,7 @@
{
$fieldName = $fields[$f]->getVar('field_name');
$fieldElement = $fields[$f]->getVar('field_element');
- if( $fields[$f]->getVar('field_user') == 1 ) {
+ if( ($fields[$f]->getVar('field_user') == 1) || ($table->getVar('table_autoincrement') == 1) ) {
switch( $fieldElement ) {
case 9:
$ret .= <<<EOT
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/objects.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/objects.php 2014-07-13 00:34:40 UTC (rev 12708)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/objects.php 2014-07-13 10:24:13 UTC (rev 12709)
@@ -16,7 +16,7 @@
* @package tdmcreate
* @since 2.5.0
* @author Txmod Xoops http://www.txmodxoops.org
- * @version $Id: user_objects.php 12258 2014-01-02 09:33:29Z timgno $
+ * @version $Id: objects.php 12258 2014-01-02 09:33:29Z timgno $
*/
defined('XOOPS_ROOT_PATH') or die('Restricted access');
@@ -78,12 +78,28 @@
*/
public function getSimpleGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName) {
$ret = <<<EOT
-\t\t\t// Get Var {$fieldName}
-\t\t\t\${$lpFieldName}['{$rpFieldName}'] = \${$tableName}_arr[\$i]->getVar('{$fieldName}');\n
+\t\t// Get Var {$fieldName}
+\t\t\${$lpFieldName}['{$rpFieldName}'] = \${$tableName}_arr[\$i]->getVar('{$fieldName}');\n
EOT;
return $ret;
}
/*
+ * @public function getUploadImageGetVar
+ * @param string $lpFieldName
+ * @param string $rpFieldName
+ * @param string $tableName
+ * @param string $fieldName
+ */
+ public function getUploadImageGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName) {
+ $ret = <<<EOT
+\t\t// Get Var {$fieldName}
+\t\t\${$fieldName} = \${$tableName}_arr[\$i]->getVar('{$fieldName}');
+\t\t\$upload_image = \${$fieldName} ? \${$fieldName} : 'blank.gif';
+\t\t\${$lpFieldName}['{$rpFieldName}'] = \$upload_image;\n
+EOT;
+ return $ret;
+ }
+ /*
* @public function getTextAreaGetVar
* @param string $lpFieldName
* @param string $rpFieldName
@@ -92,8 +108,8 @@
*/
public function getTextAreaGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName) {
$ret = <<<EOT
-\t\t\t// Get Var {$fieldName}
-\t\t\t\${$lpFieldName}['{$rpFieldName}'] = strip_tags(\${$tableName}_arr[\$i]->getVar('{$fieldName}'));\n
+\t\t// Get Var {$fieldName}
+\t\t\${$lpFieldName}['{$rpFieldName}'] = strip_tags(\${$tableName}_arr[\$i]->getVar('{$fieldName}'));\n
EOT;
return $ret;
}
@@ -106,8 +122,8 @@
*/
public function getSelectUserGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName) {
$ret = <<<EOT
-\t\t\t// Get Var {$fieldName}
-\t\t\t\${$lpFieldName}['{$rpFieldName}'] = XoopsUser::getUnameFromId(\${$tableName}_arr[\$i]->getVar('{$fieldName}'), 's');\n
+\t\t// Get Var {$fieldName}
+\t\t\${$lpFieldName}['{$rpFieldName}'] = XoopsUser::getUnameFromId(\${$tableName}_arr[\$i]->getVar('{$fieldName}'), 's');\n
EOT;
return $ret;
}
@@ -120,8 +136,8 @@
*/
public function getTextDateSelectGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName) {
$ret = <<<EOT
-\t\t\t// Get Var {$fieldName}
-\t\t\t\${$lpFieldName}['{$rpFieldName}'] = formatTimeStamp(\${$tableName}_arr[\$i]->getVar('{$fieldName}'), 's');\n
+\t\t// Get Var {$fieldName}
+\t\t\${$lpFieldName}['{$rpFieldName}'] = formatTimeStamp(\${$tableName}_arr[\$i]->getVar('{$fieldName}'), 's');\n
EOT;
return $ret;
}
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/pages.php 2014-07-13 00:34:40 UTC (rev 12708)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/pages.php 2014-07-13 10:24:13 UTC (rev 12709)
@@ -67,10 +67,10 @@
$table = $this->getTable();
$tableName = $table->getVar('table_name');
$tableFieldname = $table->getVar('table_fieldname');
- $tableAutoincrement = $table->getVar('table_autoincrement');
$stuModuleDirname = strtoupper($moduleDirname);
$stuTableName = strtoupper($tableName);
$stlTableName = strtolower($tableName);
+ $ucfTableName = ucfirst($tableName);
$ret = <<<EOT
\ninclude_once 'header.php';
\$GLOBALS['xoopsOption']['template_main'] = '{$moduleDirname}_{$tableName}.tpl';
@@ -84,9 +84,10 @@
//
\$GLOBALS['xoopsTpl']->assign('{$moduleDirname}_upload_url', {$stuModuleDirname}_UPLOAD_URL);
//
-\$criteria = new CriteriaCompo();
-\${$stlTableName}_count = \${$stlTableName}Handler->getCount(\$criteria);
-\${$stlTableName}_arr = \${$stlTableName}Handler->getAll(\$criteria);
+\$criteria{$ucfTableName} = new CriteriaCompo();
+\${$stlTableName}_count = \${$stlTableName}Handler->getCount(\$criteria{$ucfTableName});
+\${$stlTableName}_arr = \${$stlTableName}Handler->getAll(\$criteria{$ucfTableName});
+unset(\$criteria{$ucfTableName});
\$keywords = array();
if (\${$stlTableName}_count > 0) {
foreach (array_keys(\${$stlTableName}_arr) as \$i)
@@ -104,16 +105,19 @@
$fpmf = $fieldName; // fpmf = fields parameters main field
}
$fieldElement = $fields[$f]->getVar('field_element');
- if( ($fields[$f]->getVar('field_user') == 1) || ($tableAutoincrement == 1) ) {
+ if( ($fields[$f]->getVar('field_user') == 1) || ($table->getVar('table_autoincrement') == 1) ) {
switch($fieldElement) {
- case 2:
case 3:
+ case 4:
$ret .= $this->userobjects->getTextAreaGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName);
break;
- case 7:
+ case 8:
$ret .= $this->userobjects->getSelectUserGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName);
- break;
- case 12:
+ break;
+ case 11:
+ $ret .= $this->userobjects->getUploadImageGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName);
+ break;
+ case 13:
$ret .= $this->userobjects->getTextDateSelectGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName);
break;
default:
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/sql/mysql.sql
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/sql/mysql.sql 2014-07-13 00:34:40 UTC (rev 12708)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/sql/mysql.sql 2014-07-13 10:24:13 UTC (rev 12709)
@@ -110,7 +110,8 @@
`field_required` TINYINT(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`field_id`),
KEY `field_mid` (`field_mid`),
- KEY `field_tid` (`field_tid`)
+ KEY `field_tid` (`field_tid`),
+ KEY `field_name` (`field_name`)
)ENGINE =MyISAM;
#
|
|
From: <be...@us...> - 2014-07-13 00:34:43
|
Revision: 12708
http://sourceforge.net/p/xoops/svn/12708
Author: beckmi
Date: 2014-07-13 00:34:40 +0000 (Sun, 13 Jul 2014)
Log Message:
-----------
- Fix issues when protector 'id_forceintval' preference is enabled, that manifests as an error when deleting private messages.
Modified Paths:
--------------
XoopsCore/branches/2.5.x/2.5.8/docs/changelog.250.txt
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/pm/viewpmsg.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/viewpmsg.php
Modified: XoopsCore/branches/2.5.x/2.5.8/docs/changelog.250.txt
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/docs/changelog.250.txt 2014-07-13 00:23:40 UTC (rev 12707)
+++ XoopsCore/branches/2.5.x/2.5.8/docs/changelog.250.txt 2014-07-13 00:34:40 UTC (rev 12708)
@@ -5,6 +5,7 @@
===============================
- replaced "dirname(__FILE__)" with "__DIR__" since the min. PHP is now 5.3.7, and __DIR__ is faster (mamba)
- updating some copyright notices
+- Fix issues when protector 'id_forceintval' preference is enabled, that manifests as an error when deleting private messages. (rgriffith)
- fix for Update setting Template import date to 0 (timgno/mamba)
===============================
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/pm/viewpmsg.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/pm/viewpmsg.php 2014-07-13 00:23:40 UTC (rev 12707)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/pm/viewpmsg.php 2014-07-13 00:34:40 UTC (rev 12708)
@@ -34,17 +34,17 @@
$start = empty($_REQUEST["start"]) ? 0 : intval($_REQUEST["start"]);
$pm_handler =& xoops_getModuleHandler('message');
-if (isset($_POST['delete_messages']) && isset($_POST['msg_id'])) {
+if (isset($_POST['delete_messages']) && (isset($_POST['msg_id']) || isset($_POST['msg_ids']))) {
if (!$GLOBALS['xoopsSecurity']->check()) {
$GLOBALS['xoopsTpl']->assign('errormsg', implode('<br />', $GLOBALS['xoopsSecurity']->getErrors()));
} else if (empty($_REQUEST['ok'])) {
- xoops_confirm(array('ok' => 1, 'delete_messages' => 1, 'op' => $_REQUEST['op'], 'msg_id'=> json_encode(array_map("intval", $_POST['msg_id']))), $_SERVER['REQUEST_URI'], _PM_SURE_TO_DELETE);
+ xoops_confirm(array('ok' => 1, 'delete_messages' => 1, 'op' => $_REQUEST['op'], 'msg_ids'=> json_encode(array_map("intval", $_POST['msg_id']))), $_SERVER['REQUEST_URI'], _PM_SURE_TO_DELETE);
include $GLOBALS['xoops']->path('footer.php');
exit();
} else {
- $clean_msg_id = json_decode($_POST['msg_id'], true, 2);
+ $clean_msg_id = json_decode($_POST['msg_ids'], true, 2);
if (!empty($clean_msg_id)) {
- $clean_msg_id = array_map("intval", (array) $clean_msg_id);
+ $clean_msg_id = array_map("intval", $clean_msg_id);
}
$size = count($clean_msg_id);
$msg =& $clean_msg_id;
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/viewpmsg.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/viewpmsg.php 2014-07-13 00:23:40 UTC (rev 12707)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/viewpmsg.php 2014-07-13 00:34:40 UTC (rev 12708)
@@ -27,17 +27,17 @@
redirect_header("user.php", 2, $errormessage);
} else {
$pm_handler =& xoops_gethandler('privmessage');
- if (isset($_POST['delete_messages']) && isset($_POST['msg_id'])) {
+ if (isset($_POST['delete_messages']) && (isset($_POST['msg_id']) || isset($_POST['msg_ids']))) {
if (!$GLOBALS['xoopsSecurity']->check()) {
echo implode('<br />', $GLOBALS['xoopsSecurity']->getErrors());
exit();
} elseif (empty($_REQUEST['ok'])) {
include $GLOBALS['xoops']->path('header.php');
- xoops_confirm(array('ok' => 1, 'delete_messages' => 1, 'msg_id'=> json_encode(array_map("intval", $_POST['msg_id']))), $_SERVER['REQUEST_URI'], _PM_SURE_TO_DELETE);
+ xoops_confirm(array('ok' => 1, 'delete_messages' => 1, 'msg_ids'=> json_encode(array_map("intval", $_POST['msg_id']))), $_SERVER['REQUEST_URI'], _PM_SURE_TO_DELETE);
include $GLOBALS['xoops']->path('footer.php');
exit();
}
- $clean_msg_id = json_decode($_POST['msg_id'], true, 2);
+ $clean_msg_id = json_decode($_POST['msg_ids'], true, 2);
if (!empty($clean_msg_id)) {
$clean_msg_id = array_map("intval", $clean_msg_id);
}
|
|
From: <be...@us...> - 2014-07-13 00:23:47
|
Revision: 12707
http://sourceforge.net/p/xoops/svn/12707
Author: beckmi
Date: 2014-07-13 00:23:40 +0000 (Sun, 13 Jul 2014)
Log Message:
-----------
fix for Update setting Template import date to 0
Modified Paths:
--------------
XoopsCore/branches/2.5.x/2.5.8/docs/changelog.250.txt
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/modulesadmin/main.php
Modified: XoopsCore/branches/2.5.x/2.5.8/docs/changelog.250.txt
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/docs/changelog.250.txt 2014-07-13 00:21:21 UTC (rev 12706)
+++ XoopsCore/branches/2.5.x/2.5.8/docs/changelog.250.txt 2014-07-13 00:23:40 UTC (rev 12707)
@@ -5,6 +5,7 @@
===============================
- replaced "dirname(__FILE__)" with "__DIR__" since the min. PHP is now 5.3.7, and __DIR__ is faster (mamba)
- updating some copyright notices
+- fix for Update setting Template import date to 0 (timgno/mamba)
===============================
2014-06-20: Version 2.5.7 Final (Patch)
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/modulesadmin/main.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/modulesadmin/main.php 2014-07-13 00:21:21 UTC (rev 12706)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/modulesadmin/main.php 2014-07-13 00:23:40 UTC (rev 12707)
@@ -582,7 +582,7 @@
$tplfile = empty($tplfiles) ? $tplfile_handler->create() : $tplfiles[0];
// END irmtfan solve templates duplicate issue
$tplfile->setVar('tpl_refid', $newmid);
- $tplfile->setVar('tpl_lastimported', 0);
+// $tplfile->setVar('tpl_lastimported', 0);
$tplfile->setVar('tpl_lastmodified', time());
$tplfile->setVar('tpl_type', $type);
$tplfile->setVar('tpl_source', $tpldata, true);
@@ -686,7 +686,7 @@
$tplfile_new->setVar('tpl_source', $content, true);
$tplfile_new->setVar('tpl_desc', $block['description'], true);
$tplfile_new->setVar('tpl_lastmodified', time());
- $tplfile_new->setVar('tpl_lastimported', 0);
+// $tplfile_new->setVar('tpl_lastimported', 0);
$tplfile_new->setVar(
'tpl_file',
$block['template'],
|
|
From: <be...@us...> - 2014-07-13 00:21:34
|
Revision: 12706
http://sourceforge.net/p/xoops/svn/12706
Author: beckmi
Date: 2014-07-13 00:21:21 +0000 (Sun, 13 Jul 2014)
Log Message:
-----------
- updating some copyright notices
Modified Paths:
--------------
XoopsCore/branches/2.5.x/2.5.8/docs/changelog.250.txt
XoopsCore/branches/2.5.x/2.5.8/htdocs/class/smarty/xoops_plugins/function.xoMemberInfo.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/class/smarty/xoops_plugins/function.xoops_link.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/bloggerapi.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/metaweblogapi.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/movabletypeapi.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/xmlrpcapi.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/xmlrpcparser.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/xmlrpctag.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/xoopsapi.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rss/xmlrss2parser.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/install/class/dbmanager.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/category.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/index.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/avatars/main.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/avatars/xoops_version.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/banners/main.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/banners/xoops_version.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/blocksadmin/main.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/blocksadmin/xoops_version.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/admin_header.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/comment_delete.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/comment_edit.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/comment_post.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/main.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/xoops_version.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/groups/xoops_version.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/images/main.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/images/xoops_version.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/mailusers/main.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/mailusers/xoops_version.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/modulesadmin/main.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/modulesadmin/modulesadmin.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/modulesadmin/xoops_version.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/preferences/main.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/preferences/xoops_version.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/smilies/main.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/smilies/xoops_version.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/tplsets/main.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/tplsets/xoops_version.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/userrank/main.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/userrank/xoops_version.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/users/main.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/users/users.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/users/xoops_version.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/blocks/system_blocks.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/constants.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/include/update.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/menu.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/themes/zetadigme/menu.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/xoops_version.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/themes/suico/extras/function.xoMemberInfo.php
XoopsCore/branches/2.5.x/2.5.8/htdocs/xoops_lib/modules/protector/admin/index.php
Modified: XoopsCore/branches/2.5.x/2.5.8/docs/changelog.250.txt
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/docs/changelog.250.txt 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/docs/changelog.250.txt 2014-07-13 00:21:21 UTC (rev 12706)
@@ -4,6 +4,7 @@
NOT RELEASED: Version 2.5.8 Beta 1
===============================
- replaced "dirname(__FILE__)" with "__DIR__" since the min. PHP is now 5.3.7, and __DIR__ is faster (mamba)
+- updating some copyright notices
===============================
2014-06-20: Version 2.5.7 Final (Patch)
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/class/smarty/xoops_plugins/function.xoMemberInfo.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/class/smarty/xoops_plugins/function.xoMemberInfo.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/class/smarty/xoops_plugins/function.xoMemberInfo.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id: function.xoMemberInfo.php
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/class/smarty/xoops_plugins/function.xoops_link.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/class/smarty/xoops_plugins/function.xoops_link.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/class/smarty/xoops_plugins/function.xoops_link.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/bloggerapi.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/bloggerapi.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/bloggerapi.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/metaweblogapi.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/metaweblogapi.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/metaweblogapi.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/movabletypeapi.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/movabletypeapi.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/movabletypeapi.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/xmlrpcapi.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/xmlrpcapi.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/xmlrpcapi.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/xmlrpcparser.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/xmlrpcparser.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/xmlrpcparser.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/xmlrpctag.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/xmlrpctag.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/xmlrpctag.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/xoopsapi.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/xoopsapi.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rpc/xoopsapi.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rss/xmlrss2parser.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rss/xmlrss2parser.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/class/xml/rss/xmlrss2parser.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/install/class/dbmanager.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/install/class/dbmanager.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/install/class/dbmanager.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -1,7 +1,7 @@
<?php
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/category.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/category.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/category.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/index.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/index.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/profile/admin/index.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/avatars/main.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/avatars/main.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/avatars/main.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/avatars/xoops_version.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/avatars/xoops_version.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/avatars/xoops_version.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/banners/main.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/banners/main.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/banners/main.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/banners/xoops_version.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/banners/xoops_version.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/banners/xoops_version.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/blocksadmin/main.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/blocksadmin/main.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/blocksadmin/main.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/blocksadmin/xoops_version.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/blocksadmin/xoops_version.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/blocksadmin/xoops_version.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/admin_header.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/admin_header.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/admin_header.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/comment_delete.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/comment_delete.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/comment_delete.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/comment_edit.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/comment_edit.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/comment_edit.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/comment_post.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/comment_post.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/comment_post.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/main.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/main.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/main.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/xoops_version.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/xoops_version.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/comments/xoops_version.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/groups/xoops_version.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/groups/xoops_version.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/groups/xoops_version.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/images/main.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/images/main.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/images/main.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/images/xoops_version.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/images/xoops_version.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/images/xoops_version.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/mailusers/main.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/mailusers/main.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/mailusers/main.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/mailusers/xoops_version.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/mailusers/xoops_version.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/mailusers/xoops_version.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/modulesadmin/main.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/modulesadmin/main.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/modulesadmin/main.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/modulesadmin/modulesadmin.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/modulesadmin/modulesadmin.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/modulesadmin/modulesadmin.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/modulesadmin/xoops_version.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/modulesadmin/xoops_version.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/modulesadmin/xoops_version.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/preferences/main.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/preferences/main.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/preferences/main.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/preferences/xoops_version.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/preferences/xoops_version.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/preferences/xoops_version.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/smilies/main.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/smilies/main.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/smilies/main.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/smilies/xoops_version.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/smilies/xoops_version.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/smilies/xoops_version.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/tplsets/main.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/tplsets/main.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/tplsets/main.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/tplsets/xoops_version.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/tplsets/xoops_version.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/tplsets/xoops_version.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/userrank/main.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/userrank/main.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/userrank/main.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/userrank/xoops_version.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/userrank/xoops_version.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/userrank/xoops_version.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/users/main.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/users/main.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/users/main.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/users/users.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/users/users.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/users/users.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/users/xoops_version.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/users/xoops_version.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin/users/xoops_version.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/admin.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/blocks/system_blocks.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/blocks/system_blocks.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/blocks/system_blocks.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/constants.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/constants.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/constants.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/include/update.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/include/update.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/include/update.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/menu.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/menu.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/menu.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/themes/zetadigme/menu.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/themes/zetadigme/menu.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/themes/zetadigme/menu.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/xoops_version.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/xoops_version.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/modules/system/xoops_version.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/themes/suico/extras/function.xoMemberInfo.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/themes/suico/extras/function.xoMemberInfo.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/themes/suico/extras/function.xoMemberInfo.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id: function.xoMemberInfo.php
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
Modified: XoopsCore/branches/2.5.x/2.5.8/htdocs/xoops_lib/modules/protector/admin/index.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.8/htdocs/xoops_lib/modules/protector/admin/index.php 2014-07-12 20:54:04 UTC (rev 12705)
+++ XoopsCore/branches/2.5.x/2.5.8/htdocs/xoops_lib/modules/protector/admin/index.php 2014-07-13 00:21:21 UTC (rev 12706)
@@ -2,7 +2,7 @@
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
-// copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
+// Copyright (c) 2000-2014 XOOPS Project (www.xoops.org) //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
|
|
From: <tst...@us...> - 2014-07-12 20:54:13
|
Revision: 12705
http://sourceforge.net/p/xoops/svn/12705
Author: tstempko
Date: 2014-07-12 20:54:04 +0000 (Sat, 12 Jul 2014)
Log Message:
-----------
FIX: repeated code - removed
Modified Paths:
--------------
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/locale.php
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/locale.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/locale.php 2014-07-12 07:41:43 UTC (rev 12704)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/locale.php 2014-07-12 20:54:04 UTC (rev 12705)
@@ -66,41 +66,3 @@
return money_format($format, $number);
}
}
-define("_TIMEFORMAT_DESC","Poprawne formaty: \"s\" - " . _SHORTDATESTRING . "; \"m\" - " . _MEDIUMDATESTRING . "; \"l\" - " . _DATESTRING . ";<br />" . "\"c\" or \"custom\" - format determined according to interval to present; \"e\" - Elapsed; \"mysql\" - Y-m-d H:i:s;<br />" . "specified string - Refer to <a href=\"http://php.net/manual/en/function.date.php\" rel=\"external\">PHP manual</a>.");
-
-/**
- * A Xoops Local
- *
- * @package kernel
- * @subpackage Language
- *
- * @author Taiwen Jiang <ph...@us...>
- * @copyright copyright (c) 2000-2009 XOOPS.org
- */
-class XoopsLocal extends XoopsLocalAbstract
-{
- /**
- * Number Formats
- *
- * @param unknown_type $number
- * @return unknown
- */
- function number_format($number)
- {
- return number_format($number, 2, ' ',',');
- }
-
- /**
- * Money Format
- *
- * @param string $format
- * @param string $number
- * @return money format
- */
- function money_format($format, $number)
- {
- setlocale(LC_MONETARY, 'pl_PL');
-
- return money_format($format, $number);
- }
-}
|
|
From: <txm...@us...> - 2014-07-12 07:41:49
|
Revision: 12704
http://sourceforge.net/p/xoops/svn/12704
Author: txmodxoops
Date: 2014-07-12 07:41:43 +0000 (Sat, 12 Jul 2014)
Log Message:
-----------
- Fixed important bugs
- Updated
- Still work to do
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/classes/classes.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/sql/mysql.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/admin/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/xoopsversion.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/sql/mysql.sql
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/templates/admin/tdmcreate_tables.tpl
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/classes/classes.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/classes/classes.php 2014-07-11 18:06:57 UTC (rev 12703)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/classes/classes.php 2014-07-12 07:41:43 UTC (rev 12704)
@@ -81,44 +81,50 @@
{
$fieldName = $fields[$f]->getVar('field_name');
$fieldType = $fields[$f]->getVar('field_type');
+ if($fieldType > 1) {
+ $fType = $this->tdmcreate->getHandler('fieldtype')->get($fieldType);
+ $fieldTypeName = $fType->getVar('fieldtype_name');
+ } else {
+ $fieldType = null;
+ }
switch($fieldType) {
- case 'INT':
- case 'TINYINT':
- case 'MEDIUMINT':
- case 'SMALLINT':
+ case 2:
+ case 3:
+ case 4:
+ case 5:
$ret .= $this->getInitVar($fieldName, 'INT');
break;
- case 'CHAR':
- case 'VARCHAR':
- $ret .= $this->getInitVar($fieldName, 'TXTBOX');
- break;
- case 'TEXT':
- case 'TINYTEXT':
- case 'MEDIUMTEXT':
- case 'LONGTEXT':
- $ret .= $this->getInitVar($fieldName, 'TXTAREA');
- break;
- case 'FLOAT':
+ case 6:
$ret .= $this->getInitVar($fieldName, 'FLOAT');
break;
- case 'DECIMAL':
- case 'DOUBLE':
+ case 7:
+ case 8:
$ret .= $this->getInitVar($fieldName, 'DECIMAL');
break;
- case 'ENUM':
+ case 10:
$ret .= $this->getInitVar($fieldName, 'ENUM');
break;
- case 'EMAIL':
+ case 11:
$ret .= $this->getInitVar($fieldName, 'EMAIL');
break;
- case 'URL':
+ case 12:
$ret .= $this->getInitVar($fieldName, 'URL');
- break;
- case 'DATE':
- case 'DATETIME':
- case 'TIMESTAMP':
- case 'TIME':
- case 'YEAR':
+ break;
+ case 13:
+ case 14:
+ $ret .= $this->getInitVar($fieldName, 'TXTBOX');
+ break;
+ case 15:
+ case 16:
+ case 17:
+ case 18:
+ $ret .= $this->getInitVar($fieldName, 'TXTAREA');
+ break;
+ case 19:
+ case 20:
+ case 21:
+ case 22:
+ case 23:
$ret .= $this->getInitVar($fieldName, 'LTIME');
break;
}
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/sql/mysql.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/sql/mysql.php 2014-07-11 18:06:57 UTC (rev 12703)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/sql/mysql.php 2014-07-12 07:41:43 UTC (rev 12704)
@@ -144,55 +144,73 @@
$fieldNull = $fields[$f]->getVar('field_null');
$fieldDefault = $fields[$f]->getVar('field_default');
$fieldKey = $fields[$f]->getVar('field_key');
+ if($fieldType > 1) {
+ $fType = $this->tdmcreate->getHandler('fieldtype')->get($fieldType);
+ $fieldTypeName = $fType->getVar('fieldtype_name');
+ } else {
+ $fieldType = null;
+ }
+ if($fieldAttribute > 1) {
+ $fAttribute = $this->tdmcreate->getHandler('fieldattributes')->get($fieldAttribute);
+ $fieldAttribute = $fAttribute->getVar('fieldattribute_name');
+ } else {
+ $fieldAttribute = null;
+ }
+ if($fieldNull > 1) {
+ $fNull = $this->tdmcreate->getHandler('fieldnull')->get($fieldNull);
+ $fieldNull = $fNull->getVar('fieldnull_name');
+ } else {
+ $fieldNull = null;
+ }
if ( !empty($fieldName) )
{
switch( $fieldType ) {
- case 'TEXT':
- case 'TINYTEXT':
- case 'MEDIUMTEXT':
- case 'LONGTEXT':
- case 'DATE':
- case 'DATETIME':
- case 'TIMESTAMP':
- $type = $fieldType;
+ case 15:
+ case 16:
+ case 17:
+ case 18:
+ case 19:
+ case 20:
+ case 21:
+ $type = $fieldTypeName;
$default = null;
break;
default:
- $type = $fieldType.'('.$fieldValue.')';
+ $type = $fieldTypeName.'('.$fieldValue.')';
$default = "DEFAULT '{$fieldDefault}'";
break;
}
if( ($f == 0) && ($tableAutoincrement == 1) ) {
$row[] = $this->getFieldRow($fieldName, $type, $fieldAttribute, $fieldNull, null, 'AUTO_INCREMENT');
- $comma[$j] = $this->getKey(1, $fieldName);
+ $comma[$j] = $this->getKey(2, $fieldName);
$j++;
} elseif( ($f == 0) && ($tableAutoincrement == 0) ) {
$row[] = $this->getFieldRow($fieldName, $type, $fieldAttribute, $fieldNull, $default);
- $comma[$j] = $this->getKey(1, $fieldName);
+ $comma[$j] = $this->getKey(2, $fieldName);
$j++;
} else {
- if( $fieldKey == 'UNIQUE' || $fieldKey == 'KEY' || $fieldKey == 'INDEX' || $fieldKey == 'FULLTEXT')
+ if( $fieldKey == 3 || $fieldKey == 4 || $fieldKey == 5 || $fieldKey == 6)
{
switch( $fieldKey ) {
- case 'UNIQUE':
+ case 3:
$row[] = $this->getFieldRow($fieldName, $type, $fieldAttribute, $fieldNull, $default);
- $comma[$j] = $this->getKey(2, $fieldName);
- $j++;
- break;
- case 'KEY':
- $row[] = $this->getFieldRow($fieldName, $type, $fieldAttribute, $fieldNull, $default);
$comma[$j] = $this->getKey(3, $fieldName);
$j++;
break;
- case 'INDEX':
+ case 4:
$row[] = $this->getFieldRow($fieldName, $type, $fieldAttribute, $fieldNull, $default);
$comma[$j] = $this->getKey(4, $fieldName);
$j++;
break;
- case 'FULLTEXT':
+ case 5:
$row[] = $this->getFieldRow($fieldName, $type, $fieldAttribute, $fieldNull, $default);
$comma[$j] = $this->getKey(5, $fieldName);
$j++;
+ break;
+ case 6:
+ $row[] = $this->getFieldRow($fieldName, $type, $fieldAttribute, $fieldNull, $default);
+ $comma[$j] = $this->getKey(6, $fieldName);
+ $j++;
break;
}
} else {
@@ -266,27 +284,27 @@
*/
private function getKey($key, $fieldName) {
switch( $key ) {
- case 1: // PRIMARY KEY
+ case 2: // PRIMARY KEY
$ret = <<<SQL
PRIMARY KEY (`{$fieldName}`)
SQL;
break;
- case 2: // UNIQUE KEY
+ case 3: // UNIQUE KEY
$ret = <<<SQL
UNIQUE KEY `{$fieldName}` (`{$fieldName}`)
SQL;
break;
- case 3: // KEY
+ case 4: // KEY
$ret = <<<SQL
KEY `{$fieldName}` (`{$fieldName}`)
SQL;
break;
- case 4: // INDEX
+ case 5: // INDEX
$ret = <<<SQL
INDEX (`{$fieldName}`)
SQL;
break;
- case 5: // FULLTEXT KEY
+ case 6: // FULLTEXT KEY
$ret = <<<SQL
FULLTEXT KEY `{$fieldName}` (`{$fieldName}`)
SQL;
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/admin/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/admin/pages.php 2014-07-11 18:06:57 UTC (rev 12703)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/admin/pages.php 2014-07-12 07:41:43 UTC (rev 12704)
@@ -135,10 +135,10 @@
}
$ret .= <<<EOT
<td class="center">
- <a href="{$tableName}.php?op=edit&{$field_id}=<{\$list.{$rp_field_id}}>" title="<{\$smarty.const._EDIT}>">
+ <a href="{$tableName}.php?op=edit&{$field_id}=<{\$list.{$rpFieldName}}>" title="<{\$smarty.const._EDIT}>">
<img src="<{xoModuleIcons16 edit.png}>" alt="<{\$smarty.const._EDIT}>" />
</a>
- <a href="{$tableName}.php?op=delete&{$field_id}=<{\$list.{$rp_field_id}}>" title="<{\$smarty.const._DELETE}>">
+ <a href="{$tableName}.php?op=delete&{$field_id}=<{\$list.{$rpFieldName}}>" title="<{\$smarty.const._DELETE}>">
<img src="<{xoModuleIcons16 delete.png}>" alt="<{\$smarty.const._DELETE}>" />
</a>
</td>
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-11 18:06:57 UTC (rev 12703)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/xoopsversion.php 2014-07-12 07:41:43 UTC (rev 12704)
@@ -359,7 +359,7 @@
$fields = $this->getTableFields($table->getVar('table_id'));
foreach (array_keys($fields) as $f)
{
- if( $fields[$f]->getVar('field_element') == 3 ) {
+ if( $fields[$f]->getVar('field_element') == 4 ) {
$ret .= <<<EOT
// Editor
xoops_load('xoopseditorhandler');
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/sql/mysql.sql
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/sql/mysql.sql 2014-07-11 18:06:57 UTC (rev 12703)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/sql/mysql.sql 2014-07-12 07:41:43 UTC (rev 12704)
@@ -140,7 +140,7 @@
)ENGINE =MyISAM;
INSERT INTO `tdmcreate_fieldtype` (`fieldtype_id`, `fieldtype_name`, `fieldtype_value`) VALUES
- (1, '', ''),
+ (1, '...', ''),
(2, 'INT', 'INT'),
(3, 'TINYINT', 'TINYINT'),
(4, 'MEDIUMINT', 'MEDIUMINT'),
@@ -177,7 +177,7 @@
)ENGINE =MyISAM;
INSERT INTO `tdmcreate_fieldattributes` (`fieldattribute_id`, `fieldattribute_name`, `fieldattribute_value`) VALUES
- (1, '', ''),
+ (1, '...', ''),
(2, 'BINARY', 'BINARY'),
(3, 'UNSIGNED', 'UNSIGNED'),
(4, 'UNSIGNED_ZEROFILL', 'UNSIGNED_ZEROFILL'),
@@ -196,7 +196,7 @@
)ENGINE =MyISAM;
INSERT INTO `tdmcreate_fieldnull` (`fieldnull_id`, `fieldnull_name`, `fieldnull_value`) VALUES
- (1, '', ''),
+ (1, '...', ''),
(2, 'NOT NULL', 'NOT NULL'),
(3, 'NULL', 'NULL');
@@ -213,7 +213,7 @@
)ENGINE =MyISAM;
INSERT INTO `tdmcreate_fieldkey` (`fieldkey_id`, `fieldkey_name`, `fieldkey_value`) VALUES
- (1, '', ''),
+ (1, '...', ''),
(2, 'PRIMARY', 'PRIMARY'),
(3, 'UNIQUE', 'UNIQUE'),
(4, 'KEY', 'KEY'),
@@ -236,7 +236,7 @@
)ENGINE =MyISAM;
INSERT INTO `tdmcreate_fieldelements` (`fieldelement_id`, `fieldelement_mid`, `fieldelement_tid`, `fieldelement_name`, `fieldelement_value`) VALUES
- (1, 0, 0, '', ''),
+ (1, 0, 0, '...', ''),
(2, 0, 0, 'Text', 'XoopsFormText'),
(3, 0, 0, 'TextArea', 'XoopsFormTextArea'),
(4, 0, 0, 'DhtmlTextArea', 'XoopsFormDhtmlTextArea'),
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/templates/admin/tdmcreate_tables.tpl
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/templates/admin/tdmcreate_tables.tpl 2014-07-11 18:06:57 UTC (rev 12703)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/templates/admin/tdmcreate_tables.tpl 2014-07-12 07:41:43 UTC (rev 12704)
@@ -32,7 +32,7 @@
</td>
<td class='center bold green'><{$module.name}></td>
<td class='center'><img src="<{$tdmc_upload_imgmod_url}>/<{$module.image}>" alt="" height="35" /></td>
- <td class='center'><img src="<{$modPathIcon16}>/nb_fields.png" alt="16" /></td>
+ <td class='center'><img src="<{$modPathIcon16}>/fields.png" alt="16" /></td>
<td class='center'><img src="<{$modPathIcon16}>/blocks.png" alt="16" /></td>
<td class='center'><img id="loading_img_admin<{$module.id}>" src="<{$modPathIcon16}>/spinner.gif" style="display:none;" title="<{$smarty.const._AM_SYSTEM_LOADING}>" alt="<{$smarty.const._AM_SYSTEM_LOADING}>" /><img style="cursor:pointer;" class="tooltip" id="img_admin<{$module.id}>" onclick="tdmcreate_setStatus( { op: 'display', mod_id: <{$module.id}>, mod_admin: <{if $module.admin == 1}>0<{else}>1<{/if}> }, 'img_admin<{$module.id}>', 'modules.php' )" src="<{xoModuleIcons16}><{$module.admin}>.png" alt="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" title="<{$smarty.const._AM_TDMCREATE_CHANGE_DISPLAY}> <{$module.name}>" />
</td>
|
|
From: <txm...@us...> - 2014-07-11 18:07:10
|
Revision: 12703
http://sourceforge.net/p/xoops/svn/12703
Author: txmodxoops
Date: 2014-07-11 18:06:57 +0000 (Fri, 11 Jul 2014)
Log Message:
-----------
- Reorganized for modules without tables, but always accessible in admin
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/admin/building.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/fieldattributes.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/fieldkey.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/fieldnull.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/fieldtype.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/header.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/index.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/menu.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/architecture.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/blocks/blocks.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/classes/classes.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/classes/formelements.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/file.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/include/comment_functions.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/include/comments.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/include/common.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/include/notifications.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/admin.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/modinfo.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/sql/mysql.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/admin/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/blocks/blocks.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/user/footer.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/user/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/header.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/xoopsversion.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/sql/mysql.sql
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/admin/building.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/admin/building.php 2014-07-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/admin/building.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -83,11 +83,11 @@
}
unset($nbModules);
// Redirect if there aren't tables
- $nbTables = $tdmcreate->getHandler('tables')->getCount();
+ /*$nbTables = $tdmcreate->getHandler('tables')->getCount();
if($nbTables == 0) {
redirect_header('tables.php?op=new', 2, _AM_TDMCREATE_NOTTABLES );
}
- unset($nbTables);
+ unset($nbTables);*/
include_once TDMC_PATH . '/class/building.php';
$handler = TDMCreateBuilding::getInstance();
$form = $handler->getForm();
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/fieldattributes.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/fieldattributes.php 2014-07-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/fieldattributes.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -32,7 +32,8 @@
public function __construct()
{
$this->XoopsObject();
- $this->initVar('fieldattribute_name', XOBJ_DTYPE_TXTBOX);
+ $this->initVar('fieldattribute_id', XOBJ_DTYPE_INT);
+ $this->initVar('fieldattribute_name', XOBJ_DTYPE_TXTBOX);
$this->initVar('fieldattribute_value', XOBJ_DTYPE_TXTBOX);
}
}
@@ -44,6 +45,6 @@
{
function __construct(&$db)
{
- parent::__construct($db, 'tdmcreate_fieldattributes', 'tdmcreatefieldattributes', 'fieldattribute_name', 'fieldattribute_value');
+ parent::__construct($db, 'tdmcreate_fieldattributes', 'tdmcreatefieldattributes', 'fieldattribute_id', 'fieldattribute_name');
}
}
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/fieldkey.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/fieldkey.php 2014-07-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/fieldkey.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -32,6 +32,7 @@
public function __construct()
{
$this->XoopsObject();
+ $this->initVar('fieldkey_id', XOBJ_DTYPE_INT);
$this->initVar('fieldkey_name', XOBJ_DTYPE_TXTBOX);
$this->initVar('fieldkey_value', XOBJ_DTYPE_TXTBOX);
}
@@ -44,6 +45,6 @@
{
function __construct(&$db)
{
- parent::__construct($db, 'tdmcreate_fieldkey', 'tdmcreatefieldkey', 'fieldkey_name', 'fieldkey_value');
+ parent::__construct($db, 'tdmcreate_fieldkey', 'tdmcreatefieldkey', 'fieldkey_id', 'fieldkey_name');
}
}
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/fieldnull.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/fieldnull.php 2014-07-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/fieldnull.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -31,7 +31,8 @@
*/
public function __construct()
{
- $this->XoopsObject();
+ $this->XoopsObject();
+ $this->initVar('fieldnull_id', XOBJ_DTYPE_INT);
$this->initVar('fieldnull_name', XOBJ_DTYPE_TXTBOX);
$this->initVar('fieldnull_value', XOBJ_DTYPE_TXTBOX);
}
@@ -44,6 +45,6 @@
{
function __construct(&$db)
{
- parent::__construct($db, 'tdmcreate_fieldnull', 'tdmcreatefieldnull', 'fieldnull_name', 'fieldnull_value');
+ parent::__construct($db, 'tdmcreate_fieldnull', 'tdmcreatefieldnull', 'fieldnull_id', 'fieldnull_name');
}
}
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/fieldtype.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/fieldtype.php 2014-07-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/fieldtype.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -31,7 +31,8 @@
*/
public function __construct()
{
- $this->XoopsObject();
+ $this->XoopsObject();
+ $this->initVar('fieldtype_id', XOBJ_DTYPE_INT);
$this->initVar('fieldtype_name', XOBJ_DTYPE_TXTBOX);
$this->initVar('fieldtype_value', XOBJ_DTYPE_TXTBOX);
}
@@ -44,6 +45,6 @@
{
function __construct(&$db)
{
- parent::__construct($db, 'tdmcreate_fieldtype', 'tdmcreatefieldtype', 'fieldtype_name', 'fieldtype_value');
+ parent::__construct($db, 'tdmcreate_fieldtype', 'tdmcreatefieldtype', 'fieldtype_id', 'fieldtype_name');
}
}
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/header.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/header.php 2014-07-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/header.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -70,15 +70,16 @@
\nrequire_once dirname(dirname(dirname(dirname(__FILE__)))). '/include/cp_header.php';
\$thisPath = dirname(dirname(__FILE__));
include_once \$thisPath.'/include/common.php';
-include_once \$thisPath.'/include/functions.php';
//\n
EOT;
- if ( $table->getVar('table_name') != '' ) {
- $content .= <<<EOT
+ if (is_object($table)) {
+ if ( $table->getVar('table_name') != '' ) {
+ $content .= <<<EOT
// Get instance of module
\${$moduleDirname} = {$ucfModuleName}Helper::getInstance();\n
EOT;
- }
+ }
+ }
$content .= <<<EOT
//
\$sysPathIcon16 = '../' . \$xoopsModule->getInfo('sysicons16');
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/index.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/index.php 2014-07-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/index.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -68,27 +68,39 @@
include_once 'header.php';
// Count elements\n
EOT;
- foreach (array_keys($tables) as $i)
- {
- $tableName = $tables[$i]->getVar('table_name');
- $content .= <<<EOT
+ $tableName = null;
+ if(is_array($tables)) {
+ foreach (array_keys($tables) as $i)
+ {
+ $tableName = $tables[$i]->getVar('table_name');
+ $content .= <<<EOT
\$count_{$tableName} = \${$tableName}Handler->getCount();\n
EOT;
+ }
}
$content .= <<<EOT
// Template Index
-\$template_main = '{$moduleDirname}_admin_index.tpl';
+\$template_main = '{$moduleDirname}_admin_index.tpl';\n
+EOT;
+ if(is_array($tables)) {
+ $content .= <<<EOT
// InfoBox Statistics
\$adminMenu->addInfoBox({$language}STATISTICS);
// Info elements\n
EOT;
- foreach (array_keys($tables) as $i)
- {
- $tableName = $tables[$i]->getVar('table_name');
- $stuTableName = $language_thereare.strtoupper($tableName);
- $content .= <<<EOT
+ foreach (array_keys($tables) as $i)
+ {
+ $tableName = $tables[$i]->getVar('table_name');
+ $stuTableName = $language_thereare.strtoupper($tableName);
+ $content .= <<<EOT
\$adminMenu->addInfoBoxLine({$language}STATISTICS, '<label>'.{$stuTableName}.'</label>', \$count_{$tableName});\n
EOT;
+ }
+ }
+ if($tableName == null) {
+ $content .= <<<EOT
+\$adminMenu->addInfoBoxLine({$language}STATISTICS, '<label>No statistics</label>', 0);\n
+EOT;
}
$content .= <<<EOT
// Render Index
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/menu.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/menu.php 2014-07-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/menu.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -45,11 +45,13 @@
/*
* @public function write
* @param string $module
- * @param mixed $tables
+ * @param object $table
+ * @param array $tables
* @param string $filename
*/
- public function write($module, $tables, $filename) {
+ public function write($module, $table, $tables, $filename) {
$this->setModule($module);
+ $this->setTable($table);
$this->setTables($tables);
$this->setFileName($filename);
}
@@ -93,7 +95,7 @@
{
$fieldElement = $fields[$f]->getVar('field_element');
switch( $fieldElement ) {
- case 10:
+ case 11:
$ret = <<<EOT
\$adminmenu[\$i]['icon'] = 'assets/images/icons/32/{$tables[$t]->getVar('table_image')}';\n
EOT;
@@ -113,6 +115,7 @@
*/
public function render() {
$module = $this->getModule();
+ $table = $this->getTable();
$tables = $this->getTables();
$filename = $this->getFileName();
$moduleDirname = $module->getVar('mod_dirname');
@@ -138,7 +141,7 @@
EOT;
}
}
- if( $tablePermissions == 1 ) {
+ if (is_object($table) && $table->getVar('table_permissions') == 1) {
$menu++;
$content .= <<<EOT
\$adminmenu[\$i]['title'] = {$language}{$menu};
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/pages.php 2014-07-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/pages.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -116,26 +116,21 @@
foreach(array_keys($fields) as $f)
{
$fieldName = $fields[$f]->getVar('field_name');
- $rpFieldName = $fieldName;
// Verify if table_fieldname is not empty
$lpFieldName = !empty($tableFieldname) ? substr($fieldName, 0, strpos($fieldName, '_')) : $tableName;
- if(strpos($fieldName, '_')) {
- $str = strpos($fieldName, '_');
- if($str !== false){
- $rpFieldName = substr($fieldName, $str + 1, strlen($fieldName));
- }
- }
+ $rpFieldName = $this->tdmcfile->getRightString($fieldName);
+ //
$fieldElement = $fields[$f]->getVar('field_element');
if( ($fields[$f]->getVar('field_admin') == 1) || ($tableAutoincrement == 1) ) {
switch($fieldElement) {
- case 2:
case 3:
+ case 4:
$ret .= $this->adminobjects->getTextAreaGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName);
break;
- case 7:
+ case 5:
$ret .= $this->adminobjects->getSelectUserGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName);
break;
- case 12:
+ case 13:
$ret .= $this->adminobjects->getTextDateSelectGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName);
break;
default:
@@ -215,20 +210,20 @@
$fieldElement = $fields[$f]->getVar('field_element');
if($f > 0) { // If we want to hide field id
switch($fieldElement) {
- case 4:
case 5:
+ case 6:
$ret .= $this->adminobjects->getCheckBoxOrRadioYNSetVar($tableName, $fieldName);
break;
- case 9:
+ case 10:
$ret .= $this->adminobjects->getImageListSetVar($moduleDirname, $tableName, $fieldName);
break;
- case 10:
+ case 11:
$ret .= $this->adminobjects->getUploadImageSetVar($moduleDirname, $tableName, $fieldName);
break;
- case 11:
+ case 12:
$ret .= $this->adminobjects->getUploadFileSetVar($moduleDirname, $tableName, $fieldName);
break;
- case 12:
+ case 13:
$ret .= $this->adminobjects->getTextDateSelectSetVar($tableName, $fieldName);
break;
default:
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-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/architecture.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -113,16 +113,14 @@
$this->structure->makeDir($targetDirectory);
// Copied of index.html file in "root module" folder
$this->structure->copyFile('', $indexFile, 'index.html');
- if (is_object($table)) {
- if ( $table->getVar('table_admin') == 1) {
- // Creation of "admin" folder and index.html file
- $this->structure->makeDirAndCopyFile('admin', $indexFile, 'index.html');
- }
- if ( $table->getVar('table_blocks') == 1) {
- // Creation of "blocks" folder and index.html file
- $this->structure->makeDirAndCopyFile('blocks', $indexFile, 'index.html');
- }
+ if ( $module->getVar('mod_admin') == 1) {
+ // Creation of "admin" folder and index.html file
+ $this->structure->makeDirAndCopyFile('admin', $indexFile, 'index.html');
}
+ if ( $module->getVar('mod_blocks') == 1) {
+ // Creation of "blocks" folder and index.html file
+ $this->structure->makeDirAndCopyFile('blocks', $indexFile, 'index.html');
+ }
// Creation of "class" folder and index.html file
$this->structure->makeDirAndCopyFile('class', $indexFile, 'index.html');
// Creation of "assets" folder and index.html file
@@ -168,25 +166,25 @@
// Creation of "language/local_language" folder and index.html file
$this->structure->makeDirAndCopyFile('language/'.$GLOBALS['xoopsConfig']['language'], $indexFile, 'index.html');
// Creation of "language/local_language/help" folder and index.html file
- $this->structure->makeDirAndCopyFile('language/'.$GLOBALS['xoopsConfig']['language']. '/help', $indexFile, 'index.html');
- if (is_object($table)) {
- if (( $table->getVar('table_user') == 1) || ( $table->getVar('table_admin') == 1 )) {
- // Creation of "templates" folder and index.html file
- $this->structure->makeDirAndCopyFile('templates', $indexFile, 'index.html');
- }
- if ( $table->getVar('table_admin') == 1 ) {
- // Creation of "templates/admin" folder and index.html file
- $this->structure->makeDirAndCopyFile('templates/admin', $indexFile, 'index.html');
- }
- if ( $table->getVar('table_blocks') == 1 ) {
+ $this->structure->makeDirAndCopyFile('language/'.$GLOBALS['xoopsConfig']['language']. '/help', $indexFile, 'index.html');
+ if( $module->getVar('mod_admin') == 1 ) {
+ // Creation of "templates" folder and index.html file
+ $this->structure->makeDirAndCopyFile('templates', $indexFile, 'index.html');
+ }
+ if( $module->getVar('mod_admin') == 1 ) {
+ // Creation of "templates/admin" folder and index.html file
+ $this->structure->makeDirAndCopyFile('templates/admin', $indexFile, 'index.html');
+ }
+ if(is_object($table)) {
+ if( $table->getVar('table_blocks') == 1 ) {
// Creation of "templates/blocks" folder and index.html file
$this->structure->makeDirAndCopyFile('templates/blocks', $indexFile, 'index.html');
}
- if ( $table->getVar('table_name') != null ) {
+ if( $table->getVar('table_name') != null ) {
// Creation of "sql" folder and index.html file
$this->structure->makeDirAndCopyFile('sql', $indexFile, 'index.html');
}
- if ( $table->getVar('table_notifications') == 1 ) {
+ if( $table->getVar('table_notifications') == 1 ) {
// Creation of "mail_template" folder and index.html file
$this->structure->makeDirAndCopyFile('language/'.$GLOBALS['xoopsConfig']['language'].'/mail_template', $indexFile, 'index.html');
}
@@ -277,7 +275,49 @@
// Language Modinfo File
$languageModinfo = LanguageModinfo::getInstance();
$languageModinfo->write($module, $table, $tables, 'modinfo.php');
- $ret[] = $languageModinfo->render();
+ $ret[] = $languageModinfo->render();
+ if( $module->getVar('mod_admin') == 1 ) {
+ // Admin Header File
+ $adminHeader = AdminHeader::getInstance();
+ $adminHeader->write($module, $table, $tables, 'header.php');
+ $ret[] = $adminHeader->render();
+ // Admin Index File
+ $adminIndex = AdminIndex::getInstance();
+ $adminIndex->write($module, $tables, 'index.php');
+ $ret[] = $adminIndex->render();
+ // Admin Menu File
+ $adminMenu = AdminMenu::getInstance();
+ $adminMenu->write($module, $table, $tables, 'menu.php');
+ $ret[] = $adminMenu->render();
+ // Admin About File
+ $adminAbout = AdminAbout::getInstance();
+ $adminAbout->write($module, 'about.php');
+ $ret[] = $adminAbout->render();
+ // Admin Footer File
+ $adminFooter = AdminFooter::getInstance();
+ $adminFooter->write($module, 'footer.php');
+ $ret[] = $adminFooter->render();
+ // Templates Admin About File
+ $adminTemplatesAbout = TemplatesAdminAbout::getInstance();
+ $adminTemplatesAbout->write($module, $moduleDirname.'_admin_about.tpl');
+ $ret[] = $adminTemplatesAbout->render();
+ // Templates Admin Index File
+ $adminTemplatesIndex = TemplatesAdminIndex::getInstance();
+ $adminTemplatesIndex->write($module, $moduleDirname.'_admin_index.tpl');
+ $ret[] = $adminTemplatesIndex->render();
+ // Templates Admin Footer File
+ $adminTemplatesFooter = TemplatesAdminFooter::getInstance();
+ $adminTemplatesFooter->write($module, $moduleDirname.'_admin_footer.tpl');
+ $ret[] = $adminTemplatesFooter->render();
+ // Templates Admin Header File
+ $adminTemplatesHeader = TemplatesAdminHeader::getInstance();
+ $adminTemplatesHeader->write($module, $moduleDirname.'_admin_header.tpl');
+ $ret[] = $adminTemplatesHeader->render();
+ // Language Admin File
+ $languageAdmin = LanguageAdmin::getInstance();
+ $languageAdmin->write($module, $tables, 'admin.php');
+ $ret[] = $languageAdmin->render();
+ }
// Creation of blocks language file
if (is_object($table)) {
if ( $table->getVar('table_blocks') == 1) {
@@ -286,21 +326,12 @@
$languageBlocks->write($module, $tables, 'blocks.php');
$ret[] = $languageBlocks->render();
}
-
+ // Class Helper File
+ $classHelper = ClassHelper::getInstance();
+ $classHelper->write($module, 'helper.php');
+ $ret[] = $classHelper->render();
// Creation of admin files
- if ( $table->getVar('table_admin') == 1) {
- // Admin Header File
- $adminHeader = AdminHeader::getInstance();
- $adminHeader->write($module, $table, $tables, 'header.php');
- $ret[] = $adminHeader->render();
- // Admin Index File
- $adminIndex = AdminIndex::getInstance();
- $adminIndex->write($module, $tables, 'index.php');
- $ret[] = $adminIndex->render();
- // Admin Menu File
- $adminMenu = AdminMenu::getInstance();
- $adminMenu->write($module, $tables, 'menu.php');
- $ret[] = $adminMenu->render();
+ if ( $table->getVar('table_admin') == 1) {
// Creation of admin permission file
if (( $table->getVar('table_permissions') == 1)) {
// Admin Permissions File
@@ -311,35 +342,7 @@
$adminTemplatesPermissions = TemplatesAdminPermissions::getInstance();
$adminTemplatesPermissions->write($module, $moduleDirname.'_admin_permissions.tpl');
$ret[] = $adminTemplatesPermissions->render();
- }
- // Admin Aboutr File
- $adminAbout = AdminAbout::getInstance();
- $adminAbout->write($module, 'about.php');
- $ret[] = $adminAbout->render();
- // Admin Footer File
- $adminFooter = AdminFooter::getInstance();
- $adminFooter->write($module, 'footer.php');
- $ret[] = $adminFooter->render();
- // Language Admin File
- $languageAdmin = LanguageAdmin::getInstance();
- $languageAdmin->write($module, $tables, 'admin.php');
- $ret[] = $languageAdmin->render();
- // Templates Admin About File
- $adminTemplatesAbout = TemplatesAdminAbout::getInstance();
- $adminTemplatesAbout->write($module, $moduleDirname.'_admin_about.tpl');
- $ret[] = $adminTemplatesAbout->render();
- // Templates Admin Index File
- $adminTemplatesIndex = TemplatesAdminIndex::getInstance();
- $adminTemplatesIndex->write($module, $moduleDirname.'_admin_index.tpl');
- $ret[] = $adminTemplatesIndex->render();
- // Templates Admin Footer File
- $adminTemplatesFooter = TemplatesAdminFooter::getInstance();
- $adminTemplatesFooter->write($module, $moduleDirname.'_admin_footer.tpl');
- $ret[] = $adminTemplatesFooter->render();
- // Templates Admin Header File
- $adminTemplatesHeader = TemplatesAdminHeader::getInstance();
- $adminTemplatesHeader->write($module, $moduleDirname.'_admin_header.tpl');
- $ret[] = $adminTemplatesHeader->render();
+ }
}
// Creation of notifications files
if ( $table->getVar('table_notifications') == 1 ) {
@@ -361,7 +364,15 @@
// Sql File
$sqlFile = SqlFile::getInstance();
$sqlFile->write($module, $tables, 'mysql.sql');
- $ret[] = $sqlFile->render();
+ $ret[] = $sqlFile->render();
+ // Include Functions File
+ $includeFunctions = IncludeFunctions::getInstance();
+ $includeFunctions->write($module, 'functions.php');
+ $ret[] = $includeFunctions->render();
+ // Include Update File
+ $includeUpdate = IncludeUpdate::getInstance();
+ $includeUpdate->write($module, 'update.php');
+ $ret[] = $includeUpdate->renderFile();
}
// Creation of search file
if ( $table->getVar('table_search') == 1) {
@@ -398,19 +409,7 @@
$ret[] = $includeCommentFunctions->renderFile();
}
// Creation of user files
- if ( ($table->getVar('table_user') == 1)) {
- // Templates Index File
- $userTemplatesIndex = TemplatesUserIndex::getInstance();
- $userTemplatesIndex->write($module, $moduleDirname.'_index.tpl');
- $ret[] = $userTemplatesIndex->render();
- // Templates Footer File
- $userTemplatesFooter = TemplatesUserFooter::getInstance();
- $userTemplatesFooter->write($module, $table, $moduleDirname.'_footer.tpl');
- $ret[] = $userTemplatesFooter->render();
- // Templates Header File
- $userTemplatesHeader = TemplatesUserHeader::getInstance();
- $userTemplatesHeader->write($module, $tables, $moduleDirname.'_header.tpl');
- $ret[] = $userTemplatesHeader->render();
+ if ( ($table->getVar('table_user') == 1)) {
// User Footer File
$userFooter = UserFooter::getInstance();
$userFooter->write($module, 'footer.php');
@@ -434,27 +433,29 @@
$languageMain->write($module, $table, $tables, 'main.php');
$ret[] = $languageMain->render();
}
- }
- // Class Helper File
- $classHelper = ClassHelper::getInstance();
- $classHelper->write($module, 'helper.php');
- $ret[] = $classHelper->render();
+ }
+ if( $module->getVar('mod_admin') == 1 ) {
+ // Templates Index File
+ $userTemplatesIndex = TemplatesUserIndex::getInstance();
+ $userTemplatesIndex->write($module, $moduleDirname.'_index.tpl');
+ $ret[] = $userTemplatesIndex->render();
+ // Templates Footer File
+ $userTemplatesFooter = TemplatesUserFooter::getInstance();
+ $userTemplatesFooter->write($module, $table, $moduleDirname.'_footer.tpl');
+ $ret[] = $userTemplatesFooter->render();
+ // Templates Header File
+ $userTemplatesHeader = TemplatesUserHeader::getInstance();
+ $userTemplatesHeader->write($module, $tables, $moduleDirname.'_header.tpl');
+ $ret[] = $userTemplatesHeader->render();
+ }
// Css Styles File
$cssStyles = CssStyles::getInstance();
$cssStyles->write($module, 'style.css');
$ret[] = $cssStyles->render();
// Include Common File
$includeCommon = IncludeCommon::getInstance();
- $includeCommon->write($module, 'common.php');
- $ret[] = $includeCommon->render();
- // Include Functions File
- $includeFunctions = IncludeFunctions::getInstance();
- $includeFunctions->write($module, 'functions.php');
- $ret[] = $includeFunctions->render();
- // Include Update File
- $includeUpdate = IncludeUpdate::getInstance();
- $includeUpdate->write($module, 'update.php');
- $ret[] = $includeUpdate->renderFile();
+ $includeCommon->write($module, $table, 'common.php');
+ $ret[] = $includeCommon->render();
// Docs Changelog File
$docsChangelog = DocsChangelog::getInstance();
$docsChangelog->write($module, 'changelog.txt');
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/blocks/blocks.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/blocks/blocks.php 2014-07-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/blocks/blocks.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -56,8 +56,8 @@
* @param null
*/
public function getBlocksShow($moduleDirname, $tableName, $tableFieldname, $tableCategory, $fields, $fpif) {
- $stu_module_dirname = strtoupper($moduleDirname);
- $ucfmod_name = ucfirst($moduleDirname);
+ $stuModuleDirname = strtoupper($moduleDirname);
+ $ucfModuleDirname = ucfirst($moduleDirname);
$ret = <<<EOT
include_once XOOPS_ROOT_PATH.'/modules/{$moduleDirname}/include/common.php';
include_once XOOPS_ROOT_PATH.'/modules/{$moduleDirname}/include/functions.php';
@@ -65,12 +65,12 @@
{
include_once XOOPS_ROOT_PATH.'/modules/{$moduleDirname}/class/{$tableName}.php';
\$myts =& MyTextSanitizer::getInstance();
- \$GLOBALS['xoopsTpl']->assign('{$moduleDirname}_upload_url', {$stu_module_dirname}_UPLOAD_URL);
+ \$GLOBALS['xoopsTpl']->assign('{$moduleDirname}_upload_url', {$stuModuleDirname}_UPLOAD_URL);
\${$tableFieldname} = array();
\$type_block = \$options[0];
\$nb_{$tableName} = \$options[1];
\$lenght_title = \$options[2];
- \${$moduleDirname} = {$ucfmod_name}Helper::getInstance();
+ \${$moduleDirname} = {$ucfModuleDirname}Helper::getInstance();
\${$tableName}Handler =& \${$moduleDirname}->getHandler('{$tableName}');
\$criteria = new CriteriaCompo();
array_shift(\$options);
@@ -100,26 +100,13 @@
foreach(array_keys($fields) as $f)
{
$fieldName = $fields[$f]->getVar('field_name');
- $rp_field_name = $fieldName;
- if( $fields[$f]->getVar('field_block') == 1 ) {
- // Verify if table_fieldname is not empty
- if(!empty($tableFieldname)) {
- if(strpos($fieldName, '_')) {
- $str = strpos($fieldName, '_');
- if($str !== false){
- $rp_field_name = substr($fieldName, $str + 1, strlen($fieldName));
- }
- }
- $tname = $tableFieldname;
- $ret .= <<<EOT
- \${$tname}['{$rp_field_name}'] = \${$tableName}_arr[\$i]->getVar('{$fieldName}');\n
+ // Verify if table_fieldname is not empty
+ $lpFieldName = !empty($tableFieldname) ? substr($fieldName, 0, strpos($fieldName, '_')) : $tableName;
+ $rpFieldName = $this->tdmcfile->getRightString($fieldName);
+ if( $fields[$f]->getVar('field_block') == 1 ) {
+ $ret .= <<<EOT
+ \${$lpFieldName}['{$rpFieldName}'] = \${$tableName}_arr[\$i]->getVar('{$fieldName}');\n
EOT;
- } else {
- $tname = $tableName;
- $ret .= <<<EOT
- \${$tname}['{$rp_field_name}'] = \${$tableName}_arr[\$i]->getVar('{$fieldName}');\n
-EOT;
- }
}
}
$ret .= <<<EOT
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/classes/classes.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/classes/classes.php 2014-07-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/classes/classes.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -132,14 +132,14 @@
* @param array $fields
*/
private function getHeadClass($moduleDirname, $tableName, $fields) {
- $ucf_module_dirname = ucfirst($moduleDirname);
- $ucf_table_name = ucfirst($tableName);
+ $ucfModuleDirname = ucfirst($moduleDirname);
+ $ucfTableName = ucfirst($tableName);
$ret = <<<EOT
defined('XOOPS_ROOT_PATH') or die("Restricted access");
/*
- * Class Object {$ucf_module_dirname}{$ucf_table_name}
+ * Class Object {$ucfModuleDirname}{$ucfTableName}
*/
-class {$ucf_module_dirname}{$ucf_table_name} extends XoopsObject
+class {$ucfModuleDirname}{$ucfTableName} extends XoopsObject
{
/*
* @var mixed
@@ -152,7 +152,7 @@
*/
public function __construct()
{
- \$this->{$moduleDirname} = {$ucf_module_dirname}Helper::getInstance();
+ \$this->{$moduleDirname} = {$ucfModuleDirname}Helper::getInstance();
{$this->getInitVars($fields)}\t}
/*
* @static function &getInstance
@@ -212,9 +212,9 @@
* @param string $fpif
*/
private function getPermissionsInFunctionForm($moduleDirname, $fpif) {
- $perm_approve = $this->getLanguage($moduleDirname, 'AM', 'PERMISSIONS_APPROVE');
- $perm_submit = $this->getLanguage($moduleDirname, 'AM', 'PERMISSIONS_SUBMIT');
- $perm_view = $this->getLanguage($moduleDirname, 'AM', 'PERMISSIONS_VIEW');
+ $permissionApprove = $this->getLanguage($moduleDirname, 'AM', 'PERMISSIONS_APPROVE');
+ $permissionSubmit = $this->getLanguage($moduleDirname, 'AM', 'PERMISSIONS_SUBMIT');
+ $permissionView = $this->getLanguage($moduleDirname, 'AM', 'PERMISSIONS_VIEW');
$ret = <<<EOT
// Permissions
\$member_handler = & xoops_gethandler ( 'member' );
@@ -227,15 +227,15 @@
\$groups_ids_submit = \$gperm_handler->getGroupIds ( '{$moduleDirname}_submit', \$this->getVar ( '{$fpif}' ), \$xoopsModule->getVar ( 'mid' ) );
\$groups_ids_view = \$gperm_handler->getGroupIds ( '{$moduleDirname}_view', \$this->getVar ( '{$fpif}' ), \$xoopsModule->getVar ( 'mid' ) );
\$groups_ids_approve = array_values ( \$groups_ids_approve );
- \$groups_can_approve_checkbox = new XoopsFormCheckBox ( {$perm_approve}, 'groups_approve[]', \$groups_ids_approve );
+ \$groups_can_approve_checkbox = new XoopsFormCheckBox ( {$permissionApprove}, 'groups_approve[]', \$groups_ids_approve );
\$groups_ids_submit = array_values ( \$groups_ids_submit );
- \$groups_can_submit_checkbox = new XoopsFormCheckBox ( {$perm_submit}, 'groups_submit[]', \$groups_ids_submit );
+ \$groups_can_submit_checkbox = new XoopsFormCheckBox ( {$permissionSubmit}, 'groups_submit[]', \$groups_ids_submit );
\$groups_ids_view = array_values ( \$groups_ids_view );
- \$groups_can_view_checkbox = new XoopsFormCheckBox ( {$perm_view}, 'groups_view[]', \$groups_ids_view );
+ \$groups_can_view_checkbox = new XoopsFormCheckBox ( {$permissionView}, 'groups_view[]', \$groups_ids_view );
} else {
- \$groups_can_approve_checkbox = new XoopsFormCheckBox ( {$perm_approve}, 'groups_approve[]', \$full_list );
- \$groups_can_submit_checkbox = new XoopsFormCheckBox ( {$perm_submit}, 'groups_submit[]', \$full_list );
- \$groups_can_view_checkbox = new XoopsFormCheckBox ( {$perm_view}, 'groups_view[]', \$full_list );
+ \$groups_can_approve_checkbox = new XoopsFormCheckBox ( {$permissionApprove}, 'groups_approve[]', \$full_list );
+ \$groups_can_submit_checkbox = new XoopsFormCheckBox ( {$permissionSubmit}, 'groups_submit[]', \$full_list );
+ \$groups_can_view_checkbox = new XoopsFormCheckBox ( {$permissionView}, 'groups_view[]', \$full_list );
}
// For approve
\$groups_can_approve_checkbox->addOptionArray ( \$group_list );
@@ -272,14 +272,14 @@
* @param string $fpmf
*/
private function getClassHandler($moduleDirname, $tableName, $fpif, $fpmf) {
- $ucf_module_dirname = ucfirst($moduleDirname);
- $ucf_table_name = ucfirst($tableName);
- $ucf_mod_table_handler = $ucf_module_dirname . $ucf_table_name;
+ $ucfModuleDirname = ucfirst($moduleDirname);
+ $ucfTableName = ucfirst($tableName);
+ $ucfModuleTable = $ucfModuleDirname . $ucfTableName;
$ret = <<<EOT
/*
- * Class Object Handler {$ucf_module_dirname}{$ucf_table_name}
+ * Class Object Handler {$ucfModuleDirname}{$ucfTableName}
*/
-class {$ucf_mod_table_handler}Handler extends XoopsPersistableObjectHandler
+class {$ucfModuleTable}Handler extends XoopsPersistableObjectHandler
{
/*
* Constructor
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/classes/formelements.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/classes/formelements.php 2014-07-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/classes/formelements.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -284,7 +284,7 @@
if($fields[$f]->getVar('field_parent') == 1) {
$fieldName = $fields[$f]->getVar('field_name');
$field_element = $fields[$f]->getVar('field_element');
- if($field_element > 12) {
+ if($field_element > 13) {
$fieldelement = $this->tdmcreate->getHandler('fieldelements')->get($field_element);
$fieldelementName = $fieldelement->getVar('fieldelement_name');
$rpFieldelementName = strtolower(str_replace('Table : ', '', $fieldelementName));
@@ -364,40 +364,42 @@
// Switch elements
switch($fieldElement)
{
- case 1:
+ case 1:
+ break;
+ case 2:
$ret .= $this->getXoopsFormText($language, $fieldName, $required);
break;
- case 2:
+ case 3:
$ret .= $this->getXoopsFormTextArea($language, $fieldName, $required);
break;
- case 3:
+ case 4:
$ret .= $this->getXoopsFormDhtmlTextArea($language, $moduleDirname, $fieldName, $required);
break;
- case 4:
+ case 5:
$ret .= $this->getXoopsFormCheckBox($language, $fieldName, $required);
break;
- case 5:
+ case 6:
$ret .= $this->getXoopsFormRadioYN($language, $fieldName, $required);
break;
- case 6:
+ case 7:
$ret .= $this->getXoopsFormSelect($language, $tableName, $fieldName, $required);
break;
- case 7:
+ case 8:
$ret .= $this->getXoopsFormSelectUser($language, $fieldName, $required);
break;
- case 8:
+ case 9:
$ret .= $this->getXoopsFormColorPicker($language, $moduleDirname, $fieldName, $required);
break;
- case 9:
+ case 10:
$ret .= $this->getXoopsFormImageList($language_funct, $moduleDirname, $tableName, $fieldName, $required);
break;
- case 10:
+ case 11:
$ret .= $this->getXoopsFormUploadImage($language_funct, $moduleDirname, $tableName, $required);
break;
- case 11:
+ case 12:
$ret .= $this->getXoopsFormUploadFile($language, $moduleDirname, $tableName, $fieldName, $required);
break;
- case 12:
+ case 13:
$ret .= $this->getXoopsFormTextDateSelect($language, $moduleDirname, $fieldName, $required);
break;
default:
@@ -407,7 +409,7 @@
}
break;
}
- if ($fieldElement > 12) {
+ if ($fieldElement > 13) {
if($table->getVar('table_category') == 1) {
$ret .= $this->getXoopsFormTopic($language, $moduleDirname, $table, $fields, $required);
} else {
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/file.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/file.php 2014-07-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/file.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -290,6 +290,21 @@
}
/*
+ * @public function getRightString
+ * @param string $string
+ */
+ public function getRightString($string) {
+ if(strpos($string, '_')) {
+ $str = strpos($string, '_');
+ if($str !== false){
+ $ret = substr($string, $str + 1, strlen($string));
+ return $ret;
+ }
+ }
+ return $string;
+ }
+
+ /*
* @public function getHeaderFilesComments
* @param string $module
* @param string $fileName
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/include/comment_functions.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/include/comment_functions.php 2014-07-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/include/comment_functions.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -62,8 +62,8 @@
$table = $this->getTable();
$moduleDirname = $module->getVar('mod_dirname');
$tableName = $table->getVar('table_name');
- $ucf_module_dirname = ucfirst($moduleDirname);
- $ucf_table_name = ucfirst($tableName);
+ $ucfModuleDirname = ucfirst($moduleDirname);
+ $ucfTableName = ucfirst($tableName);
$filename = $this->getFileName();
$content = $this->getHeaderFilesComments($module, $filename);
$content .= <<<EOT
@@ -71,7 +71,7 @@
function {$moduleDirname}_com_update(\$itemId, \$itemNumb) {
\$itemId = intval(\$itemId);
\$itemNumb = intval(\$itemNumb);
- \$article = new {$ucf_module_dirname}{$ucf_table_name}(\$itemId);
+ \$article = new {$ucfModuleDirname}{$ucfTableName}(\$itemId);
if (!\$article->updateComments(\$itemNumb)) {
return false;
}
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/include/comments.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/include/comments.php 2014-07-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/include/comments.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -58,13 +58,13 @@
*/
public function renderCommentsIncludes($module, $filename)
{
- $module_dirname = $module->getVar('mod_dirname');
+ $moduleDirname = $module->getVar('mod_dirname');
$content = $this->getHeaderFilesComments($module, $filename.'.php');
$content .= <<<EOT
include_once '../../mainfile.php';
include_once XOOPS_ROOT_PATH.'/include/{$filename}.php';
EOT;
- $this->tdmcfile->create($module_dirname, 'include', $filename.'.php', $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
+ $this->tdmcfile->create($moduleDirname, 'include', $filename.'.php', $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
}
/*
@@ -75,10 +75,8 @@
public function renderCommentsNew($module, $filename)
{
$table = $this->getTable();
- $module_dirname = strtolower($module->getVar('mod_dirname'));
- $table_name = $table->getVar('table_name');
- $table_fieldname = $table->getVar('table_fieldname');
- $fpmf = null;
+ $moduleDirname = strtolower($module->getVar('mod_dirname'));
+ $tableName = $table->getVar('table_name');
$fields = $this->getTableFields($table->getVar('table_id'));
foreach(array_keys($fields) as $f)
{
@@ -89,16 +87,16 @@
$content = $this->getHeaderFilesComments($module, $filename.'.php');
$content .= <<<EOT
include '../../mainfile.php';
-include_once XOOPS_ROOT_PATH.'/modules/{$module_dirname}/class/{$table_name}.php';
+include_once XOOPS_ROOT_PATH.'/modules/{$moduleDirname}/class/{$tableName}.php';
\$com_itemid = isset(\$_REQUEST['com_itemid']) ? intval(\$_REQUEST['com_itemid']) : 0;
if (\$com_itemid > 0) {
- \${$table_name}Handler =& xoops_getModuleHandler('{$table_name}', '{$module_dirname}');
- \${$table_name} = \${$table_name}handler->get(\$com_itemid);
- \$com_replytitle = \${$table_name}->getVar('{$fpmf}');
+ \${$tableName}Handler =& xoops_getModuleHandler('{$tableName}', '{$moduleDirname}');
+ \${$tableName} = \${$tableName}handler->get(\$com_itemid);
+ \$com_replytitle = \${$tableName}->getVar('{$fpmf}');
include XOOPS_ROOT_PATH.'/include/{$filename}.php';
}
EOT;
- $this->tdmcfile->create($module_dirname, 'include', $filename.'.php', $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
+ $this->tdmcfile->create($moduleDirname, 'include', $filename.'.php', $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
}
/*
@@ -109,33 +107,33 @@
$module = $this->getModule();
$table = $this->getTable();
$filename = $this->getFileName();
- $module_dirname = $module->getVar('mod_dirname');
+ $moduleDirname = $module->getVar('mod_dirname');
$content = $this->getHeaderFilesComments($module, $filename);
switch($filename) {
case 'comment_edit.php':
$content .= $this->getCommentsIncludes('comment_edit');
- $this->tdmcfile->create($module_dirname, 'include', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
+ $this->tdmcfile->create($moduleDirname, 'include', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
break;
case 'comment_delete.php':
$content .= $this->getCommentsIncludes('comment_delete');
- $this->tdmcfile->create($module_dirname, 'include', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
+ $this->tdmcfile->create($moduleDirname, 'include', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
break;
case 'comment_post.php':
$content .= $this->getCommentsIncludes('comment_post');
- $this->tdmcfile->create($module_dirname, 'include', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
+ $this->tdmcfile->create($moduleDirname, 'include', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
break;
case 'comment_reply.php':
$content .= $this->getCommentsIncludes('comment_reply');
- $this->tdmcfile->create($module_dirname, 'include', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
+ $this->tdmcfile->create($moduleDirname, 'include', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
break;
case 'comment_new.php':
- $content .= $this->getCommentsNew($module_dirname, 'comment_new');
- $this->tdmcfile->create($module_dirname, 'include', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
+ $content .= $this->getCommentsNew($moduleDirname, 'comment_new');
+ $this->tdmcfile->create($moduleDirname, 'include', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
return $this->tdmcfile->renderFile();
break;
}
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/include/common.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/include/common.php 2014-07-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/include/common.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -44,10 +44,12 @@
/*
* @public function write
* @param string $module
+ * @param object $table
* @param string $filename
*/
- public function write($module, $filename) {
+ public function write($module, $table, $filename) {
$this->setModule($module);
+ $this->setTable($table);
$this->setFileName($filename);
}
/*
@@ -56,26 +58,26 @@
*/
private function getCommonCode($module)
{
+ $table = $this->getTable();
$moduleDirname = $module->getVar('mod_dirname');
- $stu_mn = strtoupper($moduleDirname);
- $mod_author = $module->getVar('mod_author');
- $mod_a_w_name = $module->getVar('mod_author_website_name');
- $mod_a_w_url = $module->getVar('mod_author_website_url');
- $awn = str_replace(' ', '', strtolower($mod_a_w_name));
- $mod_author_image = str_replace(' ', '', strtolower($mod_author));
+ $stuModuleDirname = strtoupper($moduleDirname);
+ $moduleAuthor = $module->getVar('mod_author');
+ $moduleAuthorWebsiteName = $module->getVar('mod_author_website_name');
+ $moduleAuthorWebsiteUrl = $module->getVar('mod_author_website_url');
+ $moduleAuthorImage = str_replace(' ', '', strtolower($moduleAuthor));
$ret = <<<EOT
defined('XOOPS_ROOT_PATH') or die('Restricted access');
-if (!defined('{$stu_mn}_MODULE_PATH')) {
- define('{$stu_mn}_DIRNAME', '{$moduleDirname}');
- define('{$stu_mn}_PATH', XOOPS_ROOT_PATH.'/modules/'.{$stu_mn}_DIRNAME);
- define('{$stu_mn}_URL', XOOPS_URL.'/modules/'.{$stu_mn}_DIRNAME);
- define('{$stu_mn}_UPLOAD_PATH', XOOPS_UPLOAD_PATH.'/'.{$stu_mn}_DIRNAME);
- define('{$stu_mn}_UPLOAD_URL', XOOPS_UPLOAD_URL.'/'.{$stu_mn}_DIRNAME);
- define('{$stu_mn}_IMAGE_PATH', {$stu_mn}_PATH.'/assets/images');
- define('{$stu_mn}_IMAGE_URL', {$stu_mn}_URL.'/assets/images/');
- define('{$stu_mn}_ADMIN', {$stu_mn}_URL . '/admin/index.php');
- \$local_logo = {$stu_mn}_IMAGE_URL . '/{$mod_author_image}_logo.gif';
- /*if(is_dir({$stu_mn}_IMAGE_PATH) && file_exists(\$local_logo)) {
+if (!defined('{$stuModuleDirname}_MODULE_PATH')) {
+ define('{$stuModuleDirname}_DIRNAME', '{$moduleDirname}');
+ define('{$stuModuleDirname}_PATH', XOOPS_ROOT_PATH.'/modules/'.{$stuModuleDirname}_DIRNAME);
+ define('{$stuModuleDirname}_URL', XOOPS_URL.'/modules/'.{$stuModuleDirname}_DIRNAME);
+ define('{$stuModuleDirname}_UPLOAD_PATH', XOOPS_UPLOAD_PATH.'/'.{$stuModuleDirname}_DIRNAME);
+ define('{$stuModuleDirname}_UPLOAD_URL', XOOPS_UPLOAD_URL.'/'.{$stuModuleDirname}_DIRNAME);
+ define('{$stuModuleDirname}_IMAGE_PATH', {$stuModuleDirname}_PATH.'/assets/images');
+ define('{$stuModuleDirname}_IMAGE_URL', {$stuModuleDirname}_URL.'/assets/images/');
+ define('{$stuModuleDirname}_ADMIN', {$stuModuleDirname}_URL . '/admin/index.php');
+ \$local_logo = {$stuModuleDirname}_IMAGE_URL . '/{$moduleAuthorImage}_logo.gif';
+ /*if(is_dir({$stuModuleDirname}_IMAGE_PATH) && file_exists(\$local_logo)) {
\$logo = \$local_logo;
} else {
\$sysPathIcon32 = \$GLOBALS['xoopsModule']->getInfo('icons32');
@@ -83,12 +85,17 @@
}*/
}
// module information
-\$copyright = "<a href='{$mod_a_w_url}' title='{$mod_a_w_name}' target='_blank'>
- <img src='".\$local_logo."' alt='{$mod_a_w_name}' /></a>";
+\$copyright = "<a href='{$moduleAuthorWebsiteUrl}' title='{$moduleAuthorWebsiteName}' target='_blank'>
+ <img src='".\$local_logo."' alt='{$moduleAuthorWebsiteName}' /></a>";
include_once XOOPS_ROOT_PATH.'/class/xoopsrequest.php';
-include_once {$stu_mn}_PATH.'/class/helper.php';
EOT;
+ if (is_object($table)) {
+ $ret .= <<<EOT
+include_once {$stuModuleDirname}_PATH.'/class/helper.php';
+include_once {$stuModuleDirname}_PATH.'/include/functions.php';
+EOT;
+ }
return $ret;
}
/*
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/include/notifications.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/include/notifications.php 2014-07-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/include/notifications.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -60,7 +60,8 @@
*/
public function getNotificationsFunction($moduleDirname)
{
- $table = $this->getTable();
+ $stuModuleDirname = strtoupper($moduleDirname);
+ $table = $this->getTable();
$tableName = $table->getVar('table_name');
$tableFieldname = $table->getVar('table_fieldname');
$fields = $this->getTableFields($table->getVar('table_id'));
@@ -90,38 +91,35 @@
\$module =& \$xoopsModule;
\$config =& \$xoopsModuleConfig;
}
-
+ //
xoops_loadLanguage('main', '{$moduleDirname}');
-
- if (\$category=='global')
- {
- \$item['name'] = '';
- \$item['url'] = '';
- return \$item;
- }
-
+ //
global \$xoopsDB;
- if (\$category=='category')
- {
- // Assume we have a valid category id
- \$sql = 'SELECT {$fpmf} FROM ' . \$xoopsDB->prefix('mod_{$moduleDirname}_{$tableName}') . ' WHERE {$fpif} = '. \$item_id;
- \$result = \$xoopsDB->query(\$sql); // TODO: error check
- \$result_array = \$xoopsDB->fetchArray(\$result);
- \$item['name'] = \$result_array['{$fpmf}'];
- \$item['url'] = XOOPS_URL . '/modules/' . \$module->getVar('dirname') . '/{$tableName}.php?{$fieldName}=' . \$item_id;
- return \$item;
+ switch(\$category) {
+ case 'global':
+ \$item['name'] = '';
+ \$item['url'] = '';
+ return \$item;
+ break;
+ case 'category':
+ // Assume we have a valid category id
+ \$sql = 'SELECT {$fpif}, {$fpmf} FROM ' . \$xoopsDB->prefix('{$moduleDirname}_{$tableName}') . ' WHERE {$fpif} = '. \$item_id;
+ \$result = \$xoopsDB->query(\$sql); // TODO: error check
+ \$result_array = \$xoopsDB->fetchArray(\$result);
+ \$item['name'] = \$result_array['{$fpmf}'];
+ \$item['url'] = {$stuModuleDirname}_URL . '/{$tableName}.php?{$fpif}=' . \$item_id;
+ return \$item;
+ break;
+ case '{$tableFieldname}':
+ // Assume we have a valid link id
+ \$sql = 'SELECT {$fpif}, {$fpmf} FROM '.\$xoopsDB->prefix('{$moduleDirname}_{$tableName}') . ' WHERE {$fpif} = ' . \$item_id;
+ \$result = \$xoopsDB->query(\$sql); // TODO: error check
+ \$result_array = \$xoopsDB->fetchArray(\$result);
+ \$item['name'] = \$result_array['{$fpmf}'];
+ \$item['url'] = {$stuModuleDirname}_URL . '/{$tableName}.php?{$fieldName}=' . \$result_array['{$fieldName}'] . '&{$fpif}=' . \$item_id;
+ return \$item;
+ break;
}
-
- if (\$category=='{$tableFieldname}')
- {
- // Assume we have a valid link id
- \$sql = 'SELECT {$fieldName}, {$fpmf} FROM '.\$xoopsDB->prefix('mod_{$moduleDirname}_{$tableName}') . ' WHERE {$fpif} = ' . \$item_id;
- \$result = \$xoopsDB->query(\$sql); // TODO: error check
- \$result_array = \$xoopsDB->fetchArray(\$result);
- \$item['name'] = \$result_array['title'];
- \$item['url'] = XOOPS_URL . '/modules/' . \$module->getVar('dirname') . '/{$tableName}.php?{$fieldName}=' . \$result_array['{$fieldName}'] . '&{$fpif}=' . \$item_id;
- return \$item;
- }
}
EOT;
return $ret;
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/admin.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/admin.php 2014-07-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/admin.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -247,10 +247,12 @@
$moduleDirname = $module->getVar('mod_dirname');
$language = $this->getLanguage($moduleDirname, 'AM');
$content = $this->getHeaderFilesComments($module, $filename);
- $content .= $this->getLanguageAdminIndex($language, $tables);
- $content .= $this->getLanguageAdminPages($language, $tables);
- $content .= $this->getLanguageAdminClass($language, $tables);
- $content .= $this->getLanguageAdminPermissions($language);
+ if(is_array($tables)) {
+ $content .= $this->getLanguageAdminIndex($language, $tables);
+ $content .= $this->getLanguageAdminPages($language, $tables);
+ $content .= $this->getLanguageAdminClass($language, $tables);
+ $content .= $this->getLanguageAdminPermissions($language);
+ }
$content .= $this->getLanguageAdminFoot($language);
//
$this->tdmcfile->create($moduleDirname, 'language/'.$GLOBALS['xoopsConfig']['language'], $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/modinfo.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/modinfo.php 2014-07-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/language/modinfo.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -83,12 +83,12 @@
foreach (array_keys($tables) as $i)
{
$menu++;
- $ucf_table_name = ucfirst(str_replace('_', ' ', $tables[$i]->getVar('table_name')));
+ $ucfTableName = ucfirst(str_replace('_', ' ', $tables[$i]->getVar('table_name')));
$ret .= <<<EOT
-define('{$language}ADMENU{$menu}', "{$ucf_table_name}");\n
+define('{$language}ADMENU{$menu}', "{$ucfTableName}");\n
EOT;
}
- if ( $table->getVar('table_permissions') == 1 ) {
+ if (is_object($table) && $table->getVar('table_permissions') == 1) {
$menu++;
$ret .= <<<EOT
define('{$language}ADMENU{$menu}', "Permissions");\n
@@ -279,7 +279,8 @@
$moduleDirname = $module->getVar('mod_dirname');
$language = $this->getLanguage($moduleDirname, 'MI');
$content = $this->getHeaderFilesComments($module, $filename);
- $content .= $this->getMain($language, $module);
+ $content .= $this->getMain($language, $module);
+ $content .= $this->getMenu($language, $table, $tables);
if (is_object($table)) {
if ( $table->getVar('table_admin') == 1 ) {
$content .= $this->getAdmin($language);
@@ -289,8 +290,7 @@
}
if ( $table->getVar('table_submenu') == 1 ) {
$content .= $this->getSubmenu($language, $tables);
- }
- $content .= $this->getMenu($language, $table, $tables);
+ }
$content .= $this->getBlocks($language, $tables);
$content .= $this->getConfig($language, $table);
if ( $table->getVar('table_notifications') == 1 )
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/sql/mysql.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/sql/mysql.php 2014-07-11 17:18:50 UTC (rev 12702)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/sql/mysql.php 2014-07-11 18:06:57 UTC (rev 12703)
@@ -16,7 +16,7 @@
* @package tdmcreate
* @since 2.5.0
* @author Txmod Xoops http://www.txmodxoops.org
- * @version $Id: sql_file.php 12258 2014-01-02 09:33:29Z timgno $
+ * @version $Id: mysql.php 12258 2014-01-02 09:33:29Z timgno $
*/
defined('XOOPS_ROOT_PATH') or die('Restricted access');
@@ -58,10 +58,10 @@
}
/*
- * @public function getHeaderSqlComments
+ * @private function getHeaderSqlComments
* @param string $moduleName
*/
- public function getHeaderSqlComments($moduleName)
+ private function getHeaderSqlComments($moduleName)
{
$date = date('D M d, Y');
$time = date('G:i');
@@ -83,19 +83,19 @@
}
/*
- * @public function getHeadDatabaseTable
+ * @private function getHeadDatabaseTable
* @param string $moduleDirname
* @param string $tableName
- * @param integer $nb_fields
+ * @param integer $fieldsNumb
*
* Unused IF NOT EXISTS
*/
- public function getHeadDatabaseTable($moduleDirname, $tableName, $nb_fields)
+ private function getHeadDatabaseTable($moduleDirname, $tableName, $fieldsNumb)
{
$ret = <<<SQL
#
-# Structure table for `{$moduleDirname}_{$tableName}` {$nb_fields}
+# Structure table for `{$moduleDirname}_{$tableName}` {$fieldsNumb}
#
CREATE TABLE `{$moduleDirname}_{$tableName}` (\n
@@ -104,49 +104,49 @@
}
/*
- * @public function getDatabaseTables
+ * @private function getDatabaseTables
* @param string $moduleDirname
*/
- public function getDatabaseTables($moduleDirname)
+ private function getDatabaseTables($moduleDirname)
{
$ret = null;
$tables = $this->getTables();
foreach(array_keys($tables) as $t)
{
- $table_id = $tables[$t]->getVar('table_id');
+ $tableId = $tables[$t]->getVar('table_id');
$tableName = $tables[$t]->getVar('table_name');
- $table_autoincrement = $tables[$t]->getVar('table_autoincrement');
- $nb_fields = $tables[$t]->getVar('table_nbfields');
- $ret .= $this->getDatabaseFields($moduleDirname, $table_id, $tableName, $table_autoincrement, $nb_fields);
+ $tableAutoincrement = $tables[$t]->getVar('table_autoincrement');
+ $fieldsNumb = $tables[$t]->getVar('table_nbfields');
+ $ret .= $this->getDatabaseFields($moduleDirname, $tableId, $tableName, $tableAutoincrement, $fieldsNumb);
}
return $ret;
}
/*
- * @public function getDatabaseFields
+ * @private function getDatabaseFields
* @param string $moduleDirname
* @param string $tableName
- * @param boolean $table_autoincrement
- * @param integer $nb_fields
+ * @param integer $tableAutoincrement
+ * @param integer $fieldsNumb
*/
- public function getDatabaseFields($moduleDirname, $table_id, $tableName, $table_autoincrement, $nb_fields)
+ private function getDatabaseFields($moduleDirname, $tableId, $tableName, $tableAutoincrement, $fieldsNumb)
{
$ret = null; $j = 0; $comma = array(); $row = array();
- $fields = $this->getTableFields($table_id);
+ $fields = $this->getTableFields($tableId);
foreach(array_keys($fields) as $f)
{
// Creation of database table
- $ret = $this->getHeadDatabaseTable($moduleDirname, $tableName, $nb_fields);
- $field_name = $fields[$f]->getVar('field_name');
- $field_type = $fields[$f]->getVar('field_type');
- $field_value = $fields[$f]->getVar('field_value');
- $field_attribute = $fields[$f]->getVar('field_attribute');
- $field_null = $fields[$f]->getVar('field_null');
- $field_default = $fields[$f]->getVar('field_default');
- $field_key = $fields[$f]->getVar('field_key');
- if ( !empty($field_name) )
+ $ret = $this->getHeadDatabaseTable($moduleDirname, $tableName, $fieldsNumb);
+ $fieldName = $fields[$f]->getVar('field_name');
+ $fieldType = $fields[$f]->getVar('field_type');
+ $fieldValue = $fields[$f]->getVar('field_value');
+ $fieldAttribute = $fields[$f]->getVar('field_attribute');
+ $fieldNull = $fields[$f]->getVar('field_null');
+ $fieldDefault = $fields[$f]->getVar('field_default');
+ $fieldKey = $fields[$f]->getVar('field_key');
+ ...
[truncated message content] |
|
From: <be...@us...> - 2014-07-11 17:19:04
|
Revision: 12702
http://sourceforge.net/p/xoops/svn/12702
Author: beckmi
Date: 2014-07-11 17:18:50 +0000 (Fri, 11 Jul 2014)
Log Message:
-----------
Adding RandomQuote update
Added Paths:
-----------
XoopsModules/randomquote/branches/mamba/
XoopsModules/randomquote/branches/mamba/randomquote/
XoopsModules/randomquote/branches/mamba/randomquote/admin/
XoopsModules/randomquote/branches/mamba/randomquote/admin/about.php
XoopsModules/randomquote/branches/mamba/randomquote/admin/admin_footer.php
XoopsModules/randomquote/branches/mamba/randomquote/admin/admin_header.php
XoopsModules/randomquote/branches/mamba/randomquote/admin/index.html
XoopsModules/randomquote/branches/mamba/randomquote/admin/index.php
XoopsModules/randomquote/branches/mamba/randomquote/admin/main.php
XoopsModules/randomquote/branches/mamba/randomquote/admin/menu.php
XoopsModules/randomquote/branches/mamba/randomquote/assets/
XoopsModules/randomquote/branches/mamba/randomquote/assets/css/
XoopsModules/randomquote/branches/mamba/randomquote/assets/css/index.html
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/arrow.gif
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/index.html
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/off.png
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/on.png
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/index.html
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/bg.png
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/index.html
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/left_both.png
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/right_both.png
XoopsModules/randomquote/branches/mamba/randomquote/assets/images/randomquote_logo.png
XoopsModules/randomquote/branches/mamba/randomquote/assets/index.html
XoopsModules/randomquote/branches/mamba/randomquote/blocks/
XoopsModules/randomquote/branches/mamba/randomquote/blocks/index.html
XoopsModules/randomquote/branches/mamba/randomquote/blocks/views.php
XoopsModules/randomquote/branches/mamba/randomquote/class/
XoopsModules/randomquote/branches/mamba/randomquote/class/forms/
XoopsModules/randomquote/branches/mamba/randomquote/class/forms/RandomQuote.php
XoopsModules/randomquote/branches/mamba/randomquote/class/index.html
XoopsModules/randomquote/branches/mamba/randomquote/class/quotes.php
XoopsModules/randomquote/branches/mamba/randomquote/docs/
XoopsModules/randomquote/branches/mamba/randomquote/docs/changelog.txt
XoopsModules/randomquote/branches/mamba/randomquote/docs/credits.txt
XoopsModules/randomquote/branches/mamba/randomquote/docs/index.html
XoopsModules/randomquote/branches/mamba/randomquote/docs/install.txt
XoopsModules/randomquote/branches/mamba/randomquote/docs/lang_diff.txt
XoopsModules/randomquote/branches/mamba/randomquote/docs/licencs.txt
XoopsModules/randomquote/branches/mamba/randomquote/docs/readme.txt
XoopsModules/randomquote/branches/mamba/randomquote/header.php
XoopsModules/randomquote/branches/mamba/randomquote/include/
XoopsModules/randomquote/branches/mamba/randomquote/include/config.php
XoopsModules/randomquote/branches/mamba/randomquote/include/functions.php
XoopsModules/randomquote/branches/mamba/randomquote/include/index.html
XoopsModules/randomquote/branches/mamba/randomquote/include/install.php
XoopsModules/randomquote/branches/mamba/randomquote/include/update.php
XoopsModules/randomquote/branches/mamba/randomquote/include/waiting.plugin.php
XoopsModules/randomquote/branches/mamba/randomquote/index.php
XoopsModules/randomquote/branches/mamba/randomquote/language/
XoopsModules/randomquote/branches/mamba/randomquote/language/english/
XoopsModules/randomquote/branches/mamba/randomquote/language/english/admin.php
XoopsModules/randomquote/branches/mamba/randomquote/language/english/blocks.php
XoopsModules/randomquote/branches/mamba/randomquote/language/english/help/
XoopsModules/randomquote/branches/mamba/randomquote/language/english/help/help.html
XoopsModules/randomquote/branches/mamba/randomquote/language/english/help/index.html
XoopsModules/randomquote/branches/mamba/randomquote/language/english/index.html
XoopsModules/randomquote/branches/mamba/randomquote/language/english/main.php
XoopsModules/randomquote/branches/mamba/randomquote/language/english/modinfo.php
XoopsModules/randomquote/branches/mamba/randomquote/language/index.html
XoopsModules/randomquote/branches/mamba/randomquote/sql/
XoopsModules/randomquote/branches/mamba/randomquote/sql/index.html
XoopsModules/randomquote/branches/mamba/randomquote/sql/mysql.sql
XoopsModules/randomquote/branches/mamba/randomquote/templates/
XoopsModules/randomquote/branches/mamba/randomquote/templates/admin/
XoopsModules/randomquote/branches/mamba/randomquote/templates/admin/index.html
XoopsModules/randomquote/branches/mamba/randomquote/templates/admin/randomquote_admin_about.tpl
XoopsModules/randomquote/branches/mamba/randomquote/templates/admin/randomquote_admin_help.tpl
XoopsModules/randomquote/branches/mamba/randomquote/templates/blocks/
XoopsModules/randomquote/branches/mamba/randomquote/templates/blocks/index.html
XoopsModules/randomquote/branches/mamba/randomquote/templates/blocks/randomquote_quotes_block_day.tpl
XoopsModules/randomquote/branches/mamba/randomquote/templates/blocks/randomquote_quotes_block_random.tpl
XoopsModules/randomquote/branches/mamba/randomquote/templates/blocks/randomquote_quotes_block_recent.tpl
XoopsModules/randomquote/branches/mamba/randomquote/templates/index.html
XoopsModules/randomquote/branches/mamba/randomquote/templates/randomquote_footer.tpl
XoopsModules/randomquote/branches/mamba/randomquote/templates/randomquote_header.tpl
XoopsModules/randomquote/branches/mamba/randomquote/templates/randomquote_index.tpl
XoopsModules/randomquote/branches/mamba/randomquote/xoops_version.php
Added: XoopsModules/randomquote/branches/mamba/randomquote/admin/about.php
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/admin/about.php (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/admin/about.php 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,24 @@
+<?php
+/**
+ * Module: RandomQuote
+ *
+ * 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.
+ *
+ * PHP version 5
+ *
+ * @category Module
+ * @package Randomquote
+ * @author XOOPS Development Team, Mamba
+ * @copyright 2001-2013 The XOOPS Project
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @version $Id$
+ * @link http://sourceforge.net/projects/xoops/
+ * @since 2.0.0
+ */
+
+include_once __DIR__ . '/admin_header.php';
+echo $adminMenu->addNavigation("about.php");
+echo $adminMenu->renderabout('25J998Y3QEDZW', false);
+include_once __DIR__ . '/admin_footer.php';
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/admin/about.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/admin/admin_footer.php
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/admin/admin_footer.php (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/admin/admin_footer.php 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,26 @@
+<?php
+/**
+ * Module: RandomQuote
+ *
+ * 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.
+ *
+ * PHP version 5
+ *
+ * @category Module
+ * @package Randomquote
+ * @author XOOPS Development Team, Mamba
+ * @copyright 2001-2013 The XOOPS Project
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @version $Id$
+ * @link http://sourceforge.net/projects/xoops/
+ * @since 2.0.0
+ */
+
+echo "<div align='center'><a href='http://www.xoops.org' target='_blank'>
+ <img src='" . $pathIcon32 . "/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a></div>";
+echo "<div class='center smallsmall italic pad5'>
+ <strong>" . $xoopsModule->getVar('name') . "</strong> " . _AM_RANDOMQUOTE_MAINTAINEDBY . "
+ <a href='http://xoops.org' title='Visit Support Forum' class='tooltip' rel='external'>Support Forum</a></div>";
+xoops_cp_footer();
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/admin/admin_footer.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/admin/admin_header.php
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/admin/admin_header.php (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/admin/admin_header.php 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,53 @@
+<?php
+/**
+ * Module: RandomQuote
+ *
+ * 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.
+ *
+ * PHP version 5
+ *
+ * @category Module
+ * @package Randomquote
+ * @author XOOPS Development Team, Mamba
+ * @copyright 2001-2013 The XOOPS Project
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @version $Id$
+ * @link http://sourceforge.net/projects/xoops/
+ * @since 2.0.0
+ */
+
+include_once dirname(dirname(dirname(__DIR__))) . '/mainfile.php';
+include_once XOOPS_ROOT_PATH . '/include/cp_header.php';
+include_once '../include/config.php';
+include_once '../include/functions.php';
+
+$thisDirname = $GLOBALS['xoopsModule']->getVar('dirname');
+
+$pathIcon16 = '../' . $xoopsModule->getInfo('icons16');
+$pathIcon32 = '../' . $xoopsModule->getInfo('icons32');
+$pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin');
+//load handlers
+$quotesHandler =& xoops_getModuleHandler('quotes', $thisDirname);
+
+$myts =& MyTextSanitizer::getInstance();
+if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
+ include_once(XOOPS_ROOT_PATH . "/class/template.php");
+ $xoopsTpl = new XoopsTpl();
+}
+
+$xoopsTpl->assign('pathIcon16', $pathIcon16);
+$xoopsTpl->assign('pathIcon32', $pathIcon32);
+//Load languages
+xoops_loadLanguage('admin', $thisDirname);
+xoops_loadLanguage('modinfo', $thisDirname);
+xoops_loadLanguage('main', $thisDirname);
+// Locad admin menu class
+if (file_exists($GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php'))) {
+ require_once $GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php');
+} else {
+ redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false);
+}
+xoops_cp_header();
+$adminMenu = new ModuleAdmin();
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/admin/admin_header.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/admin/index.html
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/admin/index.html (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/admin/index.html 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
Added: XoopsModules/randomquote/branches/mamba/randomquote/admin/index.php
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/admin/index.php (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/admin/index.php 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,31 @@
+<?php
+/**
+ * Module: RandomQuote
+ *
+ * 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.
+ *
+ * PHP version 5
+ *
+ * @category Module
+ * @package Randomquote
+ * @author XOOPS Development Team, Mamba
+ * @copyright 2001-2013 The XOOPS Project
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @version $Id$
+ * @link http://sourceforge.net/projects/xoops/
+ * @since 2.0.0
+ */
+
+include_once __DIR__ . '/admin_header.php';
+//count "total citas"
+$count_quotes = $quotesHandler->getCount();
+// InfoBox citas
+$adminMenu->addInfoBox(_AM_RANDOMQUOTE_STATISTICS);
+// InfoBox citas
+$adminMenu->addInfoBoxLine(_AM_RANDOMQUOTE_STATISTICS, _AM_RANDOMQUOTE_THEREARE_CITAS, $count_quotes);
+// Render Index
+echo $adminMenu->addNavigation("index.php");
+echo $adminMenu->renderIndex();
+include_once __DIR__ . '/admin_footer.php';
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/admin/index.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/admin/main.php
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/admin/main.php (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/admin/main.php 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,148 @@
+<?php
+/**
+ * Module: RandomQuote
+ *
+ * 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.
+ *
+ * PHP version 5
+ *
+ * @category Module
+ * @package Randomquote
+ * @author XOOPS Development Team, Mamba
+ * @copyright 2001-2013 The XOOPS Project
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @version $Id$
+ * @link http://sourceforge.net/projects/xoops/
+ * @since 2.0.0
+ */
+
+include_once __DIR__ . '/admin_header.php';
+//It recovered the value of argument op in URL$
+$op = cleanVarsRandomquote($_REQUEST, 'op', 'list', 'string');
+switch ($op) {
+ case "list":
+ default:
+ echo $adminMenu->addNavigation('main.php');
+ $adminMenu->addItemButton(_AM_RANDOMQUOTE_NEWCITAS, 'main.php?op=new_quote', 'add');
+ echo $adminMenu->renderButton('left');
+ $criteria = new CriteriaCompo();
+ $criteria->setSort("id");
+ $criteria->setOrder("ASC");
+ $numrows = $quotesHandler->getCount();
+ $quotes_arr = $quotesHandler->getall($criteria);
+
+ //Table view
+ if ($numrows > 0) {
+ echo "<table width='100%' cellspacing='1' class='outer'>
+ <tr>
+ <th align=\"center\">" . _AM_RANDOMQUOTE_QUOTES_QUOTE . "</th>
+ <th align=\"center\">" . _AM_RANDOMQUOTE_QUOTES_AUTHOR . "</th>
+ <th align=\"center\">" . _AM_RANDOMQUOTE_QUOTES_STATUS . "</th>
+ <th align=\"center\">" . _AM_RANDOMQUOTE_QUOTES_WAITING . "</th>
+ <th align=\"center\">" . _AM_RANDOMQUOTE_QUOTES_ONLINE . "</th>
+
+ <th align='center' width='10%'>" . _AM_RANDOMQUOTE_FORMACTION . "</th>
+ </tr>";
+
+ $class = "odd";
+
+ foreach (array_keys($quotes_arr) as $i) {
+ if ($quotes_arr[$i]->getVar("quotes_pid") == 0) {
+ echo "<tr class='" . $class . "'>";
+ $class = ($class == "even") ? "odd" : "even";
+ echo "<td>" . $quotes_arr[$i]->getVar("quote") . "</td>";
+ echo "<td align=\"center\">" . $quotes_arr[$i]->getVar("author") . "</td>";
+
+ $verif_quote_status = ($quotes_arr[$i]->getVar("quote_status") == 1) ? _YES : _NO;
+ echo "<td align=\"center\">" . $verif_quote_status . "</td>";
+
+ $verif_quote_waiting = ($quotes_arr[$i]->getVar("quote_waiting") == 1) ? _YES : _NO;
+ echo "<td align=\"center\">" . $verif_quote_waiting . "</td>";
+
+ $verif_quote_online = ($quotes_arr[$i]->getVar("quote_online") == 1) ? _YES : _NO;
+ echo "<td align=\"center\">" . $verif_quote_online . "</td>";
+
+ echo "<td align='center' width='10%'>
+ <a href='main.php?op=edit_quote&id=" . $quotes_arr[$i]->getVar("id") . "'><img src=" . $pathIcon16 . "/edit.png alt='" . _EDIT . "' title='" . _EDIT . "'></a>
+ <a href='main.php?op=delete_quote&id=" . $quotes_arr[$i]->getVar("id") . "'><img src=" . $pathIcon16 . "/delete.png alt='" . _DELETE . "' title='" . _DELETE . "'></a>
+ </td>";
+ echo "</tr>";
+ }
+ }
+ echo "</table><br /><br />";
+ }
+
+ break;
+ case "new_quote":
+ echo $adminMenu->addNavigation("main.php");
+ $adminMenu->addItemButton(_AM_RANDOMQUOTE_QUOTESLIST, 'main.php?op=list', 'list');
+ echo $adminMenu->renderButton('left');
+
+ $obj =& $quotesHandler->create();
+ $form = $obj->getForm();
+ $form->display();
+ break;
+ case "save_quote":
+ if (!$GLOBALS["xoopsSecurity"]->check()) {
+ redirect_header("main.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if (isset($_REQUEST["id"])) {
+ $obj =& $quotesHandler->get($_REQUEST["id"]);
+ } else {
+ $obj =& $quotesHandler->create();
+ }
+
+ //Form texto
+ $obj->setVar("quote", $_REQUEST["quote"]);
+ //Form autor
+ $obj->setVar("author", $_REQUEST["author"]);
+ //Form quote_status
+ $verif_quote_status = ($_REQUEST["quote_status"] == 1) ? "1" : "0";
+ $obj->setVar("quote_status", $verif_quote_status);
+ //Form quote_waiting
+ $verif_quote_waiting = ($_REQUEST["quote_waiting"] == 1) ? "1" : "0";
+ $obj->setVar("quote_waiting", $verif_quote_waiting);
+ //Form quote_online
+ $verif_quote_online = ($_REQUEST["quote_online"] == 1) ? "1" : "0";
+ $obj->setVar("quote_online", $verif_quote_online);
+
+ if ($quotesHandler->insert($obj)) {
+ redirect_header("main.php?op=list", 2, _AM_RANDOMQUOTE_FORMOK);
+ }
+
+ echo $obj->getHtmlErrors();
+ $form =& $obj->getForm();
+ $form->display();
+ break;
+ case "edit_quote":
+ echo $adminMenu->addNavigation("main.php");
+ $adminMenu->addItemButton(_AM_RANDOMQUOTE_NEWCITAS, 'main.php?op=new_quote', 'add');
+ $adminMenu->addItemButton(_AM_RANDOMQUOTE_QUOTESLIST, 'main.php?op=list', 'list');
+ echo $adminMenu->renderButton('left');
+ $obj = $quotesHandler->get($_REQUEST["id"]);
+ $form = $obj->getForm();
+ $form->display();
+ break;
+ case "delete_quote":
+ $obj =& $quotesHandler->get($_REQUEST["id"]);
+ if (isset($_REQUEST["ok"]) && $_REQUEST["ok"] == 1) {
+ if (!$GLOBALS["xoopsSecurity"]->check()) {
+ redirect_header("main.php", 3, implode(",", $GLOBALS["xoopsSecurity"]->getErrors()));
+ }
+ if ($quotesHandler->delete($obj)) {
+ redirect_header("main.php", 3, _AM_RANDOMQUOTE_FORMDELOK);
+ } else {
+ echo $obj->getHtmlErrors();
+ }
+ } else {
+ xoops_confirm(
+ array("ok" => 1, "id" => $_REQUEST["id"], "op" => "delete_quote"),
+ $_SERVER["REQUEST_URI"],
+ sprintf(_AM_RANDOMQUOTE_FORMSUREDEL, $obj->getVar("quote"))
+ );
+ }
+ break;
+}
+include_once __DIR__ . '/admin_footer.php';
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/admin/main.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/admin/menu.php
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/admin/menu.php (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/admin/menu.php 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,39 @@
+<?php
+/**
+ * Module: RandomQuote
+ *
+ * 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.
+ *
+ * PHP version 5
+ *
+ * @category Module
+ * @package Randomquote
+ * @author XOOPS Development Team, Mamba
+ * @copyright 2001-2013 The XOOPS Project
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @version $Id$
+ * @link http://sourceforge.net/projects/xoops/
+ * @since 2.0.0
+ */
+
+$dirname = basename(dirname(__DIR__));
+$module_handler =& xoops_gethandler("module");
+$xoopsModule =& XoopsModule::getByDirname($dirname);
+$moduleInfo =& $module_handler->get($xoopsModule->getVar("mid"));
+$pathIcon32 = $moduleInfo->getInfo("icons32");
+$adminmenu = array();
+$i = 1;
+$adminmenu[$i]["title"] = _MI_RANDOMQUOTE_ADMENU1;
+$adminmenu[$i]["link"] = "admin/index.php";
+$adminmenu[$i]["icon"] = $pathIcon32 . "/home.png";
+++$i;
+$adminmenu[$i]["title"] = _MI_RANDOMQUOTE_ADMENU2;
+$adminmenu[$i]["link"] = "admin/main.php";
+$adminmenu[$i]["icon"] = $pathIcon32 . "/content.png";
+++$i;
+$adminmenu[$i]["title"] = _MI_RANDOMQUOTE_ADMENU3;
+$adminmenu[$i]["link"] = "admin/about.php";
+$adminmenu[$i]["icon"] = $pathIcon32 . "/about.png";
+unset($i);
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/admin/menu.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/css/index.html
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/css/index.html (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/css/index.html 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/arrow.gif
===================================================================
(Binary files differ)
Index: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/arrow.gif
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/arrow.gif 2014-07-11 10:35:55 UTC (rev 12701)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/arrow.gif 2014-07-11 17:18:50 UTC (rev 12702)
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/arrow.gif
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/index.html
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/index.html (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/index.html 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/off.png
===================================================================
(Binary files differ)
Index: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/off.png
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/off.png 2014-07-11 10:35:55 UTC (rev 12701)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/off.png 2014-07-11 17:18:50 UTC (rev 12702)
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/off.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/on.png
===================================================================
(Binary files differ)
Index: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/on.png
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/on.png 2014-07-11 10:35:55 UTC (rev 12701)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/on.png 2014-07-11 17:18:50 UTC (rev 12702)
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/icons/on.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/index.html
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/images/index.html (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/images/index.html 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/bg.png
===================================================================
(Binary files differ)
Index: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/bg.png
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/bg.png 2014-07-11 10:35:55 UTC (rev 12701)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/bg.png 2014-07-11 17:18:50 UTC (rev 12702)
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/bg.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/index.html
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/index.html (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/index.html 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1 @@
+<script type="text/javascript">history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/left_both.png
===================================================================
(Binary files differ)
Index: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/left_both.png
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/left_both.png 2014-07-11 10:35:55 UTC (rev 12701)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/left_both.png 2014-07-11 17:18:50 UTC (rev 12702)
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/left_both.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/right_both.png
===================================================================
(Binary files differ)
Index: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/right_both.png
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/right_both.png 2014-07-11 10:35:55 UTC (rev 12701)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/right_both.png 2014-07-11 17:18:50 UTC (rev 12702)
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/menu/right_both.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/randomquote_logo.png
===================================================================
(Binary files differ)
Index: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/randomquote_logo.png
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/images/randomquote_logo.png 2014-07-11 10:35:55 UTC (rev 12701)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/images/randomquote_logo.png 2014-07-11 17:18:50 UTC (rev 12702)
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/assets/images/randomquote_logo.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/assets/index.html
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/assets/index.html (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/assets/index.html 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
Added: XoopsModules/randomquote/branches/mamba/randomquote/blocks/index.html
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/blocks/index.html (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/blocks/index.html 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
Added: XoopsModules/randomquote/branches/mamba/randomquote/blocks/views.php
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/blocks/views.php (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/blocks/views.php 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,102 @@
+<?php
+/**
+ * Module: RandomQuote
+ *
+ * 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.
+ *
+ * PHP version 5
+ *
+ * @category Module
+ * @package Randomquote
+ * @author XOOPS Development Team, Mamba
+ * @copyright 2001-2013 The XOOPS Project
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @version $Id$
+ * @link http://sourceforge.net/projects/xoops/
+ * @since 2.0.0
+ */
+
+include_once XOOPS_ROOT_PATH . "/modules/randomquote/include/functions.php";
+
+/**
+ * @param $options
+ *
+ * @return array
+ */
+function showRandomquoteBlockViews($options)
+{
+ include_once XOOPS_ROOT_PATH . "/modules/randomquote/class/quotes.php";
+// $myts =& MyTextSanitizer::getInstance();
+
+ $citas = array();
+ $type_block = $options[0];
+ $nb_quotes = $options[1];
+// $lenght_title = $options[2];
+
+ $quotesHandler =& xoops_getModuleHandler("quotes", "randomquote");
+ $criteria = new CriteriaCompo();
+ array_shift($options);
+ array_shift($options);
+ array_shift($options);
+
+ switch ($type_block) {
+ // for block: citas recent
+ case "recent":
+ $criteria->add(new Criteria("quote_online", 1));
+// $criteria->setSort("quotes_date_created");
+ $criteria->setSort("id");
+ $criteria->setOrder("DESC");
+ break;
+ // for block: citas today's
+ case "day":
+ $criteria->add(new Criteria("quote_online", 1));
+// $criteria->add(new Criteria("quotes_date_created", strtotime(date("Y/m/d")), ">="));
+// $criteria->add(new Criteria("quotes_date_created", strtotime(date("Y/m/d")) + 86400, "<="));
+// $criteria->setSort("quotes_date_created");
+ $criteria->setOrder("ASC");
+ $criteria->setSort("RAND()");
+ break;
+ // for block: citas random
+ case "random":
+ $criteria->add(new Criteria("quote_online", 1));
+ $criteria->setSort("RAND()");
+ break;
+ }
+
+ $criteria->setLimit($nb_quotes);
+ $quotes_arr = $quotesHandler->getall($criteria);
+ foreach (array_keys($quotes_arr) as $i) {
+ $citas[$i]["quote"] = $quotes_arr[$i]->getVar("quote");
+ $citas[$i]["author"] = $quotes_arr[$i]->getVar("author");
+ }
+
+ return $citas;
+}
+
+/**
+ * @param $options
+ *
+ * @return string
+ */
+function editRandomquoteBlockViews($options)
+{
+ $quotes_arr = array();
+ $form = "" . _MB_RANDOMQUOTE_QUOTES_DISPLAY . "\n";
+ $form .= "<input type=\"hidden\" name=\"options[0]\" value=\"" . $options[0] . "\" />";
+ $form .= "<input name=\"options[1]\" size=\"5\" maxlength=\"255\" value=\"" . $options[1] . "\" type=\"text\" /> <br />";
+ $form .= "" . _MB_RANDOMQUOTE_QUOTES_TITLELENGTH . " : <input name=\"options[2]\" size=\"5\" maxlength=\"255\" value=\"" . $options[2] . "\" type=\"text\" /><br /><br />";
+ array_shift($options);
+ array_shift($options);
+ array_shift($options);
+ $form .= "" . _MB_RANDOMQUOTE_QUOTES_CATTODISPLAY . "<br /><select name=\"options[]\" multiple=\"multiple\" size=\"5\">";
+ $form .= "<option value=\"0\" " . (array_search(0, $options) === false ? "" : "selected=\"selected\"") . ">" . _MB_RANDOMQUOTE_QUOTES_ALLCAT . "</option>";
+ foreach (array_keys($quotes_arr) as $i) {
+ $form .= "<option value=\"" . $quotes_arr[$i]->getVar("quotes_id") . "\" " . (array_search($quotes_arr[$i]->getVar("quotes_id"), $options) === false ? "" : "selected=\"selected\"") . ">"
+ . $quotes_arr[$i]->getVar("quotes_title") . "</option>";
+ }
+ $form .= "</select>";
+
+ return $form;
+}
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/blocks/views.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/class/forms/RandomQuote.php
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/class/forms/RandomQuote.php (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/class/forms/RandomQuote.php 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,24 @@
+<?php
+
+/**
+ * Module: RandomQuote
+ *
+ * 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.
+ *
+ * PHP version 5
+ *
+ * @category Module
+ * @package Randomquote
+ * @author XOOPS Development Team, Mamba
+ * @copyright 2001-2013 The XOOPS Project
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @version $Id$
+ * @link http://sourceforge.net/projects/xoops/
+ * @since 2.0.0
+ */
+class RandomQuote
+{
+
+}
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/class/forms/RandomQuote.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/class/index.html
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/class/index.html (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/class/index.html 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
Added: XoopsModules/randomquote/branches/mamba/randomquote/class/quotes.php
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/class/quotes.php (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/class/quotes.php 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,139 @@
+<?php
+/**
+ * Module: RandomQuote
+ *
+ * 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.
+ *
+ * PHP version 5
+ *
+ * @category Module
+ * @package Randomquote
+ * @author XOOPS Development Team, Mamba
+ * @copyright 2001-2013 The XOOPS Project
+ * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
+ * @version $Id$
+ * @link http://sourceforge.net/projects/xoops/
+ * @since 2.0.0
+ */
+
+if (!defined("XOOPS_ROOT_PATH")) {
+ die("XOOPS root path not defined");
+}
+
+/**
+ * Class RandomquoteQuotes
+ */
+class RandomquoteQuotes extends XoopsObject
+{
+ //Constructor
+ /**
+ *
+ */
+ function __construct()
+ {
+ $this->XoopsObject();
+ $this->initVar("id", XOBJ_DTYPE_INT, null, false, 11);
+ $this->initVar("quote", XOBJ_DTYPE_TXTAREA, null, false);
+ $this->initVar("author", XOBJ_DTYPE_TXTAREA, null, false);
+ $this->initVar("quote_status", XOBJ_DTYPE_INT, null, false, 10);
+ $this->initVar("quote_waiting", XOBJ_DTYPE_INT, null, false, 10);
+ $this->initVar("quote_online", XOBJ_DTYPE_INT, null, false, 1);
+
+ $this->initVar('dohtml', XOBJ_DTYPE_INT, 1, false);
+ $this->initVar('dosmiley', XOBJ_DTYPE_INT, 1, false);
+ $this->initVar('doxcode', XOBJ_DTYPE_INT, 1, false);
+ $this->initVar('doimage', XOBJ_DTYPE_INT, 1, false);
+ $this->initVar('dobr', XOBJ_DTYPE_INT, 1, false);
+
+ }
+
+ /**
+ * @param bool $action
+ *
+ * @return XoopsThemeForm
+ */
+ function getForm($action = false)
+ {
+ // global $xoopsDB, $xoopsModuleConfig;
+
+ if ($action === false) {
+ $action = $_SERVER["REQUEST_URI"];
+ }
+
+ $title = $this->isNew() ? sprintf(_AM_RANDOMQUOTE_QUOTES_ADD) : sprintf(_AM_RANDOMQUOTE_QUOTES_EDIT);
+
+ include_once(XOOPS_ROOT_PATH . "/class/xoopsformloader.php");
+
+ $form = new XoopsThemeForm($title, "form", $action, "post", true);
+ $form->setExtra('enctype="multipart/form-data"');
+
+ $author = $this->isNew() ? '' : $this->getVar("author");
+ $textAuthor = new XoopsFormText(_AM_RANDOMQUOTE_QUOTES_AUTHOR, "author", 50, 255, $author);
+ $form->addElement($textAuthor);
+
+ $editorConfigs = array();
+ $editorConfigs["name"] = "quote";
+ $editorConfigs["value"] = $this->getVar("quote", "e");
+ $editorConfigs["rows"] = 10;
+ $editorConfigs["cols"] = 80;
+ $editorConfigs["width"] = "100%";
+ $editorConfigs["height"] = "400px";
+ $editorConfigs["editor"] = $GLOBALS["xoopsModuleConfig"]["randomquote_editor"];
+ $form->addElement(new XoopsFormEditor(_AM_RANDOMQUOTE_QUOTES_QUOTE, "quote", $editorConfigs), true);
+
+// $editorConfigs = array();
+// $editorConfigs["name"] = "author";
+// $editorConfigs["value"] = $this->getVar("author", "e");
+// $editorConfigs["rows"] = 10;
+// $editorConfigs["cols"] = 80;
+// $editorConfigs["width"] = "100%";
+// $editorConfigs["height"] = "400px";
+// $editorConfigs["editor"] = $GLOBALS["xoopsModuleConfig"]["randomquote_editor"];
+// $form->addElement(new XoopsFormEditor(_AM_RANDOMQUOTE_QUOTES_AUTHOR, "author", $editorConfigs), true);
+
+ $quote_status = $this->isNew() ? 0 : $this->getVar("quote_status");
+ $check_quote_status = new XoopsFormCheckBox(_AM_RANDOMQUOTE_QUOTES_STATUS, "quote_status", $quote_status);
+ $check_quote_status->addOption(1, " ");
+ $form->addElement($check_quote_status);
+ $quote_waiting = $this->isNew() ? 0 : $this->getVar("quote_waiting");
+ $check_quote_waiting
+ = new XoopsFormCheckBox(_AM_RANDOMQUOTE_QUOTES_WAITING, "quote_waiting", $quote_waiting);
+ $check_quote_waiting->addOption(1, " ");
+ $form->addElement($check_quote_waiting);
+ $quote_online = $this->isNew() ? 0 : $this->getVar("quote_online");
+ $check_quote_online = new XoopsFormCheckBox(_AM_RANDOMQUOTE_QUOTES_ONLINE, "quote_online", $quote_online);
+ $check_quote_online->addOption(1, " ");
+ $form->addElement($check_quote_online);
+
+ $form->addElement(new XoopsFormHidden("op", "save_quote"));
+
+ //Submit buttons
+ $button_tray = new XoopsFormElementTray("", "");
+ $submit_button = new XoopsFormButton("", "submit", _SUBMIT, "submit");
+ $button_tray->addElement($submit_button);
+
+ $cancel_button = new XoopsFormButton("", "", _CANCEL, "cancel");
+ $cancel_button->setExtra('onclick="history.go(-1)"');
+ $button_tray->addElement($cancel_button);
+
+ $form->addElement($button_tray);
+
+ return $form;
+ }
+}
+
+/**
+ * Class RandomquoteQuotesHandler
+ */
+class RandomquoteQuotesHandler extends XoopsPersistableObjectHandler
+{
+ /**
+ * @param null|object $db
+ */
+ function __construct(&$db)
+ {
+ parent::__construct($db, "randomquote_quotes", "RandomquoteQuotes", "id", "quote");
+ }
+}
Property changes on: XoopsModules/randomquote/branches/mamba/randomquote/class/quotes.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsModules/randomquote/branches/mamba/randomquote/docs/changelog.txt
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/docs/changelog.txt (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/docs/changelog.txt 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,7 @@
+
+------------------------------------
+ 2.00 Alpha 1 2013/06/27
+------------------------------------
+
+ - Original release RandomQuote 2.0 Alpha 1.
+ This module is developed from scratch using TDMCreate, but it's inspired by the original code from RandomQuote
Added: XoopsModules/randomquote/branches/mamba/randomquote/docs/credits.txt
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/docs/credits.txt (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/docs/credits.txt 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,6 @@
+Read Me First
+=============
+
+This module has been created with help from TDMCreate module.
+
+The original module was created by Mario Figge (http://www.zona84.com), with contributions by Egg McMuffin and Chefry.
Added: XoopsModules/randomquote/branches/mamba/randomquote/docs/index.html
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/docs/index.html (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/docs/index.html 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
Added: XoopsModules/randomquote/branches/mamba/randomquote/docs/install.txt
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/docs/install.txt (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/docs/install.txt 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,4 @@
+Read Me First
+=============
+
+Install just like another XOOPS module
\ No newline at end of file
Added: XoopsModules/randomquote/branches/mamba/randomquote/docs/lang_diff.txt
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/docs/lang_diff.txt (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/docs/lang_diff.txt 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,4 @@
+Language Differences
+=====================
+
+none
\ No newline at end of file
Added: XoopsModules/randomquote/branches/mamba/randomquote/docs/licencs.txt
===================================================================
--- XoopsModules/randomquote/branches/mamba/randomquote/docs/licencs.txt (rev 0)
+++ XoopsModules/randomquote/branches/mamba/randomquote/docs/licencs.txt 2014-07-11 17:18:50 UTC (rev 12702)
@@ -0,0 +1,339 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+T...
[truncated message content] |
|
From: <tst...@us...> - 2014-07-11 10:36:11
|
Revision: 12701
http://sourceforge.net/p/xoops/svn/12701
Author: tstempko
Date: 2014-07-11 10:35:55 +0000 (Fri, 11 Jul 2014)
Log Message:
-----------
FIX: Missing translation definitions
FIX: UTF-8-BOM file formats.
Modified Paths:
--------------
XoopsLanguages/polish/core/2.5.7/extras/modules/system/language/polish/admin/filemanager.php
XoopsLanguages/polish/core/2.5.7/extras/modules/system/language/polish/admin/index.html
XoopsLanguages/polish/core/2.5.7/extras/modules/system/language/polish/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/Frameworks/moduleclasses/moduleadmin/language/polish/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/Frameworks/moduleclasses/moduleadmin/language/polish/main.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/admin.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/auth.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/backend.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/banners.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/calendar.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/captcha.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/comment.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/countries.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/errors.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/findusers.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/formdhtmltextarea.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/global.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/locale.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/logger.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/activated.tpl
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/adminactivate.tpl
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/comment_notify.tpl
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/commentsubmit_notify.tpl
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/default_notify.tpl
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/lostpass1.tpl
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/lostpass2.tpl
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/register.tpl
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/tellfriend.tpl
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/welcome.tpl
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/misc.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/notification.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/pmsg.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/search.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/style.css
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/timezone.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/uploader.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/user.php
XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/xoopsmailerlocal.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/admin.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/help/help.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/help/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/main.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/modinfo.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/admin.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/help/help.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/help/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/mail_template/emailchanged.tpl
XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/mail_template/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/main.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/modinfo.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/protector/language/polish/help/help.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/protector/language/polish/help/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/avatars.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/banners.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/blocksadmin.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/comments.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/groups.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/images.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/mailusers.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/maintenance.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/modulesadmin.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/preferences.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/smilies.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/tplsets.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/userrank.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/users.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/blocks.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/cpanel.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/avatars.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/banners.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/blocksadmin.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/comments.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/groups.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/help_center.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/images.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/mailusers.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/maintenance.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/module_index.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/modulesadmin.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/preferences.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/smilies.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/tplsets.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/userrank.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/users.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/images/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/images/lightbox-btn-close.gif
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/images/lightbox-btn-next.gif
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/images/lightbox-btn-prev.gif
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/modinfo.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/themes/default/language/polish/admin.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/themes/default/language/polish/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/themes/default/language/polish/localsupport.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/themes/zetadigme/language/polish/admin.php
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/themes/zetadigme/language/polish/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/themes/zetadigme/language/polish/localsupport.php
XoopsLanguages/polish/core/2.5.7/htdocs/themes/suico/language/polish/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/themes/suico/language/polish/main.php
XoopsLanguages/polish/core/2.5.7/htdocs/themes/suico/language/polish/script.js
XoopsLanguages/polish/core/2.5.7/htdocs/themes/suico/language/polish/style.css
XoopsLanguages/polish/core/2.5.7/htdocs/themes/zetagenesis/language/polish/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/themes/zetagenesis/language/polish/main.php
XoopsLanguages/polish/core/2.5.7/htdocs/themes/zetagenesis/language/polish/script.js
XoopsLanguages/polish/core/2.5.7/htdocs/themes/zetagenesis/language/polish/style.css
XoopsLanguages/polish/core/2.5.7/htdocs/xoops_lib/modules/protector/language/polish/admin.php
XoopsLanguages/polish/core/2.5.7/htdocs/xoops_lib/modules/protector/language/polish/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/xoops_lib/modules/protector/language/polish/main.php
XoopsLanguages/polish/core/2.5.7/htdocs/xoops_lib/modules/protector/language/polish/modinfo.php
XoopsLanguages/polish/core/2.5.7/upgrade/language/polish/index.html
XoopsLanguages/polish/core/2.5.7/upgrade/language/polish/style.css
XoopsLanguages/polish/core/2.5.7/upgrade/language/polish/upgrade.php
Modified: XoopsLanguages/polish/core/2.5.7/extras/modules/system/language/polish/admin/filemanager.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/extras/modules/system/language/polish/admin/filemanager.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/extras/modules/system/language/polish/admin/filemanager.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
Modified: XoopsLanguages/polish/core/2.5.7/extras/modules/system/language/polish/admin/index.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/extras/modules/system/language/polish/admin/index.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/extras/modules/system/language/polish/admin/index.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1 +1 @@
- <script>history.go(-1);</script>
\ No newline at end of file
+ <script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsLanguages/polish/core/2.5.7/extras/modules/system/language/polish/index.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/extras/modules/system/language/polish/index.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/extras/modules/system/language/polish/index.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1 +1 @@
- <script>history.go(-1);</script>
\ No newline at end of file
+ <script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/Frameworks/moduleclasses/moduleadmin/language/polish/index.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/Frameworks/moduleclasses/moduleadmin/language/polish/index.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/Frameworks/moduleclasses/moduleadmin/language/polish/index.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1 +1 @@
- <script>history.go(-1);</script>
\ No newline at end of file
+ <script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/Frameworks/moduleclasses/moduleadmin/language/polish/main.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/Frameworks/moduleclasses/moduleadmin/language/polish/main.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/Frameworks/moduleclasses/moduleadmin/language/polish/main.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
/**
* Frameworks Module Admin
*
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/admin.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/admin.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/admin.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/auth.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/auth.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/auth.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/backend.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/backend.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/backend.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/banners.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/banners.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/banners.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/calendar.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/calendar.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/calendar.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
@@ -7,7 +7,39 @@
//%%%%% Time Zone %%%%
define("_CAL_FORMAT","Y-m-d");
+define('_CAL_FORMAT',_SHORTDATESTRING);
+//%%%%% JQuery Calendar Time Zone %%%%
+define('_CAL_JQUERY_FORMAT',"yyyy-mm-dd");
+// Week Mini Text
+define('_CAL_MIN_SUNDAY',"Nd");
+define('_CAL_MIN_MONDAY',"Pn");
+define('_CAL_MIN_TUESDAY',"Wt");
+define('_CAL_MIN_WEDNESDAY',"Śr");
+define('_CAL_MIN_THURSDAY',"Cz");
+define('_CAL_MIN_FRIDAY',"Pt");
+define('_CAL_MIN_SATURDAY',"So");
+// Week Short Text
+define('_CAL_SHORT_SUNDAY',"Ndz");
+define('_CAL_SHORT_MONDAY',"Pon");
+define('_CAL_SHORT_TUESDAY',"Wt");
+define('_CAL_SHORT_WEDNESDAY',"Śr");
+define('_CAL_SHORT_THURSDAY',"Czw");
+define('_CAL_SHORT_FRIDAY',"Pt");
+define('_CAL_SHORT_SATURDAY',"Sob");
+define('_CAL_SHORT_JANUARY',"Sty");
+define('_CAL_SHORT_FEBRUARY',"Lut");
+define('_CAL_SHORT_MARCH',"Mar");
+define('_CAL_SHORT_APRIL',"Kwi");
+define('_CAL_SHORT_MAY',"Maj");
+define('_CAL_SHORT_JUNE',"Cze");
+define('_CAL_SHORT_JULY',"Lip");
+define('_CAL_SHORT_AUGUST',"Sie");
+define('_CAL_SHORT_SEPTEMBER',"Wrz");
+define('_CAL_SHORT_OCTOBER',"Paź");
+define('_CAL_SHORT_NOVEMBER',"Lis");
+define('_CAL_SHORT_DECEMBER',"Gru");
+
define("_CAL_SUNDAY", "Niedziela");
define("_CAL_MONDAY", "Poniedziałek");
define("_CAL_TUESDAY", "Wtorek");
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/captcha.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/captcha.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/captcha.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/comment.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/comment.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/comment.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
@@ -40,3 +40,6 @@
define('_CM_COMAPPROVEADMIN', 'Wszystkie komentarze muszą być zatwierdzone przez administratora');
define('_CM_COMANONPOST', 'Pozwolić na anonimowe komentowanie?');
define('_CM_COMNOCOM', 'Wyłącz komentowanie');
+define('_CM_USER','Nazwa');
+define('_CM_EMAIL','Email');
+define('_CM_URL','Witryna WWW');
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/countries.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/countries.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/countries.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// _LANGCODE: en
// _CHARSET : UTF-8
// Translator: XOOPS Translation Team
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/errors.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/errors.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/errors.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// _LANGCODE: en
// _CHARSET : UTF-8
// Translator: XOOPS Translation Team
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/findusers.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/findusers.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/findusers.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/formdhtmltextarea.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/formdhtmltextarea.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/formdhtmltextarea.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
/**
* Language definitions for {@link XoopsFormDhtmlTextArea}
*
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/global.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/global.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/global.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
@@ -174,6 +174,7 @@
define('_DATESTRING', 'j.m.Y, G:i:s');
define('_MEDIUMDATESTRING', 'd.m.Y, G:i');
define('_SHORTDATESTRING', 'd.m.Y');
+define('_SHORTDATESTRING', 'd.m.Y');
/**
* The following characters are recognized in the format string:
* a - 'am' or 'pm'
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/index.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/index.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/index.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1 +1 @@
- <script>history.go(-1);</script>
\ No newline at end of file
+ <script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/locale.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/locale.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/locale.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?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
@@ -66,3 +66,41 @@
return money_format($format, $number);
}
}
+define("_TIMEFORMAT_DESC","Poprawne formaty: \"s\" - " . _SHORTDATESTRING . "; \"m\" - " . _MEDIUMDATESTRING . "; \"l\" - " . _DATESTRING . ";<br />" . "\"c\" or \"custom\" - format determined according to interval to present; \"e\" - Elapsed; \"mysql\" - Y-m-d H:i:s;<br />" . "specified string - Refer to <a href=\"http://php.net/manual/en/function.date.php\" rel=\"external\">PHP manual</a>.");
+
+/**
+ * A Xoops Local
+ *
+ * @package kernel
+ * @subpackage Language
+ *
+ * @author Taiwen Jiang <ph...@us...>
+ * @copyright copyright (c) 2000-2009 XOOPS.org
+ */
+class XoopsLocal extends XoopsLocalAbstract
+{
+ /**
+ * Number Formats
+ *
+ * @param unknown_type $number
+ * @return unknown
+ */
+ function number_format($number)
+ {
+ return number_format($number, 2, ' ',',');
+ }
+
+ /**
+ * Money Format
+ *
+ * @param string $format
+ * @param string $number
+ * @return money format
+ */
+ function money_format($format, $number)
+ {
+ setlocale(LC_MONETARY, 'pl_PL');
+
+ return money_format($format, $number);
+ }
+}
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/logger.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/logger.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/logger.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?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
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/activated.tpl
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/activated.tpl 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/activated.tpl 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-Witaj {X_UNAME},
+Witaj {X_UNAME},
Twoje nowe konto na {SITENAME} zostało aktywowane przez administratora.
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/adminactivate.tpl
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/adminactivate.tpl 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/adminactivate.tpl 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-Witaj {X_UNAME},
+Witaj {X_UNAME},
Nowy użytkownik {USERNAME} ({USEREMAIL}) właśnie się zarejestrował na {SITENAME}.
Klikając na poniższy link aktywujesz jego konto:
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/comment_notify.tpl
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/comment_notify.tpl 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/comment_notify.tpl 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-Witaj {X_UNAME},
+Witaj {X_UNAME},
Nowy komentarz został dodany do {X_ITEM_TYPE} "{X_ITEM_NAME}", która jest monitorowana w module {X_NOTIFY_MODULE} ;
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/commentsubmit_notify.tpl
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/commentsubmit_notify.tpl 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/commentsubmit_notify.tpl 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-Witaj {X_UNAME},
+Witaj {X_UNAME},
Komentarz został dodany (ale nie zatwierdzony) do {X_ITEM_TYPE} "{X_ITEM_NAME}", która jest monitorowana w module {X_MODULE}.
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/default_notify.tpl
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/default_notify.tpl 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/default_notify.tpl 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-Witaj {X_UNAME},
+Witaj {X_UNAME},
Zdarzenie {X_NOTIFY_EVENT} wystąpiło w {X_ITEM_TYPE} "{X_ITEM_TILE}", która jest monitorowana w module {X_MODULE} w naszym serwisie.
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/index.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/index.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/index.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
- <script>history.go(-1);</script>
+ <script>history.go(-1);</script>
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/lostpass1.tpl
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/lostpass1.tpl 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/lostpass1.tpl 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-Witaj {X_UNAME},
+Witaj {X_UNAME},
Użytkownik z adresu {IP} chciał uzyskać nowe hasło na stronie {SITENAME}.
Możesz otrzymać swoje nowe hasło klikając na link poniżej:
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/lostpass2.tpl
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/lostpass2.tpl 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/lostpass2.tpl 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-Witaj {X_UNAME},
+Witaj {X_UNAME},
Użytkownik z adresu {IP} zgłosił prośbę o nowe hasło.
Oto Twoje dane dla strony {SITENAME}.
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/register.tpl
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/register.tpl 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/register.tpl 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-Witaj {X_UNAME},
+Witaj {X_UNAME},
Dziękujemy za zarejestrowanie się na stronie {SITENAME}.
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/tellfriend.tpl
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/tellfriend.tpl 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/tellfriend.tpl 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-Witaj {FRIEND_NAME},
+Witaj {FRIEND_NAME},
Twój znajomy {YOUR_NAME} poleca Ci stronę {SITENAME}, możesz ją zobaczyć pod adresem {SITEURL}
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/welcome.tpl
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/welcome.tpl 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/mail_template/welcome.tpl 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-Witaj {X_UNAME},
+Witaj {X_UNAME},
Twoja rejestracja na stronie {X_SITENAME} została zakończona pomyślnie.
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/misc.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/misc.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/misc.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/notification.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/notification.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/notification.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/pmsg.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/pmsg.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/pmsg.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/search.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/search.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/search.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/style.css
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/style.css 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/style.css 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,3 +1,3 @@
-/* $Id$ */
+/* $Id$ */
/* localization stylesheet */
\ No newline at end of file
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/timezone.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/timezone.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/timezone.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/uploader.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/uploader.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/uploader.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/user.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/user.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/user.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/xoopsmailerlocal.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/xoopsmailerlocal.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/language/polish/xoopsmailerlocal.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?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
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/admin.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/admin.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/admin.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/help/help.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/help/help.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/help/help.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<div id="help-template" class="outer">
+<div id="help-template" class="outer">
<h1 class="head">Pomoc: <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/pm/admin/admin.php" title="Powrót do administracji PM"> Prywatne Wiadomości <img src="<{xoAdminIcons home.png}>" alt="Powrót do administracji PM"/></a></h1>
<!-- -----Help Content ---------- -->
<h4 class="odd">Opis</h4>
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/help/index.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/help/index.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/help/index.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1 +1 @@
-<script>history.go(-1);</script>
\ No newline at end of file
+<script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/index.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/index.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/index.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1 +1 @@
- <script>history.go(-1);</script>
\ No newline at end of file
+ <script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/main.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/main.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/main.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/modinfo.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/modinfo.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/pm/language/polish/modinfo.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/admin.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/admin.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/admin.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/help/help.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/help/help.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/help/help.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<div id="help-template" class="outer">
+<div id="help-template" class="outer">
<h1 class="head">Help: <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/profile/admin/index.php" title="Back to the Administration of Profile"> Profile <img src="<{xoAdminIcons home.png}>" alt="Back to the Administration of Profile"/></a></h1>
<!-- -----Help Content ---------- -->
<h4 class="odd">Description</h4>
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/help/index.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/help/index.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/help/index.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1 +1 @@
-<script>history.go(-1);</script>
\ No newline at end of file
+<script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/index.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/index.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/index.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1 +1 @@
- <script>history.go(-1);</script>
\ No newline at end of file
+ <script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/mail_template/emailchanged.tpl
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/mail_template/emailchanged.tpl 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/mail_template/emailchanged.tpl 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-Witaj {X_UNAME},
+Witaj {X_UNAME},
Twój adres email na {SITENAME} został pomyślnie zmieniony.
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/mail_template/index.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/mail_template/index.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/mail_template/index.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1 +1 @@
- <script>history.go(-1);</script>
\ No newline at end of file
+ <script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/main.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/main.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/main.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/modinfo.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/modinfo.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/profile/language/polish/modinfo.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
@@ -54,3 +54,6 @@
//1.62
define("_PROFILE_MI_ABOUT", "O module ");
define("_PROFILE_MI_HOME", "Strona główna");
+//1.86
+define('_PROFILE_MI_PROFILE_CAPTCHA_STEP1',"Czy użyć Captcha po drugim etapie rejestracji?");
+define('_PROFILE_MI_PROFILE_CAPTCHA_STEP1_DESC',"Wybierz "Tak" , aby dodać dodatkowe środki przeciwko rejestracji spamu przez boty" );
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/protector/language/polish/help/help.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/protector/language/polish/help/help.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/protector/language/polish/help/help.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<div id="help-template" class="outer">
+<div id="help-template" class="outer">
<h1 class="head">Help: <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/protector/admin/index.php" title="Back to the administration of Protector"> Protector <img src="<{xoAdminIcons home.png}>" alt="Back to the administration of Protector"/></a></h1>
<!-- -----Help Content ---------- -->
<h4 class="odd">Description</h4>
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/protector/language/polish/help/index.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/protector/language/polish/help/index.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/protector/language/polish/help/index.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1 +1 @@
-<script>history.go(-1);</script>
\ No newline at end of file
+<script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/avatars.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/avatars.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/avatars.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
* @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/banners.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/banners.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/banners.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/blocksadmin.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/blocksadmin.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/blocksadmin.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/comments.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/comments.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/comments.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/groups.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/groups.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/groups.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/images.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/images.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/images.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/index.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/index.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/index.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1 +1 @@
- <script>history.go(-1);</script>
\ No newline at end of file
+ <script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/mailusers.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/mailusers.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/mailusers.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/maintenance.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/maintenance.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/maintenance.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
@@ -15,6 +15,7 @@
define("_AM_SYSTEM_MAINTENANCE_SESSION","Wyczyść tabelę z danymi o sesjach (unikatowe identyfikatory połączeń)");
define("_AM_SYSTEM_MAINTENANCE_SESSION_OK","Czyszczenie zapisanych sesji: OK");
define("_AM_SYSTEM_MAINTENANCE_SESSION_NOTOK","Czyszczenie zapisanych sesji : Błąd");
+define('_AM_SYSTEM_MAINTENANCE_AVATAR',"Usuń nieużywane awatary");
define("_AM_SYSTEM_MAINTENANCE_CACHE","Czyszczenie folderów Cache z plikami tymczasowymi");
define("_AM_SYSTEM_MAINTENANCE_CACHE_OK","Wyczyszczone");
define("_AM_SYSTEM_MAINTENANCE_CACHE_NOTOK","Błąd : nie udało się przeprowadzić pełnego czyszczenia");
@@ -39,6 +40,7 @@
define("_AM_SYSTEM_MAINTENANCE_RESULT_CACHE","Zadanie: Czyszczenie plików z Cache");
define("_AM_SYSTEM_MAINTENANCE_RESULT_SESSION","Zadanie: Czyszczenie zapisanych sesji");
define("_AM_SYSTEM_MAINTENANCE_RESULT_QUERY","Zadanie: Operacje na tabelach");
+define('_AM_SYSTEM_MAINTENANCE_RESULT_AVATAR',"Zadanie usunięcia niewykorzystanych awatarów");
define("_AM_SYSTEM_MAINTENANCE_ERROR_MAINTENANCE","Nie wybrano żadnego polecenia konserwacji");
define("_AM_SYSTEM_MAINTENANCE_TABLES1","Tabele");
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/modulesadmin.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/modulesadmin.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/modulesadmin.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,8 +1,8 @@
-<?php
+<?php
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
- * _LANGCODE en
+ * _LANGCODE pl
* _CHARSET UTF-8
* @version $Id$
*/
@@ -180,3 +180,17 @@
"<ul>
<li>Sprawdź wszystkie zmiany i potwierdź, jeżeli są poprawne.</li>
</ul>");
+// Tips
+define('_AM_SYSTEM_MODULES_TIPS',
+"<ul>
+<li>Pamiętaj aby po zainstalowaniu nowego modułu skonfigurować preferencje modułu, bloki i uprawnienia użytkowników!</li>
+<li>Aby ukryć moduł w bloku Menu Główne ustaw kolejność na 0 (zero)</li>
+<li>Usuwaj nieużywane pliki modułów z serwera aby uniknąć dziur w bezpieczeństwie i utrzymać witrynę bezpieczną.</li>
+<li>Aby zmienić kolejność modułów (co zostanie odzwierciedlone w menu) wystarczy że złapiesz i puścisz (drag and drop) moduły w odpowiednim miejscu.</li>
+</ul>");
+define('_AM_SYSTEM_MODULES_CONFIRM_TIPS',
+"<ul>
+<li>Sprawdź czy modyfikacje są poprawne.</li>
+</ul>");
+// 2.5.7
+define('_AM_SYSTEM_MODULES_INSTALL_TESTDATA',"Dodaj dane testowe");
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/preferences.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/preferences.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/preferences.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/smilies.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/smilies.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/smilies.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/tplsets.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/tplsets.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/tplsets.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/userrank.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/userrank.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/userrank.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/users.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/users.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin/users.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/admin.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
/**
* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
* @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/blocks.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/blocks.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/blocks.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/cpanel.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/cpanel.php 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/cpanel.php 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/avatars.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/avatars.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/avatars.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<div id="help-template" class="outer">
+<div id="help-template" class="outer">
<h1 class="head">Help: Avatar</h1>
<h4 class="odd">Description</h4>
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/banners.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/banners.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/banners.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<div id="help-template" class="outer">
+<div id="help-template" class="outer">
<h1 class="head">Help: Banners</h1>
<h4 class="odd">Description</h4>
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/blocksadmin.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/blocksadmin.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/blocksadmin.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<div id="help-template" class="outer">
+<div id="help-template" class="outer">
<h1 class="head">Help: Blocks</h1>
<h4 class="odd">Description</h4>
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/comments.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/comments.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/comments.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<div id="help-template" class="outer">
+<div id="help-template" class="outer">
<h1 class="head">Help: Comments</h1>
<h4 class="odd">Description</h4>
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/groups.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/groups.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/groups.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<div id="help-template" class="outer">
+<div id="help-template" class="outer">
<h1 class="head">Help: Groups</h1>
<h4 class="odd">Description</h4>
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/help_center.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/help_center.html 2014-07-11 10:05:02 UTC (rev 12700)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/help_center.html 2014-07-11 10:35:55 UTC (rev 12701)
@@ -1,4 +1,4 @@
-<div id="help-template" class="outer">
+<div id="help-template" class="outer">
<h2 class="head">Witamy w Centrum Pomocy XOOPS</h2>
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/help/images.html
===================================================================
--- XoopsLanguages/polish/core/2.5...
[truncated message content] |
|
From: <tst...@us...> - 2014-07-11 10:05:10
|
Revision: 12700
http://sourceforge.net/p/xoops/svn/12700
Author: tstempko
Date: 2014-07-11 10:05:02 +0000 (Fri, 11 Jul 2014)
Log Message:
-----------
FIX: UTF-8-BOM file formats.
Modified Paths:
--------------
XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/finish.php
XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/install.php
XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/install2.php
XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/mysql.lang.data.sql
XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/style.css
XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/support.php
XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/support.png
XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/welcome.php
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/finish.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/finish.php 2014-07-11 10:01:24 UTC (rev 12699)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/finish.php 2014-07-11 10:05:02 UTC (rev 12700)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: pl
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/index.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/index.html 2014-07-11 10:01:24 UTC (rev 12699)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/index.html 2014-07-11 10:05:02 UTC (rev 12700)
@@ -1 +1 @@
- <script>history.go(-1);</script>
\ No newline at end of file
+ <script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/install.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/install.php 2014-07-11 10:01:24 UTC (rev 12699)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/install.php 2014-07-11 10:05:02 UTC (rev 12700)
@@ -1,4 +1,4 @@
-<?php
+<?php
/**
* Installer main english strings declaration file
*
@@ -13,13 +13,17 @@
* @author dugris <du...@fr...>
* @version $Id$
*/
+
// _LANGCODE: en
// _CHARSET : UTF-8
// Translator: XOOPS Translation Team
+
define( "SHOW_HIDE_HELP", "Pokaż/ukryj tekst pomocy" );
+
// License
define('LICENSE_NOT_WRITEABLE', 'Licencja jest %s . <br/><font style="colour:#ff0000">Ustaw prawo do zapisu dla pliku ../include/license.php </font>');
define('LICENSE_IS_WRITEABLE', 'Licencja jest %s');
+
// Configuration check page
define( "SERVER_API", "Serwer API" );
define( "PHP_EXTENSION", "%s rozszerzenie" );
@@ -32,13 +36,14 @@
define( "SETTING_NAME", "Nazwa konfiguracji" );
define( "RECOMMENDED", "Rekomendowane" );
define( "CURRENT", "Aktualny" );
-define( "RECOMMENDED_EXTENSIONS_MSG", "Te rozszerzenia nie są wymagane do typowego działania, ale mogą być niezbędne w przypadku specyficznych rozwiązań (jak wsparcie dla wielojęzykowości lub RSS). Dlatego zalecamy ich instalację." );
define( "NONE", "Żaden" );
define( "SUCCESS", "Pozytywnie" );
define( "WARNING", "Ostrzeżenie" );
define( "FAILED", "Błędnie" );
+
// Titles (main and pages)
define( "XOOPS_INSTALL_WIZARD", "Kreator instalacji XOOPS" );
+
define( "LANGUAGE_SELECTION", "Wybór języka" );
define( "LANGUAGE_SELECTION_TITLE", "Wybierz swój język"); // L128
define( "INTRODUCTION", "Wprowadzenie" );
@@ -61,19 +66,25 @@
define( "DATA_INSERTION_TITLE", "Zapisz swoje ustawienia do bazy danych" );
define( "WELCOME", "Witaj" );
define( "WELCOME_TITLE", "Witaj w swoim serwisie CMS XOOPS" ); // L0
+
// Settings (labels and help text)
define( "XOOPS_PATHS", "Fizyczna ścieżka XOOPS" );
define( "XOOPS_URLS", "Lokalizacja sieciowa" );
+
define( "XOOPS_ROOT_PATH_LABEL", "Fizyczna ścieżka na serwerze do głównego katalogu XOOPS" );
define( "XOOPS_ROOT_PATH_HELP", "Fizyczna ścieżka na serwerze do głównego katalogu XOOPS (katalogu z plikiem mainfile.php) BEZ końcowego ukośnika (unix np. /home/www/htdoc lub windows np. c:\htdoc)" );
+
define( "XOOPS_LIB_PATH_LABEL", "Katalog bibliotek XOOPS - XOOPS_lib" );
define( "XOOPS_LIB_PATH_HELP", "Physical path to the XOOPS library directory WITHOUT trailing slash, for forward compatibility. Locate the folder out of " . XOOPS_ROOT_PATH_LABEL . " to make it secure.");
define( "XOOPS_DATA_PATH_LABEL", "Katalog danych XOOPS - XOOPS_data" );
define( "XOOPS_DATA_PATH_HELP", "Physical path to the XOOPS data files (writable) directory WITHOUT trailing slash, for forward compatibility. Locate the folder out of " . XOOPS_ROOT_PATH_LABEL . " to make it secure." );
+
define( "XOOPS_URL_LABEL", "Adres witryny www (URL)" ); // L56
define( "XOOPS_URL_HELP", "Główny adres URL który będzie używany do dostępu do instalacji CMS XOOPS" ); // L58
+
define( "LEGEND_CONNECTION", "Połączenie z serwerem" );
define( "LEGEND_DATABASE", "Baza danych" ); // L51
+
define( "DB_HOST_LABEL", "Nazwa serwera (server hostname)" ); // L27
define( "DB_HOST_HELP", "Nazwa serwera bazy danych. Jeśli nie jesteś pewien, typową nazwą jest <em>localhost</em>"); // L67
define( "DB_USER_LABEL", "Nazwa użytkownika" ); // L28
@@ -91,20 +102,25 @@
define( "DB_PCONNECT_LABEL", "Użyj stałego połączenia" ); // L54
define( "DB_PCONNECT_HELP", "Domyślnie jest 'Nie'. Pozostaw puste jeśli nie jesteś pewien"); // L69
define( "DB_DATABASE_LABEL", "Baza danych" );
+
define( "LEGEND_ADMIN_ACCOUNT", "Konto administratora" );
define( "ADMIN_LOGIN_LABEL", "Login Admina" ); // L37
define( "ADMIN_EMAIL_LABEL", "E-mail Admina" ); // L38
define( "ADMIN_PASS_LABEL", "Hasło Admina" ); // L39
define( "ADMIN_CONFIRMPASS_LABEL", "Potwierdź hasło" ); // L74
+
// Buttons
define( "BUTTON_PREVIOUS", "Wstecz" ); // L42
define( "BUTTON_NEXT", "Dalej" ); // L47
+
// Messages
define( "XOOPS_FOUND", "%s znaleziono" );
define( "CHECKING_PERMISSIONS", "Sprawdzanie uprawnień do plików i katalogów..." ); // L82
define( "IS_NOT_WRITABLE", "%s NIE jest zapisywalny." ); // L83
define( "IS_WRITABLE", "%s jest zapisywalny." ); // L84
+
define( "XOOPS_PATH_FOUND", "Ścieżka znaleziona." );
+
define( "READY_CREATE_TABLES", "Nie odnaleziono tablic bazy XOOPS.<br />Instalator jest gotowy do stworzenia systemu tablic bazy danych XOOPS.<br />Naciśnij <em>Dalej</em> aby rozpocząć." );
define( "XOOPS_TABLES_FOUND", "System tablic XOOPS już istnieje w podanej bazie danych.<br />Naciśnij <em>Dalej</em> aby kontynuować." ); // L131
define( "XOOPS_TABLES_CREATED", "System tablic XOOPS został stworzony.<br />Naciśnij <em>Dalej</em> aby kontynuować." );
@@ -114,6 +130,7 @@
define( "SAVED_MAINFILE_MSG", "Instalator zapisał ustawienia do pliku <em>mainfile.php</em>. Naciśnij <em>Dalej</em> aby kontynuować." );
define( "DATA_ALREADY_INSERTED", "Dane XOOPSa już znajdują się w bazie danych.<br />Naciśnij <em>Dalej</em> aby kontynuować." );
define( "DATA_INSERTED", "Wstępne dane zostały wprowadzone do bazy danych.<br />Naciśnij <em>Dalej</em> aby kontynuować." );
+
// %s is database name
define( "DATABASE_CREATED", "Baza danych %s utworzona!" ); // L43
// %s is table name
@@ -125,6 +142,7 @@
define( "TABLE_NOT_ALTERED", "Błąd aktualizacji tabeli %s."); // L134
define( "TABLE_DROPPED", "Tabela %s została usunięta."); // L163
define( "TABLE_NOT_DROPPED", "Błąd usuwania tabeli %s."); // L164
+
// Error messages
define( "ERR_COULD_NOT_ACCESS", "Brak dostępu do podanego folderu. Proszę sprawdzić czy on istnieje i/lub czy jest dostępny." );
define( "ERR_NO_XOOPS_FOUND", "Nie znaleziono instalacji XOOPSa we wskazanym folderze" );
@@ -135,42 +153,55 @@
define( "ERR_NO_DATABASE", "Nie można utworzyć bazy danych. Skontaktuj się z administratorem serwera w tej sprawie." ); // L31
define( "ERR_NO_DBCONNECTION", "Nie można połączyć się z serwerem bazy danych." ); // L106
define( "ERR_WRITING_CONSTANT", "Błąd zapisu wartości %s." ); // L122
+
define( "ERR_COPY_MAINFILE", "Nie można skopiować danych do pliku mainfile.php" );
define( "ERR_WRITE_MAINFILE", "lik mainfile.php nie jest dostępny do zapisu. Proszę sprawdzić uprawnienia i spróbować ponownie.");
define( "ERR_READ_MAINFILE", "Plik mainfile.php nie jest dostępny do odczytu" );
+
define( "ERR_INVALID_DBCHARSET", "Kodowanie '%s' nie jest dostępne." );
define( "ERR_INVALID_DBCOLLATION", "Metoda porównywania '%s' nie jest dostępna." );
define( "ERR_CHARSET_NOT_SET", "Domyślny zestaw znaków nie jest zestawem znaków bazy danych XOOPS." );
+
define("_INSTALL_CHARSET", "UTF-8");
+
define( "SUPPORT", "Wsparcie");
+
define( "LOGIN", "Auten");
define( "LOGIN_TITLE", "Weryfikacja tożsamości");
define( "USER_LOGIN", "Login administratora" );
define( "USERNAME", "Użytkownik :");
define( "PASSWORD", "Hasło :");
+
define( "ICONV_CONVERSION", "Konwersja znaków");
define( "ZLIB_COMPRESSION", "Kompresja Zlib");
define( "IMAGE_FUNCTIONS", "Funkcje związane z obrazami");
define( "IMAGE_METAS", "Image meta data (exif)");
define( "FILTER_FUNCTIONS", "Funkcje filtrujące");
+
define( "ADMIN_EXIST", "Konto administratora już jest utworzone.<br />Naciśnij <em>Dalej</em> aby kontynuować.");
+
define( "CONFIG_SITE", "Konfiguracja witryny" );
define( "CONFIG_SITE_TITLE", "Konfiguracja witryny" );
define( "MODULES", "Instalacja modułów" );
define( "MODULES_TITLE", "Instalacja modułów" );
define( "THEME", "Wybierz motyw graficzny - theme " );
define( "THEME_TITLE", "Wybierz domyślny motyw graficzny - theme" );
+
define( "INSTALLED_MODULES", "Zainstalowane moduły.<br />Naciśnij <em>Dalej</em> aby kontynuować.");
define( "NO_MODULES_FOUND", "Nie znaleziono modułów.<br />Naciśnij <em>Dalej</em> aby kontynuować.");
define( "NO_INSTALLED_MODULES", "Nie zainstalowano modułów.<br />Naciśnij <em>Dalej</em> aby kontynuować.");
+
define( "THEME_NO_SCREENSHOT", "Nie znaleziono zdjęcia ekranu");
+
define( "IS_VALOR", " => ");
+
// password message
define( "PASSWORD_LABEL", "Siła hasła : ");
define( "PASSWORD_DESC", "Hasło nie zostało wprowadzone");
define( "PASSWORD_GENERATOR", "Generator haseł");
define( "PASSWORD_GENERATE", "Generuj");
define( "PASSWORD_COPY", "Kopiuj");
+
define( "PASSWORD_VERY_WEAK", "Bardzo słabe!");
define( "PASSWORD_WEAK", "Słabe!");
define( "PASSWORD_BETTER", "W miarę");
@@ -178,4 +209,4 @@
define( "PASSWORD_STRONG", "Mocne");
define( "PASSWORD_STRONGEST", "Bardzo mocne");
//2.5.7
-define('WRITTEN_LICENSE',"Zapisana Licencja XOOPS %s Klucz licencyjny: <strong>%s</strong>");
+define('WRITTEN_LICENSE',"Zapisany Klucz Licencyjny XOOPS %s: <strong>%s</strong>");
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/install2.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/install2.php 2014-07-11 10:01:24 UTC (rev 12699)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/install2.php 2014-07-11 10:05:02 UTC (rev 12700)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/mysql.lang.data.sql
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/mysql.lang.data.sql 2014-07-11 10:01:24 UTC (rev 12699)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/mysql.lang.data.sql 2014-07-11 10:05:02 UTC (rev 12700)
@@ -1,4 +1,4 @@
-#
+#
# Dumping data for table `ranks`
#
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/style.css
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/style.css 2014-07-11 10:01:24 UTC (rev 12699)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/style.css 2014-07-11 10:05:02 UTC (rev 12700)
@@ -0,0 +1 @@
+
\ No newline at end of file
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/support.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/support.php 2014-07-11 10:01:24 UTC (rev 12699)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/support.php 2014-07-11 10:05:02 UTC (rev 12700)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: en
// _CHARSET : UTF-8
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/support.png
===================================================================
(Binary files differ)
Modified: XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/welcome.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/welcome.php 2014-07-11 10:01:24 UTC (rev 12699)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/install/language/polish/welcome.php 2014-07-11 10:05:02 UTC (rev 12700)
@@ -1,4 +1,4 @@
-<?php
+<?php
// $Id$
// _LANGCODE: pl
// _CHARSET : UTF-8
|
|
From: <be...@us...> - 2014-07-11 10:01:32
|
Revision: 12699
http://sourceforge.net/p/xoops/svn/12699
Author: beckmi
Date: 2014-07-11 10:01:24 +0000 (Fri, 11 Jul 2014)
Log Message:
-----------
Adding missing files
Added Paths:
-----------
XoopsLanguages/english-Reference/core/2.5.7/htdocs/themes/xbootstrap/
XoopsLanguages/english-Reference/core/2.5.7/htdocs/themes/xbootstrap/language/
XoopsLanguages/english-Reference/core/2.5.7/htdocs/themes/xbootstrap/language/english/
XoopsLanguages/english-Reference/core/2.5.7/htdocs/themes/xbootstrap/language/english/main.php
XoopsLanguages/english-Reference/core/2.5.7/htdocs/themes/xbootstrap/language/main.php
Added: XoopsLanguages/english-Reference/core/2.5.7/htdocs/themes/xbootstrap/language/english/main.php
===================================================================
--- XoopsLanguages/english-Reference/core/2.5.7/htdocs/themes/xbootstrap/language/english/main.php (rev 0)
+++ XoopsLanguages/english-Reference/core/2.5.7/htdocs/themes/xbootstrap/language/english/main.php 2014-07-11 10:01:24 UTC (rev 12699)
@@ -0,0 +1,30 @@
+<?php
+
+//Nav Menu
+define("THEME_HOME", "Home");
+define("THEME_MODULE1", "About");
+define("THEME_MODULE2", "News");
+define("THEME_MODULE3", "Forum");
+define("THEME_MODULE4", "Contact");
+define("THEME_SEARCH_TEXT", "Search here...");
+define("THEME_SEARCH_BUTTON", "Go");
+
+//Slider
+define("THEME_READMORE", "Read More");
+
+//Home Message
+define("THEME_ABOUTUS", "About Us");
+define("THEME_LEARNINGMORE", "Learning More...");
+
+//NewBB
+define("THEME_NEWBB_TOPIC", "More");
+define("THEME_FORUM_SPONSORBY", "Sponsor By.: ");
+define("THEME_GOTOTHEFORUM", "Go to Forum");
+define("THEME_FORUM_DESCRIPTION", "Description");
+define("THEME_NEWBB_SEARCH_FORUM", "Search in forum...");
+define("THEME_NEWBB_SEARCH_TOPIC", "Search in topic...");
+define("THEME_FORUM_DESC", "About This Forum");
+
+//Block login
+define("THEME_LOGIN", "Your Username");
+define("THEME_PASS", "Your Password");
Property changes on: XoopsLanguages/english-Reference/core/2.5.7/htdocs/themes/xbootstrap/language/english/main.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: XoopsLanguages/english-Reference/core/2.5.7/htdocs/themes/xbootstrap/language/main.php
===================================================================
--- XoopsLanguages/english-Reference/core/2.5.7/htdocs/themes/xbootstrap/language/main.php (rev 0)
+++ XoopsLanguages/english-Reference/core/2.5.7/htdocs/themes/xbootstrap/language/main.php 2014-07-11 10:01:24 UTC (rev 12699)
@@ -0,0 +1,30 @@
+<?php
+
+//Nav Menu
+define("THEME_HOME", "Home");
+define("THEME_MODULE1", "About");
+define("THEME_MODULE2", "News");
+define("THEME_MODULE3", "Forum");
+define("THEME_MODULE4", "Contact");
+define("THEME_SEARCH_TEXT", "Search here...");
+define("THEME_SEARCH_BUTTON", "Go");
+
+//Slider
+define("THEME_READMORE", "Read More");
+
+//Home Message
+define("THEME_ABOUTUS", "About Us");
+define("THEME_LEARNINGMORE", "Learning More...");
+
+//NewBB
+define("THEME_NEWBB_TOPIC", "More");
+define("THEME_FORUM_SPONSORBY", "Sponsor By.: ");
+define("THEME_GOTOTHEFORUM", "Go to Forum");
+define("THEME_FORUM_DESCRIPTION", "Description");
+define("THEME_NEWBB_SEARCH_FORUM", "Search in forum...");
+define("THEME_NEWBB_SEARCH_TOPIC", "Search in topic...");
+define("THEME_FORUM_DESC", "About This Forum");
+
+//Block login
+define("THEME_LOGIN", "Your Username");
+define("THEME_PASS", "Your Password");
Property changes on: XoopsLanguages/english-Reference/core/2.5.7/htdocs/themes/xbootstrap/language/main.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev URL
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
|
|
From: <tst...@us...> - 2014-07-11 09:46:32
|
Revision: 12698
http://sourceforge.net/p/xoops/svn/12698
Author: tstempko
Date: 2014-07-11 09:46:29 +0000 (Fri, 11 Jul 2014)
Log Message:
-----------
FIX: Missing files
Added Paths:
-----------
XoopsLanguages/polish/core/2.5.7/htdocs/modules/protector/language/polish/index.html
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/images/lightbox-blank.gif
XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/images/lightbox-ico-loading.gif
XoopsLanguages/polish/core/2.5.7/htdocs/themes/xbootstrap/
XoopsLanguages/polish/core/2.5.7/htdocs/themes/xbootstrap/language/
XoopsLanguages/polish/core/2.5.7/htdocs/themes/xbootstrap/language/polish/
XoopsLanguages/polish/core/2.5.7/htdocs/themes/xbootstrap/language/polish/main.php
Added: XoopsLanguages/polish/core/2.5.7/htdocs/modules/protector/language/polish/index.html
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/protector/language/polish/index.html (rev 0)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/protector/language/polish/index.html 2014-07-11 09:46:29 UTC (rev 12698)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/images/lightbox-blank.gif
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/images/lightbox-blank.gif (rev 0)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/images/lightbox-blank.gif 2014-07-11 09:46:29 UTC (rev 12698)
@@ -0,0 +1,38 @@
+define("_TIMEFORMAT_DESC","Poprawne formaty: \"s\" - " . _SHORTDATESTRING . "; \"m\" - " . _MEDIUMDATESTRING . "; \"l\" - " . _DATESTRING . ";<br />" . "\"c\" or \"custom\" - format determined according to interval to present; \"e\" - Elapsed; \"mysql\" - Y-m-d H:i:s;<br />" . "specified string - Refer to <a href=\"http://php.net/manual/en/function.date.php\" rel=\"external\">PHP manual</a>.");
+
+/**
+ * A Xoops Local
+ *
+ * @package kernel
+ * @subpackage Language
+ *
+ * @author Taiwen Jiang <ph...@us...>
+ * @copyright copyright (c) 2000-2009 XOOPS.org
+ */
+class XoopsLocal extends XoopsLocalAbstract
+{
+ /**
+ * Number Formats
+ *
+ * @param unknown_type $number
+ * @return unknown
+ */
+ function number_format($number)
+ {
+ return number_format($number, 2, ' ',',');
+ }
+
+ /**
+ * Money Format
+ *
+ * @param string $format
+ * @param string $number
+ * @return money format
+ */
+ function money_format($format, $number)
+ {
+ setlocale(LC_MONETARY, 'pl_PL');
+
+ return money_format($format, $number);
+ }
+}
Added: XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/images/lightbox-ico-loading.gif
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/images/lightbox-ico-loading.gif (rev 0)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/modules/system/language/polish/images/lightbox-ico-loading.gif 2014-07-11 09:46:29 UTC (rev 12698)
@@ -0,0 +1,38 @@
+define("_TIMEFORMAT_DESC","Poprawne formaty: \"s\" - " . _SHORTDATESTRING . "; \"m\" - " . _MEDIUMDATESTRING . "; \"l\" - " . _DATESTRING . ";<br />" . "\"c\" or \"custom\" - format determined according to interval to present; \"e\" - Elapsed; \"mysql\" - Y-m-d H:i:s;<br />" . "specified string - Refer to <a href=\"http://php.net/manual/en/function.date.php\" rel=\"external\">PHP manual</a>.");
+
+/**
+ * A Xoops Local
+ *
+ * @package kernel
+ * @subpackage Language
+ *
+ * @author Taiwen Jiang <ph...@us...>
+ * @copyright copyright (c) 2000-2009 XOOPS.org
+ */
+class XoopsLocal extends XoopsLocalAbstract
+{
+ /**
+ * Number Formats
+ *
+ * @param unknown_type $number
+ * @return unknown
+ */
+ function number_format($number)
+ {
+ return number_format($number, 2, ' ',',');
+ }
+
+ /**
+ * Money Format
+ *
+ * @param string $format
+ * @param string $number
+ * @return money format
+ */
+ function money_format($format, $number)
+ {
+ setlocale(LC_MONETARY, 'pl_PL');
+
+ return money_format($format, $number);
+ }
+}
Added: XoopsLanguages/polish/core/2.5.7/htdocs/themes/xbootstrap/language/polish/main.php
===================================================================
--- XoopsLanguages/polish/core/2.5.7/htdocs/themes/xbootstrap/language/polish/main.php (rev 0)
+++ XoopsLanguages/polish/core/2.5.7/htdocs/themes/xbootstrap/language/polish/main.php 2014-07-11 09:46:29 UTC (rev 12698)
@@ -0,0 +1,21 @@
+<?php
+
+//Nav Menu
+define("THEME_HOME", "Strona główna");define("THEME_MODULE1", "O module");define("THEME_MODULE2", "Newsy");
+define("THEME_MODULE3", "Forum");
+define("THEME_MODULE4", "Kontakt");
+define("THEME_SEARCH_TEXT", "Szukaj tutaj...");define("THEME_SEARCH_BUTTON", "Szukaj");
+//Slider
+define("THEME_READMORE", "Czytaj więcej");
+//Home Message
+define("THEME_ABOUTUS", "O nas");
+define("THEME_LEARNINGMORE", "Uczę się więcej...");
+
+//NewBB
+define("THEME_NEWBB_TOPIC", "Więcej");define("THEME_FORUM_SPONSORBY", "Sponsorowany przez.: ");define("THEME_GOTOTHEFORUM", "Idź do forum");define("THEME_FORUM_DESCRIPTION", "Opis");
+define("THEME_NEWBB_SEARCH_FORUM", "Szukaj na forum...");
+define("THEME_NEWBB_SEARCH_TOPIC", "Szukaj w temacie...");
+define("THEME_FORUM_DESC", "O tym forum");
+//Block login
+define("THEME_LOGIN", "Twoja nazwa użytkownika");
+define("THEME_PASS", "Twoje hasło");
|
|
From: <txm...@us...> - 2014-07-10 19:07:36
|
Revision: 12697
http://sourceforge.net/p/xoops/svn/12697
Author: txmodxoops
Date: 2014-07-10 19:07:25 +0000 (Thu, 10 Jul 2014)
Log Message:
-----------
After renamed main folder, updated revision
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/admin/fields.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/menu.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/objects.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/architecture.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/blocks/blocks.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/classes/classes.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/classes/formelements.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/htmlsmartycodes.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/admin/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/user/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/objects.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/pages.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/xoopsversion.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/docs/changelog.txt
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/language/english/admin.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/xoops_version.php
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/admin/fields.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/admin/fields.php 2014-07-10 18:47:00 UTC (rev 12696)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/admin/fields.php 2014-07-10 19:07:25 UTC (rev 12697)
@@ -158,7 +158,7 @@
if ( !$GLOBALS['xoopsSecurity']->check() ) {
redirect_header('fields.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
}
- $field_id = XoopsRequest::getInt('field_id');
+ $fieldId = XoopsRequest::getInt('field_id');
// Fields Handler
$fields = $tdmcreate->getHandler('fields');
// Set Variables
@@ -213,9 +213,9 @@
if (!$tdmcreate->getHandler('fieldelements')->insert($fieldelementObj) ) {
$GLOBALS['xoopsTpl']->assign('error', $fieldelementObj->getHtmlErrors() . ' Field element');
}
- redirect_header('fields.php', 2, sprintf(_AM_TDMCREATE_FIELD_FORM_SAVED_OK, $table_name));
+ redirect_header('fields.php', 2, sprintf(_AM_TDMCREATE_FIELDS_FORM_SAVED_OK, $table_name));
} else {
- redirect_header('fields.php', 2, sprintf(_AM_TDMCREATE_FIELD_FORM_UPDATED_OK, $table_name));
+ redirect_header('fields.php', 2, sprintf(_AM_TDMCREATE_FIELDS_FORM_UPDATED_OK, $table_name));
}
//
$GLOBALS['xoopsTpl']->assign('error', $fieldsObj->getHtmlErrors());
@@ -232,8 +232,8 @@
$adminMenu->addItemButton(_AM_TDMCREATE_FIELDS_LIST, 'fields.php', 'list');
$GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
// Form Edit
- $field_id = XoopsRequest::getInt('field_id');
- $fieldsObj = $tdmcreate->getHandler('fields')->get( $field_id );
+ $fieldId = XoopsRequest::getInt('field_id');
+ $fieldsObj = $tdmcreate->getHandler('fields')->get( $fieldId );
$form = $fieldsObj->getFormEdit($field_mid, $fieldTid);
$GLOBALS['xoopsTpl']->assign('form', $form->render());
// Test -> Will be removed
@@ -242,9 +242,9 @@
case 'drag':
$side = TDMCreate_CleanVars( $_POST, 'field_id', 0, 'int' );
- $field_id = XoopsRequest::getInt('field_id');
- if ( $field_id > 0 ) {
- $fieldsObj = $tdmcreate->getHandler('fields')->get( $field_id );
+ $fieldId = XoopsRequest::getInt('field_id');
+ if ( $fieldId > 0 ) {
+ $fieldsObj = $tdmcreate->getHandler('fields')->get( $fieldId );
$fieldsObj->setVar('field_id', $side);
if (!$tdmcreate->getHandler('fields')->insert( $fieldsObj )) {
redirect_header('fields.php', 5, _AM_TDMCREATE_FIELD_SIDE_ERROR);
@@ -271,11 +271,12 @@
break;
case 'display':
+ $fieldId = XoopsRequest::getInt('field_id');
// Get the list of fields
$criteria = new CriteriaCompo();
$criteria->add(new Criteria('field_tid', $fieldTid));
$fields = $tdmcreate->getHandler('fields')->getObjects($criteria);
- $fieldsObj =& $tdmcreate->getHandler('fields')->get($field_id);
+ $fieldsObj =& $tdmcreate->getHandler('fields')->get($fieldId);
if (isset($_GET['field_tid'])) {
if (isset($_GET['field_parent'])) {
foreach ($fields as $field) {
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/menu.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/menu.php 2014-07-10 18:47:00 UTC (rev 12696)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/menu.php 2014-07-10 19:07:25 UTC (rev 12697)
@@ -130,7 +130,7 @@
$content .= <<<EOT
\$adminmenu[\$i]['title'] = {$language}{$menu};
\$adminmenu[\$i]['link'] = 'admin/{$tables[$t]->getVar('table_name')}.php';
-\$adminmenu[\$i]['icon'] = \$sysPathIcon32.'/{$tables[$t]->getVar('table_image')}';\n
+\$adminmenu[\$i]['icon'] = 'assets/images/icons/32/{$tables[$t]->getVar('table_image')}';\n
EOT;
//$content .= $this->getAdminMenuImagesPath($tables, $t);
$content .= <<<EOT
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/objects.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/objects.php 2014-07-10 18:47:00 UTC (rev 12696)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/objects.php 2014-07-10 19:07:25 UTC (rev 12697)
@@ -47,11 +47,11 @@
return $ret;
}
/*
- * @public function getTextDateSelect
+ * @public function getTextDateSelectSetVar
* @param string $tableName
* @param string $fieldName
*/
- public function getTextDateSelect($tableName, $fieldName) {
+ public function getTextDateSelectSetVar($tableName, $fieldName) {
$ret = <<<EOT
// Set Var {$fieldName}
\${$tableName}Obj->setVar('{$fieldName}', strtotime(\$_POST['{$fieldName}']));\n
@@ -59,11 +59,11 @@
return $ret;
}
/*
- * @public function getCheckBoxOrRadioYN
+ * @public function getCheckBoxOrRadioYNSetVar
* @param string $tableName
* @param string $fieldName
*/
- public function getCheckBoxOrRadioYN($tableName, $fieldName) {
+ public function getCheckBoxOrRadioYNSetVar($tableName, $fieldName) {
$ret = <<<EOT
// Set Var {$fieldName}
\${$tableName}Obj->setVar('{$fieldName}', ((\$_REQUEST['{$fieldName}'] == 1) ? '1' : '0'));\n
@@ -71,12 +71,12 @@
return $ret;
}
/*
- * @public function getImageList
+ * @public function getImageListSetVar
* @param string $moduleDirname
* @param string $tableName
* @param string $fieldName
*/
- public function getImageList($moduleDirname, $tableName, $fieldName) {
+ public function getImageListSetVar($moduleDirname, $tableName, $fieldName) {
$ret = <<<EOT
// Set Var {$fieldName}
include_once XOOPS_ROOT_PATH.'/class/uploader.php';
@@ -99,12 +99,12 @@
return $ret;
}
/*
- * @public function getUploadImage
+ * @public function getUploadImageSetVar
* @param string $moduleDirname
* @param string $tableName
* @param string $fieldName
*/
- public function getUploadImage($moduleDirname, $tableName, $fieldName) {
+ public function getUploadImageSetVar($moduleDirname, $tableName, $fieldName) {
$stuModuleDirname = strtoupper($moduleDirname);
$ret = <<<EOT
// Set Var {$fieldName}
@@ -128,12 +128,12 @@
return $ret;
}
/*
- * @public function getUploadFile
+ * @public function getUploadFileSetVar
* @param string $moduleDirname
* @param string $tableName
* @param string $fieldName
*/
- public function getUploadFile($moduleDirname, $tableName, $fieldName) {
+ public function getUploadFileSetVar($moduleDirname, $tableName, $fieldName) {
$stuModuleDirname = strtoupper($moduleDirname);
$ret = <<<EOT
// Set Var {$fieldName}
@@ -153,5 +153,61 @@
}\n
EOT;
return $ret;
- }
+ }
+ /*
+ * @public function getSimpleGetVar
+ * @param string $lpFieldName
+ * @param string $rpFieldName
+ * @param string $tableName
+ * @param string $fieldName
+ */
+ public function getSimpleGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName) {
+ $ret = <<<EOT
+\t\t\t\t// Get Var {$fieldName}
+\t\t\t\t\${$lpFieldName}['{$rpFieldName}'] = \${$tableName}_arr[\$i]->getVar('{$fieldName}');\n
+EOT;
+ return $ret;
+ }
+ /*
+ * @public function getTextAreaGetVar
+ * @param string $lpFieldName
+ * @param string $rpFieldName
+ * @param string $tableName
+ * @param string $fieldName
+ */
+ public function getTextAreaGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName) {
+ $ret = <<<EOT
+\t\t\t\t// Get Var {$fieldName}
+\t\t\t\t\${$lpFieldName}['{$rpFieldName}'] = strip_tags(\${$tableName}_arr[\$i]->getVar('{$fieldName}'));\n
+EOT;
+ return $ret;
+ }
+ /*
+ * @public function getSelectUserGetVar
+ * @param string $lpFieldName
+ * @param string $rpFieldName
+ * @param string $tableName
+ * @param string $fieldName
+ */
+ public function getSelectUserGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName) {
+ $ret = <<<EOT
+\t\t\t\t// Get Var {$fieldName}
+\t\t\t\t\${$lpFieldName}['{$rpFieldName}'] = XoopsUser::getUnameFromId(\${$tableName}_arr[\$i]->getVar('{$fieldName}'), 's');\n
+EOT;
+ return $ret;
+ }
+ /*
+ * @public function getTextDateSelectGetVar
+ * @param string $lpFieldName
+ * @param string $rpFieldName
+ * @param string $tableName
+ * @param string $fieldName
+ */
+ public function getTextDateSelectGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName) {
+ $ret = <<<EOT
+\t\t\t\t// Get Var {$fieldName}
+\t\t\t\t\${$lpFieldName}['{$rpFieldName}'] = formatTimeStamp(\${$tableName}_arr[\$i]->getVar('{$fieldName}'), 's');\n
+EOT;
+ return $ret;
+ }
}
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/pages.php 2014-07-10 18:47:00 UTC (rev 12696)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/pages.php 2014-07-10 19:07:25 UTC (rev 12697)
@@ -16,7 +16,7 @@
* @package tdmcreate
* @since 2.5.0
* @author Txmod Xoops http://www.txmodxoops.org
- * @version $Id: admin_pages.php 12258 2014-01-02 09:33:29Z timgno $
+ * @version $Id: pages.php 12258 2014-01-02 09:33:29Z timgno $
*/
defined('XOOPS_ROOT_PATH') or die('Restricted access');
require_once 'objects.php';
@@ -61,12 +61,14 @@
* @param string $moduleDirname
* @param string $tableName
*/
- public function getAdminPagesHeader($moduleDirname, $tableName) {
+ public function getAdminPagesHeader($moduleDirname, $tableName, $fpif) {
$ret = <<<EOT
include_once 'header.php';
//It recovered the value of argument op in URL$
-\$op = {$moduleDirname}_CleanVars(\$_REQUEST, 'op', 'list', 'string');
+\$op = XoopsRequest::getString('op', 'list');
+// Request {$fpif}
+\${$fpif} = XoopsRequest::getInt('{$fpif}');
// Switch options
switch (\$op)
{\n
@@ -84,18 +86,18 @@
* @param string $fpif
* @param string $fpmf
*/
- public function getAdminPagesList($moduleDirname, $tableName, $tableFieldname, $language, $fields, $fpif, $fpmf) {
- $stu_module_dirname = strtoupper($moduleDirname);
- $stu_table_name = strtoupper($tableName);
- $stu_table_fieldname = strtoupper($tableFieldname);
+ public function getAdminPagesList($moduleDirname, $tableName, $tableFieldname, $tableAutoincrement, $language, $fields, $fpif, $fpmf) {
+ $stuModuleDirname = strtoupper($moduleDirname);
+ $stuTableName = strtoupper($tableName);
+ $stuTableFieldname = strtoupper($tableFieldname);
$ret = <<<EOT
case 'list':
default:
- \$limit = \${$moduleDirname}->getConfig('adminpager');
- \$start = {$moduleDirname}_CleanVars(\$_REQUEST, 'start', 0);
+ \$start = XoopsRequest::getInt('start', 0);
+ \$limit = XoopsRequest::getInt('limit', \${$moduleDirname}->getConfig('adminpager'));
\$template_main = '{$moduleDirname}_admin_{$tableName}.tpl';
\$GLOBALS['xoopsTpl']->assign('navigation', \$adminMenu->addNavigation('{$tableName}.php'));
- \$adminMenu->addItemButton({$language}ADD_{$stu_table_fieldname}, '{$tableName}.php?op=new', 'add');
+ \$adminMenu->addItemButton({$language}ADD_{$stuTableFieldname}, '{$tableName}.php?op=new', 'add');
\$GLOBALS['xoopsTpl']->assign('buttons', \$adminMenu->renderButton());
\$criteria = new CriteriaCompo();
\$criteria->setSort('{$fpif} ASC, {$fpmf}');
@@ -103,8 +105,8 @@
\${$tableName}_rows = \${$tableName}Handler->getCount(\$criteria);
\${$tableName}_arr = \${$tableName}Handler->getAll(\$criteria);
unset(\$criteria);
- \$GLOBALS['xoopsTpl']->assign('{$moduleDirname}_url', {$stu_module_dirname}_URL);
- \$GLOBALS['xoopsTpl']->assign('{$moduleDirname}_upload_url', {$stu_module_dirname}_UPLOAD_URL);
+ \$GLOBALS['xoopsTpl']->assign('{$moduleDirname}_url', {$stuModuleDirname}_URL);
+ \$GLOBALS['xoopsTpl']->assign('{$moduleDirname}_upload_url', {$stuModuleDirname}_UPLOAD_URL);
// Table view
if (\${$tableName}_rows > 0)
{
@@ -114,29 +116,37 @@
foreach(array_keys($fields) as $f)
{
$fieldName = $fields[$f]->getVar('field_name');
- $rp_field_name = $fieldName;
+ $rpFieldName = $fieldName;
// Verify if table_fieldname is not empty
- if(!empty($tableFieldname)) {
- if(strpos($fieldName, '_')) {
- $str = strpos($fieldName, '_');
- if($str !== false){
- $rp_field_name = substr($fieldName, $str + 1, strlen($fieldName));
- }
- }
- $lp_field_name = substr($fieldName, 0, strpos($fieldName, '_'));
- $ret .= <<<EOT
- \${$lp_field_name}['{$rp_field_name}'] = \${$tableName}_arr[\$i]->getVar('{$fieldName}');\n
-EOT;
- } else {
- $lp_field_name = $tableName;
- $ret .= <<<EOT
- \${$lp_field_name}['{$rp_field_name}'] = \${$tableName}_arr[\$i]->getVar('{$fieldName}');\n
-EOT;
+ $lpFieldName = !empty($tableFieldname) ? substr($fieldName, 0, strpos($fieldName, '_')) : $tableName;
+ if(strpos($fieldName, '_')) {
+ $str = strpos($fieldName, '_');
+ if($str !== false){
+ $rpFieldName = substr($fieldName, $str + 1, strlen($fieldName));
+ }
+ }
+ $fieldElement = $fields[$f]->getVar('field_element');
+ if( ($fields[$f]->getVar('field_admin') == 1) || ($tableAutoincrement == 1) ) {
+ switch($fieldElement) {
+ case 2:
+ case 3:
+ $ret .= $this->adminobjects->getTextAreaGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName);
+ break;
+ case 7:
+ $ret .= $this->adminobjects->getSelectUserGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName);
+ break;
+ case 12:
+ $ret .= $this->adminobjects->getTextDateSelectGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName);
+ break;
+ default:
+ $ret .= $this->adminobjects->getSimpleGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName);
+ break;
+ }
}
}
$ret .= <<<EOT
- \$GLOBALS['xoopsTpl']->append('{$tableName}_list', \${$lp_field_name});
- unset(\${$lp_field_name});
+ \$GLOBALS['xoopsTpl']->append('{$tableName}_list', \${$lpFieldName});
+ unset(\${$lpFieldName});
}\n
EOT;
$ret .= <<<EOT
@@ -146,7 +156,7 @@
\$GLOBALS['xoopsTpl']->assign('pagenav', \$pagenav->renderNav(4));
}
} else {
- \$GLOBALS['xoopsTpl']->assign('error', {$language}THEREARENT_{$stu_table_name});
+ \$GLOBALS['xoopsTpl']->assign('error', {$language}THEREARENT_{$stuTableName});
}
break;\n
EOT;
@@ -160,11 +170,11 @@
* @param string $language
*/
public function getAdminPagesNew($moduleDirname, $tableName, $language) {
- $stu_table_name = strtoupper($tableName);
+ $stuTableName = strtoupper($tableName);
$ret = <<<EOT
case 'new':
\$template_main = '{$moduleDirname}_admin_{$tableName}.tpl';
- \$adminMenu->addItemButton({$language}{$stu_table_name}_LIST, '{$tableName}.php', 'list');
+ \$adminMenu->addItemButton({$language}{$stuTableName}_LIST, '{$tableName}.php', 'list');
\$GLOBALS['xoopsTpl']->assign('navigation', \$adminMenu->addNavigation('{$tableName}.php'));
\$GLOBALS['xoopsTpl']->assign('buttons', \$adminMenu->renderButton());
// Get Form
@@ -192,8 +202,8 @@
if ( !\$GLOBALS['xoopsSecurity']->check() ) {
redirect_header('{$tableName}.php', 3, implode(',', \$GLOBALS['xoopsSecurity']->getErrors()));
}
- if (isset(\$_REQUEST['{$fpif}'])) {
- \${$tableName}Obj =& \${$tableName}Handler->get(\$_REQUEST['{$fpif}']);
+ if (isset(\${$fpif})) {
+ \${$tableName}Obj =& \${$tableName}Handler->get(\${$fpif});
} else {
\${$tableName}Obj =& \${$tableName}Handler->create();
}
@@ -207,19 +217,19 @@
switch($fieldElement) {
case 4:
case 5:
- $ret .= $this->adminobjects->getCheckBoxOrRadioYN($tableName, $fieldName);
+ $ret .= $this->adminobjects->getCheckBoxOrRadioYNSetVar($tableName, $fieldName);
break;
case 9:
- $ret .= $this->adminobjects->getImageList($moduleDirname, $tableName, $fieldName);
+ $ret .= $this->adminobjects->getImageListSetVar($moduleDirname, $tableName, $fieldName);
break;
case 10:
- $ret .= $this->adminobjects->getUploadImage($moduleDirname, $tableName, $fieldName);
+ $ret .= $this->adminobjects->getUploadImageSetVar($moduleDirname, $tableName, $fieldName);
break;
case 11:
- $ret .= $this->adminobjects->getUploadFile($moduleDirname, $tableName, $fieldName);
+ $ret .= $this->adminobjects->getUploadFileSetVar($moduleDirname, $tableName, $fieldName);
break;
case 12:
- $ret .= $this->adminobjects->getTextDateSelect($tableName, $fieldName);
+ $ret .= $this->adminobjects->getTextDateSelectSetVar($tableName, $fieldName);
break;
default:
$ret .= $this->adminobjects->getSimpleSetVar($tableName, $fieldName);
@@ -251,17 +261,17 @@
* @param string $fpif
*/
public function getAdminPagesEdit($moduleDirname, $tableName, $tableFieldname, $language, $fpif) {
- $stu_table_name = strtoupper($tableName);
- $stu_table_fieldname = strtoupper($tableFieldname);
+ $stuTableName = strtoupper($tableName);
+ $stuTableFieldname = strtoupper($tableFieldname);
$ret = <<<EOT
case 'edit':
\$template_main = '{$moduleDirname}_admin_{$tableName}.tpl';
- \$adminMenu->addItemButton({$language}ADD_{$stu_table_fieldname}, '{$tableName}.php?op=new', 'add');
- \$adminMenu->addItemButton({$language}{$stu_table_name}_LIST, '{$tableName}.php', 'list');
+ \$adminMenu->addItemButton({$language}ADD_{$stuTableFieldname}, '{$tableName}.php?op=new', 'add');
+ \$adminMenu->addItemButton({$language}{$stuTableName}_LIST, '{$tableName}.php', 'list');
\$GLOBALS['xoopsTpl']->assign('navigation', \$adminMenu->addNavigation('{$tableName}.php'));
\$GLOBALS['xoopsTpl']->assign('buttons', \$adminMenu->renderButton());
// Get Form
- \${$tableName}Obj = \${$tableName}Handler->get(\$_REQUEST['{$fpif}']);
+ \${$tableName}Obj = \${$tableName}Handler->get(\${$fpif});
\$form = \${$tableName}Obj->getForm();
\$GLOBALS['xoopsTpl']->assign('form', \$form->render());
break;\n
@@ -278,7 +288,7 @@
$ret = <<<EOT
case 'delete':
- \${$tableName}Obj =& \${$tableName}Handler->get(\$_REQUEST['{$fpif}']);
+ \${$tableName}Obj =& \${$tableName}Handler->get(\${$fpif});
if (isset(\$_REQUEST['ok']) && \$_REQUEST['ok'] == 1) {
if ( !\$GLOBALS['xoopsSecurity']->check() ) {
redirect_header('{$tableName}.php', 3, implode(', ', \$GLOBALS['xoopsSecurity']->getErrors()));
@@ -289,7 +299,7 @@
echo \${$tableName}Obj->getHtmlErrors();
}
} else {
- xoops_confirm(array('ok' => 1, '{$fpif}' => \$_REQUEST['{$fpif}'], 'op' => 'delete'), \$_SERVER['REQUEST_URI'], sprintf({$language}FORMSUREDEL, \${$tableName}Obj->getVar('{$fpmf}')));
+ xoops_confirm(array('ok' => 1, '{$fpif}' => \${$fpif}, 'op' => 'delete'), \$_SERVER['REQUEST_URI'], sprintf({$language}FORMSUREDEL, \${$tableName}Obj->getVar('{$fpmf}')));
}
break;\n
EOT;
@@ -318,7 +328,8 @@
$table = $this->getTable();
$moduleDirname = $module->getVar('mod_dirname');
$tableName = $table->getVar('table_name');
- $tableFieldname = $table->getVar('table_fieldname');
+ $tableFieldname = $table->getVar('table_fieldname');
+ $tableAutoincrement = $table->getVar('table_autoincrement');
$language = $this->getLanguage($moduleDirname, 'AM');
$fields = $this->getTableFields($table->getVar('table_id'));
foreach(array_keys($fields) as $f)
@@ -332,8 +343,8 @@
}
}
$content = $this->getHeaderFilesComments($module, $filename);
- $content .= $this->getAdminPagesHeader($moduleDirname, $tableName);
- $content .= $this->getAdminPagesList($moduleDirname, $tableName, $tableFieldname, $language, $fields, $fpif, $fpmf);
+ $content .= $this->getAdminPagesHeader($moduleDirname, $tableName, $fpif);
+ $content .= $this->getAdminPagesList($moduleDirname, $tableName, $tableFieldname, $tableAutoincrement, $language, $fields, $fpif, $fpmf);
$content .= $this->getAdminPagesNew($moduleDirname, $tableName, $language);
$content .= $this->getAdminPagesSave($moduleDirname, $tableName, $language, $fields, $fpif, $fpmf);
$content .= $this->getAdminPagesEdit($moduleDirname, $tableName, $tableFieldname, $language, $fpif);
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-10 18:47:00 UTC (rev 12696)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/architecture.php 2014-07-10 19:07:25 UTC (rev 12697)
@@ -106,7 +106,7 @@
$stlModuleAuthor = str_replace(' ', '', strtolower($module->getVar('mod_author')));
// Creation of the Directory in repository
$targetDirectory = $this->uploadPath.'/repository/'. $stlModuleDirname;
- $uploadImagesFolder = $this->uploadPath.'/images/repository';
+ $uploadImagesRepository = $this->uploadPath.'/images/repository';
// Creation of "module" folder
$this->structure->getPath($targetDirectory);
// Creation of "module" folder
@@ -133,7 +133,7 @@
$this->structure->makeDirAndCopyFile('assets/images', $indexFile, 'index.html');
//Copy the logo of the module
$modImage = str_replace(' ', '', strtolower($module->getVar('mod_image')));
- $this->structure->copyFile('assets/images', $uploadImagesFolder.'/'.$modImage, $modImage);
+ $this->structure->copyFile('assets/images', $uploadImagesRepository.'/'.$modImage, $modImage);
// Creation of 'images/icons' folder and index.html file - Added in Version 1.15
$this->structure->makeDirAndCopyFile('assets/images/icons', $indexFile, 'index.html');
// Creation of "images/icons/16" folder and index.html file
@@ -141,7 +141,7 @@
// Creation of "images/icons/32" folder and index.html file
$this->structure->makeDirAndCopyFile('assets/images/icons/32', $indexFile, 'index.html');
// Copy of 'module_author_logo.gif' file in uploads dir
- $logoGifFrom = $uploadImagesFolder.'/'.$stlModuleAuthor.'_logo.gif';
+ $logoGifFrom = $uploadImagesRepository.'/'.$stlModuleAuthor.'_logo.gif';
if (!file_exists($logoGifFrom)) {
copy($logosFolder.'/'.$stlModuleAuthor.'_logo.gif', $logoGifFrom);
}
@@ -203,6 +203,7 @@
$modId = $module->getVar('mod_id');
$moduleDirname = $module->getVar('mod_dirname');
$uploadTablesIcons32 = $this->uploadPath.'/images/tables';
+ $framePathIcon32 = XOOPS_ROOT_PATH . '/Frameworks/moduleclasses/icons/32';
// Id of tables
$criteriaTables = new CriteriaCompo();
$criteriaTables->add(new Criteria('table_mid', $modId));
@@ -227,9 +228,11 @@
// Get Table Object
$table = $this->tdmcreate->getHandler('tables')->get($tableId);
// Copy of tables images file
- if( file_exists($uploadTableImage = $uploadTablesIcons32.'/'.$tableImage)) {
+ if( file_exists($uploadTableImage = $uploadTablesIcons32.'/'.$tableImage )) {
$this->structure->copyFile('assets/images/icons/32', $uploadTableImage, $tableImage);
- }
+ } elseif( file_exists($uploadTableImage = $framePathIcon32.'/'.$tableImage )) {
+ $this->structure->copyFile('assets/images/icons/32', $uploadTableImage, $tableImage);
+ }
// Creation of admin files
if ( $tableAdmin == 1) {
// Admin Pages File
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/blocks/blocks.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/blocks/blocks.php 2014-07-10 18:47:00 UTC (rev 12696)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/blocks/blocks.php 2014-07-10 19:07:25 UTC (rev 12697)
@@ -101,23 +101,25 @@
{
$fieldName = $fields[$f]->getVar('field_name');
$rp_field_name = $fieldName;
- // Verify if table_fieldname is not empty
- if(!empty($tableFieldname)) {
- if(strpos($fieldName, '_')) {
- $str = strpos($fieldName, '_');
- if($str !== false){
- $rp_field_name = substr($fieldName, $str + 1, strlen($fieldName));
- }
- }
- $tname = $tableFieldname;
- $ret .= <<<EOT
+ if( $fields[$f]->getVar('field_block') == 1 ) {
+ // Verify if table_fieldname is not empty
+ if(!empty($tableFieldname)) {
+ if(strpos($fieldName, '_')) {
+ $str = strpos($fieldName, '_');
+ if($str !== false){
+ $rp_field_name = substr($fieldName, $str + 1, strlen($fieldName));
+ }
+ }
+ $tname = $tableFieldname;
+ $ret .= <<<EOT
\${$tname}['{$rp_field_name}'] = \${$tableName}_arr[\$i]->getVar('{$fieldName}');\n
EOT;
- } else {
- $tname = $tableName;
- $ret .= <<<EOT
+ } else {
+ $tname = $tableName;
+ $ret .= <<<EOT
\${$tname}['{$rp_field_name}'] = \${$tableName}_arr[\$i]->getVar('{$fieldName}');\n
EOT;
+ }
}
}
$ret .= <<<EOT
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/classes/classes.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/classes/classes.php 2014-07-10 18:47:00 UTC (rev 12696)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/classes/classes.php 2014-07-10 19:07:25 UTC (rev 12697)
@@ -178,8 +178,10 @@
private function getHeadFunctionForm($module, $table)
{
$moduleDirname = $module->getVar('mod_dirname');
+ $tableName = $table->getVar('table_name');
+ $ucfTableName = ucfirst($tableName);
+ $stuTableName = strtoupper($tableName);
$language = $this->getLanguage($moduleDirname, 'AM');
- $stu_table_name = strtoupper($table->getVar('table_name'));
$this->formelements->initForm($module, $table);
$ret = <<<EOT
/*
@@ -193,11 +195,13 @@
\$action = \$_SERVER['REQUEST_URI'];
}
// Title
- \$title = \$this->isNew() ? sprintf({$language}{$stu_table_name}_ADD) : sprintf({$language}{$stu_table_name}_EDIT);
+ \$title = \$this->isNew() ? sprintf({$language}{$stuTableName}_ADD) : sprintf({$language}{$stuTableName}_EDIT);
// Get Theme Form
xoops_load('XoopsFormLoader');
\$form = new XoopsThemeForm(\$title, 'form', \$action, 'post', true);
- \$form->setExtra('enctype="multipart/form-data"');
+ \$form->setExtra('enctype="multipart/form-data"');
+ // {$ucfTableName} handler
+ \${$tableName}Handler =& \$this->{$moduleDirname}->getHandler('{$tableName}');
{$this->formelements->renderElements()}
EOT;
return $ret;
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/classes/formelements.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/classes/formelements.php 2014-07-10 18:47:00 UTC (rev 12696)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/classes/formelements.php 2014-07-10 19:07:25 UTC (rev 12697)
@@ -223,7 +223,7 @@
// Form Select
\${$fieldName}_select = new XoopsFormSelect({$language}, '{$fieldName}', \$this->getVar('{$fieldName}'));
\${$fieldName}_select->addOption('Empty');
- \${$fieldName}_select->addOptionArray({$tableName}Handler->getList());
+ \${$fieldName}_select->addOptionArray(\${$tableName}Handler->getList());
\$form->addElement( \${$fieldName}_select{$required} );\n
EOT;
return $ret;
@@ -272,24 +272,30 @@
* @private function getXoopsFormTable
* @param string $language
* @param string $moduleDirname
- * @param string $tableName
+ * @param string $table
* @param string $fields
* @param string $required
*/
private function getXoopsFormTable($language, $moduleDirname, $tableName, $fields, $required = 'false')
{
- $fieldName = '';
+ $ucfTableName = ucfirst($tableName);
foreach(array_keys($fields) as $f)
{
- if(($fields[$f]->getVar('field_parent') == 1)) {
+ if($fields[$f]->getVar('field_parent') == 1) {
$fieldName = $fields[$f]->getVar('field_name');
- }
- }
+ $field_element = $fields[$f]->getVar('field_element');
+ if($field_element > 12) {
+ $fieldelement = $this->tdmcreate->getHandler('fieldelements')->get($field_element);
+ $fieldelementName = $fieldelement->getVar('fieldelement_name');
+ $rpFieldelementName = strtolower(str_replace('Table : ', '', $fieldelementName));
+ }
+ }
+ }
$ret = <<<EOT
- // Form Table
- \${$tableName}Handler =& \$this->{$moduleDirname}->getHandler('{$tableName}');
+ // Form Topic {$ucfTableName}
+ \${$rpFieldelementName}Handler =& \$this->{$moduleDirname}->getHandler('{$rpFieldelementName}');
\${$fieldName}_select = new XoopsFormSelect({$language}, '{$fieldName}', \$this->getVar('{$fieldName}'));
- \${$fieldName}_select->addOptionArray(\${$fieldName}Handler->getList());
+ \${$fieldName}_select->addOptionArray(\${$rpFieldelementName}Handler->getList());
\$form->addElement( \${$fieldName}_select{$required} );\n
EOT;
return $ret;
@@ -298,14 +304,14 @@
* @private function getXoopsFormTopic
* @param string $language
* @param string $moduleDirname
- * @param string $tableName
+ * @param string $table
* @param string $fields
* @param string $required
*/
private function getXoopsFormTopic($language, $moduleDirname, $table, $fields, $required = 'false')
{
$tableName = $table->getVar('table_name');
- $ucf_table_name = ucfirst($tableName);
+ $ucfTableName = ucfirst($tableName);
foreach(array_keys($fields) as $f)
{
$fieldName = $fields[$f]->getVar('field_name');
@@ -320,12 +326,12 @@
}
}
$ret = <<<EOT
- // Form Topic {$ucf_table_name}
- include_once(XOOPS_ROOT_PATH . '/class/tree.php');
- \${$tableName}Handler = \$this->{$moduleDirname}->getHandler('{$tableName}');
+ // Form Topic {$ucfTableName}
+ //\${$tableName}Handler = \$this->{$moduleDirname}->getHandler('{$tableName}');
\$criteria = new CriteriaCompo();
\${$tableName} = \${$tableName}Handler->getObjects( \$criteria );
if(\${$tableName}) {
+ include_once(XOOPS_ROOT_PATH . '/class/tree.php');
\${$tableName}_tree = new XoopsObjectTree( \${$tableName}, '{$field_id}', '{$field_pid}' );
\${$field_pid} = \${$tableName}_tree->makeSelBox( '{$field_pid}', '{$field_main}', '--', \$this->getVar('{$field_pid}', 'e' ), true );
\$form->addElement( new XoopsFormLabel ( {$language}, \${$field_pid} ){$required} );
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/htmlsmartycodes.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/htmlsmartycodes.php 2014-07-10 18:47:00 UTC (rev 12696)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/htmlsmartycodes.php 2014-07-10 19:07:25 UTC (rev 12697)
@@ -121,7 +121,7 @@
return $ret;
}
/*
- * @public function getHtmlTable
+ * @public function getHtmlTableThead
* @param string $class
* @param string $content
*/
@@ -134,7 +134,7 @@
return $ret;
}
/*
- * @public function getHtmlTable
+ * @public function getHtmlTableTbody
* @param string $class
* @param string $content
*/
@@ -197,22 +197,33 @@
/*
* @public function getSmartyConst
* @param string $language
- * @param mixed $field_name
+ * @param mixed $fieldName
*/
- public function getSmartyConst($language, $field_name) {
+ public function getSmartyConst($language, $fieldName) {
$ret = <<<EOT
- <{\$smarty.const.{$language}{$field_name}}>
+ <{\$smarty.const.{$language}{$fieldName}}>
EOT;
return $ret;
}
/*
+ * @public function getSmartyTableFieldNameEmptyData
+ * @param string $tableName
+ * @param string $fieldName
+ */
+ public function getSmartyTableFieldNameEmptyData($tableName = '', $fieldName = '') {
+ $ret = <<<EOT
+ <{\${$tableName}.{$fieldName}}>
+EOT;
+ return $ret;
+ }
+ /*
* @public function getSmartyTableField
- * @param string $table_fieldname
- * @param string $field_name
+ * @param string $tableFieldname
+ * @param string $fieldName
*/
- public function getSmartyTableFieldData($table_fieldname = '', $fieldname = '') {
+ public function getSmartyTableFieldData($tableFieldname = '', $fieldName = '') {
$ret = <<<EOT
- <{\${$table_fieldname}.{$fieldname}}>
+ <{\${$tableFieldname}.{$fieldName}}>
EOT;
return $ret;
}
@@ -220,9 +231,9 @@
* @public function getSmartyIncludeFile
* @param string $name
*/
- public function getSmartyIncludeFile($module_name, $fieldname = 'header') {
+ public function getSmartyIncludeFile($moduleDirname, $tableName = 'header') {
$ret = <<<EOT
- <{include file='db:{$module_name}_{$fieldname}.html'}>
+ <{include file='db:{$moduleDirname}_{$tableName}.html'}>
EOT;
return $ret;
}
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/admin/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/admin/pages.php 2014-07-10 18:47:00 UTC (rev 12696)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/admin/pages.php 2014-07-10 19:07:25 UTC (rev 12697)
@@ -54,11 +54,11 @@
/*
* @private function getTemplatesAdminPagesHeader
* @param string $moduleDirname
- * @param string $table
+ * @param string $tableName
+ * @param string $fields
* @param string $language
*/
- private function getTemplatesAdminPagesHeader($moduleDirname, $table, $language) {
- $tableName = $table->getVar('table_name');
+ private function getTemplatesAdminPagesHeader($moduleDirname, $tableName, $fields, $language) {
$ret = <<<EOT
<{include file="db:{$moduleDirname}_admin_header.tpl"}>
<{if {$tableName}_list}>
@@ -66,12 +66,11 @@
<thead>
<tr class="head">\n
EOT;
- $fields = $this->getTableFields($table->getVar('table_id'));
foreach(array_keys($fields) as $f)
{
$fieldName = $fields[$f]->getVar('field_name');
$lang_fn = $language.strtoupper($fieldName);
- if( ($fields[$f]->getVar('field_inlist') == 1) || ($table->getVar('table_autoincrement') == 1) ) {
+ if( $fields[$f]->getVar('field_inlist') == 1 ) {
$ret .= <<<EOT
<th class="center"><{\$smarty.const.{$lang_fn}}></th>\n
EOT;
@@ -87,19 +86,17 @@
/*
* @private function getTemplatesAdminPagesBody
* @param string $moduleDirname
- * @param string $table
+ * @param string $tableName
+ * @param string $fields
* @param string $language
*/
- private function getTemplatesAdminPagesBody($moduleDirname, $table, $language)
+ private function getTemplatesAdminPagesBody($moduleDirname, $tableName, $fields, $language)
{
- $moduleDirname = strtolower($moduleDirname);
- $tableName = $table->getVar('table_name');
$ret = <<<EOT
<tbody>
<{foreach item=list from=\${$tableName}_list}>
<tr class="<{cycle values='odd, even'}>">\n
EOT;
- $fields = $this->getTableFields($table->getVar('table_id'));
foreach(array_keys($fields) as $f)
{
$fieldName = $fields[$f]->getVar('field_name');
@@ -121,7 +118,7 @@
}
}
$lp_field_name = substr($fieldName, 0, strpos($fieldName, '_'));
- if( ($fields[$f]->getVar('field_inlist') == 1) || ($table->getVar('table_autoincrement') == 1) ) {
+ if( $fields[$f]->getVar('field_inlist') == 1 ) {
switch( $fieldElement ) {
case 8:
$ret .= <<<EOT
@@ -165,18 +162,17 @@
/*
* @private function getTemplatesAdminPagesBodyFieldnameEmpty
* @param string $moduleDirname
- * @param string $table
+ * @param string $tableName
+ * @param string $fields
* @param string $language
*/
- private function getTemplatesAdminPagesBodyFieldnameEmpty($moduleDirname, $table, $language)
+ private function getTemplatesAdminPagesBodyFieldnameEmpty($moduleDirname, $tableName, $fields, $language)
{
- $tableName = $table->getVar('table_name');
$ret = <<<EOT
<tbody>
<{foreach item=list from=\${$tableName}_list}>
<tr class="<{cycle values='odd, even'}>">\n
EOT;
- $fields = $this->getTableFields($table->getVar('table_id'));
foreach(array_keys($fields) as $f)
{
$fieldName = $fields[$f]->getVar('field_name');
@@ -184,7 +180,7 @@
if($f == 0) {
$field_id = $fieldName;
}
- if( ($fields[$f]->getVar('field_inlist') == 1) || ($table->getVar('table_autoincrement') == 1) ) {
+ if( $fields[$f]->getVar('field_inlist') == 1 ) {
switch( $fieldElement ) {
case 8:
$ret .= <<<EOT
@@ -262,13 +258,14 @@
$moduleDirname = $module->getVar('mod_dirname');
$tableName = $table->getVar('table_name');
$tableFieldname = $table->getVar('table_fieldname');
- $language = $this->getLanguage($moduleDirname, 'AM');
- $content = $this->getTemplatesAdminPagesHeader($moduleDirname, $table, $language);
+ $language = $this->getLanguage($moduleDirname, 'AM');
+ $fields = $this->getTableFields($table->getVar('table_id'));
+ $content = $this->getTemplatesAdminPagesHeader($moduleDirname, $tableName, $fields, $language);
// Verify if table_fieldname is not empty
if(!empty($tableFieldname)) {
- $content .= $this->getTemplatesAdminPagesBody($moduleDirname, $table, $language);
+ $content .= $this->getTemplatesAdminPagesBody($moduleDirname, $tableName, $fields, $language);
} else {
- $content .= $this->getTemplatesAdminPagesBodyFieldnameEmpty($moduleDirname, $table, $language);
+ $content .= $this->getTemplatesAdminPagesBodyFieldnameEmpty($moduleDirname, $tableName, $fields, $language);
}
$content .= $this->getTemplatesAdminPagesFooter($moduleDirname);
//
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/user/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/user/pages.php 2014-07-10 18:47:00 UTC (rev 12696)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/templates/user/pages.php 2014-07-10 19:07:25 UTC (rev 12697)
@@ -71,9 +71,11 @@
{
$fieldName = $fields[$f]->getVar('field_name');
$lang_stu_field_name = $language.strtoupper($fieldName);
- $ret .= <<<EOT
+ if( $fields[$f]->getVar('field_user') == 1 ) {
+ $ret .= <<<EOT
<th class="center"><{\$smarty.const.{$lang_stu_field_name}}></th>\n
EOT;
+ }
}
$ret .= <<<EOT
</tr>
@@ -107,27 +109,29 @@
$rp_field_name = substr($fieldName, $str + 1, strlen($fieldName));
}
}
- switch( $field_element ) {
- case 8:
- $ret .= <<<EOT
+ if( $fields[$f]->getVar('field_user') == 1 ) {
+ switch( $field_element ) {
+ case 8:
+ $ret .= <<<EOT
<td class="center"><span style="background-color: <{\$list.{$rp_field_name}}>;">\t\t</span></td>\n
EOT;
- break;
- case 9:
- $ret .= <<<EOT
+ break;
+ case 9:
+ $ret .= <<<EOT
<td class="center"><img src="<{xoModuleIcons32}><{\$list.{$rp_field_name}}>" alt="{$tableName}"></td>\n
EOT;
- break;
- case 10:
- $ret .= <<<EOT
+ break;
+ case 10:
+ $ret .= <<<EOT
<td class="center"><img src="<{\${$moduleDirname}_upload_url}>/images/{$tableName}/<{\$list.{$rp_field_name}}>" alt="{$tableName}"></td>\n
EOT;
- break;
- default:
- $ret .= <<<EOT
+ break;
+ default:
+ $ret .= <<<EOT
<td class="center"><{\$list.{$rp_field_name}}></td>\n
EOT;
- break;
+ break;
+ }
}
}
$ret .= <<<EOT
@@ -157,23 +161,25 @@
{
$fieldName = $fields[$f]->getVar('field_name');
$field_element = $fields[$f]->getVar('field_element');
- switch( $field_element ) {
- case 8:
- $ret .= <<<EOT
+ if( $fields[$f]->getVar('field_user') == 1 ) {
+ switch( $field_element ) {
+ case 8:
+ $ret .= <<<EOT
<td class="center"><span style="background-color: <{\$list.{$fieldName}}>;"></span></td>\n
EOT;
- break;
- case 9:
- $ret .= <<<EOT
+ break;
+ case 9:
+ $ret .= <<<EOT
<td class="center"><img src="<{\${$moduleDirname}_upload_url}>/images/{$tableName}/<{\$list.{$fieldName}}>" alt="{$tableName}"></td>\n
EOT;
- break;
- default:
- $ret .= <<<EOT
+ break;
+ default:
+ $ret .= <<<EOT
<td class="center"><{\$list.{$fieldName}}></td>\n
EOT;
- break;
- }
+ break;
+ }
+ }
}
$ret .= <<<EOT
</tr>
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/objects.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/objects.php 2014-07-10 18:47:00 UTC (rev 12696)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/objects.php 2014-07-10 19:07:25 UTC (rev 12697)
@@ -35,11 +35,11 @@
return $instance;
}
/*
- * @public function getPhpUserHeader
+ * @public function getUserHeader
* @param string $moduleDirname
* @param string $tableName
*/
- public function getPhpUserHeader($moduleDirname, $tableName) {
+ public function getUserHeader($moduleDirname, $tableName) {
$ret = <<<EOT
include_once 'header.php';
\$GLOBALS['xoopsOption']['template_main'] = '{$moduleDirname}_{$tableName}.tpl';
@@ -48,10 +48,10 @@
return $ret;
}
/*
- * @public function getPhpUserIndex
+ * @public function getUserIndex
* @param string $moduleDirname
*/
- public function getPhpUserIndex($moduleDirname) {
+ public function getUserIndex($moduleDirname) {
$ret = <<<EOT
include_once 'header.php';
\$GLOBALS['xoopsOption']['template_main'] = '{$moduleDirname}_index.tpl';
@@ -60,13 +60,69 @@
return $ret;
}
/*
- * @public function getPhpUserFooter
+ * @public function getUserFooter
* @param null
*/
- public function getPhpUserFooter() {
+ public function getUserFooter() {
$ret = <<<EOT
include_once 'footer.php';
EOT;
return $ret;
- }
+ }
+ /*
+ * @public function getSimpleGetVar
+ * @param string $lpFieldName
+ * @param string $rpFieldName
+ * @param string $tableName
+ * @param string $fieldName
+ */
+ public function getSimpleGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName) {
+ $ret = <<<EOT
+\t\t\t// Get Var {$fieldName}
+\t\t\t\${$lpFieldName}['{$rpFieldName}'] = \${$tableName}_arr[\$i]->getVar('{$fieldName}');\n
+EOT;
+ return $ret;
+ }
+ /*
+ * @public function getTextAreaGetVar
+ * @param string $lpFieldName
+ * @param string $rpFieldName
+ * @param string $tableName
+ * @param string $fieldName
+ */
+ public function getTextAreaGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName) {
+ $ret = <<<EOT
+\t\t\t// Get Var {$fieldName}
+\t\t\t\${$lpFieldName}['{$rpFieldName}'] = strip_tags(\${$tableName}_arr[\$i]->getVar('{$fieldName}'));\n
+EOT;
+ return $ret;
+ }
+ /*
+ * @public function getSelectUserGetVar
+ * @param string $lpFieldName
+ * @param string $rpFieldName
+ * @param string $tableName
+ * @param string $fieldName
+ */
+ public function getSelectUserGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName) {
+ $ret = <<<EOT
+\t\t\t// Get Var {$fieldName}
+\t\t\t\${$lpFieldName}['{$rpFieldName}'] = XoopsUser::getUnameFromId(\${$tableName}_arr[\$i]->getVar('{$fieldName}'), 's');\n
+EOT;
+ return $ret;
+ }
+ /*
+ * @public function getTextDateSelectGetVar
+ * @param string $lpFieldName
+ * @param string $rpFieldName
+ * @param string $tableName
+ * @param string $fieldName
+ */
+ public function getTextDateSelectGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName) {
+ $ret = <<<EOT
+\t\t\t// Get Var {$fieldName}
+\t\t\t\${$lpFieldName}['{$rpFieldName}'] = formatTimeStamp(\${$tableName}_arr[\$i]->getVar('{$fieldName}'), 's');\n
+EOT;
+ return $ret;
+ }
}
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/pages.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/pages.php 2014-07-10 18:47:00 UTC (rev 12696)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/pages.php 2014-07-10 19:07:25 UTC (rev 12697)
@@ -16,19 +16,24 @@
* @package tdmcreate
* @since 2.5.0
* @author Txmod Xoops http://www.txmodxoops.org
- * @version $Id: user_pages.php 12258 2014-01-02 09:33:29Z timgno $
+ * @version $Id: pages.php 12258 2014-01-02 09:33:29Z timgno $
*/
defined('XOOPS_ROOT_PATH') or die('Restricted access');
-
+require_once 'objects.php';
class UserPages extends TDMCreateFile
{
/*
+ * @var string
+ */
+ private $userobjects = null;
+ /*
* @public function constructor
* @param null
*/
public function __construct() {
parent::__construct();
- $this->tdmcfile = TDMCreateFile::getInstance();
+ $this->tdmcfile = TDMCreateFile::getInstance();
+ $this->userobjects = UserObjects::getInstance();
}
/*
* @static function &getInstance
@@ -62,9 +67,10 @@
$table = $this->getTable();
$tableName = $table->getVar('table_name');
$tableFieldname = $table->getVar('table_fieldname');
- $stu_mod_name = strtoupper($moduleDirname);
- $stu_table_name = strtoupper($tableName);
- $stl_table_name = strtolower($tableName);
+ $tableAutoincrement = $table->getVar('table_autoincrement');
+ $stuModuleDirname = strtoupper($moduleDirname);
+ $stuTableName = strtoupper($tableName);
+ $stlTableName = strtolower($tableName);
$ret = <<<EOT
\ninclude_once 'header.php';
\$GLOBALS['xoopsOption']['template_main'] = '{$moduleDirname}_{$tableName}.tpl';
@@ -74,16 +80,16 @@
// Define Stylesheet
\$xoTheme->addStylesheet( \$style );
// Get Handler
-\${$stl_table_name}Handler =& \${$moduleDirname}->getHandler('{$stl_table_name}');
+\${$stlTableName}Handler =& \${$moduleDirname}->getHandler('{$stlTableName}');
//
-\$GLOBALS['xoopsTpl']->assign('{$moduleDirname}_upload_url', {$stu_mod_name}_UPLOAD_URL);
+\$GLOBALS['xoopsTpl']->assign('{$moduleDirname}_upload_url', {$stuModuleDirname}_UPLOAD_URL);
//
\$criteria = new CriteriaCompo();
-\${$stl_table_name}_count = \${$stl_table_name}Handler->getCount(\$criteria);
-\${$stl_table_name}_arr = \${$stl_table_name}Handler->getAll(\$criteria);
+\${$stlTableName}_count = \${$stlTableName}Handler->getCount(\$criteria);
+\${$stlTableName}_arr = \${$stlTableName}Handler->getAll(\$criteria);
\$keywords = array();
-if (\${$stl_table_name}_count > 0) {
- foreach (array_keys(\${$stl_table_name}_arr) as \$i)
+if (\${$stlTableName}_count > 0) {
+ foreach (array_keys(\${$stlTableName}_arr) as \$i)
{\n
EOT;
// Fields
@@ -93,66 +99,54 @@
$fieldName = $fields[$f]->getVar('field_name');
$rp_field_name = $fieldName;
// Verify if table_fieldname is not empty
- if(!empty($tableFieldname)) {
- if(strpos($fieldName, '_')) {
- $str = strpos($fieldName, '_');
- if($str !== false){
- $rp_field_name = substr($fieldName, $str + 1, strlen($fieldName));
- }
- }
- $lp_field_name = substr($fieldName, 0, strpos($fieldName, '_'));
- $tname = $lp_field_name;
- $fieldElement = $fields[$f]->getVar('field_element');
- if ( $fields[$f]->getVar('field_main') == 1 ) {
- $fpmf = $fieldName; // fpmf = fields parameters main field
- }
- // Verify if this is a textarea or dhtmltextarea
- if ( $fieldElement == 2 || $fieldElement == 3 ) {
- $ret .= <<<EOT
- \${$tname}['{$rp_field_name}'] = strip_tags(\${$stl_table_name}_arr[\$i]->getVar('{$fieldName}'));\n
-EOT;
- } else {
- $ret .= <<<EOT
- \${$tname}['{$rp_field_name}'] = \${$stl_table_name}_arr[\$i]->getVar('{$fieldName}');\n
-EOT;
- }
- } else {
- $tname = $tableName;
- $fieldElement = $fields[$f]->getVar('field_element');
- if ( $fields[$f]->getVar('field_main') == 1 ) {
- $fpmf = $fieldName; // fpmf = fields parameters main field
- }
- // Verify if this is a textarea or dhtmltextarea
- if ( $fieldElement == 2 || $fieldElement == 3 ) {
- $ret .= <<<EOT
- \${$tname}['{$rp_field_name}'] = strip_tags(\${$stl_table_name}_arr[\$i]->getVar('{$fieldName}'));\n
-EOT;
- } else {
- $ret .= <<<EOT
- \${$tname}['{$rp_field_name}'] = \${$stl_table_name}_arr[\$i]->getVar('{$fieldName}');\n
-EOT;
- }
+ $lpFieldName = !empty($tableFieldname) ? substr($fieldName, 0, strpos($fieldName, '_')) : $tableName;
+ if(strpos($fieldName, '_')) {
+ $str = strpos($fieldName, '_');
+ if($str !== false){
+ $rpFieldName = substr($fieldName, $str + 1, strlen($fieldName));
+ }
+ }
+ if ( $fields[$f]->getVar('field_main') == 1 ) {
+ $fpmf = $fieldName; // fpmf = fields parameters main field
}
+ $fieldElement = $fields[$f]->getVar('field_element');
+ if( ($fields[$f]->getVar('field_user') == 1) || ($tableAutoincrement == 1) ) {
+ switch($fieldElement) {
+ case 2:
+ case 3:
+ $ret .= $this->userobjects->getTextAreaGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName);
+ break;
+ case 7:
+ $ret .= $this->userobjects->getSelectUserGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName);
+ break;
+ case 12:
+ $ret .= $this->userobjects->getTextDateSelectGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName);
+ break;
+ default:
+ $ret .= $this->userobjects->getSimpleGetVar($lpFieldName, $rpFieldName, $tableName, $fieldName);
+ break;
+ }
+ }
}
$ret .= <<<EOT
- \$GLOBALS['xoopsTpl']->append('{$stl_table_name}', \${$tname});
- \$keywords[] = \${$stl_table_name}_arr[\$i]->getVar('{$fpmf}');
- unset(\${$tname});
+ \$GLOBALS['xoopsTpl']->append('{$stlTableName}', \${$lpFieldName});
+ \$keywords[] = \${$stlTableName}_arr[\$i]->getVar('{$fpmf}');
+ unset(\${$lpFieldName});
}
// Display Navigation
- if (\${$stl_table_name}_count > \$limit) {
+ if (\${$stlTableName}_count > \$limit) {
include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
- \$nav = new XoopsPageNav(\${$stl_table_name}_count, \$limit, \$start, 'start');
+ \$nav = new XoopsPageNav(\${$stlTableName}_count, \$limit, \$start, 'start');
\$GLOBALS['xoopsTpl']->assign('pagenav', \$nav->renderNav(4));
}
}
// keywords
-{$moduleDirname}_meta_keywords(xoops_getModuleOption('keywords', \$dirname) .', '. implode(', ', \$keywords));
+{$moduleDirname}_meta_keywords(\${$moduleDirname}->getConfig('keywords').', '. implode(', ', \$keywords));
unset(\$keywords);
// description
-{$moduleDirname}_meta_description({$language}{$stu_table_name}_DESC);
+{$moduleDirname}_meta_description({$language}{$stuTableName}_DESC);
//
-\$GLOBALS['xoopsTpl']->assign('xoops_mpageurl', {$stu_mod_name}_URL.'/{$stl_table_name}.php');
+\$GLOBALS['xoopsTpl']->assign('xoops_mpageurl', {$stuModuleDirname}_URL.'/{$stlTableName}.php');
//
include_once 'footer.php';
EOT;
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-10 18:47:00 UTC (rev 12696)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/user/xoopsversion.php 2014-07-10 19:07:25 UTC (rev 12697)
@@ -363,23 +363,22 @@
EOT;
$fields = $this->getTableFields($table->getVar('table_id'));
foreach (array_keys($fields) as $f)
- {
- $fieldElement = $fields[$f]->getVar('field_element');
- }
- if( $fieldElement == 3 ) {
- $ret .= <<<EOT
+ {
+ if( $fields[$f]->getVar('field_element') == 3 ) {
+ $ret .= <<<EOT
// Editor
xoops_load('xoopseditorhandler');
-\$editor_handler = XoopsEditorHandler::getInstance();
+\$editorHandler = XoopsEditorHandler::getInstance();
\$modversion['config'][] = array(
'name' => "{$moduleDirname}_editor",
'title' => "{$language}EDITOR",
'description' => "{$language}EDITOR_DESC",
'formtype' => "select",
'valuetype' => "text",
- 'options' => array_flip(\$editor_handler->getList()),
+ 'options' => array_flip(\$editorHandler->getList()),
'default' => "dhtml");\n\n
EOT;
+ }
}
if ( $module->getVar('mod_permissions') == 1 ) {
$ret .= <<<EOT
@@ -427,9 +426,11 @@
'default' => "{$moduleDirname}, {$keyword}");\n
EOT;
unset($this->keywords);
- if( $fieldElement == 9 )
- {
- $ret .= <<<EOT
+ foreach (array_keys($fields) as $f)
+ {
+ $fieldElement = $fields[$f]->getVar('field_element');
+ if(( $fieldElement == 9 ) || ( $fieldElement == 10 )) {
+ $ret .= <<<EOT
\n//Uploads : maxsize of image
\$modversion['config'][] = array(
'name' => "maxsize",
@@ -451,6 +452,7 @@
"jpeg" => "image/jpeg","jpg" => "image/jpg","jpe" => "image/jpe",
"png" => "image/png"));\n
EOT;
+ }
}
if ($table->getVar('table_admin') == 1) {
$ret .= <<<EOT
@@ -516,7 +518,7 @@
$tableName = $tables[$t]->getVar('table_name');
$count = count($tableName);
if($tables[$t]->getVar('table_notifications') == 1) {
- if($t <= $count) {
+ if($t < $count) {
$notify_file .= "'".$tableName.".php', ";
} else {
$notify_file .= "'".$tableName.".php'";
@@ -539,7 +541,7 @@
'name' => "category",
'title' => {$language}CATEGORY_NOTIFY,
'description' => {$language}CATEGORY_NOTIFY_DESC,
- 'subscribe_from' => array('viewcat.php', 'singlefile.php'),
+ 'subscribe_from' => array({$notify_file}),
'item_name' => "cid",
'allow_bookmark' => 1);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/docs/changelog.txt
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/docs/changelog.txt 2014-07-10 18:47:00 UTC (rev 12696)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/docs/changelog.txt 2014-07-10 19:07:25 UTC (rev 12697)
@@ -2,7 +2,11 @@
2014/01/02: Version 1.91 alpha 1
=================================
-- Under Construction
+- Refactoring
+- Rewritten from scratch
+- Added templates admin
+- Added fields table
+- Added more parameters in fields form
=================================
2013/05/12: Version 1.39 RC 1
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/language/english/admin.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/language/english/admin.php 2014-07-10 18:47:00 UTC (rev 12696)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/language/english/admin.php 2014-07-10 19:07:25 UTC (rev 12697)
@@ -30,16 +30,6 @@
define('_AM_TDMCREATE_THEREARE_NUMMODULES', "There are <span class='red bold'>%s</span> modules stored in the Database");
define('_AM_TDMCREATE_THEREARE_NUMTABLES', "There are <span class='red bold'>%s</span> tables stored in the Database");
define('_AM_TDMCREATE_THEREARE_NUMFIELDS', "There are <span class='red bold'>%s</span> fields stored in the Database");
-
-define('_AM_TDMCREATE_TABLES_FIELDS_MORE_ELEMENTS', "Forms: Elements");
-define('_AM_TDMCREATE_TABLES_FIELDS_MORE_PARENT_ID', "Parent: Category id");
-define('_AM_TDMCREATE_TABLES_FIELDS_MORE_DISPLAY_ADMIN', "Page: Show admin");
-define('_AM_TDMCREATE_TABLES_FIELDS_MORE_DISPLAY_USER', "Page: View User");
-define('_AM_TDMCREATE_TABLES_FIELDS_MORE_BLOC', "Block: View");
-define('_AM_TDMCREATE_TABLES_FIELDS_MORE_MAIN_FIELD', "Table: Main Field");
-define('_AM_TDMCREATE_TABLES_FIELDS_MORE_SEARCH', "Search: Index");
-define('_AM_TDMCREATE_TABLES_FIELDS_MORE_REQUIRED', "Forms: Required field");
-
// General
define('_AM_TDMCREATE_FORMOK', "Successfully saved");
define('_AM_TDMCREATE_FORMDELOK', "Successfully deleted");
@@ -54,7 +44,7 @@
define('_AM_TDMCREATE_FORM_INFO_TABLE_OPTIONAL_FIELD', "Optional fields");
define('_AM_TDMCREATE_FORM_INFO_TABLE_STRUCTURES_FIELD', "Structures fields");
define('_AM_TDMCREATE_FORM_INFO_TABLE_ICON_FIELD', "Icon fields");
-
+//
define('_AM_TDMCREATE_ID', "ID");
define('_AM_TDMCREATE_NAME', "Name");
define('_AM_TDMCREATE_BLOCKS', "Blocks");
@@ -70,8 +60,7 @@
//Form
define('_AM_TDMCREATE_MODULE_NEW', "New module");
define('_AM_TDMCREATE_MODULE_EDIT', "Edit module");
-//define('_AM_TDMCREATE_MODULE_IMPORTANT', "Required Information");
-
+//
define('_AM_TDMCREATE_MODULE_IMPORTANT', "<span style='color: #FF0000'>Required - Information</span>");
define('_AM_TDMCREATE_MODULE_NOTIMPORTANT', "<span style='color: #00FF00'>Optional - Information</span>");
define('_AM_TDMCREATE_MODULE_ID', "Id");
@@ -175,7 +164,6 @@
define('_AM_TDMCREATE_TABLE_IMAGE_DESC', "<span class='red bold'>WARNING</span>: If you want to choose a new image, is best to name it with the module name before and follow with the name of the image so as not to overwrite any images with the same name, in the <span class='bold'>Frameworks/moduleclasses/moduleadmin/icons/32/</span>. Otherwise an other solution, would be to insert the images in the module, a new folder is created, with the creation of the same module - <span class='bold'>images/32</span>.");
define('_AM_TDMCREATE_TABLE_FORM_CREATED_OK', "The table <b class='green'>%s</b> is successfully created");
define('_AM_TDMCREATE_TABLE_FORM_UPDATED_OK', "The table <b class='green'>%s</b> is successfully updated");
-
// ------------------ Form Fields ------------------
// Caption
define('_AM_TDMCREATE_FIELDS_NEW', "New fields");
@@ -298,8 +286,8 @@
define('_AM_TDMCREATE_BUILD_MODSELOPT', "Select and build a Module");
define('_AM_TDMCREATE_NOTMODULES', "There aren't modules, pleace create one first");
define('_AM_TDMCREATE_NOTTABLES', "There aren't tables, pleace create one first");
-define('_AM_TDMCREATE_FIELD_FORM_SAVED_OK', "Fields of table %s successfully saved");
-define('_AM_TDMCREATE_FIELD_FORM_UPDATED_OK', "Fields of table %s successfully updated");
+define('_AM_TDMCREATE_FIELDS_FORM_SAVED_OK', "Fields of table <b class='green'>%s</b> successfully saved");
+define('_AM_TDMCREATE_FIELDS_FORM_UPDATED_OK', "Fields of table <b class='green'>%s</b> successfully updated");
//
define('_AM_TDMCREATE_THEREARENT_MODULES', "There aren't modules");
define('_AM_TDMCREATE_THEREARENT_TABLES', "There aren't tables");
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/xoops_version.php
======...
[truncated message content] |
|
From: <txm...@us...> - 2014-07-10 18:47:08
|
Revision: 12696
http://sourceforge.net/p/xoops/svn/12696
Author: txmodxoops
Date: 2014-07-10 18:47:00 +0000 (Thu, 10 Jul 2014)
Log Message:
-----------
- Renamed directory name from TDMCreate to tdmcreate
Added Paths:
-----------
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/
Removed Paths:
-------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/
|
|
From: <txm...@us...> - 2014-07-10 18:46:15
|
Revision: 12695
http://sourceforge.net/p/xoops/svn/12695
Author: txmodxoops
Date: 2014-07-10 18:46:08 +0000 (Thu, 10 Jul 2014)
Log Message:
-----------
Removed Paths:
-------------
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/
|
|
From: <txm...@us...> - 2014-07-10 18:38:24
|
Revision: 12694
http://sourceforge.net/p/xoops/svn/12694
Author: txmodxoops
Date: 2014-07-10 18:38:19 +0000 (Thu, 10 Jul 2014)
Log Message:
-----------
- Released 1.91 alpha 1
Added Paths:
-----------
XoopsModules/TDMCreate/releases/1.91alpha1/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/about.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/building.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/fields.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/footer.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/header.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/index.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/menu.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/modules.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/tables.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/css/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/css/admin/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/css/admin/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/css/admin/style.css
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/css/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/css/style.css
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/empty.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/16/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/16/arrow.gif
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/16/blocks.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/16/drag.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/16/editfields.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/16/fields.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/16/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/16/left_right.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/16/nb_fields.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/16/spinner.gif
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/16/submenu.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/16/tables.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/16/toggle.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/32/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/32/addmodule.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/32/addtable.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/32/builder.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/32/dashboard.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/32/edittable.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/32/fields.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/32/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/blank.gif
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/icons/loading.gif
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/loading.gif
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/logo.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/logos/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/logos/VeraBd.ttf
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/logos/empty.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/logos/green.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/logos/red.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/logos/xoops2.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/logos/xoopsdevelopmentteam_logo.gif
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/naked.png
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/images/xcvLogo.txt
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/js/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/js/fields.js
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/js/functions.js
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/assets/js/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/autoloader.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/building.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/fieldattributes.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/fieldelements.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/fieldkey.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/fieldnull.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/fields.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/fieldtype.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/abstract.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/admin/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/admin/about.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/admin/footer.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/admin/header.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/admin/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/admin/index.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/admin/menu.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/admin/objects.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/admin/pages.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/admin/permissions.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/architecture.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/blocks/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/blocks/blocks.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/blocks/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/classes/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/classes/classes.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/classes/formelements.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/classes/helper.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/classes/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/css/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/css/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/css/styles.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/docs/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/docs/changelog.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/docs/docs.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/docs/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/file.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/htmlsmartycodes.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/include/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/include/comment_functions.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/include/comments.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/include/common.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/include/functions.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/include/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/include/install.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/include/jquery.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/include/notifications.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/include/search.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/include/update.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/language/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/language/admin.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/language/blocks.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/language/help.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/language/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/language/mail.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/language/main.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/language/modinfo.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/sql/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/sql/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/sql/mysql.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/structure.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/tablefields.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/templates/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/templates/admin/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/templates/admin/about.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/templates/admin/footer.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/templates/admin/header.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/templates/admin/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/templates/admin/index.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/templates/admin/pages.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/templates/admin/permissions.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/templates/blocks/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/templates/blocks/blocks.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/templates/blocks/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/templates/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/templates/user/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/templates/user/footer.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/templates/user/header.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/templates/user/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/templates/user/index.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/templates/user/pages.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/user/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/user/footer.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/user/header.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/user/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/user/index.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/user/notification_update.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/user/objects.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/user/pages.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/user/print.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/user/rss.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/user/submit.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/files/user/xoopsversion.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/form/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/form/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/form/themeform.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/helper.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/html/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/html/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/html/simplelabel.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/logoGenerator.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/modules.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/session.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/class/tables.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/docs/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/docs/changelog.txt
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/docs/credits.txt
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/docs/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/docs/install.txt
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/docs/lang_diff.txt
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/docs/license.txt
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/docs/readme.txt
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/include/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/include/common.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/include/functions.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/include/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/include/install.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/include/update.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/language/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/language/english/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/language/english/admin.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/language/english/help/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/language/english/help/help.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/language/english/help/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/language/english/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/language/english/modinfo.php
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/language/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/language/update language 1.0 to 1.1.txt
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/language/update language 1.1 to 1.15.txt
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/language/update language 1.1 to 1.37.txt
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/language/update language 1.15 to 1.37.txt
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/language/update language 1.37 to 1.38.txt
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/language/update language 1.38 to 1.39.txt
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/sql/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/sql/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/sql/mysql.sql
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/templates/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/templates/admin/
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/templates/admin/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/templates/admin/tdmcreate_about.tpl
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/templates/admin/tdmcreate_building.tpl
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/templates/admin/tdmcreate_fields.tpl
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/templates/admin/tdmcreate_footer.tpl
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/templates/admin/tdmcreate_header.tpl
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/templates/admin/tdmcreate_index.tpl
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/templates/admin/tdmcreate_modules.tpl
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/templates/admin/tdmcreate_tables.tpl
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/templates/index.html
XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/xoops_version.php
Added: XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/about.php
===================================================================
--- XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/about.php (rev 0)
+++ XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/about.php 2014-07-10 18:38:19 UTC (rev 12694)
@@ -0,0 +1,25 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/**
+ * tdmcreate module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package tdmcreate
+ * @since 2.5.0
+ * @author Txmod Xoops http://www.txmodxoops.org
+ * @version $Id: about.php 11084 2013-02-23 15:44:20Z timgno $
+ */
+include 'header.php';
+$template_main = 'tdmcreate_about.tpl';
+$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('about.php'));
+$GLOBALS['xoopsTpl']->assign('about', $adminMenu->renderAbout('6KJ7RW5DR3VTJ', false));
+include 'footer.php';
\ No newline at end of file
Added: XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/building.php
===================================================================
--- XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/building.php (rev 0)
+++ XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/building.php 2014-07-10 18:38:19 UTC (rev 12694)
@@ -0,0 +1,97 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/**
+ * tdmcreate module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package tdmcreate
+ * @since 2.5.0
+ * @author Txmod Xoops http://www.txmodxoops.org
+ * @version $Id: building.php 12258 2014-01-02 09:33:29Z timgno $
+ */
+include 'header.php';
+$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
+ $moduleDirname = $moduleObj->getVar('mod_dirname');
+ // Directories for copy from to
+ $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($fromDir)) {
+ TDMCreate_clearDir($fromDir);
+ }
+ // Clear this module if it's in root/modules
+ if(is_dir($toDir)) {
+ TDMCreate_clearDir($toDir);
+ }
+ }
+ // Structure
+ include_once TDMC_PATH . '/class/files/architecture.php';
+ $handler = TDMCreateArchitecture::getInstance();
+ $handler->getPath( TDMC_PATH );
+ $handler->getUploadPath( TDMC_UPLOAD_PATH );
+ // Creation of the structure of folders and files
+ $base_architecture = $handler->createBaseFoldersFiles( $moduleObj );
+ if($base_architecture !== false) {
+ $GLOBALS['xoopsTpl']->assign('base_architecture', true);
+ } else {
+ $GLOBALS['xoopsTpl']->assign('base_architecture', false);
+ }
+ // Get files
+ $build = array();
+ $files = $handler->createFilesToBuilding( $moduleObj );
+ foreach($files as $file) {
+ if($file) {
+ $build['list'] = $file;
+ }
+ $GLOBALS['xoopsTpl']->append('builds', $build);
+ }
+ unset($build);
+ // Directory to saved all files
+ $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($fromDir, $toDir);
+ }
+ break;
+
+ case 'default':
+ default:
+ $template_main = 'tdmcreate_building.tpl';
+ $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('building.php'));
+ // Redirect if there aren't modules
+ $nbModules = $tdmcreate->getHandler('modules')->getCount();
+ if( $nbModules == 0 ) {
+ redirect_header('modules.php?op=new', 2, _AM_TDMCREATE_NOTMODULES );
+ }
+ unset($nbModules);
+ // Redirect if there aren't tables
+ $nbTables = $tdmcreate->getHandler('tables')->getCount();
+ if($nbTables == 0) {
+ redirect_header('tables.php?op=new', 2, _AM_TDMCREATE_NOTTABLES );
+ }
+ unset($nbTables);
+ include_once TDMC_PATH . '/class/building.php';
+ $handler = TDMCreateBuilding::getInstance();
+ $form = $handler->getForm();
+ $GLOBALS['xoopsTpl']->assign('form', $form->render());
+ break;
+}
+include 'footer.php';
\ No newline at end of file
Added: XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/fields.php
===================================================================
--- XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/fields.php (rev 0)
+++ XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/fields.php 2014-07-10 18:38:19 UTC (rev 12694)
@@ -0,0 +1,330 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/**
+ * tdmcreate module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package tdmcreate
+ * @since 2.5.0
+ * @author Txmod Xoops http://www.txmodxoops.org
+ * @version $Id: 1.91 fields.php 12258 2014-01-02 09:33:29Z timgno $
+ */
+include 'header.php';
+// Recovered value of arguments op in the URL $
+$op = XoopsRequest::getString('op', 'list');
+// Get fields Variables
+$field_mid = TDMCreate_CleanVars($_REQUEST, 'field_mid');
+$fieldTid = TDMCreate_CleanVars($_REQUEST, 'field_tid');
+$fieldNumb = TDMCreate_CleanVars($_REQUEST, 'field_numb');
+$fieldName = TDMCreate_CleanVars($_REQUEST, 'field_name', '', 'string');/**/
+/*$field_mid = XoopsRequest::getInt('field_mid');
+$fieldTid = XoopsRequest::getInt('field_tid');
+$fieldNumb = XoopsRequest::getInt('field_numb');
+$fieldName = XoopsRequest::getString('field_name', ''); */
+//
+switch ($op)
+{
+ case 'list':
+ default:
+ $start = XoopsRequest::getInt('start', 0);
+ $limit = XoopsRequest::getInt('limit', $tdmcreate->getConfig('tables_adminpager'));
+ // Define main template
+ $template_main = 'tdmcreate_fields.tpl';
+ $GLOBALS['xoTheme']->addStylesheet( 'modules/TDMCreate/assets/css/admin/style.css' );
+ $GLOBALS['xoTheme']->addScript('modules/TDMCreate/assets/js/functions.js');
+ $GLOBALS['xoTheme']->addScript('modules/TDMCreate/assets/js/fields.js');
+ $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('fields.php'));
+ $adminMenu->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add');
+ $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
+ $GLOBALS['xoopsTpl']->assign('tdmc_url', TDMC_URL);
+ $GLOBALS['xoopsTpl']->assign('tdmc_icons_url', TDMC_ICONS_URL);
+ $GLOBALS['xoopsTpl']->assign('tdmc_upload_url', TDMC_UPLOAD_URL);
+ $GLOBALS['xoopsTpl']->assign('tdmc_upload_imgtab_url', TDMC_UPLOAD_IMGTAB_URL);
+ $GLOBALS['xoopsTpl']->assign('modPathIcon16', $modPathIcon16);
+ $GLOBALS['xoopsTpl']->assign('sysPathIcon32', $sysPathIcon32);
+ //var_dump($sysPathIcon32);
+ // Redirect if there aren't modules
+ $nb_modules = $tdmcreate->getHandler('modules')->getCount();
+ if ( $nb_modules == 0 ) {
+ redirect_header('modules.php?op=new', 2, _AM_TDMCREATE_NOTMODULES );
+ }
+ unset($nb_modules);
+ // Redirect if there aren't tables
+ $nb_tables = $tdmcreate->getHandler('tables')->getCount();
+ if ($nb_tables == 0) {
+ redirect_header('tables.php?op=new', 2, _AM_TDMCREATE_NOTTABLES );
+ }
+ unset($nb_tables);
+ // Get the list of tables
+ $criteria = new CriteriaCompo();
+ $criteria->setSort('table_id ASC, table_name');
+ $criteria->setOrder('ASC');
+ $nb_tables = $tdmcreate->getHandler('tables')->getCount($criteria);
+ $tables_arr = $tdmcreate->getHandler('tables')->getAll($criteria);
+ unset($criteria);
+ if ($nb_tables > 0)
+ {
+ foreach (array_keys($tables_arr) as $tid)
+ {
+ // Display tables list
+ $table['id'] = $tid;
+ $table['mid'] = $tables_arr[$tid]->getVar('table_mid');
+ $table['name'] = ucfirst($tables_arr[$tid]->getVar('table_name'));
+ $table['image'] = $tables_arr[$tid]->getVar('table_image');
+ $table['nbfields'] = $tables_arr[$tid]->getVar('table_nbfields');
+ $table['autoincrement'] = $tables_arr[$tid]->getVar('table_autoincrement');
+ $table['blocks'] = $tables_arr[$tid]->getVar('table_blocks');
+ $table['admin'] = $tables_arr[$tid]->getVar('table_admin');
+ $table['user'] = $tables_arr[$tid]->getVar('table_user');
+ $table['search'] = $tables_arr[$tid]->getVar('table_search');
+ // Get the list of fields
+ $criteria = new CriteriaCompo();
+ $criteria->add(new Criteria('field_tid', $tid));
+ $criteria->setSort('field_id ASC, field_name');
+ $criteria->setOrder('ASC');
+ $nb_fields = $tdmcreate->getHandler('fields')->getCount($criteria);
+ $fields_arr = $tdmcreate->getHandler('fields')->getObjects($criteria);
+ unset($criteria);
+ // Display fields list
+ $fields = array();
+ $lid = 1;
+ if ( $nb_fields > 0 )
+ {
+ foreach (array_keys($fields_arr) as $fid)
+ {
+ $field['id'] = $fid;
+ $field['lid'] = $lid;
+ $field['name'] = str_replace('_', ' ', ucfirst($fields_arr[$fid]->getVar('field_name')));
+ $field['parent'] = $fields_arr[$fid]->getVar('field_parent');
+ $field['inlist'] = $fields_arr[$fid]->getVar('field_inlist');
+ $field['inform'] = $fields_arr[$fid]->getVar('field_inform');
+ $field['admin'] = $fields_arr[$fid]->getVar('field_admin');
+ $field['user'] = $fields_arr[$fid]->getVar('field_user');
+ $field['block'] = $fields_arr[$fid]->getVar('field_block');
+ $field['main'] = $fields_arr[$fid]->getVar('field_main');
+ $field['search'] = $fields_arr[$fid]->getVar('field_search');
+ $field['required'] = $fields_arr[$fid]->getVar('field_required');
+ $fields[] = $field;
+ unset($field);
+ $lid++;
+ }
+ }
+ unset($lid);
+ $table['fields'] = $fields;
+ $GLOBALS['xoopsTpl']->append('tables_list', $table);
+ unset($table);
+ }
+ if ( $nb_tables > $limit ) {
+ include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
+ $pagenav = new XoopsPageNav($nb_tables, $limit, $start, 'start', 'op=list&limit=' . $limit);
+ $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
+ }
+ } else {
+ $GLOBALS['xoopsTpl']->assign('error', _AM_TDMCREATE_THEREARENT_FIELDS);
+ }
+ break;
+
+ case 'new':
+ // Define main template
+ $template_main = 'tdmcreate_fields.tpl';
+ $GLOBALS['xoTheme']->addStylesheet( 'modules/TDMCreate/assets/css/admin/style.css' );
+ $GLOBALS['xoTheme']->addScript('modules/TDMCreate/assets/js/fields.js');
+ $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('fields.php'));
+ $adminMenu->addItemButton(_AM_TDMCREATE_TABLES_LIST, 'tables.php', 'list');
+ $adminMenu->addItemButton(_AM_TDMCREATE_FIELDS_LIST, 'fields.php', 'list');
+ $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
+ // Form Add
+ $fieldsObj =& $tdmcreate->getHandler('fields')->create();
+ $form = $fieldsObj->getFormNew($field_mid, $fieldTid, $fieldNumb, $fieldName);
+ $GLOBALS['xoopsTpl']->assign('form', $form->render());
+ // Test -> Will be removed
+ var_dump($field_mid);
+ var_dump($fieldTid);
+ var_dump($fieldNumb);
+ var_dump($fieldName);
+ break;
+
+ case 'save':
+ //
+ if ( !$GLOBALS['xoopsSecurity']->check() ) {
+ redirect_header('fields.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
+ }
+ $fieldId = XoopsRequest::getInt('field_id');
+ // Fields Handler
+ $fields = $tdmcreate->getHandler('fields');
+ // Set Variables
+ foreach($_POST['field_id'] as $key => $value)
+ {
+ switch($value){
+ case 'new':
+ $fieldsObj =& $fields->create();
+ break;
+ default:
+ $fieldsObj =& $fields->get($value);
+ break;
+ }
+ if (isset($field_mid) && isset($fieldTid) && !empty($_POST['field_name'][$key])) {
+ // Set Data
+ $fieldsObj->setVar( 'field_mid', $field_mid );
+ $fieldsObj->setVar( 'field_tid', $fieldTid );
+ $fieldsObj->setVar( 'field_numb', $fieldNumb );
+ $fieldsObj->setVar( 'field_name', (isset($_POST['field_name'][$key]) ? $_POST['field_name'][$key] : '') );
+ $fieldsObj->setVar( 'field_type', (isset($_POST['field_type'][$key]) ? $_POST['field_type'][$key] : '') );
+ $fieldsObj->setVar( 'field_value', (isset($_POST['field_value'][$key]) ? $_POST['field_value'][$key] : '') );
+ $fieldsObj->setVar( 'field_attribute', (isset($_POST['field_attribute'][$key]) ? $_POST['field_attribute'][$key] : '') );
+ $fieldsObj->setVar( 'field_null', (isset($_POST['field_null'][$key]) ? $_POST['field_null'][$key] : '') );
+ $fieldsObj->setVar( 'field_default', (isset($_POST['field_default'][$key]) ? $_POST['field_default'][$key] : '') );
+ $fieldsObj->setVar( 'field_key', (isset($_POST['field_key'][$key]) ? $_POST['field_key'][$key] : '') );
+ $fieldsObj->setVar( 'field_element', (isset($_POST['field_element'][$key]) ? $_POST['field_element'][$key] : '') );
+ $fieldsObj->setVar( 'field_parent', ((isset($_REQUEST['field_parent'][$key]) == 1) ? 1 : 0) );
+ $fieldsObj->setVar( 'field_inlist', ((isset($_REQUEST['field_inlist'][$key]) == 1) ? 1 : 0) );
+ $fieldsObj->setVar( 'field_inform', ((isset($_REQUEST['field_inform'][$key]) == 1) ? 1 : 0) );
+ $fieldsObj->setVar( 'field_admin', ((isset($_REQUEST['field_admin'][$key]) == 1) ? 1 : 0) );
+ $fieldsObj->setVar( 'field_user', ((isset($_REQUEST['field_user'][$key]) == 1) ? 1 : 0) );
+ $fieldsObj->setVar( 'field_block', ((isset($_REQUEST['field_block'][$key]) == 1) ? 1 : 0) );
+ $fieldsObj->setVar( 'field_main', (($key == isset($_REQUEST['field_main'][$key])) ? 1 : 0) );
+ $fieldsObj->setVar( 'field_search', ((isset($_REQUEST['field_search'][$key]) == 1) ? 1 : 0) );
+ $fieldsObj->setVar( 'field_required', ((isset($_REQUEST['field_required'][$key]) == 1) ? 1 : 0) );
+ // Insert Data
+ $tdmcreate->getHandler('fields')->insert($fieldsObj);
+ }
+ }
+ // Get table name from field table id
+ $tables =& $tdmcreate->getHandler('tables')->get($fieldTid);
+ $table_name = $tables->getVar('table_name');
+ // Set field elements
+ if ($fieldsObj->isNew()) {
+ // Fields Elements Handler
+ $fieldelementObj =& $tdmcreate->getHandler('fieldelements')->create();
+ $fieldelementObj->setVar( 'fieldelement_mid', $field_mid );
+ $fieldelementObj->setVar( 'fieldelement_tid', $fieldTid );
+ $fieldelementObj->setVar( 'fieldelement_name', 'Table : '.ucfirst($table_name) );
+ $fieldelementObj->setVar( 'fieldelement_value', 'XoopsFormTables-'.ucfirst($table_name) );
+ // Insert new field element id for table name
+ if (!$tdmcreate->getHandler('fieldelements')->insert($fieldelementObj) ) {
+ $GLOBALS['xoopsTpl']->assign('error', $fieldelementObj->getHtmlErrors() . ' Field element');
+ }
+ redirect_header('fields.php', 2, sprintf(_AM_TDMCREATE_FIELDS_FORM_SAVED_OK, $table_name));
+ } else {
+ redirect_header('fields.php', 2, sprintf(_AM_TDMCREATE_FIELDS_FORM_UPDATED_OK, $table_name));
+ }
+ //
+ $GLOBALS['xoopsTpl']->assign('error', $fieldsObj->getHtmlErrors());
+ $form = $fieldsObj->getForm(null, $fieldTid);
+ $GLOBALS['xoopsTpl']->assign('form', $form->render());
+ break;
+
+ case 'edit':
+ // Define main template
+ $template_main = 'tdmcreate_fields.tpl';
+ $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('fields.php'));
+ $adminMenu->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add');
+ $adminMenu->addItemButton(_AM_TDMCREATE_TABLES_LIST, 'tables.php', 'list');
+ $adminMenu->addItemButton(_AM_TDMCREATE_FIELDS_LIST, 'fields.php', 'list');
+ $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
+ // Form Edit
+ $fieldId = XoopsRequest::getInt('field_id');
+ $fieldsObj = $tdmcreate->getHandler('fields')->get( $fieldId );
+ $form = $fieldsObj->getFormEdit($field_mid, $fieldTid);
+ $GLOBALS['xoopsTpl']->assign('form', $form->render());
+ // Test -> Will be removed
+ var_dump($fieldTid);
+ break;
+
+ case 'drag':
+ $side = TDMCreate_CleanVars( $_POST, 'field_id', 0, 'int' );
+ $fieldId = XoopsRequest::getInt('field_id');
+ if ( $fieldId > 0 ) {
+ $fieldsObj = $tdmcreate->getHandler('fields')->get( $fieldId );
+ $fieldsObj->setVar('field_id', $side);
+ if (!$tdmcreate->getHandler('fields')->insert( $fieldsObj )) {
+ redirect_header('fields.php', 5, _AM_TDMCREATE_FIELD_SIDE_ERROR);
+ }
+ }
+ break;
+
+ case 'order':
+ if ( isset($_POST['field_id'] ) ) {
+ $i = 0;
+ foreach($_POST['field_id'] as $order) {
+ if( $order > 0 ) {
+ $fieldsObj = $tdmcreate->getHandler('fields')->get( $order );
+ $fieldsObj->setVar('field_id', $i);
+ if (!$tdmcreate->getHandler('fields')->insert( $fieldsObj )) {
+ redirect_header('fields.php', 5, _AM_TDMCREATE_FIELD_ORDER_ERROR);
+ }
+ $i++;
+ }
+ }
+ unset($i);
+ }
+ exit;
+ break;
+
+ case 'display':
+ $fieldId = XoopsRequest::getInt('field_id');
+ // Get the list of fields
+ $criteria = new CriteriaCompo();
+ $criteria->add(new Criteria('field_tid', $fieldTid));
+ $fields = $tdmcreate->getHandler('fields')->getObjects($criteria);
+ $fieldsObj =& $tdmcreate->getHandler('fields')->get($fieldId);
+ if (isset($_GET['field_tid'])) {
+ if (isset($_GET['field_parent'])) {
+ foreach ($fields as $field) {
+ $fld_parent = $field->getVar('field_parent');
+ $field_parent = ($field->getVar('field_id') == $fld_parent) ? '1' : '0';
+ $fieldsObj->setVar('field_parent', $field_parent);
+ }
+ } elseif (isset($_GET['field_inlist'])) {
+ $fld_inlist = intval($_GET['field_inlist']);
+ $field_inlist = ($fld_inlist == 1) ? '0' : '1';
+ $fieldsObj->setVar('field_inlist', $field_inlist);
+ } elseif (isset($_GET['field_inform'])) {
+ $fld_inform = intval($_GET['field_inform']);
+ $field_inform = ($fld_inform == 1) ? '0' : '1';
+ $fieldsObj->setVar('field_inform', $field_inform);
+ } elseif (isset($_GET['field_admin'])) {
+ $fld_admin = intval($_GET['field_admin']);
+ $field_admin = ($fld_admin == 1) ? '0' : '1';
+ $fieldsObj->setVar('field_admin', $field_admin);
+ } elseif (isset($_GET['field_user'])) {
+ $fld_user = intval($_GET['field_user']);
+ $field_user = ($fld_user == 1) ? '0' : '1';
+ $fieldsObj->setVar('field_user', $field_user);
+ } elseif (isset($_GET['field_block'])) {
+ $fld_block = intval($_GET['field_block']);
+ $field_block = ($fld_block == 1) ? '0' : '1';
+ $fieldsObj->setVar('field_block', $field_block);
+ } elseif (isset($_GET['field_main'])) {
+ foreach ($fields as $field) {
+ $fld_main = $field->getVar('field_main');
+ $field_main = ($field->getVar('field_id') == $fld_main) ? '1' : '0';
+ $fieldsObj->setVar('field_main', $field_main);
+ }
+ } elseif (isset($_GET['field_search'])) {
+ $fld_search = intval($_GET['field_search']);
+ $field_search = ($fld_search == 1) ? '0' : '1';
+ $fieldsObj->setVar('field_search', $field_search);
+ } elseif (isset($_GET['field_required'])) {
+ $fld_required = intval($_GET['field_required']);
+ $field_required = ($fld_required == 1) ? '0' : '1';
+ $fieldsObj->setVar('field_required', $field_required);
+ }
+ if ($tdmcreate->getHandler('fields')->insert($fieldsObj, true)) {
+ redirect_header('fields.php', 3, _AM_TDMCREATE_TOGGLE_SUCCESS);
+ } else {
+ redirect_header('fields.php', 3, _AM_TDMCREATE_TOGGLE_FAILED);
+ }
+ }
+ break;
+}
+include 'footer.php';
\ No newline at end of file
Added: XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/footer.php
===================================================================
--- XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/footer.php (rev 0)
+++ XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/footer.php 2014-07-10 18:38:19 UTC (rev 12694)
@@ -0,0 +1,26 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/**
+ * tdmcreate module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package tdmcreate
+ * @since 2.5.0
+ * @author Txmod Xoops http://www.txmodxoops.org
+ * @version $Id: footer.php 12207 2013-10-23 02:46:52Z beckmi $
+ */
+$GLOBALS['xoopsTpl']->assign('module_name', $GLOBALS['xoopsModule']->getVar('name'));
+if ( isset($template_main) ) {
+ $GLOBALS['xoopsTpl']->display("db:{$template_main}");
+}
+xoops_cp_footer();
+?>
\ No newline at end of file
Added: XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/header.php
===================================================================
--- XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/header.php (rev 0)
+++ XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/header.php 2014-07-10 18:38:19 UTC (rev 12694)
@@ -0,0 +1,57 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/**
+ * tdmcreate module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package tdmcreate
+ * @since 2.5.0
+ * @author Txmod Xoops http://www.txmodxoops.org
+ * @version $Id: header.php 12258 2014-01-02 09:33:29Z timgno $
+*/
+include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php';
+include_once dirname(dirname(__FILE__)) . '/include/common.php';
+//
+$thisDirname = $GLOBALS['xoopsModule']->getVar('dirname');
+// Link System Icons
+$sysPathIcon16 = $GLOBALS['xoopsModule']->getInfo('sysicons16');
+$sysPathIcon32 = $GLOBALS['xoopsModule']->getInfo('sysicons32');
+// Link Local Icons
+$modPathIcon16 = $GLOBALS['xoopsModule']->getInfo('modicons16');
+$modPathIcon32 = $GLOBALS['xoopsModule']->getInfo('modicons32');
+$pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin');
+// TDMCreate Instance
+$tdmcreate = TDMCreate::getInstance();
+// MyTextSanitizer
+$myts =& MyTextSanitizer::getInstance();
+if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
+ include_once(XOOPS_ROOT_PATH."/class/template.php");
+ $xoopsTpl = new XoopsTpl();
+}
+// System Icons
+$GLOBALS['xoopsTpl']->assign('sysPathIcon16', $sysPathIcon16);
+$GLOBALS['xoopsTpl']->assign('sysPathIcon32', $sysPathIcon32);
+// Local Icons
+$GLOBALS['xoopsTpl']->assign('modPathIcon16', $modPathIcon16);
+$GLOBALS['xoopsTpl']->assign('modPathIcon32', $modPathIcon32);
+// Load languages
+xoops_loadLanguage('admin', $thisDirname);
+xoops_loadLanguage('modinfo', $thisDirname);
+xoops_loadLanguage('main', $thisDirname);
+// Locad admin menu class
+if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){
+ include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php');
+}else{
+ redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false);
+}
+xoops_cp_header();
+$adminMenu = new ModuleAdmin();
\ No newline at end of file
Added: XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/index.html
===================================================================
--- XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/index.html (rev 0)
+++ XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/index.html 2014-07-10 18:38:19 UTC (rev 12694)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/index.php
===================================================================
--- XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/index.php (rev 0)
+++ XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/index.php 2014-07-10 18:38:19 UTC (rev 12694)
@@ -0,0 +1,35 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/**
+ * tdmcreate module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package tdmcreate
+ * @since 2.5.0
+ * @author Txmod Xoops http://www.txmodxoops.org
+ * @version $Id: index.php 11084 2013-02-23 15:44:20Z timgno $
+ */
+include 'header.php';
+$criteria = new CriteriaCompo();
+$count_modules = $tdmcreate->getHandler('modules')->getCount($criteria);
+$count_tables = $tdmcreate->getHandler('tables')->getCount($criteria);
+$count_fields = $tdmcreate->getHandler('fields')->getCount($criteria);
+unset($criteria);
+$template_main = 'tdmcreate_index.tpl';
+$adminMenu->addInfoBox(_AM_TDMCREATE_ADMIN_NUMMODULES) ;
+$adminMenu->addInfoBoxLine(_AM_TDMCREATE_ADMIN_NUMMODULES, '<label>' ._AM_TDMCREATE_THEREARE_NUMMODULES. '</label>', $count_modules, 'Green') ;
+$adminMenu->addInfoBoxLine(_AM_TDMCREATE_ADMIN_NUMMODULES, '<label>' ._AM_TDMCREATE_THEREARE_NUMTABLES. '</label>', $count_tables, 'Orange');
+$adminMenu->addInfoBoxLine(_AM_TDMCREATE_ADMIN_NUMMODULES, '<label>' ._AM_TDMCREATE_THEREARE_NUMFIELDS. '</label>', $count_fields, 'Gray');
+//$xoopsOption['template_main'] = 'tdmcreate_index.html';
+$GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('index.php'));
+$GLOBALS['xoopsTpl']->assign('index', $adminMenu->renderIndex());
+include 'footer.php';
\ No newline at end of file
Added: XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/menu.php
===================================================================
--- XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/menu.php (rev 0)
+++ XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/menu.php 2014-07-10 18:38:19 UTC (rev 12694)
@@ -0,0 +1,50 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/**
+ * tdmcreate module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package tdmcreate
+ * @since 2.5.0
+ * @author Txmod Xoops http://www.txmodxoops.org
+ * @version $Id: menu.php 11084 2013-02-23 15:44:20Z timgno $
+ */
+$module_handler =& xoops_gethandler('module');
+$xoopsModule =& XoopsModule::getByDirname('TDMCreate');
+$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid'));
+$sysPathIcon32 = $moduleInfo->getInfo('sysicons32');
+$adminmenu = array();
+$i = 1;
+$adminmenu[$i]['title'] = _MI_TDMCREATE_ADMENU1;
+$adminmenu[$i]['link'] = 'admin/index.php';
+$adminmenu[$i]['icon'] = $sysPathIcon32.'/dashboard.png';
+$i++;
+$adminmenu[$i]['title'] = _MI_TDMCREATE_ADMENU2;
+$adminmenu[$i]['link'] = 'admin/modules.php';
+$adminmenu[$i]['icon'] = 'assets/images/icons/32/addmodule.png';
+$i++;
+$adminmenu[$i]['title'] = _MI_TDMCREATE_ADMENU3;
+$adminmenu[$i]['link'] = 'admin/tables.php';
+$adminmenu[$i]['icon'] = 'assets/images/icons/32/addtable.png';
+$i++;
+$adminmenu[$i]['title'] = _MI_TDMCREATE_ADMENU4;
+$adminmenu[$i]['link'] = 'admin/fields.php';
+$adminmenu[$i]['icon'] = 'assets/images/icons/32/fields.png';
+$i++;
+$adminmenu[$i]['title'] = _MI_TDMCREATE_ADMENU5;
+$adminmenu[$i]['link'] = 'admin/building.php';
+$adminmenu[$i]['icon'] = 'assets/images/icons/32/builder.png';
+$i++;
+$adminmenu[$i]['title'] = _MI_TDMCREATE_ADMENU6;
+$adminmenu[$i]['link'] = 'admin/about.php';
+$adminmenu[$i]['icon'] = $sysPathIcon32.'/about.png';
+unset($i);
Added: XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/modules.php
===================================================================
--- XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/modules.php (rev 0)
+++ XoopsModules/TDMCreate/releases/1.91alpha1/tdmcreate/admin/modules.php 2014-07-10 18:38:19 UTC (rev 12694)
@@ -0,0 +1,238 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/**
+ * tdmcreate module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package tdmcreate
+ * @since 2.5.5
+ * @author Txmod Xoops <su...@tx...>
+ * @version $Id: 1.59 modules.php 11297 2013-03-24 10:58:10Z timgno $
+ */
+include 'header.php';
+// Recovered value of argument op in the URL $
+$op = XoopsRequest::getString('op', 'list');
+//
+$mod_id = XoopsRequest::getInt('mod_id');
+//
+switch ($op)
+{
+ case 'list':
+ default:
+ $start = XoopsRequest::getInt('start', 0);
+ $limit = XoopsRequest::getInt('limit', $tdmcreate->getConfig('modules_adminpager'));
+ // Define main template
+ $template_main = 'tdmcreate_modules.tpl';
+ $GLOBALS['xoTheme']->addScript('modules/TDMCreate/assets/js/functions.js');
+ $GLOBALS['xoTheme']->addStylesheet( 'modules/TDMCreate/assets/css/admin/style.css' );
+ $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('modules.php'));
+ $adminMenu->addItemButton(_AM_TDMCREATE_ADD_MODULE, 'modules.php?op=new', 'add');
+ $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
+ $GLOBALS['xoopsTpl']->assign('tdmc_url', TDMC_URL);
+ $GLOBALS['xoopsTpl']->assign('tdmc_upload_imgmod_url', TDMC_UPLOAD_IMGMOD_URL);
+ $GLOBALS['xoopsTpl']->assign('modPathIcon16', $modPathIcon16);
+ $GLOBALS['xoopsTpl']->assign('sysPathIcon32', $sysPathIcon32);
+ $criteria = new CriteriaCompo();
+ $criteria->setSort('mod_id ASC, mod_name');
+ $criteria->setOrder('ASC');
+ $nb_modules = $tdmcreate->getHandler('modules')->getCount( $criteria );
+ $mods_arr = $tdmcreate->getHandler('modules')->getAll( $criteria );
+ unset($criteria);
+ // Redirect if there aren't modules
+ if ( $nb_modules == 0 ) {
+ redirect_header('modules.php?op=new', 2, _AM_TDMCREATE_NOTMODULES );
+ }
+ // Display modules list
+ if ( $nb_modules > 0 ) {
+ foreach (array_keys($mods_arr) as $i) {
+ $mod['id'] = $i;
+ $mod['name'] = $mods_arr[$i]->getVar('mod_name');
+ $mod['version'] = $mods_arr[$i]->getVar('mod_version');
+ $mod['image'] = $mods_arr[$i]->getVar('mod_image');
+ $mod['release'] = $mods_arr[$i]->getVar('mod_release');
+ $mod['status'] = $mods_arr[$i]->getVar('mod_status');
+ $mod['admin'] = $mods_arr[$i]->getVar('mod_admin');
+ $mod['user'] = $mods_arr[$i]->getVar('mod_user');
+ $mod['search'] = $mods_arr[$i]->getVar('mod_search');
+ $mod['comments'] = $mods_arr[$i]->getVar('mod_comments');
+ $mod['notifications'] = $mods_arr[$i]->getVar('mod_notifications');
+ $mod['permissions'] = $mods_arr[$i]->getVar('mod_permissions');
+ $GLOBALS['xoopsTpl']->append('modules_list', $mod);
+ unset($mod);
+ }
+ if ( $nb_modules > $limit ) {
+ include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
+ $pagenav = new XoopsPageNav($nb_modules, $limit, $start, 'start', 'op=list&limit=' . $limit);
+ $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
+ }
+ } else {
+ $GLOBALS['xoopsTpl']->assign('error', _AM_TDMCREATE_THEREARENT_MODULES);
+ }
+ break;
+
+ case 'new':
+ // Define main template
+ $template_main = 'tdmcreate_modules.tpl';
+ $GLOBALS['xoTheme']->addScript('modules/TDMCreate/assets/js/functions.js');
+ $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('modules.php'));
+ $adminMenu->addItemButton(_AM_TDMCREATE_MODULES_LIST, 'modules.php', 'list');
+ $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
+
+ $modulesObj =& $tdmcreate->getHandler('modules')->create();
+ $form = $modulesObj->getForm();
+ $GLOBALS['xoopsTpl']->assign('form', $form->render());
+ break;
+
+ case 'save':
+ if ( !$GLOBALS['xoopsSecurity']->check() ) {
+ redirect_header('modules.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
+ }
+ if (isset($mod_id)) {
+ $modulesObj =& $tdmcreate->getHandler('modules')->get($mod_id);
+ } else {
+ $modulesObj =& $tdmcreate->getHandler('modules')->create();
+ }
+ $moduleDirname = preg_replace('/[^a-zA-Z0-9]\s+/', '', strtolower($_POST['mod_dirname']));
+ //Form module save
+ $modulesObj->setVars(array('mod_name' => $_POST['mod_name'],
+ 'mod_dirname' => $moduleDirname,
+ 'mod_version' => $_POST['mod_version'],
+ 'mod_since' => $_POST['mod_since'],
+ 'mod_min_php' => $_POST['mod_min_php'],
+ 'mod_min_xoops' => $_POST['mod_min_xoops'],
+ 'mod_min_admin' => $_POST['mod_min_admin'],
+ 'mod_min_mysql' => $_POST['mod_min_mysql'],
+ 'mod_description' => $_POST['mod_description'],
+ 'mod_author' => $_POST['mod_author'],
+ 'mod_author_mail' => $_POST['mod_author_mail'],
+ 'mod_author_website_url' => $_POST['mod_author_website_url'],
+ 'mod_author_website_name' => $_POST['mod_author_website_name'],
+ 'mod_credits' => $_POST['mod_credits'],
+ 'mod_license' => $_POST['mod_license'],
+ 'mod_release_info' => $_POST['mod_release_info'],
+ 'mod_release_file' => $_POST['mod_release_file'],
+ 'mod_manual' => $_POST['mod_manual'],
+ 'mod_manual_file' => $_POST['mod_manual_file']));
+ //Form mod_image
+ include_once XOOPS_ROOT_PATH . '/class/uploader.php';
+ $uploader = new XoopsMediaUploader(TDMC_UPLOAD_IMGMOD_PATH, $tdmcreate->getConfig('mimetypes'),
+ $tdmcreate->getConfig('maxsize'), null, null);
+ if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) {
+ /*$extension = preg_replace( '/.*\.([^.]+)$/', '\\1', $_FILES['attachedfile']['name']);
+ $logo_image = $moduleDirname.'_slogo.'.$extension;
+ $uploader->setPrefix($logo_image);*/
+ $uploader->fetchMedia($_POST['xoops_upload_file'][0]);
+ if (!$uploader->upload()) {
+ $errors = $uploader->getErrors();
+ redirect_header('javascript:history.go(-1)',3, $errors);
+ } else {
+ $modulesObj->setVar('mod_image', $uploader->getSavedFileName());
+ }
+ } else {
+ $modulesObj->setVar('mod_image', $_POST['mod_image']);
+ }
+ //Form module save
+ $modulesObj->setVars(array('mod_demo_site_url' => $_POST['mod_demo_site_url'],
+ 'mod_demo_site_name' => $_POST['mod_demo_site_name'],
+ 'mod_support_url' => $_POST['mod_support_url'],
+ 'mod_support_name' => $_POST['mod_support_name'],
+ 'mod_website_url' => $_POST['mod_website_url'],
+ 'mod_website_name' => $_POST['mod_website_name'],
+ 'mod_release' => $_POST['mod_release'],
+ 'mod_status' => $_POST['mod_status'],
+ 'mod_admin' => (($_REQUEST['mod_admin'] == 1) ? '1' : '0'),
+ 'mod_user' => (($_REQUEST['mod_user'] == 1) ? '1' : '0'),
+ 'mod_blocks' => (($_REQUEST['mod_blocks'] == 1) ? '1' : '0'),
+ 'mod_search' => (($_REQUEST['mod_search'] == 1) ? '1' : '0'),
+ 'mod_comments' => (($_REQUEST['mod_comments'] == 1) ? '1' : '0'),
+ 'mod_notifications' => (($_REQUEST['mod_notifications'] == 1) ? '1' : '0'),
+ 'mod_permissions' => (($_REQUEST['mod_permissions'] == 1) ? '1' : '0'),
+ 'mod_inroot_copy' => (($_REQUEST['mod_inroot_copy'] == 1) ? '1' : '0'),
+ 'mod_donations' => $_POST['mod_donations'],
+ 'mod_subversion' => $_POST['mod_subversion'])
+ );
+
+ if ($tdmcreate->getHandler('modules')->insert($modulesObj)) {
+ if( $modulesObj->isNew() ) {
+ redirect_header('modules.php', 5, sprintf(_AM_TDMCREATE_MODULE_FORM_CREATED_OK, $_POST['mod_name']));
+ } else {
+ redirect_header('modules.php', 5, sprintf(_AM_TDMCREATE_MODULE_FORM_UPDATED_OK, $_POST['mod_name']));
+ }
+ }
+
+ $GLOBALS['xoopsTpl']->assign('error', $modulesObj->getHtmlErrors());
+ $form =& $modulesObj->getForm();
+ $GLOBALS['xoopsTpl']->assign('form', $form->render());
+ break;
+
+ case 'edit':
+ // Define main template
+ $template_main = 'tdmcreate_modules.tpl';
+ $GLOBALS['xoTheme']->addScript('modules/TDMCreate/assets/js/functions.js');
+ $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->addNavigation('modules.php'));
+ $adminMenu->addItemButton(_AM_TDMCREATE_ADD_MODULE, 'modules.php?op=new', 'add');
+ $adminMenu->addItemButton(_AM_TDMCREATE_MODULES_LIST, 'modules.php', 'list');
+ $GLOBALS['xoopsTpl']->assign('buttons', $adminMenu->renderButton());
+
+ $modulesObj = $tdmcreate->getHandler('modules')->get($mod_id);
+ $form = $modulesObj->getForm();
+ $GLOBALS['xoopsTpl']->assign('form', $form->render());
+ break;
+
+ case 'delete':
+ $modulesObj =& $tdmcreate->getHandler('modules')->get($mod_id);
+ if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) {
+ if ( !$GLOBALS['xoopsSecurity']->check() ) {
+ redirect_header('modules.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
+ }
+ if ($tdmcreate->getHandler('modules')->delete($modulesObj)) {
+ redirect_header('modules.php', 3, _AM_TDMCREATE_FORMDELOK);
+ } else {
+ $GLOBALS['xoopsTpl']->assign('error', $modulesObj->getHtmlErrors());
+ }
+ } else {
+ xoops_confirm(array('ok' => 1, 'mod_id' => $mod_id, 'op' => 'delete'), $_SERVER['REQUEST_URI'], sprintf(_AM_TDMCREATE_FORMSUREDEL, $modulesObj->getVar('mod_name')));
+ }
+ break;
+
+ case 'display':
+ $mod_admin = XoopsRequest::getInt('mod_admin');
+ $mod_user = XoopsRequest::getInt('mod_user');
+ $mod_search = XoopsRequest::getInt('mod_search');
+ $mod_comments = XoopsRequest::getInt('mod_comments');
+ $mod_notificat...
[truncated message content] |
|
From: <txm...@us...> - 2014-07-10 18:14:22
|
Revision: 12693
http://sourceforge.net/p/xoops/svn/12693
Author: txmodxoops
Date: 2014-07-10 18:14:17 +0000 (Thu, 10 Jul 2014)
Log Message:
-----------
- Fixed bugs
- Updated
- Still work to do
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/menu.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/architecture.php
XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/xoops_version.php
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/menu.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/menu.php 2014-07-09 18:25:13 UTC (rev 12692)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/admin/menu.php 2014-07-10 18:14:17 UTC (rev 12693)
@@ -130,7 +130,7 @@
$content .= <<<EOT
\$adminmenu[\$i]['title'] = {$language}{$menu};
\$adminmenu[\$i]['link'] = 'admin/{$tables[$t]->getVar('table_name')}.php';
-\$adminmenu[\$i]['icon'] = \$sysPathIcon32.'/{$tables[$t]->getVar('table_image')}';\n
+\$adminmenu[\$i]['icon'] = 'assets/images/icons/32/{$tables[$t]->getVar('table_image')}';\n
EOT;
//$content .= $this->getAdminMenuImagesPath($tables, $t);
$content .= <<<EOT
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-09 18:25:13 UTC (rev 12692)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/class/files/architecture.php 2014-07-10 18:14:17 UTC (rev 12693)
@@ -106,7 +106,7 @@
$stlModuleAuthor = str_replace(' ', '', strtolower($module->getVar('mod_author')));
// Creation of the Directory in repository
$targetDirectory = $this->uploadPath.'/repository/'. $stlModuleDirname;
- $uploadImagesFolder = $this->uploadPath.'/images/repository';
+ $uploadImagesRepository = $this->uploadPath.'/images/repository';
// Creation of "module" folder
$this->structure->getPath($targetDirectory);
// Creation of "module" folder
@@ -133,7 +133,7 @@
$this->structure->makeDirAndCopyFile('assets/images', $indexFile, 'index.html');
//Copy the logo of the module
$modImage = str_replace(' ', '', strtolower($module->getVar('mod_image')));
- $this->structure->copyFile('assets/images', $uploadImagesFolder.'/'.$modImage, $modImage);
+ $this->structure->copyFile('assets/images', $uploadImagesRepository.'/'.$modImage, $modImage);
// Creation of 'images/icons' folder and index.html file - Added in Version 1.15
$this->structure->makeDirAndCopyFile('assets/images/icons', $indexFile, 'index.html');
// Creation of "images/icons/16" folder and index.html file
@@ -141,7 +141,7 @@
// Creation of "images/icons/32" folder and index.html file
$this->structure->makeDirAndCopyFile('assets/images/icons/32', $indexFile, 'index.html');
// Copy of 'module_author_logo.gif' file in uploads dir
- $logoGifFrom = $uploadImagesFolder.'/'.$stlModuleAuthor.'_logo.gif';
+ $logoGifFrom = $uploadImagesRepository.'/'.$stlModuleAuthor.'_logo.gif';
if (!file_exists($logoGifFrom)) {
copy($logosFolder.'/'.$stlModuleAuthor.'_logo.gif', $logoGifFrom);
}
@@ -203,6 +203,7 @@
$modId = $module->getVar('mod_id');
$moduleDirname = $module->getVar('mod_dirname');
$uploadTablesIcons32 = $this->uploadPath.'/images/tables';
+ $framePathIcon32 = XOOPS_ROOT_PATH . '/Frameworks/moduleclasses/icons/32';
// Id of tables
$criteriaTables = new CriteriaCompo();
$criteriaTables->add(new Criteria('table_mid', $modId));
@@ -227,9 +228,11 @@
// Get Table Object
$table = $this->tdmcreate->getHandler('tables')->get($tableId);
// Copy of tables images file
- if( file_exists($uploadTableImage = $uploadTablesIcons32.'/'.$tableImage)) {
+ if( file_exists($uploadTableImage = $uploadTablesIcons32.'/'.$tableImage )) {
$this->structure->copyFile('assets/images/icons/32', $uploadTableImage, $tableImage);
- }
+ } elseif( file_exists($uploadTableImage = $framePathIcon32.'/'.$tableImage )) {
+ $this->structure->copyFile('assets/images/icons/32', $uploadTableImage, $tableImage);
+ }
// Creation of admin files
if ( $tableAdmin == 1) {
// Admin Pages File
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/xoops_version.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/xoops_version.php 2014-07-09 18:25:13 UTC (rev 12692)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/tdmcreate/xoops_version.php 2014-07-10 18:14:17 UTC (rev 12693)
@@ -21,7 +21,7 @@
if (!defined('XOOPS_ROOT_PATH')){ exit(); }
$dirname = basename( dirname( __FILE__ ) ) ;
-$modversion['name'] = "{$dirname}";
+$modversion['name'] = _MI_TDMCREATE_NAME;
$modversion['version'] = 1.91;
$modversion['description'] = _MI_TDMCREATE_DESC;
$modversion['author'] = "Xoops TDM";
|