@@ -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'; |
|
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * @author Richard Griffith <[email protected]> |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -require __DIR__ . '/admin_header.php'; |
|
| 22 | +require __DIR__.'/admin_header.php'; |
|
| 23 | 23 | |
| 24 | 24 | // code marker |
| 25 | 25 | $moduleAdmin = Admin::getInstance(); |
@@ -31,4 +31,4 @@ discard block |
||
| 31 | 31 | // code end |
| 32 | 32 | |
| 33 | 33 | codeDump(__FILE__); |
| 34 | -require __DIR__ . '/admin_footer.php'; |
|
| 34 | +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'; |
|
@@ -21,9 +21,9 @@ discard block |
||
| 21 | 21 | use Xmf\Module\Helper; |
| 22 | 22 | use Xmf\Module\Helper\Permission; |
| 23 | 23 | // code end |
| 24 | -require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
| 24 | +require_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
| 25 | 25 | |
| 26 | -include __DIR__ . '/include/header.php'; |
|
| 26 | +include __DIR__.'/include/header.php'; |
|
| 27 | 27 | |
| 28 | 28 | describeThis(basename(__FILE__, '.php')); |
| 29 | 29 | |
@@ -66,4 +66,4 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | codeDump(__FILE__); |
| 68 | 68 | |
| 69 | -include __DIR__ . '/include/footer.php'; |
|
| 69 | +include __DIR__.'/include/footer.php'; |
|
@@ -15,15 +15,15 @@ discard block |
||
| 15 | 15 | * @author Richard Griffith <[email protected]> |
| 16 | 16 | * @author trabis <[email protected]> |
| 17 | 17 | */ |
| 18 | -require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
| 18 | +require_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
| 19 | 19 | |
| 20 | -include __DIR__ . '/include/header.php'; |
|
| 20 | +include __DIR__.'/include/header.php'; |
|
| 21 | 21 | |
| 22 | 22 | describeThis(basename(__FILE__, '.php')); |
| 23 | 23 | |
| 24 | 24 | $files = getFileList(__DIR__); |
| 25 | 25 | |
| 26 | -echo '<h3>' . _MA_XMFDEMO_EXAMPLES . '</h3>'; |
|
| 26 | +echo '<h3>'._MA_XMFDEMO_EXAMPLES.'</h3>'; |
|
| 27 | 27 | |
| 28 | 28 | echo "<ul>\n"; |
| 29 | 29 | foreach ($files as $file) { |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | continue; |
| 32 | 32 | } |
| 33 | 33 | $name = strtoupper(basename($file, '.php')); |
| 34 | - $defTitle = '_MA_XMFDEMO_PAGE_TITLE_' . $name; |
|
| 34 | + $defTitle = '_MA_XMFDEMO_PAGE_TITLE_'.$name; |
|
| 35 | 35 | if (defined($defTitle)) { |
| 36 | 36 | $title = constant($defTitle); |
| 37 | 37 | echo "<li> <a href=\"{$file}\">{$title}</a></li>\n"; |
@@ -39,4 +39,4 @@ discard block |
||
| 39 | 39 | } |
| 40 | 40 | echo "</ul>\n"; |
| 41 | 41 | |
| 42 | -include __DIR__ . '/include/footer.php'; |
|
| 42 | +include __DIR__.'/include/footer.php'; |
|
@@ -20,9 +20,9 @@ discard block |
||
| 20 | 20 | use Xmf\Module\Helper; |
| 21 | 21 | |
| 22 | 22 | // code end |
| 23 | -require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
| 23 | +require_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
| 24 | 24 | |
| 25 | -include __DIR__ . '/include/header.php'; |
|
| 25 | +include __DIR__.'/include/header.php'; |
|
| 26 | 26 | |
| 27 | 27 | describeThis(basename(__FILE__, '.php')); |
| 28 | 28 | |
@@ -35,28 +35,28 @@ discard block |
||
| 35 | 35 | $helper->loadLanguage('badmanifesto'); //throws error on log because language file was not found |
| 36 | 36 | |
| 37 | 37 | $helper->addLog(_MA_XMFDEMO_MANIFESTO_HI); |
| 38 | -echo _MA_XMFDEMO_MANIFESTO_LOOK_AT_LOG . '<br />'; |
|
| 38 | +echo _MA_XMFDEMO_MANIFESTO_LOOK_AT_LOG.'<br />'; |
|
| 39 | 39 | |
| 40 | -echo '<h3>' . _MA_XMFDEMO_HELPER_MODULE . '</h3>'; |
|
| 40 | +echo '<h3>'._MA_XMFDEMO_HELPER_MODULE.'</h3>'; |
|
| 41 | 41 | Debug::dump($helper->getModule()); |
| 42 | -echo 'name: ' . $helper->getModule()->getVar('name') . '<br />'; |
|
| 43 | -echo 'mid: ' . $helper->getModule()->getVar('mid') . '<br />'; |
|
| 44 | -echo 'version: ' . $helper->getModule()->getVar('version') . '<br />'; |
|
| 42 | +echo 'name: '.$helper->getModule()->getVar('name').'<br />'; |
|
| 43 | +echo 'mid: '.$helper->getModule()->getVar('mid').'<br />'; |
|
| 44 | +echo 'version: '.$helper->getModule()->getVar('version').'<br />'; |
|
| 45 | 45 | |
| 46 | -echo '<h3>' . _MA_XMFDEMO_HELPER_CONFIG . '</h3>'; |
|
| 46 | +echo '<h3>'._MA_XMFDEMO_HELPER_CONFIG.'</h3>'; |
|
| 47 | 47 | Debug::dump($helper->getConfig()); |
| 48 | 48 | |
| 49 | 49 | // does not use default since it exists |
| 50 | -echo 'config1: ' . $helper->getConfig('config1', 'unused default') . '<br />'; |
|
| 51 | -echo 'config2: ' . $helper->getConfig('config2') . '<br />'; |
|
| 50 | +echo 'config1: '.$helper->getConfig('config1', 'unused default').'<br />'; |
|
| 51 | +echo 'config2: '.$helper->getConfig('config2').'<br />'; |
|
| 52 | 52 | |
| 53 | 53 | // throws an error on log cause config3 is missing |
| 54 | -echo 'config3: ' . $helper->getConfig('config3') . '<br />'; |
|
| 54 | +echo 'config3: '.$helper->getConfig('config3').'<br />'; |
|
| 55 | 55 | |
| 56 | 56 | // uses default this time |
| 57 | -echo 'config3: ' . $helper->getConfig('config3', 'my default') . '<br />'; |
|
| 57 | +echo 'config3: '.$helper->getConfig('config3', 'my default').'<br />'; |
|
| 58 | 58 | |
| 59 | -echo '<h3>' . _MA_XMFDEMO_HELPER_OTHER_MODULE . '</h3>'; |
|
| 59 | +echo '<h3>'._MA_XMFDEMO_HELPER_OTHER_MODULE.'</h3>'; |
|
| 60 | 60 | if ($otherHelper = Helper::getHelper('pm')) { |
| 61 | 61 | Debug::dump($otherHelper); |
| 62 | 62 | Debug::dump($otherHelper->getHandler('message')); |
@@ -70,4 +70,4 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | codeDump(__FILE__); |
| 72 | 72 | |
| 73 | -include __DIR__ . '/include/footer.php'; |
|
| 73 | +include __DIR__.'/include/footer.php'; |
|
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | $modversion['license'] = 'GNU GPL 2 or later'; |
| 29 | 29 | $modversion['license_url'] = 'http://www.gnu.org/licenses/gpl-2.0.html'; |
| 30 | 30 | $modversion['official'] = 0; |
| 31 | -$modversion['image'] = 'icons/logo_module.png'; |
|
| 31 | +$modversion['image'] = 'icons/logo_module.png'; |
|
| 32 | 32 | |
| 33 | 33 | $modversion['hasMain'] = 1; |
| 34 | 34 | |
@@ -21,9 +21,9 @@ discard block |
||
| 21 | 21 | use Xmf\Module\Helper; |
| 22 | 22 | use Xmf\Request; |
| 23 | 23 | // code end |
| 24 | -require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
| 24 | +require_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
| 25 | 25 | |
| 26 | -include __DIR__ . '/include/header.php'; |
|
| 26 | +include __DIR__.'/include/header.php'; |
|
| 27 | 27 | |
| 28 | 28 | describeThis(basename(__FILE__, '.php')); |
| 29 | 29 | |
@@ -99,11 +99,11 @@ discard block |
||
| 99 | 99 | |
| 100 | 100 | $tables = $migrate->dumpTables(); |
| 101 | 101 | if (0 !== count($tables)) { |
| 102 | - echo '<h5>' . _MA_XMFDEMO_TABLE_CURRENT . '</h5>'; |
|
| 102 | + echo '<h5>'._MA_XMFDEMO_TABLE_CURRENT.'</h5>'; |
|
| 103 | 103 | Debug::dump($tables); |
| 104 | 104 | } |
| 105 | 105 | // code end |
| 106 | 106 | |
| 107 | 107 | codeDump(__FILE__); |
| 108 | 108 | |
| 109 | -include __DIR__ . '/include/footer.php'; |
|
| 109 | +include __DIR__.'/include/footer.php'; |
|