@@ -18,8 +18,8 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | use Xmf\Debug; |
| 20 | 20 | |
| 21 | -require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
| 22 | -include __DIR__ . '/include/header.php'; |
|
| 21 | +require_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
| 22 | +include __DIR__.'/include/header.php'; |
|
| 23 | 23 | describeThis(basename(__FILE__, '.php')); |
| 24 | 24 | |
| 25 | 25 | |
@@ -27,4 +27,4 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | |
| 29 | 29 | codeDump(__FILE__); |
| 30 | -include __DIR__ . '/include/footer.php'; |
|
| 30 | +include __DIR__.'/include/footer.php'; |
|
@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | use Xmf\Module\Helper; |
| 7 | 7 | use Xmf\Request; |
| 8 | 8 | |
| 9 | -require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
| 9 | +require_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
| 10 | 10 | |
| 11 | 11 | // claims we want to assert (verify) |
| 12 | 12 | $assertClaims = array('aud' => basename(__FILE__)); |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | // handle normal user requests |
| 35 | -include __DIR__ . '/include/header.php'; |
|
| 35 | +include __DIR__.'/include/header.php'; |
|
| 36 | 36 | |
| 37 | 37 | $url = basename(__FILE__); |
| 38 | 38 | |
@@ -76,4 +76,4 @@ discard block |
||
| 76 | 76 | |
| 77 | 77 | codeDump(__FILE__); |
| 78 | 78 | |
| 79 | -include __DIR__ . '/include/footer.php'; |
|
| 79 | +include __DIR__.'/include/footer.php'; |
|
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | if (class_exists('Xoops', false)) { |
| 4 | 4 | \Xoops::getInstance()->header(); |
| 5 | 5 | } else { |
| 6 | - require_once XOOPS_ROOT_PATH . '/header.php'; |
|
| 7 | - include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 6 | + require_once XOOPS_ROOT_PATH.'/header.php'; |
|
| 7 | + include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
| 8 | 8 | } |
| 9 | -include __DIR__ . '/common.php'; |
|
| 9 | +include __DIR__.'/common.php'; |
|
@@ -3,5 +3,5 @@ |
||
| 3 | 3 | if (class_exists('Xoops', false)) { |
| 4 | 4 | \Xoops::getInstance()->footer(); |
| 5 | 5 | } else { |
| 6 | - require_once XOOPS_ROOT_PATH . '/footer.php'; |
|
| 6 | + require_once XOOPS_ROOT_PATH.'/footer.php'; |
|
| 7 | 7 | } |
@@ -32,13 +32,13 @@ discard block |
||
| 32 | 32 | $code = file_get_contents($fileName); |
| 33 | 33 | $matches = array(); |
| 34 | 34 | if (0 < (int) preg_match_all("#.*// code marker[\\s]*(.*)// code end.*#sU", $code, $matches)) { |
| 35 | - echo '<h2>' . _MA_XMFDEMO_SAMPLE_CODE . '</h2><hr>'; |
|
| 36 | - $code = highlight_string("<?php\n" . implode("\n", $matches[1]), true); |
|
| 35 | + echo '<h2>'._MA_XMFDEMO_SAMPLE_CODE.'</h2><hr>'; |
|
| 36 | + $code = highlight_string("<?php\n".implode("\n", $matches[1]), true); |
|
| 37 | 37 | echo $code; |
| 38 | 38 | } |
| 39 | 39 | echo '<hr><br>'; |
| 40 | 40 | if (1 !== preg_match('#/admin/[a-z]*\.php$#', $fileName)) { |
| 41 | - echo '<a href="index.php">' . _MA_XMFDEMO_EXAMPLE_LIST . '</a>'; |
|
| 41 | + echo '<a href="index.php">'._MA_XMFDEMO_EXAMPLE_LIST.'</a>'; |
|
| 42 | 42 | } |
| 43 | 43 | } |
| 44 | 44 | |
@@ -56,16 +56,16 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | $name = strtoupper($name); |
| 58 | 58 | |
| 59 | - $defTitle = '_MA_XMFDEMO_PAGE_TITLE_' . $name; |
|
| 59 | + $defTitle = '_MA_XMFDEMO_PAGE_TITLE_'.$name; |
|
| 60 | 60 | if (defined($defTitle)) { |
| 61 | 61 | $title = constant($defTitle); |
| 62 | 62 | echo "<h1>{$title}</h1>"; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - $defBody = '_MA_XMFDEMO_PAGE_BODY_' . $name; |
|
| 65 | + $defBody = '_MA_XMFDEMO_PAGE_BODY_'.$name; |
|
| 66 | 66 | if (defined($defBody)) { |
| 67 | 67 | $body = constant($defBody); |
| 68 | - echo $body . '<br><br>'; |
|
| 68 | + echo $body.'<br><br>'; |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | echo "\n<hr>\n"; |
@@ -16,11 +16,11 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | 18 | $path = dirname(dirname(dirname(__DIR__))); |
| 19 | -require_once $path . '/mainfile.php'; |
|
| 20 | -require_once $path . '/include/cp_functions.php'; |
|
| 21 | -require_once $path . '/include/cp_header.php'; |
|
| 19 | +require_once $path.'/mainfile.php'; |
|
| 20 | +require_once $path.'/include/cp_functions.php'; |
|
| 21 | +require_once $path.'/include/cp_header.php'; |
|
| 22 | 22 | |
| 23 | -include dirname(__DIR__) . '/include/common.php'; |
|
| 23 | +include dirname(__DIR__).'/include/common.php'; |
|
| 24 | 24 | |
| 25 | 25 | class_exists('\Xmf\Module\Admin') or die('XMF is required.'); |
| 26 | 26 | |
@@ -28,11 +28,11 @@ |
||
| 28 | 28 | $adminmenu[] = array( |
| 29 | 29 | 'title' => _MI_XMFDEMO_ADMENU1, |
| 30 | 30 | 'link' => 'admin/index.php', |
| 31 | - 'icon' => $pathIcon32 . 'home.png' |
|
| 31 | + 'icon' => $pathIcon32.'home.png' |
|
| 32 | 32 | ); |
| 33 | 33 | // About |
| 34 | 34 | $adminmenu[] = array( |
| 35 | 35 | 'title' => _MI_XMFDEMO_ADMENU2, |
| 36 | 36 | 'link' => 'admin/about.php', |
| 37 | - 'icon' => $pathIcon32 . 'about.png' |
|
| 37 | + 'icon' => $pathIcon32.'about.png' |
|
| 38 | 38 | ); |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | * @author Richard Griffith <[email protected]> |
| 21 | 21 | */ |
| 22 | 22 | |
| 23 | -require __DIR__ . '/admin_header.php'; |
|
| 23 | +require __DIR__.'/admin_header.php'; |
|
| 24 | 24 | |
| 25 | 25 | // code marker |
| 26 | 26 | $moduleAdmin = Admin::getInstance(); |
@@ -33,4 +33,4 @@ discard block |
||
| 33 | 33 | // code end |
| 34 | 34 | |
| 35 | 35 | codeDump(__FILE__); |
| 36 | -require __DIR__ . '/admin_footer.php'; |
|
| 36 | +require __DIR__.'/admin_footer.php'; |
|
@@ -22,9 +22,9 @@ discard block |
||
| 22 | 22 | use Xmf\Module\Helper; |
| 23 | 23 | |
| 24 | 24 | // code end |
| 25 | -require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
| 25 | +require_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
| 26 | 26 | |
| 27 | -include __DIR__ . '/include/header.php'; |
|
| 27 | +include __DIR__.'/include/header.php'; |
|
| 28 | 28 | |
| 29 | 29 | describeThis(basename(__FILE__, '.php')); |
| 30 | 30 | |
@@ -90,4 +90,4 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | codeDump(__FILE__); |
| 92 | 92 | |
| 93 | -include __DIR__ . '/include/footer.php'; |
|
| 93 | +include __DIR__.'/include/footer.php'; |
|