@@ -189,14 +189,14 @@ |
||
| 189 | 189 | $donationform = [ |
| 190 | 190 | 0 => '<form name="donation" id="donation" action="http://www.txmodxoops.org/modules/xdonations/" method="post" onsubmit="return xoopsFormValidate_donation();">', |
| 191 | 191 | 1 => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">' |
| 192 | - . _AM_TDMCREATE_ABOUT_MAKE_DONATION |
|
| 193 | - . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">' |
|
| 194 | - . _AM_TDMCREATE_DONATION_AMOUNT |
|
| 195 | - . '</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 EUR</option><option value="10">10.00 EUR</option><option value="20">20.00 EUR</option><option value="40">40.00 EUR</option><option value="60">60.00 EUR</option><option value="80">80.00 EUR</option><option value="90">90.00 EUR</option><option value="100">100.00 EUR</option><option value="200">200.00 EUR</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="' |
|
| 196 | - . _SUBMIT |
|
| 197 | - . '" title="' |
|
| 198 | - . _SUBMIT |
|
| 199 | - . '" type="submit"></td></tr></tbody></table>', |
|
| 192 | + . _AM_TDMCREATE_ABOUT_MAKE_DONATION |
|
| 193 | + . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">' |
|
| 194 | + . _AM_TDMCREATE_DONATION_AMOUNT |
|
| 195 | + . '</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 EUR</option><option value="10">10.00 EUR</option><option value="20">20.00 EUR</option><option value="40">40.00 EUR</option><option value="60">60.00 EUR</option><option value="80">80.00 EUR</option><option value="90">90.00 EUR</option><option value="100">100.00 EUR</option><option value="200">200.00 EUR</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="' |
|
| 196 | + . _SUBMIT |
|
| 197 | + . '" title="' |
|
| 198 | + . _SUBMIT |
|
| 199 | + . '" type="submit"></td></tr></tbody></table>', |
|
| 200 | 200 | 2 => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="EUR" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.txmodxoops.org/modules/xdonations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.txmodxoops.org/modules/xdonations/success.php" type="hidden"></form>', |
| 201 | 201 | 'D' => '', |
| 202 | 202 | 3 => '', |
@@ -33,14 +33,14 @@ |
||
| 33 | 33 | $donationform = [ |
| 34 | 34 | 0 => '<form name="donation" id="donation" action="http://www.txmodxoops.org/modules/xdonations/" method="post" onsubmit="return xoopsFormValidate_donation();">', |
| 35 | 35 | 1 => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">' |
| 36 | - . _AM_TDMCREATE_ABOUT_MAKE_DONATION |
|
| 37 | - . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">' |
|
| 38 | - . _AM_TDMCREATE_DONATION_AMOUNT |
|
| 39 | - . '</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 EUR</option><option value="10">10.00 EUR</option><option value="20">20.00 EUR</option><option value="40">40.00 EUR</option><option value="60">60.00 EUR</option><option value="80">80.00 EUR</option><option value="90">90.00 EUR</option><option value="100">100.00 EUR</option><option value="200">200.00 EUR</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="' |
|
| 40 | - . _SUBMIT |
|
| 41 | - . '" title="' |
|
| 42 | - . _SUBMIT |
|
| 43 | - . '" type="submit"></td></tr></tbody></table>', |
|
| 36 | + . _AM_TDMCREATE_ABOUT_MAKE_DONATION |
|
| 37 | + . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">' |
|
| 38 | + . _AM_TDMCREATE_DONATION_AMOUNT |
|
| 39 | + . '</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 EUR</option><option value="10">10.00 EUR</option><option value="20">20.00 EUR</option><option value="40">40.00 EUR</option><option value="60">60.00 EUR</option><option value="80">80.00 EUR</option><option value="90">90.00 EUR</option><option value="100">100.00 EUR</option><option value="200">200.00 EUR</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="' |
|
| 40 | + . _SUBMIT |
|
| 41 | + . '" title="' |
|
| 42 | + . _SUBMIT |
|
| 43 | + . '" type="submit"></td></tr></tbody></table>', |
|
| 44 | 44 | 2 => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="EUR" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.txmodxoops.org/modules/xdonations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.txmodxoops.org/modules/xdonations/success.php" type="hidden"></form>', |
| 45 | 45 | 'D' => '', |
| 46 | 46 | 3 => '', |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | |
| 97 | 97 | $languageFolder = __DIR__ . '/' . $xoopsConfig['language']; |
| 98 | 98 | if (!file_exists($languageFolder . '/')) { |
| 99 | - Utility::createFolder($languageFolder . '/'); |
|
| 99 | + Utility::createFolder($languageFolder . '/'); |
|
| 100 | 100 | } |
| 101 | 101 | $exportFolder = $languageFolder . '/Exports-' . date('Y-m-d-H-i-s') . '/'; |
| 102 | 102 | Utility::createFolder($exportFolder); |
@@ -119,8 +119,7 @@ |
||
| 119 | 119 | // $migrate->saveCurrentSchema(); |
| 120 | 120 | // |
| 121 | 121 | // redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS')); |
| 122 | - } |
|
| 123 | - catch (\Exception $e) { |
|
| 122 | + } catch (\Exception $e) { |
|
| 124 | 123 | exit(constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR')); |
| 125 | 124 | } |
| 126 | 125 | |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | } |
| 83 | 83 | unset($build); |
| 84 | 84 | // Directory to saved all files |
| 85 | - $building_directory = sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY, $moduleDirname); |
|
| 85 | + $building_directory = sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY, $moduleDirname); |
|
| 86 | 86 | |
| 87 | 87 | // Copy this module in root modules |
| 88 | 88 | if (1 === $inroot_copy) { |
@@ -97,9 +97,9 @@ discard block |
||
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | 99 | $building->copyDir($fromDir, $toDir); |
| 100 | - $building_directory .= sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY_INROOT, $toDir); |
|
| 100 | + $building_directory .= sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY_INROOT, $toDir); |
|
| 101 | 101 | } |
| 102 | - $GLOBALS['xoopsTpl']->assign('building_directory', $building_directory); |
|
| 102 | + $GLOBALS['xoopsTpl']->assign('building_directory', $building_directory); |
|
| 103 | 103 | break; |
| 104 | 104 | case 'default': |
| 105 | 105 | default: |