@@ -18,11 +18,11 @@ discard block |
||
| 18 | 18 | use Xmf\Request; |
| 19 | 19 | use XoopsModules\Extgallery; |
| 20 | 20 | |
| 21 | -include __DIR__ . '/header.php'; |
|
| 21 | +include __DIR__.'/header.php'; |
|
| 22 | 22 | //require_once XOOPS_ROOT_PATH . '/modules/extgallery/class/publicPerm.php'; |
| 23 | 23 | |
| 24 | 24 | $GLOBALS['xoopsOption']['template_main'] = 'extgallery_public-userphoto.tpl'; |
| 25 | -include XOOPS_ROOT_PATH . '/header.php'; |
|
| 25 | +include XOOPS_ROOT_PATH.'/header.php'; |
|
| 26 | 26 | |
| 27 | 27 | /** @var Extgallery\Helper $helper */ |
| 28 | 28 | $helper = Extgallery\Helper::getInstance(); |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | // Don't update counter if user come from rating page |
| 56 | -if (null !== Request::getString('HTTP_REFERER', '', 'SERVER') && basename(Request::getString('HTTP_REFERER', '', 'SERVER')) != 'public-rating.php?photoId=' . $photoId) { |
|
| 56 | +if (null !== Request::getString('HTTP_REFERER', '', 'SERVER') && basename(Request::getString('HTTP_REFERER', '', 'SERVER')) != 'public-rating.php?photoId='.$photoId) { |
|
| 57 | 57 | $photoHandler->updateHits($photoId); |
| 58 | 58 | } |
| 59 | 59 | |
@@ -83,15 +83,15 @@ discard block |
||
| 83 | 83 | $xoopsTpl->assign('currentPhoto', $currentPhotoPlace + 1); |
| 84 | 84 | $xoopsTpl->assign('totalPhoto', $nbPhoto); |
| 85 | 85 | |
| 86 | -$albumName = $photo['user']['uname'] . _MD_EXTGALLERY_USERS_SUB_PHOTO_ALBUM; |
|
| 87 | -$xoopsTpl->assign('xoops_pagetitle', $photo['photo_title'] . ' - ' . $albumName); |
|
| 88 | -$xoTheme->addMeta('meta', 'description', $photo['photo_title'] . ' - ' . $albumName); |
|
| 86 | +$albumName = $photo['user']['uname']._MD_EXTGALLERY_USERS_SUB_PHOTO_ALBUM; |
|
| 87 | +$xoopsTpl->assign('xoops_pagetitle', $photo['photo_title'].' - '.$albumName); |
|
| 88 | +$xoTheme->addMeta('meta', 'description', $photo['photo_title'].' - '.$albumName); |
|
| 89 | 89 | |
| 90 | 90 | $rel = 'alternate'; |
| 91 | 91 | $attributes['rel'] = $rel; |
| 92 | 92 | $attributes['type'] = 'application/rss+xml'; |
| 93 | 93 | $attributes['title'] = _MD_EXTGALLERY_RSS; |
| 94 | -$attributes['href'] = XOOPS_URL . '/modules/extgallery/public-rss.php'; |
|
| 94 | +$attributes['href'] = XOOPS_URL.'/modules/extgallery/public-rss.php'; |
|
| 95 | 95 | $xoTheme->addMeta('link', $rel, $attributes); |
| 96 | 96 | $xoTheme->addStylesheet('modules/extgallery/assets/css/style.css'); |
| 97 | 97 | |
@@ -164,12 +164,12 @@ discard block |
||
| 164 | 164 | |
| 165 | 165 | // For xoops tag |
| 166 | 166 | if ((1 == $helper->getConfig('usetag')) && is_dir('../tag')) { |
| 167 | - require_once XOOPS_ROOT_PATH . '/modules/tag/include/tagbar.php'; |
|
| 167 | + require_once XOOPS_ROOT_PATH.'/modules/tag/include/tagbar.php'; |
|
| 168 | 168 | $xoopsTpl->assign('tagbar', tagBar($photo['photo_id'], $catid = 0)); |
| 169 | 169 | $xoopsTpl->assign('tags', true); |
| 170 | 170 | } else { |
| 171 | 171 | $xoopsTpl->assign('tags', false); |
| 172 | 172 | } |
| 173 | 173 | |
| 174 | -include XOOPS_ROOT_PATH . '/include/comment_view.php'; |
|
| 175 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
| 174 | +include XOOPS_ROOT_PATH.'/include/comment_view.php'; |
|
| 175 | +include XOOPS_ROOT_PATH.'/footer.php'; |
|
@@ -17,5 +17,5 @@ |
||
| 17 | 17 | * @author XOOPS Development Team, |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | -include dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
| 21 | -require_once XOOPS_ROOT_PATH . '/include/comment_post.php'; |
|
| 20 | +include dirname(dirname(__DIR__)).'/mainfile.php'; |
|
| 21 | +require_once XOOPS_ROOT_PATH.'/include/comment_post.php'; |
|
@@ -17,9 +17,9 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | use XoopsModules\Extgallery; |
| 19 | 19 | |
| 20 | -include __DIR__ . '/header.php'; |
|
| 20 | +include __DIR__.'/header.php'; |
|
| 21 | 21 | //require_once XOOPS_ROOT_PATH . '/modules/extgallery/class/publicPerm.php'; |
| 22 | -require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 22 | +require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
| 23 | 23 | //require_once __DIR__ . '/class/Utility.php'; |
| 24 | 24 | |
| 25 | 25 | if (isset($_POST['step'])) { |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | if (2 == $result) { |
| 47 | 47 | redirect_header('public-upload.php', 3, _MD_EXTGALLERY_NOT_AN_ALBUM); |
| 48 | 48 | } elseif (4 == $result || 5 == $result) { |
| 49 | - redirect_header('public-upload.php', 3, _MD_EXTGALLERY_UPLOAD_ERROR . ' :<br>' . $photoHandler->photoUploader->getError()); |
|
| 49 | + redirect_header('public-upload.php', 3, _MD_EXTGALLERY_UPLOAD_ERROR.' :<br>'.$photoHandler->photoUploader->getError()); |
|
| 50 | 50 | } elseif (0 == $result) { |
| 51 | 51 | redirect_header('public-upload.php', 3, _MD_EXTGALLERY_PHOTO_UPLOADED); |
| 52 | 52 | } elseif (1 == $result) { |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | case 'default': |
| 59 | 59 | default: |
| 60 | 60 | |
| 61 | - require_once XOOPS_ROOT_PATH . '/header.php'; |
|
| 61 | + require_once XOOPS_ROOT_PATH.'/header.php'; |
|
| 62 | 62 | |
| 63 | 63 | $catHandler = Extgallery\Helper::getInstance()->getHandler('PublicCategory'); |
| 64 | 64 | |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | // For xoops tag |
| 80 | 80 | if ((1 == $helper->getConfig('usetag')) && is_dir('../tag')) { |
| 81 | - require_once XOOPS_ROOT_PATH . '/modules/tag/include/formtag.php'; |
|
| 81 | + require_once XOOPS_ROOT_PATH.'/modules/tag/include/formtag.php'; |
|
| 82 | 82 | $form->addElement(new TagFormTag('tag', 60, 255, '', 0)); |
| 83 | 83 | } |
| 84 | 84 | |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | $form->display(); |
| 92 | 92 | |
| 93 | - include XOOPS_ROOT_PATH . '/footer.php'; |
|
| 93 | + include XOOPS_ROOT_PATH.'/footer.php'; |
|
| 94 | 94 | |
| 95 | 95 | break; |
| 96 | 96 | |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | * @package ExtGallery |
| 17 | 17 | */ |
| 18 | 18 | |
| 19 | -require_once __DIR__ . '/admin_header.php'; |
|
| 19 | +require_once __DIR__.'/admin_header.php'; |
|
| 20 | 20 | |
| 21 | 21 | xoops_cp_header(); |
| 22 | 22 | |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | function extensionInstalled() |
| 27 | 27 | { |
| 28 | - return file_exists(XOOPS_ROOT_PATH . '/class/textsanitizer/gallery/gallery.php'); |
|
| 28 | + return file_exists(XOOPS_ROOT_PATH.'/class/textsanitizer/gallery/gallery.php'); |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
@@ -33,32 +33,32 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | function extensionActivated() |
| 35 | 35 | { |
| 36 | - $conf = include XOOPS_ROOT_PATH . '/class/textsanitizer/config.custom.php'; |
|
| 36 | + $conf = include XOOPS_ROOT_PATH.'/class/textsanitizer/config.custom.php'; |
|
| 37 | 37 | |
| 38 | 38 | return $conf['extensions']['gallery']; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | function activateExtension() |
| 42 | 42 | { |
| 43 | - $conf = include XOOPS_ROOT_PATH . '/class/textsanitizer/config.custom.php'; |
|
| 43 | + $conf = include XOOPS_ROOT_PATH.'/class/textsanitizer/config.custom.php'; |
|
| 44 | 44 | $conf['extensions']['gallery'] = 1; |
| 45 | - file_put_contents(XOOPS_ROOT_PATH . '/class/textsanitizer/config.custom.php', "<?php\rreturn \$config = " . var_export($conf, true) . "\r?>", LOCK_EX); |
|
| 45 | + file_put_contents(XOOPS_ROOT_PATH.'/class/textsanitizer/config.custom.php', "<?php\rreturn \$config = ".var_export($conf, true)."\r?>", LOCK_EX); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | function desactivateExtension() |
| 49 | 49 | { |
| 50 | - $conf = include XOOPS_ROOT_PATH . '/class/textsanitizer/config.custom.php'; |
|
| 50 | + $conf = include XOOPS_ROOT_PATH.'/class/textsanitizer/config.custom.php'; |
|
| 51 | 51 | $conf['extensions']['gallery'] = 0; |
| 52 | - file_put_contents(XOOPS_ROOT_PATH . '/class/textsanitizer/config.custom.php', "<?php\rreturn \$config = " . var_export($conf, true) . "\r?>", LOCK_EX); |
|
| 52 | + file_put_contents(XOOPS_ROOT_PATH.'/class/textsanitizer/config.custom.php', "<?php\rreturn \$config = ".var_export($conf, true)."\r?>", LOCK_EX); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** @var XoopsTpl $xoopsTpl */ |
| 56 | -if (file_exists(XOOPS_ROOT_PATH . '/class/textsanitizer/gallery/gallery.php')) { |
|
| 56 | +if (file_exists(XOOPS_ROOT_PATH.'/class/textsanitizer/gallery/gallery.php')) { |
|
| 57 | 57 | $xoopsTpl->assign('extensioninstalled', true); |
| 58 | 58 | } else { |
| 59 | 59 | $xoopsTpl->assign('extensioninstalled', false); |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | // Call template file |
| 63 | -$xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/extgallery/templates/admin/extgallery_admin_extension.tpl'); |
|
| 63 | +$xoopsTpl->display(XOOPS_ROOT_PATH.'/modules/extgallery/templates/admin/extgallery_admin_extension.tpl'); |
|
| 64 | 64 | xoops_cp_footer(); |
@@ -15,8 +15,8 @@ discard block |
||
| 15 | 15 | * @author Zoullou (http://www.zoullou.net) |
| 16 | 16 | * @package ExtGallery |
| 17 | 17 | */ |
| 18 | -require_once __DIR__ . '/admin_header.php'; |
|
| 19 | -require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php'; |
|
| 18 | +require_once __DIR__.'/admin_header.php'; |
|
| 19 | +require_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php'; |
|
| 20 | 20 | xoops_load('XoopsFormLoader'); |
| 21 | 21 | |
| 22 | 22 | if (isset($_GET['op'])) { |
@@ -39,8 +39,8 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | case 'enreg': |
| 41 | 41 | |
| 42 | - $uploaddir = XOOPS_ROOT_PATH . '/modules/extgallery/assets/fonts/'; |
|
| 43 | - $uploadfile = $uploaddir . basename($_FILES['font_file']['name']); |
|
| 42 | + $uploaddir = XOOPS_ROOT_PATH.'/modules/extgallery/assets/fonts/'; |
|
| 43 | + $uploadfile = $uploaddir.basename($_FILES['font_file']['name']); |
|
| 44 | 44 | |
| 45 | 45 | if (file_exists($uploadfile)) { |
| 46 | 46 | echo 'The font is already present on the server.'; |
@@ -61,10 +61,10 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | $fonts = []; |
| 63 | 63 | |
| 64 | - $rep = XOOPS_ROOT_PATH . '/modules/extgallery/assets/fonts/'; |
|
| 64 | + $rep = XOOPS_ROOT_PATH.'/modules/extgallery/assets/fonts/'; |
|
| 65 | 65 | $dir = opendir($rep); |
| 66 | 66 | while (false !== ($f = readdir($dir))) { |
| 67 | - if (is_file($rep . $f)) { |
|
| 67 | + if (is_file($rep.$f)) { |
|
| 68 | 68 | if (preg_match('/.*ttf/', strtolower($f))) { |
| 69 | 69 | $fonts[] = $f; |
| 70 | 70 | } |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | $xoopsTpl->assign('fontform', $form->display()); |
| 83 | 83 | |
| 84 | 84 | // Call template file |
| 85 | - $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/extgallery/templates/admin/extgallery_admin_watermark_border.tpl'); |
|
| 85 | + $xoopsTpl->display(XOOPS_ROOT_PATH.'/modules/extgallery/templates/admin/extgallery_admin_watermark_border.tpl'); |
|
| 86 | 86 | xoops_cp_footer(); |
| 87 | 87 | |
| 88 | 88 | break; |
@@ -330,7 +330,7 @@ discard block |
||
| 330 | 330 | |
| 331 | 331 | // Refresh the photo exemple |
| 332 | 332 | |
| 333 | - require_once XOOPS_ROOT_PATH . '/modules/extgallery/class/pear/Image/Transform.php'; |
|
| 333 | + require_once XOOPS_ROOT_PATH.'/modules/extgallery/class/pear/Image/Transform.php'; |
|
| 334 | 334 | |
| 335 | 335 | // Loading original image |
| 336 | 336 | // Define Graphical library path |
@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | 'x' => $x, |
| 380 | 380 | 'y' => $y, |
| 381 | 381 | 'color' => $testParam['watermark_color'], |
| 382 | - 'font' => '../assets/fonts/' . $testParam['watermark_font'], |
|
| 382 | + 'font' => '../assets/fonts/'.$testParam['watermark_font'], |
|
| 383 | 383 | 'size' => $testParam['watermark_fontsize'], |
| 384 | 384 | 'resize_first' => false, |
| 385 | 385 | 'padding' => $testParam['watermark_padding'] |
@@ -404,7 +404,7 @@ discard block |
||
| 404 | 404 | // Remove old test image |
| 405 | 405 | deleteImageTest(); |
| 406 | 406 | // Saving transformation on test image |
| 407 | - $imageTransform->save('../assets/images/watermark-border-test-' . substr(md5(uniqid(mt_rand(), true)), 27) . '.jpg'); |
|
| 407 | + $imageTransform->save('../assets/images/watermark-border-test-'.substr(md5(uniqid(mt_rand(), true)), 27).'.jpg'); |
|
| 408 | 408 | $imageTransform->free(); |
| 409 | 409 | |
| 410 | 410 | redirect_header('watermark-border.php', 3, _AM_EXTGALLERY_CONFIGURATION_SAVED); |
@@ -423,10 +423,10 @@ discard block |
||
| 423 | 423 | $nbFonts = 0; |
| 424 | 424 | $fonts = []; |
| 425 | 425 | |
| 426 | - $rep = XOOPS_ROOT_PATH . '/modules/extgallery/assets/fonts/'; |
|
| 426 | + $rep = XOOPS_ROOT_PATH.'/modules/extgallery/assets/fonts/'; |
|
| 427 | 427 | $dir = opendir($rep); |
| 428 | 428 | while (false !== ($f = readdir($dir))) { |
| 429 | - if (is_file($rep . $f)) { |
|
| 429 | + if (is_file($rep.$f)) { |
|
| 430 | 430 | if (preg_match('/.*ttf/', strtolower($f))) { |
| 431 | 431 | ++$nbFonts; |
| 432 | 432 | $fonts[] = $f; |
@@ -455,11 +455,11 @@ discard block |
||
| 455 | 455 | $disable = 0 == $helper->getConfig('watermark_type') ? ' disabled="disabled"' : ''; |
| 456 | 456 | $style = 0 == $helper->getConfig('watermark_type') ? ' style="background-color:#DDDDDD;"' : ''; |
| 457 | 457 | $onClick = ' onClick="document.getElementById(\'watermark_text\').disabled = false; document.getElementById(\'watermark_text\').style.backgroundColor = \'#FFFFFF\';"'; |
| 458 | - $WTextForm = '<input type="radio" name="watermark_type" value="1"' . $selected1 . $onClick . '> <input name="watermark_text" id="watermark_text" size="50" maxlength="255" value="' . $helper->getConfig('watermark_text') . '" type="text"' . $disable . $style . '><br>'; |
|
| 458 | + $WTextForm = '<input type="radio" name="watermark_type" value="1"'.$selected1.$onClick.'> <input name="watermark_text" id="watermark_text" size="50" maxlength="255" value="'.$helper->getConfig('watermark_text').'" type="text"'.$disable.$style.'><br>'; |
|
| 459 | 459 | |
| 460 | 460 | $selected2 = 0 == $helper->getConfig('watermark_type') ? ' checked' : ''; |
| 461 | 461 | $onClick = ' onClick="document.getElementById(\'watermark_text\').disabled = true; document.getElementById(\'watermark_text\').style.backgroundColor = \'#DDDDDD\';"'; |
| 462 | - $WTextForm .= '<input type="radio" name="watermark_type" value="0"' . $selected2 . $onClick . '> ' . _AM_EXTGALLERY_PRINT_SUBMITTER_UNAME; |
|
| 462 | + $WTextForm .= '<input type="radio" name="watermark_type" value="0"'.$selected2.$onClick.'> '._AM_EXTGALLERY_PRINT_SUBMITTER_UNAME; |
|
| 463 | 463 | |
| 464 | 464 | $elementTray->addElement(new \XoopsFormLabel('', $WTextForm), false); |
| 465 | 465 | $form->addElement($elementTray); |
@@ -503,7 +503,7 @@ discard block |
||
| 503 | 503 | $xoopsTpl->assign('imagetest', $imageTest[0]); |
| 504 | 504 | } |
| 505 | 505 | // Call template file |
| 506 | - $xoopsTpl->display(__DIR__ . '/../templates/admin/extgallery_admin_watermark_border.tpl'); |
|
| 506 | + $xoopsTpl->display(__DIR__.'/../templates/admin/extgallery_admin_watermark_border.tpl'); |
|
| 507 | 507 | xoops_cp_footer(); |
| 508 | 508 | |
| 509 | 509 | break; |
@@ -516,10 +516,10 @@ discard block |
||
| 516 | 516 | function getImageTest() |
| 517 | 517 | { |
| 518 | 518 | $ret = []; |
| 519 | - $rep = dirname(__DIR__) . '/assets/images/'; |
|
| 519 | + $rep = dirname(__DIR__).'/assets/images/'; |
|
| 520 | 520 | $dir = opendir($rep); |
| 521 | 521 | while (false !== ($f = readdir($dir))) { |
| 522 | - if (is_file($rep . $f)) { |
|
| 522 | + if (is_file($rep.$f)) { |
|
| 523 | 523 | if (preg_match('/watermark-border-test/', $f)) { |
| 524 | 524 | $ret[] = $f; |
| 525 | 525 | } |
@@ -533,6 +533,6 @@ discard block |
||
| 533 | 533 | { |
| 534 | 534 | $files = getImageTest(); |
| 535 | 535 | foreach ($files as $file) { |
| 536 | - unlink(__DIR__ . '/../assets/images/' . $file); |
|
| 536 | + unlink(__DIR__.'/../assets/images/'.$file); |
|
| 537 | 537 | } |
| 538 | 538 | } |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | * @package ExtGallery |
| 17 | 17 | */ |
| 18 | 18 | |
| 19 | -require_once __DIR__ . '/admin_header.php'; |
|
| 19 | +require_once __DIR__.'/admin_header.php'; |
|
| 20 | 20 | define('_MU_MODULE_VERSION_FILE_URL', 'http://www.zoullou.net/extgalleryVersion.xml'); |
| 21 | 21 | define('_MU_MODULE_DOWNLOAD_SERVER', 'http://downloads.sourceforge.net/zoullou/'); |
| 22 | 22 | define('_MU_MODULE_XOOPS_VERSION_SUPPORTED', '2.5.9'); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | { |
| 84 | 84 | $version = $GLOBALS['xoopsModule']->getVar('version'); |
| 85 | 85 | |
| 86 | - return substr($version, 0, 1) . '.' . substr($version, 1, 1) . '.' . substr($version, 2); |
|
| 86 | + return substr($version, 0, 1).'.'.substr($version, 1, 1).'.'.substr($version, 2); |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | use XoopsModules\Extgallery; |
| 20 | 20 | |
| 21 | -require_once __DIR__ . '/admin_header.php'; |
|
| 21 | +require_once __DIR__.'/admin_header.php'; |
|
| 22 | 22 | //include dirname(__DIR__) . '/class/grouppermform.php'; |
| 23 | 23 | |
| 24 | 24 | if (isset($_POST['step'])) { |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | case 'default': |
| 61 | 61 | default: |
| 62 | 62 | |
| 63 | - $permArray = include XOOPS_ROOT_PATH . '/modules/extgallery/include/perm.php'; |
|
| 63 | + $permArray = include XOOPS_ROOT_PATH.'/modules/extgallery/include/perm.php'; |
|
| 64 | 64 | $modulePermArray = $permArray['modulePerm']; |
| 65 | 65 | $pluginPermArray = $permArray['pluginPerm']; |
| 66 | 66 | |
@@ -98,25 +98,25 @@ discard block |
||
| 98 | 98 | $nbPerm = count($modulePermArray); |
| 99 | 99 | $nbPerm += count($pluginPermArray) + 1; |
| 100 | 100 | |
| 101 | - echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTGALLERY_SELECT_PERM . '</legend>'; |
|
| 102 | - echo '<p>' . _AM_EXTGALLERY_SELECT_PERM_DESC . '</p><br>'; |
|
| 101 | + echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTGALLERY_SELECT_PERM.'</legend>'; |
|
| 102 | + echo '<p>'._AM_EXTGALLERY_SELECT_PERM_DESC.'</p><br>'; |
|
| 103 | 103 | echo "<form name='opform' id='opform' action='perm-quota.php' method='GET'>\n |
| 104 | 104 | <select size='1'onchange=\"document.forms.opform.submit()\" name='op' id='op'>\n |
| 105 | 105 | <option value=''></option>\n"; |
| 106 | 106 | |
| 107 | 107 | foreach ($modulePermArray as $perm) { |
| 108 | 108 | if ($op == $perm['name']) { |
| 109 | - echo "<option value='" . $perm['name'] . '\' selected>' . constant($perm['title']) . "</option>\n"; |
|
| 109 | + echo "<option value='".$perm['name'].'\' selected>'.constant($perm['title'])."</option>\n"; |
|
| 110 | 110 | } else { |
| 111 | - echo "<option value='" . $perm['name'] . '\'>' . constant($perm['title']) . "</option>\n"; |
|
| 111 | + echo "<option value='".$perm['name'].'\'>'.constant($perm['title'])."</option>\n"; |
|
| 112 | 112 | } |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | foreach ($pluginPermArray as $perm) { |
| 116 | 116 | if ($op == $perm['name']) { |
| 117 | - echo "<option value='" . $perm['name'] . '\' selected>' . constant($perm['title']) . "</option>\n"; |
|
| 117 | + echo "<option value='".$perm['name'].'\' selected>'.constant($perm['title'])."</option>\n"; |
|
| 118 | 118 | } else { |
| 119 | - echo "<option value='" . $perm['name'] . '\'>' . constant($perm['title']) . "</option>\n"; |
|
| 119 | + echo "<option value='".$perm['name'].'\'>'.constant($perm['title'])."</option>\n"; |
|
| 120 | 120 | } |
| 121 | 121 | } |
| 122 | 122 | |
@@ -153,10 +153,10 @@ discard block |
||
| 153 | 153 | . '</a></legend><div id="' |
| 154 | 154 | . $perm['name'] |
| 155 | 155 | . '">'; |
| 156 | - echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTGALLERY_INFORMATION . '</legend>'; |
|
| 156 | + echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTGALLERY_INFORMATION.'</legend>'; |
|
| 157 | 157 | echo constant($perm['info']); |
| 158 | 158 | echo '</fieldset>'; |
| 159 | - echo $form->render() . '<br>'; |
|
| 159 | + echo $form->render().'<br>'; |
|
| 160 | 160 | echo '</div></fieldset><br>'; |
| 161 | 161 | |
| 162 | 162 | break; |
@@ -187,10 +187,10 @@ discard block |
||
| 187 | 187 | . '</a></legend><div id="' |
| 188 | 188 | . $perm['name'] |
| 189 | 189 | . '">'; |
| 190 | - echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTGALLERY_INFORMATION . '</legend>'; |
|
| 190 | + echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTGALLERY_INFORMATION.'</legend>'; |
|
| 191 | 191 | echo constant($perm['info']); |
| 192 | 192 | echo '</fieldset>'; |
| 193 | - echo $form->render() . '<br>'; |
|
| 193 | + echo $form->render().'<br>'; |
|
| 194 | 194 | echo '</div></fieldset><br>'; |
| 195 | 195 | |
| 196 | 196 | break; |
@@ -202,23 +202,23 @@ discard block |
||
| 202 | 202 | echo '<fieldset id="defaultBookmark"><legend><a href="#defaultBookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\'default\'); toggleIcon(\'defaultIcon\');"><img id="defaultIcon" src="../assets/images/minus.gif"> ' |
| 203 | 203 | . _AM_EXTGALLERY_PUBLIC_PERM_MASK |
| 204 | 204 | . '</a></legend><div id="default">'; |
| 205 | - echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTGALLERY_INFORMATION . '</legend>'; |
|
| 205 | + echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTGALLERY_INFORMATION.'</legend>'; |
|
| 206 | 206 | echo _AM_EXTGALLERY_PUBLIC_PERM_MASK_INFO; |
| 207 | 207 | echo '</fieldset><br>'; |
| 208 | 208 | echo '<table class="outer" style="width:100%;">'; |
| 209 | 209 | echo '<form method="post" action="perm-quota.php">'; |
| 210 | 210 | echo '<tr>'; |
| 211 | - echo '<th colspan="' . $nbPerm . '" style="text-align:center;">' . _AM_EXTGALLERY_PUBLIC_PERM_MASK . '</th>'; |
|
| 211 | + echo '<th colspan="'.$nbPerm.'" style="text-align:center;">'._AM_EXTGALLERY_PUBLIC_PERM_MASK.'</th>'; |
|
| 212 | 212 | echo '</tr>'; |
| 213 | 213 | echo '<tr>'; |
| 214 | - echo '<td class="head">' . _AM_EXTGALLERY_GROUP_NAME . '</td>'; |
|
| 214 | + echo '<td class="head">'._AM_EXTGALLERY_GROUP_NAME.'</td>'; |
|
| 215 | 215 | |
| 216 | 216 | foreach ($modulePermArray as $perm) { |
| 217 | - echo '<td class="head" style="text-align:center;">' . constant($perm['maskTitle']) . '</td>'; |
|
| 217 | + echo '<td class="head" style="text-align:center;">'.constant($perm['maskTitle']).'</td>'; |
|
| 218 | 218 | } |
| 219 | 219 | |
| 220 | 220 | foreach ($pluginPermArray as $perm) { |
| 221 | - echo '<td class="head" style="text-align:center;">' . constant($perm['maskTitle']) . '</td>'; |
|
| 221 | + echo '<td class="head" style="text-align:center;">'.constant($perm['maskTitle']).'</td>'; |
|
| 222 | 222 | } |
| 223 | 223 | |
| 224 | 224 | echo '</tr>'; |
@@ -226,23 +226,23 @@ discard block |
||
| 226 | 226 | foreach ($glist as $k => $v) { |
| 227 | 227 | $style = (0 == ++$i % 2) ? 'odd' : 'even'; |
| 228 | 228 | echo '<tr>'; |
| 229 | - echo '<td class="' . $style . '">' . $v . '</td>'; |
|
| 229 | + echo '<td class="'.$style.'">'.$v.'</td>'; |
|
| 230 | 230 | |
| 231 | 231 | foreach ($modulePermArray as $perm) { |
| 232 | 232 | $permAccessGroup = $grouppermHandler->getGroupIds('extgallery_public_mask', $perm['maskId'], $module_id); |
| 233 | - echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extgallery_public_mask][group][' . $k . '][' . $perm['maskId'] . ']" type="checkbox"' . getChecked($permAccessGroup, $k) . '></td>'; |
|
| 233 | + echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extgallery_public_mask][group]['.$k.']['.$perm['maskId'].']" type="checkbox"'.getChecked($permAccessGroup, $k).'></td>'; |
|
| 234 | 234 | } |
| 235 | 235 | |
| 236 | 236 | foreach ($pluginPermArray as $perm) { |
| 237 | 237 | $permAccessGroup = $grouppermHandler->getGroupIds('extgallery_public_mask', $perm['maskId'], $module_id); |
| 238 | - echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extgallery_public_mask][group][' . $k . '][' . $perm['maskId'] . ']" type="checkbox"' . getChecked($permAccessGroup, $k) . '></td>'; |
|
| 238 | + echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extgallery_public_mask][group]['.$k.']['.$perm['maskId'].']" type="checkbox"'.getChecked($permAccessGroup, $k).'></td>'; |
|
| 239 | 239 | } |
| 240 | 240 | |
| 241 | 241 | echo '</tr>'; |
| 242 | 242 | } |
| 243 | 243 | echo '<input type="hidden" name="type" value="public">'; |
| 244 | 244 | echo '<input type="hidden" name="step" value="enreg">'; |
| 245 | - echo '<tr><td colspan="' . $nbPerm . '" style="text-align:center;" class="head"><input type="submit" value="' . _SUBMIT . '"></td></tr></form>'; |
|
| 245 | + echo '<tr><td colspan="'.$nbPerm.'" style="text-align:center;" class="head"><input type="submit" value="'._SUBMIT.'"></td></tr></form>'; |
|
| 246 | 246 | echo '</table><br>'; |
| 247 | 247 | |
| 248 | 248 | echo '</div></fieldset><br>'; |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | use XoopsModules\Extgallery; |
| 20 | 20 | |
| 21 | -require_once __DIR__ . '/admin_header.php'; |
|
| 21 | +require_once __DIR__.'/admin_header.php'; |
|
| 22 | 22 | |
| 23 | 23 | /** @var Extgallery\Helper $helper */ |
| 24 | 24 | $helper = Extgallery\Helper::getInstance(); |
@@ -923,7 +923,7 @@ discard block |
||
| 923 | 923 | $xoopsTpl->assign('gallerifficform', $form->render()); |
| 924 | 924 | |
| 925 | 925 | // Call template file |
| 926 | - $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/extgallery/templates/admin/extgallery_admin_slideshow.tpl'); |
|
| 926 | + $xoopsTpl->display(XOOPS_ROOT_PATH.'/modules/extgallery/templates/admin/extgallery_admin_slideshow.tpl'); |
|
| 927 | 927 | xoops_cp_footer(); |
| 928 | 928 | |
| 929 | 929 | break; |
@@ -17,11 +17,11 @@ |
||
| 17 | 17 | * @author XOOPS Development Team |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | -require_once __DIR__ . '/admin_header.php'; |
|
| 20 | +require_once __DIR__.'/admin_header.php'; |
|
| 21 | 21 | xoops_cp_header(); |
| 22 | 22 | |
| 23 | 23 | $adminObject->displayNavigation(basename(__FILE__)); |
| 24 | 24 | $adminObject::setPaypal('[email protected]'); |
| 25 | 25 | $adminObject->displayAbout(false); |
| 26 | 26 | |
| 27 | -require_once __DIR__ . '/admin_footer.php'; |
|
| 27 | +require_once __DIR__.'/admin_footer.php'; |
|