@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | $GLOBALS['xoopsOption']['template_main'] = 'tdmcreate_settings.tpl'; |
| 26 | 26 | |
| 27 | -include __DIR__ . '/header.php'; |
|
| 27 | +include __DIR__.'/header.php'; |
|
| 28 | 28 | |
| 29 | 29 | // Recovered value of argument op in the URL $ |
| 30 | 30 | $op = \Xmf\Request::getString('op', 'list'); |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | $GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left')); |
| 46 | 46 | $GLOBALS['xoopsTpl']->assign('tdmc_upload_imgmod_url', TDMC_UPLOAD_IMGMOD_URL); |
| 47 | 47 | $GLOBALS['xoopsTpl']->assign('tdmc_url', TDMC_URL); |
| 48 | - $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL . '/' . $modPathIcon16); |
|
| 48 | + $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL.'/'.$modPathIcon16); |
|
| 49 | 49 | $GLOBALS['xoopsTpl']->assign('sysPathIcon32', $sysPathIcon32); |
| 50 | 50 | $settingsCount = $helper->getHandler('Settings')->getCountSettings(); |
| 51 | 51 | $settingsAll = $helper->getHandler('Settings')->getAllSettings($start, $limit); |
@@ -57,8 +57,8 @@ discard block |
||
| 57 | 57 | unset($setting); |
| 58 | 58 | } |
| 59 | 59 | if ($settingsCount > $limit) { |
| 60 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 61 | - $pagenav = new \XoopsPageNav($settingsCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
| 60 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
| 61 | + $pagenav = new \XoopsPageNav($settingsCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
| 62 | 62 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
| 63 | 63 | } |
| 64 | 64 | } else { |
@@ -187,4 +187,4 @@ discard block |
||
| 187 | 187 | } |
| 188 | 188 | break; |
| 189 | 189 | } |
| 190 | -include __DIR__ . '/footer.php'; |
|
| 190 | +include __DIR__.'/footer.php'; |
|
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * |
| 23 | 23 | * @version $Id: menu.php 11084 2013-02-23 15:44:20Z timgno $ |
| 24 | 24 | */ |
| 25 | -include dirname(__DIR__) . '/preloads/autoloader.php'; |
|
| 25 | +include dirname(__DIR__).'/preloads/autoloader.php'; |
|
| 26 | 26 | |
| 27 | 27 | $moduleDirName = basename(dirname(__DIR__)); |
| 28 | 28 | $moduleDirNameUpper = mb_strtoupper($moduleDirName); |
@@ -46,62 +46,62 @@ discard block |
||
| 46 | 46 | $adminmenu[] = [ |
| 47 | 47 | 'title' => _MI_TDMCREATE_ADMENU1, |
| 48 | 48 | 'link' => 'admin/index.php', |
| 49 | - 'icon' => $pathIcon32 . '/dashboard.png', |
|
| 49 | + 'icon' => $pathIcon32.'/dashboard.png', |
|
| 50 | 50 | ]; |
| 51 | 51 | |
| 52 | 52 | $adminmenu[] = [ |
| 53 | 53 | 'title' => _MI_TDMCREATE_ADMENU2, |
| 54 | 54 | 'link' => 'admin/settings.php', |
| 55 | - 'icon' => $modPathIcon32 . '/settings.png', |
|
| 55 | + 'icon' => $modPathIcon32.'/settings.png', |
|
| 56 | 56 | ]; |
| 57 | 57 | |
| 58 | 58 | $adminmenu[] = [ |
| 59 | 59 | 'title' => _MI_TDMCREATE_ADMENU3, |
| 60 | 60 | 'link' => 'admin/modules.php', |
| 61 | - 'icon' => $modPathIcon32 . '/addmodule.png', |
|
| 61 | + 'icon' => $modPathIcon32.'/addmodule.png', |
|
| 62 | 62 | ]; |
| 63 | 63 | |
| 64 | 64 | $adminmenu[] = [ |
| 65 | 65 | 'title' => _MI_TDMCREATE_ADMENU4, |
| 66 | 66 | 'link' => 'admin/tables.php', |
| 67 | - 'icon' => $modPathIcon32 . '/addtable.png', |
|
| 67 | + 'icon' => $modPathIcon32.'/addtable.png', |
|
| 68 | 68 | ]; |
| 69 | 69 | |
| 70 | 70 | $adminmenu[] = [ |
| 71 | 71 | 'title' => _MI_TDMCREATE_ADMENU5, |
| 72 | 72 | 'link' => 'admin/fields.php', |
| 73 | - 'icon' => $modPathIcon32 . '/fields.png', |
|
| 73 | + 'icon' => $modPathIcon32.'/fields.png', |
|
| 74 | 74 | ]; |
| 75 | 75 | |
| 76 | 76 | $adminmenu[] = [ |
| 77 | 77 | 'title' => _MI_TDMCREATE_ADMENU6, |
| 78 | 78 | 'link' => 'admin/morefiles.php', |
| 79 | - 'icon' => $modPathIcon32 . '/files.png', |
|
| 79 | + 'icon' => $modPathIcon32.'/files.png', |
|
| 80 | 80 | ]; |
| 81 | 81 | |
| 82 | 82 | $adminmenu[] = [ |
| 83 | 83 | 'title' => _MI_TDMCREATE_ADMENU7, |
| 84 | 84 | 'link' => 'admin/building.php', |
| 85 | - 'icon' => $modPathIcon32 . '/builder.png', |
|
| 85 | + 'icon' => $modPathIcon32.'/builder.png', |
|
| 86 | 86 | ]; |
| 87 | 87 | |
| 88 | 88 | //Feedback |
| 89 | 89 | $adminmenu[] = [ |
| 90 | - 'title' => constant('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_FEEDBACK'), |
|
| 90 | + 'title' => constant('CO_'.$moduleDirNameUpper.'_'.'ADMENU_FEEDBACK'), |
|
| 91 | 91 | 'link' => 'admin/feedback.php', |
| 92 | - 'icon' => $pathIcon32 . 'mail_foward.png', |
|
| 92 | + 'icon' => $pathIcon32.'mail_foward.png', |
|
| 93 | 93 | ]; |
| 94 | 94 | |
| 95 | 95 | if ($helper->getConfig('displayDeveloperTools')) { |
| 96 | 96 | $adminmenu[] = [ |
| 97 | - 'title' => constant('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_MIGRATE'), |
|
| 97 | + 'title' => constant('CO_'.$moduleDirNameUpper.'_'.'ADMENU_MIGRATE'), |
|
| 98 | 98 | 'link' => 'admin/migrate.php', |
| 99 | - 'icon' => $pathIcon32 . 'database_go.png', |
|
| 99 | + 'icon' => $pathIcon32.'database_go.png', |
|
| 100 | 100 | ]; |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | $adminmenu[] = [ |
| 104 | 104 | 'title' => _MI_TDMCREATE_ABOUT, |
| 105 | 105 | 'link' => 'admin/about.php', |
| 106 | - 'icon' => $pathIcon32 . 'about.png', |
|
| 106 | + 'icon' => $pathIcon32.'about.png', |
|
| 107 | 107 | ]; |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | $GLOBALS['xoopsOption']['template_main'] = 'tdmcreate_index.tpl'; |
| 26 | 26 | |
| 27 | -include __DIR__ . '/header.php'; |
|
| 27 | +include __DIR__.'/header.php'; |
|
| 28 | 28 | $countSettings = $helper->getHandler('Settings')->getCount(); |
| 29 | 29 | $countModules = $helper->getHandler('Modules')->getCount(); |
| 30 | 30 | $countTables = $helper->getHandler('Tables')->getCount(); |
@@ -34,11 +34,11 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | //$templateMain = 'tdmcreate_index.tpl'; |
| 36 | 36 | $adminObject->addInfoBox(_AM_TDMCREATE_ADMIN_NUMMODULES); |
| 37 | -$adminObject->addInfoBoxLine(sprintf('<label>' . _AM_TDMCREATE_THEREARE_NUMSETTINGS . '</label>', $countSettings), 'Blue'); |
|
| 38 | -$adminObject->addInfoBoxLine(sprintf('<label>' . _AM_TDMCREATE_THEREARE_NUMMODULES . '</label>', $countModules), 'Green'); |
|
| 39 | -$adminObject->addInfoBoxLine(sprintf('<label>' . _AM_TDMCREATE_THEREARE_NUMTABLES . '</label>', $countTables), 'Orange'); |
|
| 40 | -$adminObject->addInfoBoxLine(sprintf('<label>' . _AM_TDMCREATE_THEREARE_NUMFIELDS . '</label>', $countFields), 'Gray'); |
|
| 41 | -$adminObject->addInfoBoxLine(sprintf('<label>' . _AM_TDMCREATE_THEREARE_NUMFILES . '</label>', $countFiles), 'Red'); |
|
| 37 | +$adminObject->addInfoBoxLine(sprintf('<label>'._AM_TDMCREATE_THEREARE_NUMSETTINGS.'</label>', $countSettings), 'Blue'); |
|
| 38 | +$adminObject->addInfoBoxLine(sprintf('<label>'._AM_TDMCREATE_THEREARE_NUMMODULES.'</label>', $countModules), 'Green'); |
|
| 39 | +$adminObject->addInfoBoxLine(sprintf('<label>'._AM_TDMCREATE_THEREARE_NUMTABLES.'</label>', $countTables), 'Orange'); |
|
| 40 | +$adminObject->addInfoBoxLine(sprintf('<label>'._AM_TDMCREATE_THEREARE_NUMFIELDS.'</label>', $countFields), 'Gray'); |
|
| 41 | +$adminObject->addInfoBoxLine(sprintf('<label>'._AM_TDMCREATE_THEREARE_NUMFILES.'</label>', $countFiles), 'Red'); |
|
| 42 | 42 | // Upload Folders |
| 43 | 43 | $folder = [ |
| 44 | 44 | TDMC_UPLOAD_PATH, |
@@ -56,4 +56,4 @@ discard block |
||
| 56 | 56 | $GLOBALS['xoopsTpl']->assign('navigation', $adminObject->displayNavigation('index.php')); |
| 57 | 57 | $GLOBALS['xoopsTpl']->assign('index', $adminObject->displayIndex()); |
| 58 | 58 | |
| 59 | -include __DIR__ . '/footer.php'; |
|
| 59 | +include __DIR__.'/footer.php'; |
|
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | * |
| 24 | 24 | * @version $Id: 1.59 logo.php 11297 2013-03-24 10:58:10Z timgno $ |
| 25 | 25 | */ |
| 26 | -include __DIR__ . '/header.php'; |
|
| 26 | +include __DIR__.'/header.php'; |
|
| 27 | 27 | $funct = \Xmf\Request::getString('funct', '', 'GET'); |
| 28 | 28 | $iconName = \Xmf\Request::getString('iconName', '', 'GET'); |
| 29 | 29 | $caption = \Xmf\Request::getString('caption', '', 'GET'); |
@@ -24,6 +24,6 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | $pathIcon32 = Xmf\Module\Admin::iconUrl('', 32); |
| 26 | 26 | |
| 27 | -echo "<div class='adminfooter'>\n" . " <div style='text-align: center;'>\n" . " <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" . " </div>\n" . ' ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . '</div>'; |
|
| 27 | +echo "<div class='adminfooter'>\n"." <div style='text-align: center;'>\n"." <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"." </div>\n".' '._AM_MODULEADMIN_ADMIN_FOOTER."\n".'</div>'; |
|
| 28 | 28 | |
| 29 | 29 | xoops_cp_footer(); |
@@ -34,14 +34,14 @@ |
||
| 34 | 34 | $donationform = [ |
| 35 | 35 | 0 => '<form name="donation" id="donation" action="http://www.txmodxoops.org/modules/xdonations/" method="post" onsubmit="return xoopsFormValidate_donation();">', |
| 36 | 36 | 1 => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">' |
| 37 | - . _AM_TDMCREATE_ABOUT_MAKE_DONATION |
|
| 38 | - . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">' |
|
| 39 | - . _AM_TDMCREATE_DONATION_AMOUNT |
|
| 40 | - . '</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="' |
|
| 41 | - . _SUBMIT |
|
| 42 | - . '" title="' |
|
| 43 | - . _SUBMIT |
|
| 44 | - . '" type="submit"></td></tr></tbody></table>', |
|
| 37 | + . _AM_TDMCREATE_ABOUT_MAKE_DONATION |
|
| 38 | + . '</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">' |
|
| 39 | + . _AM_TDMCREATE_DONATION_AMOUNT |
|
| 40 | + . '</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="' |
|
| 41 | + . _SUBMIT |
|
| 42 | + . '" title="' |
|
| 43 | + . _SUBMIT |
|
| 44 | + . '" type="submit"></td></tr></tbody></table>', |
|
| 45 | 45 | 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>', |
| 46 | 46 | 'D' => '', |
| 47 | 47 | 3 => '', |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | //--></script> |
| 55 | 55 | <!-- End Form Validation JavaScript //-->', |
| 56 | 56 | ]; |
| 57 | - $paypalform = [ |
|
| 57 | + $paypalform = [ |
|
| 58 | 58 | 0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">', |
| 59 | 59 | 1 => '<input name="cmd" value="_s-xclick" type="hidden">', |
| 60 | 60 | 2 => '<input name="hosted_button_id" value="%s" type="hidden">', |
@@ -67,11 +67,11 @@ discard block |
||
| 67 | 67 | case 2: |
| 68 | 68 | $donationform[$key] = sprintf( |
| 69 | 69 | $donationform[$key], |
| 70 | - $GLOBALS['xoopsConfig']['sitename'] . ' - ' . ('' != $GLOBALS['xoopsUser']->getVar('name') ? $GLOBALS['xoopsUser']->getVar('name') . ' [' . $GLOBALS['xoopsUser']->getVar('uname') . ']' : $GLOBALS['xoopsUser']->getVar('uname')), |
|
| 70 | + $GLOBALS['xoopsConfig']['sitename'].' - '.('' != $GLOBALS['xoopsUser']->getVar('name') ? $GLOBALS['xoopsUser']->getVar('name').' ['.$GLOBALS['xoopsUser']->getVar('uname').']' : $GLOBALS['xoopsUser']->getVar('uname')), |
|
| 71 | 71 | $GLOBALS['xoopsUser']->getVar('email'), |
| 72 | 72 | XOOPS_LICENSE_KEY, |
| 73 | 73 | mb_strtoupper($GLOBALS['xoopsModule']->getVar('dirname')), |
| 74 | - mb_strtoupper($GLOBALS['xoopsModule']->getVar('dirname')) . ' ' . $GLOBALS['xoopsModule']->getVar('name') |
|
| 74 | + mb_strtoupper($GLOBALS['xoopsModule']->getVar('dirname')).' '.$GLOBALS['xoopsModule']->getVar('name') |
|
| 75 | 75 | ); |
| 76 | 76 | break; |
| 77 | 77 | } |
@@ -21,60 +21,60 @@ |
||
| 21 | 21 | * |
| 22 | 22 | * @version $Id: install.php 11084 2013-02-23 15:44:20Z timgno $ |
| 23 | 23 | */ |
| 24 | -$indexFile = XOOPS_UPLOAD_PATH . '/index.html'; |
|
| 25 | -$blankFile = XOOPS_UPLOAD_PATH . '/blank.gif'; |
|
| 26 | -$emptyFile = XOOPS_ROOT_PATH . '/modules/tdmcreate/assets/images/logos/empty.png'; |
|
| 24 | +$indexFile = XOOPS_UPLOAD_PATH.'/index.html'; |
|
| 25 | +$blankFile = XOOPS_UPLOAD_PATH.'/blank.gif'; |
|
| 26 | +$emptyFile = XOOPS_ROOT_PATH.'/modules/tdmcreate/assets/images/logos/empty.png'; |
|
| 27 | 27 | |
| 28 | 28 | // Making of "uploads" folder |
| 29 | -$helper = XOOPS_UPLOAD_PATH . '/tdmcreate'; |
|
| 29 | +$helper = XOOPS_UPLOAD_PATH.'/tdmcreate'; |
|
| 30 | 30 | if (!is_dir($helper)) { |
| 31 | 31 | if (!mkdir($helper, 0777) && !is_dir($helper)) { |
| 32 | 32 | throw new \RuntimeException(sprintf('Directory "%s" was not created', $helper)); |
| 33 | 33 | } |
| 34 | 34 | } |
| 35 | 35 | chmod($helper, 0777); |
| 36 | -copy($indexFile, $helper . '/index.html'); |
|
| 36 | +copy($indexFile, $helper.'/index.html'); |
|
| 37 | 37 | |
| 38 | 38 | // Making of images uploads folder |
| 39 | -$repository = $helper . '/repository'; |
|
| 39 | +$repository = $helper.'/repository'; |
|
| 40 | 40 | if (!is_dir($repository)) { |
| 41 | 41 | if (!mkdir($repository, 0777) && !is_dir($repository)) { |
| 42 | 42 | throw new \RuntimeException(sprintf('Directory "%s" was not created', $repository)); |
| 43 | 43 | } |
| 44 | 44 | } |
| 45 | 45 | chmod($repository, 0777); |
| 46 | -copy($indexFile, $repository . '/index.html'); |
|
| 46 | +copy($indexFile, $repository.'/index.html'); |
|
| 47 | 47 | |
| 48 | 48 | // Making of images uploads folder |
| 49 | -$images = $helper . '/images'; |
|
| 49 | +$images = $helper.'/images'; |
|
| 50 | 50 | if (!is_dir($images)) { |
| 51 | 51 | if (!mkdir($images, 0777) && !is_dir($images)) { |
| 52 | 52 | throw new \RuntimeException(sprintf('Directory "%s" was not created', $images)); |
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | chmod($images, 0777); |
| 56 | -copy($indexFile, $images . '/index.html'); |
|
| 57 | -copy($blankFile, $images . '/blank.gif'); |
|
| 56 | +copy($indexFile, $images.'/index.html'); |
|
| 57 | +copy($blankFile, $images.'/blank.gif'); |
|
| 58 | 58 | |
| 59 | 59 | // Making of "modules" images folder |
| 60 | -$modules = $images . '/modules'; |
|
| 60 | +$modules = $images.'/modules'; |
|
| 61 | 61 | if (!is_dir($modules)) { |
| 62 | 62 | if (!mkdir($modules, 0777) && !is_dir($modules)) { |
| 63 | 63 | throw new \RuntimeException(sprintf('Directory "%s" was not created', $modules)); |
| 64 | 64 | } |
| 65 | 65 | } |
| 66 | 66 | chmod($modules, 0777); |
| 67 | -copy($indexFile, $modules . '/index.html'); |
|
| 68 | -copy($blankFile, $modules . '/blank.gif'); |
|
| 69 | -copy($emptyFile, $modules . '/empty.png'); |
|
| 67 | +copy($indexFile, $modules.'/index.html'); |
|
| 68 | +copy($blankFile, $modules.'/blank.gif'); |
|
| 69 | +copy($emptyFile, $modules.'/empty.png'); |
|
| 70 | 70 | |
| 71 | 71 | // Making of "tables" images folder |
| 72 | -$tables = $images . '/tables'; |
|
| 72 | +$tables = $images.'/tables'; |
|
| 73 | 73 | if (!is_dir($tables)) { |
| 74 | 74 | if (!mkdir($tables, 0777) && !is_dir($tables)) { |
| 75 | 75 | throw new \RuntimeException(sprintf('Directory "%s" was not created', $tables)); |
| 76 | 76 | } |
| 77 | 77 | } |
| 78 | 78 | chmod($tables, 0777); |
| 79 | -copy($indexFile, $tables . '/index.html'); |
|
| 80 | -copy($blankFile, $tables . '/blank.gif'); |
|
| 79 | +copy($indexFile, $tables.'/index.html'); |
|
| 80 | +copy($blankFile, $tables.'/blank.gif'); |
|
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | { |
| 58 | 58 | global $xoopsDB; |
| 59 | 59 | $result = $xoopsDB->query( |
| 60 | - 'SELECT t1.tpl_id FROM ' . $xoopsDB->prefix('tplfile') . ' t1, ' . $xoopsDB->prefix('tplfile') . ' t2 WHERE t1.tpl_refid = t2.tpl_refid AND t1.tpl_module = t2.tpl_module AND t1.tpl_tplset=t2.tpl_tplset AND t1.tpl_file = t2.tpl_file AND t1.tpl_type = t2.tpl_type AND t1.tpl_id > t2.tpl_id' |
|
| 60 | + 'SELECT t1.tpl_id FROM '.$xoopsDB->prefix('tplfile').' t1, '.$xoopsDB->prefix('tplfile').' t2 WHERE t1.tpl_refid = t2.tpl_refid AND t1.tpl_module = t2.tpl_module AND t1.tpl_tplset=t2.tpl_tplset AND t1.tpl_file = t2.tpl_file AND t1.tpl_type = t2.tpl_type AND t1.tpl_id > t2.tpl_id' |
|
| 61 | 61 | ); |
| 62 | 62 | $tplids = []; |
| 63 | 63 | while (list($tplid) = $xoopsDB->fetchRow($result)) { |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | if (count($tplids) > 0) { |
| 67 | 67 | $tplfileHandler = xoops_getHandler('tplfile'); |
| 68 | 68 | $duplicate_files = $tplfileHandler->getObjects( |
| 69 | - new \Criteria('tpl_id', '(' . implode(',', $tplids) . ')', 'IN') |
|
| 69 | + new \Criteria('tpl_id', '('.implode(',', $tplids).')', 'IN') |
|
| 70 | 70 | ); |
| 71 | 71 | |
| 72 | 72 | if (count($duplicate_files) > 0) { |
@@ -75,9 +75,9 @@ discard block |
||
| 75 | 75 | } |
| 76 | 76 | } |
| 77 | 77 | } |
| 78 | - $sql = 'SHOW INDEX FROM ' . $xoopsDB->prefix('tplfile') . " WHERE KEY_NAME = 'tpl_refid_module_set_file_type'"; |
|
| 78 | + $sql = 'SHOW INDEX FROM '.$xoopsDB->prefix('tplfile')." WHERE KEY_NAME = 'tpl_refid_module_set_file_type'"; |
|
| 79 | 79 | if (!$result = $xoopsDB->queryF($sql)) { |
| 80 | - xoops_error($this->db->error() . '<br />' . $sql); |
|
| 80 | + xoops_error($this->db->error().'<br />'.$sql); |
|
| 81 | 81 | |
| 82 | 82 | return false; |
| 83 | 83 | } |
@@ -92,9 +92,9 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | return true; |
| 94 | 94 | } |
| 95 | - $sql = 'ALTER TABLE ' . $xoopsDB->prefix('tplfile') . ' ADD UNIQUE tpl_refid_module_set_file_type ( tpl_refid, tpl_module, tpl_tplset, tpl_file, tpl_type )'; |
|
| 95 | + $sql = 'ALTER TABLE '.$xoopsDB->prefix('tplfile').' ADD UNIQUE tpl_refid_module_set_file_type ( tpl_refid, tpl_module, tpl_tplset, tpl_file, tpl_type )'; |
|
| 96 | 96 | if (!$result = $xoopsDB->queryF($sql)) { |
| 97 | - xoops_error($xoopsDB->error() . '<br />' . $sql); |
|
| 97 | + xoops_error($xoopsDB->error().'<br />'.$sql); |
|
| 98 | 98 | $module->setErrors( |
| 99 | 99 | "'tpl_refid_module_set_file_type' unique index is not added to 'tplfile' table. Warning: do not use XOOPS until you add this unique index." |
| 100 | 100 | ); |
@@ -6,17 +6,17 @@ |
||
| 6 | 6 | $moduleDirName = basename(dirname(__DIR__)); |
| 7 | 7 | |
| 8 | 8 | return (object)[ |
| 9 | - 'name' => mb_strtoupper($moduleDirName) . ' IconConfigurator', |
|
| 9 | + 'name' => mb_strtoupper($moduleDirName).' IconConfigurator', |
|
| 10 | 10 | 'icons' => [ |
| 11 | - 'edit' => "<img src='" . $pathIcon16 . "/edit.png' alt=" . _EDIT . "' align='middle'>", |
|
| 12 | - 'delete' => "<img src='" . $pathIcon16 . "/delete.png' alt='" . _DELETE . "' align='middle'>", |
|
| 13 | - 'clone' => "<img src='" . $pathIcon16 . "/editcopy.png' alt='" . _CLONE . "' align='middle'>", |
|
| 14 | - 'preview' => "<img src='" . $pathIcon16 . "/view.png' alt='" . _PREVIEW . "' align='middle'>", |
|
| 15 | - 'print' => "<img src='" . $pathIcon16 . "/printer.png' alt='" . _CLONE . "' align='middle'>", |
|
| 16 | - 'pdf' => "<img src='" . $pathIcon16 . "/pdf.png' alt='" . _CLONE . "' align='middle'>", |
|
| 17 | - 'add' => "<img src='" . $pathIcon16 . "/add.png' alt='" . _ADD . "' align='middle'>", |
|
| 18 | - '0' => "<img src='" . $pathIcon16 . "/0.png' alt='" . 0 . "' align='middle'>", |
|
| 19 | - '1' => "<img src='" . $pathIcon16 . "/1.png' alt='" . 1 . "' align='middle'>", |
|
| 11 | + 'edit' => "<img src='".$pathIcon16."/edit.png' alt="._EDIT."' align='middle'>", |
|
| 12 | + 'delete' => "<img src='".$pathIcon16."/delete.png' alt='"._DELETE."' align='middle'>", |
|
| 13 | + 'clone' => "<img src='".$pathIcon16."/editcopy.png' alt='"._CLONE."' align='middle'>", |
|
| 14 | + 'preview' => "<img src='".$pathIcon16."/view.png' alt='"._PREVIEW."' align='middle'>", |
|
| 15 | + 'print' => "<img src='".$pathIcon16."/printer.png' alt='"._CLONE."' align='middle'>", |
|
| 16 | + 'pdf' => "<img src='".$pathIcon16."/pdf.png' alt='"._CLONE."' align='middle'>", |
|
| 17 | + 'add' => "<img src='".$pathIcon16."/add.png' alt='"._ADD."' align='middle'>", |
|
| 18 | + '0' => "<img src='".$pathIcon16."/0.png' alt='".0."' align='middle'>", |
|
| 19 | + '1' => "<img src='".$pathIcon16."/1.png' alt='".1."' align='middle'>", |
|
| 20 | 20 | ], |
| 21 | 21 | ]; |
| 22 | 22 | } |