@@ -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'; |
|
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | $adminmenu[] = [ |
| 21 | 21 | 'title' => _MI_SOBJECT_HOME, |
| 22 | 22 | 'link' => 'admin/index.php', |
| 23 | - 'icon' => $pathIcon32 . '/home.png', |
|
| 23 | + 'icon' => $pathIcon32.'/home.png', |
|
| 24 | 24 | ]; |
| 25 | 25 | |
| 26 | 26 | //$adminmenu[] = [ |
@@ -32,37 +32,37 @@ discard block |
||
| 32 | 32 | $adminmenu[] = [ |
| 33 | 33 | 'title' => _MI_SOBJECT_SENT_LINKS, |
| 34 | 34 | 'link' => 'admin/link.php', |
| 35 | - 'icon' => $pathIcon32 . '/addlink.png', |
|
| 35 | + 'icon' => $pathIcon32.'/addlink.png', |
|
| 36 | 36 | ]; |
| 37 | 37 | |
| 38 | 38 | $adminmenu[] = [ |
| 39 | 39 | 'title' => _MI_SOBJECT_TAGS, |
| 40 | 40 | 'link' => 'admin/customtag.php', |
| 41 | - 'icon' => $pathIcon32 . '/identity.png', |
|
| 41 | + 'icon' => $pathIcon32.'/identity.png', |
|
| 42 | 42 | ]; |
| 43 | 43 | |
| 44 | 44 | $adminmenu[] = [ |
| 45 | 45 | 'title' => _MI_SOBJECT_ADSENSES, |
| 46 | 46 | 'link' => 'admin/adsense.php', |
| 47 | - 'icon' => $pathIcon32 . '/alert.png', |
|
| 47 | + 'icon' => $pathIcon32.'/alert.png', |
|
| 48 | 48 | ]; |
| 49 | 49 | |
| 50 | 50 | $adminmenu[] = [ |
| 51 | 51 | 'title' => _MI_SOBJECT_RATINGS, |
| 52 | 52 | 'link' => 'admin/rating.php', |
| 53 | - 'icon' => $pathIcon32 . '/stats.png', |
|
| 53 | + 'icon' => $pathIcon32.'/stats.png', |
|
| 54 | 54 | ]; |
| 55 | 55 | |
| 56 | 56 | $adminmenu[] = [ |
| 57 | 57 | 'title' => _MI_SOBJECT_ABOUT, |
| 58 | 58 | 'link' => 'admin/about.php', |
| 59 | - 'icon' => $pathIcon32 . '/about.png', |
|
| 59 | + 'icon' => $pathIcon32.'/about.png', |
|
| 60 | 60 | ]; |
| 61 | 61 | |
| 62 | 62 | //--------------------------------- |
| 63 | 63 | |
| 64 | 64 | if (!defined('SMARTOBJECT_ROOT_PATH')) { |
| 65 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/include/functions.php'; |
|
| 65 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/include/functions.php'; |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | $smartobjectConfig = smart_getModuleConfig('smartobject'); |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $adminmenu[] = [ |
| 72 | 72 | 'title' => _MI_SOBJECT_CURRENCIES, |
| 73 | 73 | 'link' => 'admin/currency.php', |
| 74 | - 'icon' => $pathIcon32 . '/cash_stack.png', |
|
| 74 | + 'icon' => $pathIcon32.'/cash_stack.png', |
|
| 75 | 75 | ]; |
| 76 | 76 | } |
| 77 | 77 | |
@@ -83,9 +83,9 @@ discard block |
||
| 83 | 83 | // $headermenu[$i]['link'] = '../../system/admin.php?fct=preferences&op=showmod&mod=' . $xoopsModule->getVar('mid'); |
| 84 | 84 | $mid = $xoopsModule->getVar('mid'); |
| 85 | 85 | if (defined('XOOPS_CUBE_LEGACY')) { |
| 86 | - $link_pref = XOOPS_URL . '/modules/legacy/admin/index.php?action=PreferenceEdit&confmod_id=' . $mid; |
|
| 86 | + $link_pref = XOOPS_URL.'/modules/legacy/admin/index.php?action=PreferenceEdit&confmod_id='.$mid; |
|
| 87 | 87 | } else { |
| 88 | - $link_pref = XOOPS_URL . '/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $mid; |
|
| 88 | + $link_pref = XOOPS_URL.'/modules/system/admin.php?fct=preferences&op=showmod&mod='.$mid; |
|
| 89 | 89 | } |
| 90 | 90 | $headermenu[$i]['link'] = $link_pref; |
| 91 | 91 | // ----- |
@@ -94,9 +94,9 @@ discard block |
||
| 94 | 94 | // $headermenu[$i]['link'] = XOOPS_URL . "/modules/system/admin.php?fct=modulesadmin&op=update&module=" . $xoopsModule->getVar('dirname'); |
| 95 | 95 | $dirname = $xoopsModule->getVar('dirname'); |
| 96 | 96 | if (defined('XOOPS_CUBE_LEGACY')) { |
| 97 | - $link_module = XOOPS_URL . '/modules/legacy/admin/index.php?action=ModuleUpdate&dirname=' . $dirname; |
|
| 97 | + $link_module = XOOPS_URL.'/modules/legacy/admin/index.php?action=ModuleUpdate&dirname='.$dirname; |
|
| 98 | 98 | } else { |
| 99 | - $link_module = XOOPS_URL . '/modules/system/admin.php?fct=modulesadmin&op=update&module=' . $dirname; |
|
| 99 | + $link_module = XOOPS_URL.'/modules/system/admin.php?fct=modulesadmin&op=update&module='.$dirname; |
|
| 100 | 100 | } |
| 101 | 101 | $headermenu[$i]['link'] = $link_module; |
| 102 | 102 | // ----- |
@@ -9,17 +9,17 @@ discard block |
||
| 9 | 9 | |
| 10 | 10 | use XoopsModules\Smartobject\SmartObjectController; |
| 11 | 11 | |
| 12 | -require_once __DIR__ . '/header.php'; |
|
| 13 | -require_once SMARTOBJECT_ROOT_PATH . 'class/smartloader.php'; |
|
| 14 | -require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjectlink.php'; |
|
| 15 | -require_once XOOPS_ROOT_PATH . '/class/template.php'; |
|
| 12 | +require_once __DIR__.'/header.php'; |
|
| 13 | +require_once SMARTOBJECT_ROOT_PATH.'class/smartloader.php'; |
|
| 14 | +require_once SMARTOBJECT_ROOT_PATH.'class/smartobjectlink.php'; |
|
| 15 | +require_once XOOPS_ROOT_PATH.'/class/template.php'; |
|
| 16 | 16 | |
| 17 | 17 | $xoopsTpl = new \XoopsTpl(); |
| 18 | 18 | $myts = \MyTextSanitizer::getInstance(); |
| 19 | 19 | $xoopsConfig['sitename'] = $myts->displayTarea($xoopsConfig['sitename']); |
| 20 | 20 | |
| 21 | 21 | xoops_header(false); |
| 22 | -echo smart_get_css_link(SMARTOBJECT_URL . 'assets/css/module.css'); |
|
| 22 | +echo smart_get_css_link(SMARTOBJECT_URL.'assets/css/module.css'); |
|
| 23 | 23 | echo '</head><body>'; |
| 24 | 24 | |
| 25 | 25 | $smartobjectLinkHandler = xoops_getModuleHandler('link', 'smartobject'); |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | switch ($op) { |
| 31 | 31 | case 'sendlink': |
| 32 | 32 | |
| 33 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 33 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 34 | 34 | $controller = new XoopsModules\Smartobject\SmartObjectController($smartobjectLinkHandler); |
| 35 | 35 | |
| 36 | 36 | $linkObj = $controller->storeSmartObject(); |
@@ -42,13 +42,13 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | $xoopsMailer = xoops_getMailer(); |
| 44 | 44 | $xoopsMailer->useMail(); |
| 45 | - $xoopsMailer->setTemplateDir('language/' . $xoopsConfig['language'] . '/mail_template'); |
|
| 45 | + $xoopsMailer->setTemplateDir('language/'.$xoopsConfig['language'].'/mail_template'); |
|
| 46 | 46 | |
| 47 | 47 | $xoopsMailer->setTemplate('sendlink.tpl'); |
| 48 | 48 | $xoopsMailer->assign('X_SITENAME', $xoopsConfig['sitename']); |
| 49 | 49 | $xoopsMailer->assign('TO_NAME', $linkObj->getVar('to_name')); |
| 50 | 50 | $xoopsMailer->assign('FROM_NAME', $linkObj->getVar('from_name')); |
| 51 | - $xoopsMailer->assign('SITEURL', XOOPS_URL . '/'); |
|
| 51 | + $xoopsMailer->assign('SITEURL', XOOPS_URL.'/'); |
|
| 52 | 52 | $xoopsMailer->assign('ADMINMAIL', $xoopsConfig['adminmail']); |
| 53 | 53 | $xoopsMailer->assign('MESSAGE', $_POST['body']); |
| 54 | 54 | $xoopsMailer->setToEmails($linkObj->getVar('to_email')); |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | $xoopsMailer->setSubject(sprintf(_CO_SOBJECT_SUBJECT_DEFAULT, $myts->oopsStripSlashesGPC($xoopsConfig['sitename']))); |
| 58 | 58 | |
| 59 | 59 | if (!$xoopsMailer->send(true)) { |
| 60 | - $xoopsTpl->assign('send_error', sprintf(_CO_SOBJECT_SEND_ERROR, $xoopsConfig['adminmail']) . '<br>' . $xoopsMailer->getErrors(true)); |
|
| 60 | + $xoopsTpl->assign('send_error', sprintf(_CO_SOBJECT_SEND_ERROR, $xoopsConfig['adminmail']).'<br>'.$xoopsMailer->getErrors(true)); |
|
| 61 | 61 | } else { |
| 62 | 62 | $xoopsTpl->assign('send_success', _CO_SOBJECT_SEND_SUCCESS); |
| 63 | 63 | } |
@@ -3,12 +3,12 @@ discard block |
||
| 3 | 3 | /** |
| 4 | 4 | * @see http://www.php-fig.org/psr/psr-4/examples/ |
| 5 | 5 | */ |
| 6 | -spl_autoload_register(function ($class) { |
|
| 6 | +spl_autoload_register(function($class) { |
|
| 7 | 7 | // project-specific namespace prefix |
| 8 | - $prefix = 'XoopsModules\\' . ucfirst(basename(dirname(__DIR__))); |
|
| 8 | + $prefix = 'XoopsModules\\'.ucfirst(basename(dirname(__DIR__))); |
|
| 9 | 9 | |
| 10 | 10 | // base directory for the namespace prefix |
| 11 | - $base_dir = __DIR__ . '/../class/'; |
|
| 11 | + $base_dir = __DIR__.'/../class/'; |
|
| 12 | 12 | |
| 13 | 13 | // does the class use the namespace prefix? |
| 14 | 14 | $len = strlen($prefix); |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | // replace the namespace prefix with the base directory, replace namespace |
| 24 | 24 | // separators with directory separators in the relative class name, append |
| 25 | 25 | // with .php |
| 26 | - $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php'; |
|
| 26 | + $file = $base_dir.str_replace('\\', '/', $relative_class).'.php'; |
|
| 27 | 27 | |
| 28 | 28 | // if the file exists, require it |
| 29 | 29 | if (file_exists($file)) { |
@@ -28,6 +28,6 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public static function eventCoreIncludeCommonEnd($args) |
| 30 | 30 | { |
| 31 | - include __DIR__ . '/autoloader.php'; |
|
| 31 | + include __DIR__.'/autoloader.php'; |
|
| 32 | 32 | } |
| 33 | 33 | } |
@@ -117,14 +117,14 @@ |
||
| 117 | 117 | */ |
| 118 | 118 | public function getItemValue() |
| 119 | 119 | { |
| 120 | - $moduleUrl = XOOPS_URL . '/modules/' . $this->getVar('dirname', 'n') . '/'; |
|
| 120 | + $moduleUrl = XOOPS_URL.'/modules/'.$this->getVar('dirname', 'n').'/'; |
|
| 121 | 121 | $plugin = $this->getModulePlugin(); |
| 122 | 122 | $pluginItemInfo = $plugin->getItemInfo($this->getVar('item')); |
| 123 | 123 | if (!$pluginItemInfo) { |
| 124 | 124 | return ''; |
| 125 | 125 | } |
| 126 | 126 | $itemPath = sprintf($pluginItemInfo['url'], $this->getVar('itemid')); |
| 127 | - $ret = '<a href="' . $moduleUrl . $itemPath . '">' . $pluginItemInfo['caption'] . '</a>'; |
|
| 127 | + $ret = '<a href="'.$moduleUrl.$itemPath.'">'.$pluginItemInfo['caption'].'</a>'; |
|
| 128 | 128 | |
| 129 | 129 | return $ret; |
| 130 | 130 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | |
| 24 | 24 | // defined('XOOPS_ROOT_PATH') || die('Restricted access'); |
| 25 | 25 | |
| 26 | -require_once XOOPS_ROOT_PATH . '/class/tree.php'; |
|
| 26 | +require_once XOOPS_ROOT_PATH.'/class/tree.php'; |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * Class smartobjecttree |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $language = false |
| 38 | 38 | ) { |
| 39 | 39 | // Create the first part of the SQL query to join the "_text" table |
| 40 | - $sql = 'SELECT * FROM ' . $this->table . ' AS ' . $this->_itemname . ' INNER JOIN ' . $this->table . '_text AS ' . $this->_itemname . '_text ON ' . $this->_itemname . '.' . $this->keyName . '=' . $this->_itemname . '_text.' . $this->keyName; |
|
| 40 | + $sql = 'SELECT * FROM '.$this->table.' AS '.$this->_itemname.' INNER JOIN '.$this->table.'_text AS '.$this->_itemname.'_text ON '.$this->_itemname.'.'.$this->keyName.'='.$this->_itemname.'_text.'.$this->keyName; |
|
| 41 | 41 | |
| 42 | 42 | if ($language) { |
| 43 | 43 | // If a language was specified, then let's create a WHERE clause to only return the objects associated with this language |
@@ -75,6 +75,6 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | public function changeTableNameForML() |
| 77 | 77 | { |
| 78 | - $this->table = $this->db->prefix($this->_moduleName . '_' . $this->_itemname . '_text'); |
|
| 78 | + $this->table = $this->db->prefix($this->_moduleName.'_'.$this->_itemname.'_text'); |
|
| 79 | 79 | } |
| 80 | 80 | } |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | use XoopsModules\Smartobject; |
| 14 | 14 | |
| 15 | -require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 15 | +require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * SmartObjectTreeTable class |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | $space .= ' '; |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | - $aColumn['value'] = $space . $value; |
|
| 105 | + $aColumn['value'] = $space.$value; |
|
| 106 | 106 | $aColumn['class'] = $class; |
| 107 | 107 | $aColumn['width'] = $column->getWidth(); |
| 108 | 108 | $aColumn['align'] = $column->getAlign(); |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | } |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | - require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjectcontroller.php'; |
|
| 129 | + require_once SMARTOBJECT_ROOT_PATH.'class/smartobjectcontroller.php'; |
|
| 130 | 130 | $controller = new SmartObjectController($this->_objectHandler); |
| 131 | 131 | |
| 132 | 132 | if (in_array('edit', $this->_actions)) { |