@@ -74,9 +74,9 @@ |
||
74 | 74 | \xoops_load('XoopsFormLoader'); |
75 | 75 | $form = new \XoopsThemeForm($title, 'form', $action, 'post', true); |
76 | 76 | $form->setExtra('enctype="multipart/form-data"'); |
77 | - $oc_server = $helper->getConfig('wgsitenotice_oc_server').'checkonline.php'; |
|
77 | + $oc_server = $helper->getConfig('wgsitenotice_oc_server') . 'checkonline.php'; |
|
78 | 78 | // Form Text oc_server |
79 | - $form->addElement( new \XoopsFormText(\_MI_WGSITENOTICE_OC_SERVER, 'oc_server', 50, 255, $oc_server), true ); |
|
79 | + $form->addElement(new \XoopsFormText(\_MI_WGSITENOTICE_OC_SERVER, 'oc_server', 50, 255, $oc_server), true); |
|
80 | 80 | // Send |
81 | 81 | $form->addElement(new \XoopsFormHidden('op', 'checkonline')); |
82 | 82 | $form->addElement(new \XoopsFormButton('', 'submit', \_AM_WGSITENOTICE_OC_START, 'submit')); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | $oc_server = Request::getString('oc_server', 'default'); |
29 | 29 | if ('default' === $oc_server) { |
30 | - $oc_server = $helper->getConfig('wgsitenotice_oc_server').'checkonline.php'; |
|
30 | + $oc_server = $helper->getConfig('wgsitenotice_oc_server').'checkonline.php'; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | $template_main = 'wgsitenotice_admin_checkonline.tpl'; |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | $contentsObj->setVar('cont_date', $onlinecontent->cont_date); |
88 | 88 | // Insert Data |
89 | 89 | if (!$contentsHandler->insert($contentsObj)) { |
90 | - $cont_errors++; |
|
90 | + $cont_errors++; |
|
91 | 91 | } |
92 | 92 | } |
93 | 93 | if ($cont_errors > 0) { |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | $oc_server = Request::getString('oc_server', 'default'); |
29 | 29 | if ('default' === $oc_server) { |
30 | - $oc_server = $helper->getConfig('wgsitenotice_oc_server').'checkonline.php'; |
|
30 | + $oc_server = $helper->getConfig('wgsitenotice_oc_server') . 'checkonline.php'; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | $template_main = 'wgsitenotice_admin_checkonline.tpl'; |
@@ -46,19 +46,19 @@ discard block |
||
46 | 46 | // Request version_id |
47 | 47 | $version_id = Request::getInt('version_id'); |
48 | 48 | if (0 == $version_id) { |
49 | - $GLOBALS['xoopsTpl']->assign('error',\_AM_WGSITENOTICE_OC_ERR_INVALID_PARAM); |
|
49 | + $GLOBALS['xoopsTpl']->assign('error', \_AM_WGSITENOTICE_OC_ERR_INVALID_PARAM); |
|
50 | 50 | break; |
51 | 51 | } |
52 | 52 | //$xml_text = \file_get_contents($oc_server.'?version_id='.$version_id); |
53 | - $xml_text = $checkonlineHandler->getData($oc_server . '?version_id='.$version_id); |
|
53 | + $xml_text = $checkonlineHandler->getData($oc_server . '?version_id=' . $version_id); |
|
54 | 54 | // echo $xml_text; |
55 | 55 | $xml_arr = $checkonlineHandler->readXML($xml_text); |
56 | 56 | // var_dump($xml_arr); |
57 | 57 | if (!$xml_arr) { |
58 | 58 | //error when loading xml |
59 | - $GLOBALS['xoopsTpl']->assign('error',\str_replace('%s', $oc_server, \_AM_WGSITENOTICE_OC_ERR_READ_XML)); |
|
59 | + $GLOBALS['xoopsTpl']->assign('error', \str_replace('%s', $oc_server, \_AM_WGSITENOTICE_OC_ERR_READ_XML)); |
|
60 | 60 | } else { |
61 | - echo $oc_server.'?version_id='.$version_id; |
|
61 | + echo $oc_server . '?version_id=' . $version_id; |
|
62 | 62 | echo $xml_arr->status_access; |
63 | 63 | |
64 | 64 | if ('allowed' == $xml_arr->status_access) { |
@@ -98,9 +98,9 @@ discard block |
||
98 | 98 | } |
99 | 99 | } |
100 | 100 | } else if ('forbidden' == $xml_arr->status_access) { |
101 | - $GLOBALS['xoopsTpl']->assign('error',\_AM_WGSITENOTICE_OC_ERR_FORBIDDEN); |
|
101 | + $GLOBALS['xoopsTpl']->assign('error', \_AM_WGSITENOTICE_OC_ERR_FORBIDDEN); |
|
102 | 102 | } else { |
103 | - $GLOBALS['xoopsTpl']->assign('error',\str_replace('%s', $oc_server, \_AM_WGSITENOTICE_OC_ERR_CONNECT)); |
|
103 | + $GLOBALS['xoopsTpl']->assign('error', \str_replace('%s', $oc_server, \_AM_WGSITENOTICE_OC_ERR_CONNECT)); |
|
104 | 104 | } |
105 | 105 | } |
106 | 106 | break; |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | // echo "<br/><br/>var_dump xml_arr:<br/>".var_dump($xml_arr); |
117 | 117 | |
118 | 118 | if (!$xml_arr) { |
119 | - $GLOBALS['xoopsTpl']->assign('error',\str_replace('%s', $oc_server, \_AM_WGSITENOTICE_OC_ERR_READ_XML)); |
|
119 | + $GLOBALS['xoopsTpl']->assign('error', \str_replace('%s', $oc_server, \_AM_WGSITENOTICE_OC_ERR_READ_XML)); |
|
120 | 120 | } else { |
121 | 121 | // echo "<br/>status_access:".$xml_arr->status_access; |
122 | 122 | if ('allowed' == $xml_arr->status_access) { |
@@ -132,12 +132,12 @@ discard block |
||
132 | 132 | $GLOBALS['xoopsTpl']->append('versions_list', $version); |
133 | 133 | } |
134 | 134 | } else { |
135 | - $GLOBALS['xoopsTpl']->assign('error',\_AM_WGSITENOTICE_OC_ERR_NO_VERSIONS); |
|
135 | + $GLOBALS['xoopsTpl']->assign('error', \_AM_WGSITENOTICE_OC_ERR_NO_VERSIONS); |
|
136 | 136 | } |
137 | 137 | } else if ('forbidden' == $xml_arr->status_access) { |
138 | - $GLOBALS['xoopsTpl']->assign('error',\_AM_WGSITENOTICE_OC_ERR_FORBIDDEN); |
|
138 | + $GLOBALS['xoopsTpl']->assign('error', \_AM_WGSITENOTICE_OC_ERR_FORBIDDEN); |
|
139 | 139 | } else { |
140 | - $GLOBALS['xoopsTpl']->assign('error',\str_replace('%s', $oc_server, \_AM_WGSITENOTICE_OC_ERR_CONNECT)); |
|
140 | + $GLOBALS['xoopsTpl']->assign('error', \str_replace('%s', $oc_server, \_AM_WGSITENOTICE_OC_ERR_CONNECT)); |
|
141 | 141 | } |
142 | 142 | } |
143 | 143 | unset($version); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | |
22 | 22 | use XoopsModules\Wgsitenotice\Helper; |
23 | 23 | |
24 | -include_once \XOOPS_ROOT_PATH.'/modules/wgsitenotice/include/common.php'; |
|
24 | +include_once \XOOPS_ROOT_PATH . '/modules/wgsitenotice/include/common.php'; |
|
25 | 25 | |
26 | 26 | // Function show block |
27 | 27 | function b_wgsitenotice_cookie_reg_show($options) |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | $block['position'] = ''; |
72 | 72 | } |
73 | 73 | |
74 | - if ( $dataprotect_id > 0 || $cookie_reg_id > 0 ) { |
|
74 | + if ($dataprotect_id > 0 || $cookie_reg_id > 0) { |
|
75 | 75 | $dataprotect_obj = $versionsHandler->get($dataprotect_id); |
76 | 76 | if (\is_object($dataprotect_obj)) { |
77 | 77 | $block['dataprotect_id'] = $dataprotect_id; |
@@ -83,18 +83,18 @@ discard block |
||
83 | 83 | $block['cookie_reg_text'] = $cookie_reg_obj->getVar('version_name'); |
84 | 84 | } |
85 | 85 | $block['seperator'] = ""; |
86 | - if ( $dataprotect_id > 0 && $cookie_reg_id > 0 ) { |
|
86 | + if ($dataprotect_id > 0 && $cookie_reg_id > 0) { |
|
87 | 87 | $block['seperator'] = "|"; |
88 | 88 | } |
89 | 89 | } |
90 | - $tplSource = \XOOPS_ROOT_PATH.'/modules/wgsitenotice/templates/blocks/wgsitenotice_block_cookie_reg.tpl'; |
|
90 | + $tplSource = \XOOPS_ROOT_PATH . '/modules/wgsitenotice/templates/blocks/wgsitenotice_block_cookie_reg.tpl'; |
|
91 | 91 | |
92 | 92 | if ("smarty" == $display_type) { |
93 | 93 | //hide block and show in theme.html defined position |
94 | 94 | $blockTpl = new \XoopsTpl(); |
95 | 95 | $blockTpl->assign('block', $block); |
96 | 96 | |
97 | - $GLOBALS['xoopsTpl']->assign( $type_tpl_id, $blockTpl->fetch($tplSource) ); |
|
97 | + $GLOBALS['xoopsTpl']->assign($type_tpl_id, $blockTpl->fetch($tplSource)); |
|
98 | 98 | $block = false; |
99 | 99 | } |
100 | 100 | return $block; |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | |
117 | 117 | $cookie = $options[0]; |
118 | 118 | //remove existing cookie in order to see results |
119 | - \setcookie($cookie,"0"); |
|
119 | + \setcookie($cookie, "0"); |
|
120 | 120 | |
121 | 121 | $unique_id = new \XoopsFormText('', 'options[0]', 100, 255, $cookie); |
122 | 122 | $form = \_MB_WGSITENOTICE_COOKIE_REG_NAME . ': ' . $unique_id->render() . '<br><br>'; |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | $form .= \_MB_WGSITENOTICE_COOKIE_REG_DISPLAY . ': ' . $display_sel->render() . '<br>'; |
142 | 142 | |
143 | 143 | $form .= '<br>' . \_MB_WGSITENOTICE_COOKIE_REG_OPT_STYLE . ':<br>'; |
144 | - $form .= \str_repeat( '-' , \strlen(\_MB_WGSITENOTICE_COOKIE_REG_OPT_STYLE) + 5 ) . '<br>'; |
|
144 | + $form .= \str_repeat('-', \strlen(\_MB_WGSITENOTICE_COOKIE_REG_OPT_STYLE) + 5) . '<br>'; |
|
145 | 145 | |
146 | 146 | $opacity_sel = new \XoopsFormSelect("", 'options[4]', $options[4]); |
147 | 147 | $opacity_sel->addOption('0.1', '0.1'); |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | $form .= \_MB_WGSITENOTICE_COOKIE_REG_HEIGHT . ': ' . $height_sel->render() . '<br><br>'; |
168 | 168 | |
169 | 169 | $form .= '<br>' . \_MB_WGSITENOTICE_COOKIE_REG_OPT_SMARTY . ':<br>'; |
170 | - $form .= \str_repeat( '-' , \strlen(\_MB_WGSITENOTICE_COOKIE_REG_OPT_SMARTY) + 5 ) . '<br>'; |
|
170 | + $form .= \str_repeat('-', \strlen(\_MB_WGSITENOTICE_COOKIE_REG_OPT_SMARTY) + 5) . '<br>'; |
|
171 | 171 | |
172 | 172 | $position_sel = new \XoopsFormSelect("", 'options[9]', $options[9]); |
173 | 173 | $position_sel->addOption('top', \_MB_WGSITENOTICE_COOKIE_REG_POSITION_TOP); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * @min_xoops 2.5.11 |
19 | 19 | * @author Goffy (xoops.wedega.com) - Email:<[email protected]> - Website:<https://xoops.wedega.com> |
20 | 20 | */ |
21 | -if ( isset($template_main) ) { |
|
21 | +if (isset($template_main)) { |
|
22 | 22 | $GLOBALS['xoopsTpl']->display("db:{$template_main}"); |
23 | 23 | } |
24 | 24 | xoops_cp_footer(); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | public static function hideButtons() |
60 | 60 | { |
61 | - $yamlFile = \dirname(__DIR__, 2) . '/config/admin.yml'; |
|
61 | + $yamlFile = \dirname(__DIR__, 2) . '/config/admin.yml'; |
|
62 | 62 | $app = []; |
63 | 63 | $app['displaySampleButton'] = 0; |
64 | 64 | Yaml::save($app, $yamlFile); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | public static function showButtons() |
69 | 69 | { |
70 | - $yamlFile = \dirname(__DIR__, 2) . '/config/admin.yml'; |
|
70 | + $yamlFile = \dirname(__DIR__, 2) . '/config/admin.yml'; |
|
71 | 71 | $app = []; |
72 | 72 | $app['displaySampleButton'] = 1; |
73 | 73 | Yaml::save($app, $yamlFile); |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $html .= '<ul>'; |
46 | 46 | |
47 | 47 | $gdlib = \function_exists('gd_info') ? '<span style="color: #008000;">' . \constant('CO_' . $moduleDirNameUpper . '_GDON') . '</span>' : '<span style="color: #ff0000;">' . \constant('CO_' . $moduleDirNameUpper . '_GDOFF') . '</span>'; |
48 | - $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS') . $gdlib; |
|
48 | + $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS') . $gdlib; |
|
49 | 49 | if (\function_exists('gd_info')) { |
50 | 50 | if (true === ($gdlib = gd_info())) { |
51 | 51 | $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_GDLIBVERSION') . '<b>' . $gdlib['GD Version'] . '</b>'; |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | // $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_REGISTERGLOBALS . $registerglobals; |
60 | 60 | |
61 | 61 | $downloads = \ini_get('file_uploads') ? '<span style="color: #008000;">' . \constant('CO_' . $moduleDirNameUpper . '_ON') . '</span>' : '<span style="color: #ff0000;">' . \constant('CO_' . $moduleDirNameUpper . '_OFF') . '</span>'; |
62 | - $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS') . $downloads; |
|
62 | + $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS') . $downloads; |
|
63 | 63 | |
64 | 64 | $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE') . ' <b><span style="color: #0000ff;">' . \ini_get('upload_max_filesize') . '</span></b>'; |
65 | 65 | $html .= '<li>' . \constant('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE') . ' <b><span style="color: #0000ff;">' . \ini_get('post_max_size') . '</span></b>'; |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | self::rrmdir($fObj->getPathname()); |
208 | 208 | } |
209 | 209 | } |
210 | - $iterator = null; // clear iterator Obj to close file/directory |
|
210 | + $iterator = null; // clear iterator Obj to close file/directory |
|
211 | 211 | return \rmdir($src); // remove the directory & return results |
212 | 212 | } |
213 | 213 | |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | // \rmdir($fObj->getPath()); // now delete the directory |
248 | 248 | } |
249 | 249 | } |
250 | - $iterator = null; // clear iterator Obj to close file/directory |
|
250 | + $iterator = null; // clear iterator Obj to close file/directory |
|
251 | 251 | return \rmdir($src); // remove the directory & return results |
252 | 252 | } |
253 | 253 |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | \define('_AM_WGSITENOTICE_OC', 'Online Versionen'); |
64 | 64 | \define('_AM_WGSITENOTICE_OC_DISCLAIMER', 'Haftungshinweis'); |
65 | 65 | \define('_AM_WGSITENOTICE_OC_DISCLAIMER_DESCR', |
66 | - 'Es wird keine Garantie für die Richtigkeit der heruntergeladenenen rechtlichen Hinweise bzw. Teile davon übernommen.<br/> |
|
66 | + 'Es wird keine Garantie für die Richtigkeit der heruntergeladenenen rechtlichen Hinweise bzw. Teile davon übernommen.<br/> |
|
67 | 67 | Die Texte stellen nur einen Vorschlag dar. Bitte überprüfen Sie vor deren Verwendung, ob diese Vorschläge den gesetzlichen Vorschriften, rechtlichen Voraussetzungen, Bestimmungen oder Richtlinien entsprechen.<br/> |
68 | 68 | Die Verwendung erfolgt auf eigene Gefahr.'); |
69 | 69 | \define('_AM_WGSITENOTICE_OC_FORM', 'Überprüfung auf verfügbare Online-Versionen'); |
@@ -71,9 +71,9 @@ discard block |
||
71 | 71 | \define('_AM_WGSITENOTICE_OC_START', 'Starte Überprüfung auf verfügbare Online-Versionen'); |
72 | 72 | \define('_AM_WGSITENOTICE_OC_RESULT', 'Auf dem angeführten Server sind folgende Online-Versionen verfügbar'); |
73 | 73 | \define('_AM_WGSITENOTICE_OC_ERR_FORBIDDEN', |
74 | - 'Entschuldigung, aber der angeführte Server gestattet den Download der dort vorhandenen Versionen nicht'); |
|
74 | + 'Entschuldigung, aber der angeführte Server gestattet den Download der dort vorhandenen Versionen nicht'); |
|
75 | 75 | \define('_AM_WGSITENOTICE_OC_ERR_NO_VERSIONS', |
76 | - 'Entschuldigung, aber auf dem angeführten Server sind keine Versionen für den Download verfügbar'); |
|
76 | + 'Entschuldigung, aber auf dem angeführten Server sind keine Versionen für den Download verfügbar'); |
|
77 | 77 | \define('_AM_WGSITENOTICE_OC_ERR_INVALID_PARAM', 'Entschuldigung, aber die Anfrage ist aufgrund eines ungültigen Parameters fehlgeschlagen'); |
78 | 78 | \define('_AM_WGSITENOTICE_OC_ERR_CONNECT', "Entschuldigung, aber die Anfrage an den angeführten Server '%s' ist fehlgeschlagen.<br/>Bitte überprüfen Sie den Standardserver in den Moduleinstellungen"); |
79 | 79 | \define('_AM_WGSITENOTICE_OC_ERR_READ_XML', 'Entschuldigung, beim Lesen/Parsen des xml-Codes ist ein Fehler aufgetreten'); |
@@ -23,9 +23,9 @@ discard block |
||
23 | 23 | |
24 | 24 | require \dirname(__DIR__) . '/preloads/autoloader.php'; |
25 | 25 | |
26 | -require_once \dirname(__DIR__, 3). '/include/cp_header.php'; |
|
26 | +require_once \dirname(__DIR__, 3) . '/include/cp_header.php'; |
|
27 | 27 | $thisPath = \dirname(__DIR__); |
28 | -include_once $thisPath.'/include/common.php'; |
|
28 | +include_once $thisPath . '/include/common.php'; |
|
29 | 29 | $sysPathIcon16 = '../' . $xoopsModule->getInfo('sysicons16'); |
30 | 30 | $sysPathIcon32 = '../' . $xoopsModule->getInfo('sysicons32'); |
31 | 31 | $pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin'); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $helper->loadLanguage('modinfo'); |
59 | 59 | $helper->loadLanguage('common'); |
60 | 60 | // Local admin menu class |
61 | -include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); |
|
61 | +include_once $GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php'); |
|
62 | 62 | |
63 | 63 | xoops_cp_header(); |
64 | 64 | $adminMenu = new ModuleAdmin(); |