@@ -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"; |
@@ -18,21 +18,21 @@ |
||
| 18 | 18 | defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); |
| 19 | 19 | |
| 20 | 20 | // get path to icons |
| 21 | -$pathIcon32=''; |
|
| 21 | +$pathIcon32 = ''; |
|
| 22 | 22 | if (class_exists('Xmf\Module\Admin', true)) { |
| 23 | 23 | $pathIcon32 = \Xmf\Module\Admin::menuIconPath(''); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | -$adminmenu=array(); |
|
| 26 | +$adminmenu = array(); |
|
| 27 | 27 | // Index |
| 28 | 28 | $adminmenu[] = array( |
| 29 | - 'title' => _MI_XMFDEMO_ADMENU1 , |
|
| 30 | - 'link' => 'admin/index.php' , |
|
| 29 | + 'title' => _MI_XMFDEMO_ADMENU1, |
|
| 30 | + 'link' => 'admin/index.php', |
|
| 31 | 31 | 'icon' => $pathIcon32.'home.png' |
| 32 | -) ; |
|
| 32 | +); |
|
| 33 | 33 | // About |
| 34 | 34 | $adminmenu[] = array( |
| 35 | - 'title' => _MI_XMFDEMO_ADMENU2 , |
|
| 36 | - 'link' => 'admin/about.php' , |
|
| 35 | + 'title' => _MI_XMFDEMO_ADMENU2, |
|
| 36 | + 'link' => 'admin/about.php', |
|
| 37 | 37 | 'icon' => $pathIcon32.'about.png' |
| 38 | -) ; |
|
| 38 | +); |
|
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * @author Richard Griffith <[email protected]> |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -require dirname(__FILE__) . '/admin_header.php'; |
|
| 22 | +require dirname(__FILE__).'/admin_header.php'; |
|
| 23 | 23 | |
| 24 | 24 | // code marker |
| 25 | 25 | $moduleAdmin = Admin::getInstance(); |
@@ -32,4 +32,4 @@ discard block |
||
| 32 | 32 | // code end |
| 33 | 33 | |
| 34 | 34 | codeDump(__FILE__); |
| 35 | -require dirname(__FILE__) . '/admin_footer.php'; |
|
| 35 | +require dirname(__FILE__).'/admin_footer.php'; |
|
@@ -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 | |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * @author Richard Griffith <[email protected]> |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -require dirname(__FILE__) . '/admin_header.php'; |
|
| 22 | +require dirname(__FILE__).'/admin_header.php'; |
|
| 23 | 23 | |
| 24 | 24 | // code marker |
| 25 | 25 | $moduleAdmin = Admin::getInstance(); |
@@ -32,4 +32,4 @@ discard block |
||
| 32 | 32 | // code end |
| 33 | 33 | |
| 34 | 34 | codeDump(__FILE__); |
| 35 | -require dirname(__FILE__) . '/admin_footer.php'; |
|
| 35 | +require dirname(__FILE__).'/admin_footer.php'; |
|