@@ -19,9 +19,9 @@ |
||
19 | 19 | * @min_xoops 2.5.10 |
20 | 20 | * @author Goffy - XOOPS Development Team - Email:<[email protected]> - Website:<https://wedega.com> |
21 | 21 | */ |
22 | -require __DIR__ . '/header.php'; |
|
22 | +require __DIR__.'/header.php'; |
|
23 | 23 | $templateMain = 'wggithub_admin_about.tpl'; |
24 | 24 | $GLOBALS['xoopsTpl']->assign('navigation', $adminObject->displayNavigation('about.php')); |
25 | 25 | $adminObject::setPaypal('6KJ7RW5DR3VTJ'); |
26 | 26 | $GLOBALS['xoopsTpl']->assign('about', $adminObject->renderAbout(false)); |
27 | -require __DIR__ . '/footer.php'; |
|
27 | +require __DIR__.'/footer.php'; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | use XoopsModules\Wggithub\Constants; |
26 | 26 | use XoopsModules\Wggithub\Common; |
27 | 27 | |
28 | -require __DIR__ . '/header.php'; |
|
28 | +require __DIR__.'/header.php'; |
|
29 | 29 | // It recovered the value of argument op in URL$ |
30 | 30 | $op = Request::getCmd('op', 'list'); |
31 | 31 | // Request dir_id |
@@ -55,8 +55,8 @@ discard block |
||
55 | 55 | } |
56 | 56 | // Display Navigation |
57 | 57 | if ($directoriesCount > $limit) { |
58 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
59 | - $pagenav = new \XoopsPageNav($directoriesCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
58 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
59 | + $pagenav = new \XoopsPageNav($directoriesCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
60 | 60 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
61 | 61 | } |
62 | 62 | } else { |
@@ -161,4 +161,4 @@ discard block |
||
161 | 161 | } |
162 | 162 | break; |
163 | 163 | } |
164 | -require __DIR__ . '/footer.php'; |
|
164 | +require __DIR__.'/footer.php'; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | use XoopsModules\Wggithub\Constants; |
26 | 26 | use XoopsModules\Wggithub\Common; |
27 | 27 | |
28 | -require __DIR__ . '/header.php'; |
|
28 | +require __DIR__.'/header.php'; |
|
29 | 29 | // It recovered the value of argument op in URL$ |
30 | 30 | $op = Request::getCmd('op', 'list'); |
31 | 31 | // Request rel_id |
@@ -55,8 +55,8 @@ discard block |
||
55 | 55 | } |
56 | 56 | // Display Navigation |
57 | 57 | if ($releasesCount > $limit) { |
58 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
59 | - $pagenav = new \XoopsPageNav($releasesCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
58 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
59 | + $pagenav = new \XoopsPageNav($releasesCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
60 | 60 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
61 | 61 | } |
62 | 62 | } else { |
@@ -138,4 +138,4 @@ discard block |
||
138 | 138 | } |
139 | 139 | break; |
140 | 140 | } |
141 | -require __DIR__ . '/footer.php'; |
|
141 | +require __DIR__.'/footer.php'; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | use XoopsModules\Wggithub\Constants; |
26 | 26 | use XoopsModules\Wggithub\Common; |
27 | 27 | |
28 | -require __DIR__ . '/header.php'; |
|
28 | +require __DIR__.'/header.php'; |
|
29 | 29 | // It recovered the value of argument op in URL$ |
30 | 30 | $op = Request::getCmd('op', 'list'); |
31 | 31 | // Request repo_id |
@@ -55,8 +55,8 @@ discard block |
||
55 | 55 | } |
56 | 56 | // Display Navigation |
57 | 57 | if ($repositoriesCount > $limit) { |
58 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
59 | - $pagenav = new \XoopsPageNav($repositoriesCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
58 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
59 | + $pagenav = new \XoopsPageNav($repositoriesCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
60 | 60 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
61 | 61 | } |
62 | 62 | } else { |
@@ -168,4 +168,4 @@ discard block |
||
168 | 168 | } |
169 | 169 | break; |
170 | 170 | } |
171 | -require __DIR__ . '/footer.php'; |
|
171 | +require __DIR__.'/footer.php'; |
@@ -20,14 +20,14 @@ discard block |
||
20 | 20 | * @author Goffy - XOOPS Development Team - Email:<[email protected]> - Website:<https://wedega.com> |
21 | 21 | */ |
22 | 22 | |
23 | -include dirname(__DIR__, 3) . '/include/cp_header.php'; |
|
24 | -include_once \dirname(__DIR__) . '/include/common.php'; |
|
23 | +include dirname(__DIR__, 3).'/include/cp_header.php'; |
|
24 | +include_once \dirname(__DIR__).'/include/common.php'; |
|
25 | 25 | |
26 | -$sysPathIcon16 = '../' . $GLOBALS['xoopsModule']->getInfo('sysicons16'); |
|
27 | -$sysPathIcon32 = '../' . $GLOBALS['xoopsModule']->getInfo('sysicons32'); |
|
26 | +$sysPathIcon16 = '../'.$GLOBALS['xoopsModule']->getInfo('sysicons16'); |
|
27 | +$sysPathIcon32 = '../'.$GLOBALS['xoopsModule']->getInfo('sysicons32'); |
|
28 | 28 | $pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin'); |
29 | -$modPathIcon16 = WGGITHUB_URL . '/' . $GLOBALS['xoopsModule']->getInfo('modicons16') . '/'; |
|
30 | -$modPathIcon32 = WGGITHUB_URL . '/' . $GLOBALS['xoopsModule']->getInfo('modicons32') . '/'; |
|
29 | +$modPathIcon16 = WGGITHUB_URL.'/'.$GLOBALS['xoopsModule']->getInfo('modicons16').'/'; |
|
30 | +$modPathIcon32 = WGGITHUB_URL.'/'.$GLOBALS['xoopsModule']->getInfo('modicons32').'/'; |
|
31 | 31 | |
32 | 32 | // Get instance of module |
33 | 33 | $helper = \XoopsModules\Wggithub\Helper::getInstance(); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | $myts = MyTextSanitizer::getInstance(); |
41 | 41 | // |
42 | 42 | if (!isset($xoopsTpl) || !\is_object($xoopsTpl)) { |
43 | - include_once XOOPS_ROOT_PATH . '/class/template.php'; |
|
43 | + include_once XOOPS_ROOT_PATH.'/class/template.php'; |
|
44 | 44 | $xoopsTpl = new \XoopsTpl(); |
45 | 45 | } |
46 | 46 | |
@@ -64,4 +64,4 @@ discard block |
||
64 | 64 | $GLOBALS['xoopsTpl']->assign('modPathIcon32', $modPathIcon32); |
65 | 65 | |
66 | 66 | $adminObject = \Xmf\Module\Admin::getInstance(); |
67 | -$style = WGGITHUB_URL . '/assets/css/admin/style.css'; |
|
67 | +$style = WGGITHUB_URL.'/assets/css/admin/style.css'; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | use XoopsModules\Wggithub\Constants; |
26 | 26 | use XoopsModules\Wggithub\Common; |
27 | 27 | |
28 | -require __DIR__ . '/header.php'; |
|
28 | +require __DIR__.'/header.php'; |
|
29 | 29 | // It recovered the value of argument op in URL$ |
30 | 30 | $op = Request::getCmd('op', 'list'); |
31 | 31 | // Request set_id |
@@ -55,8 +55,8 @@ discard block |
||
55 | 55 | } |
56 | 56 | // Display Navigation |
57 | 57 | if ($settingsCount > $limit) { |
58 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
59 | - $pagenav = new \XoopsPageNav($settingsCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
58 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
59 | + $pagenav = new \XoopsPageNav($settingsCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
60 | 60 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
61 | 61 | } |
62 | 62 | } else { |
@@ -135,4 +135,4 @@ discard block |
||
135 | 135 | } |
136 | 136 | break; |
137 | 137 | } |
138 | -require __DIR__ . '/footer.php'; |
|
138 | +require __DIR__.'/footer.php'; |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | |
22 | 22 | use Xmf\Request; |
23 | 23 | |
24 | -include __DIR__ . '/header.php'; |
|
24 | +include __DIR__.'/header.php'; |
|
25 | 25 | |
26 | 26 | $adminObject = \Xmf\Module\Admin::getInstance(); |
27 | 27 | |
@@ -60,12 +60,12 @@ discard block |
||
60 | 60 | $fb_content = Request::getText('fb_content', ''); |
61 | 61 | $fb_content = \str_replace(["\r\n", "\n", "\r"], '<br>', $fb_content); //clean line break from dhtmltextarea |
62 | 62 | |
63 | - $title = \constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_FOR') . $GLOBALS['xoopsModule']->getVar('dirname'); |
|
64 | - $body = \constant('CO_' . $moduleDirNameUpper . '_' . 'FB_NAME') . ': ' . $your_name . '<br>'; |
|
65 | - $body .= \constant('CO_' . $moduleDirNameUpper . '_' . 'FB_MAIL') . ': ' . $your_mail . '<br>'; |
|
66 | - $body .= \constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SITE') . ': ' . $your_site . '<br>'; |
|
67 | - $body .= \constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE') . ': ' . $fb_type . '<br><br>'; |
|
68 | - $body .= \constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_CONTENT') . ':<br>'; |
|
63 | + $title = \constant('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_FOR').$GLOBALS['xoopsModule']->getVar('dirname'); |
|
64 | + $body = \constant('CO_'.$moduleDirNameUpper.'_'.'FB_NAME').': '.$your_name.'<br>'; |
|
65 | + $body .= \constant('CO_'.$moduleDirNameUpper.'_'.'FB_MAIL').': '.$your_mail.'<br>'; |
|
66 | + $body .= \constant('CO_'.$moduleDirNameUpper.'_'.'FB_SITE').': '.$your_site.'<br>'; |
|
67 | + $body .= \constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE').': '.$fb_type.'<br><br>'; |
|
68 | + $body .= \constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_CONTENT').':<br>'; |
|
69 | 69 | $body .= $fb_content; |
70 | 70 | $xoopsMailer = xoops_getMailer(); |
71 | 71 | $xoopsMailer->useMail(); |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $xoopsMailer->setBody($body); |
78 | 78 | $ret = $xoopsMailer->send(); |
79 | 79 | if ($ret) { |
80 | - \redirect_header('index.php', 3, \constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_SUCCESS')); |
|
80 | + \redirect_header('index.php', 3, \constant('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_SUCCESS')); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | // show form with content again |
@@ -87,11 +87,11 @@ discard block |
||
87 | 87 | $feedback->type = $fb_type; |
88 | 88 | $feedback->content = $fb_content; |
89 | 89 | echo '<div style="text-align:center;width: 80%; padding: 10px; border: 2px solid #ff0000; color: #ff0000; margin-right:auto;margin-left:auto;"> |
90 | - <h3>' . \constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_ERROR') . '</h3> |
|
90 | + <h3>' . \constant('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_ERROR').'</h3> |
|
91 | 91 | </div>'; |
92 | 92 | $form = $feedback->getFormFeedback(); |
93 | 93 | $form->display(); |
94 | 94 | |
95 | 95 | break; |
96 | 96 | } |
97 | -require __DIR__ . '/footer.php'; |
|
97 | +require __DIR__.'/footer.php'; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | use XoopsModules\Wggithub\Constants; |
26 | 26 | use XoopsModules\Wggithub\Common; |
27 | 27 | |
28 | -require __DIR__ . '/header.php'; |
|
28 | +require __DIR__.'/header.php'; |
|
29 | 29 | // It recovered the value of argument op in URL$ |
30 | 30 | $op = Request::getCmd('op', 'list'); |
31 | 31 | // Request rm_id |
@@ -55,8 +55,8 @@ discard block |
||
55 | 55 | } |
56 | 56 | // Display Navigation |
57 | 57 | if ($readmesCount > $limit) { |
58 | - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
59 | - $pagenav = new \XoopsPageNav($readmesCount, $limit, $start, 'start', 'op=list&limit=' . $limit); |
|
58 | + include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
59 | + $pagenav = new \XoopsPageNav($readmesCount, $limit, $start, 'start', 'op=list&limit='.$limit); |
|
60 | 60 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
61 | 61 | } |
62 | 62 | } else { |
@@ -137,4 +137,4 @@ discard block |
||
137 | 137 | } |
138 | 138 | break; |
139 | 139 | } |
140 | -require __DIR__ . '/footer.php'; |
|
140 | +require __DIR__.'/footer.php'; |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * @author Goffy - XOOPS Development Team - Email:<[email protected]> - Website:<https://wedega.com> |
21 | 21 | */ |
22 | 22 | |
23 | -include_once __DIR__ . '/admin.php'; |
|
23 | +include_once __DIR__.'/admin.php'; |
|
24 | 24 | |
25 | 25 | // ---------------- Main ---------------- |
26 | 26 | \define('_MA_WGGITHUB_INDEX', 'Home'); |