Completed
Pull Request — master (#6)
by Michael
23:07
created
class/myiframe.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
     die('XOOPS root path not defined');
11 11
 }
12 12
 
13
-include_once XOOPS_ROOT_PATH . '/kernel/object.php';
13
+include_once XOOPS_ROOT_PATH.'/kernel/object.php';
14 14
 
15 15
 /**
16 16
  * Class Myiframe
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             if (is_array($id)) {
44 44
                 $this->assignVars($id);
45 45
             } else {
46
-                $this->load((int)$id);
46
+                $this->load((int) $id);
47 47
             }
48 48
         } else {
49 49
             $this->setNew();
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function load($id)
57 57
     {
58
-        $sql   = 'SELECT * FROM ' . $this->db->prefix('myiframe') . ' WHERE frame_frameid=' . (int)$id;
58
+        $sql   = 'SELECT * FROM '.$this->db->prefix('myiframe').' WHERE frame_frameid='.(int) $id;
59 59
         $myrow = $this->db->fetchArray($this->db->query($sql));
60 60
         $this->assignVars($myrow);
61 61
         if (!$myrow) {
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     public function &get($id)
91 91
     {
92 92
         $ret = null;
93
-        $sql = 'SELECT * FROM ' . $this->db->prefix('myiframe') . '  WHERE frame_frameid=' . (int)$id;
93
+        $sql = 'SELECT * FROM '.$this->db->prefix('myiframe').'  WHERE frame_frameid='.(int) $id;
94 94
         if (!$result = $this->db->query($sql)) {
95 95
             return $ret;
96 96
         }
@@ -185,11 +185,11 @@  discard block
 block discarded – undo
185 185
     {
186 186
         $ret   = array();
187 187
         $limit = $start = 0;
188
-        $sql   = 'SELECT * FROM ' . $this->db->prefix('myiframe');
188
+        $sql   = 'SELECT * FROM '.$this->db->prefix('myiframe');
189 189
         if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
190
-            $sql .= ' ' . $criteria->renderWhere();
190
+            $sql .= ' '.$criteria->renderWhere();
191 191
             if ($criteria->getSort() !== '') {
192
-                $sql .= ' ORDER BY ' . $criteria->getSort() . ' ' . $criteria->getOrder();
192
+                $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder();
193 193
             }
194 194
             $limit = $criteria->getLimit();
195 195
             $start = $criteria->getStart();
@@ -215,9 +215,9 @@  discard block
 block discarded – undo
215 215
      */
216 216
     public function getCount($criteria = null)
217 217
     {
218
-        $sql = 'SELECT COUNT(*) FROM ' . $this->db->prefix('myiframe');
218
+        $sql = 'SELECT COUNT(*) FROM '.$this->db->prefix('myiframe');
219 219
         if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
220
-            $sql .= ' ' . $criteria->renderWhere();
220
+            $sql .= ' '.$criteria->renderWhere();
221 221
         }
222 222
         $result = $this->db->query($sql);
223 223
         if (!$result) {
@@ -234,9 +234,9 @@  discard block
 block discarded – undo
234 234
      */
235 235
     public function deleteAll($criteria = null)
236 236
     {
237
-        $sql = 'DELETE FROM ' . $this->db->prefix('myiframe');
237
+        $sql = 'DELETE FROM '.$this->db->prefix('myiframe');
238 238
         if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
239
-            $sql .= ' ' . $criteria->renderWhere();
239
+            $sql .= ' '.$criteria->renderWhere();
240 240
         }
241 241
         if (!$result = $this->db->query($sql)) {
242 242
             return false;
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
      */
251 251
     public function updatehits($frame_id)
252 252
     {
253
-        $sql = sprintf('UPDATE %s SET frame_hits = frame_hits+1 WHERE frame_frameid=%u', $this->db->prefix('myiframe'), (int)$frame_id);
253
+        $sql = sprintf('UPDATE %s SET frame_hits = frame_hits+1 WHERE frame_frameid=%u', $this->db->prefix('myiframe'), (int) $frame_id);
254 254
         $this->db->queryF($sql);
255 255
     }
256 256
 }
Please login to merge, or discard this patch.
xoops_version.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,15 +69,15 @@
 block discarded – undo
69 69
 
70 70
 if (is_object($xoopsModule) && $xoopsModule->getVar('dirname') == $modversion['dirname'] && $xoopsModule->getVar('isactive')) {
71 71
     $i = 0;
72
-    include_once XOOPS_ROOT_PATH . '/modules/myiframe/include/functions.php';
72
+    include_once XOOPS_ROOT_PATH.'/modules/myiframe/include/functions.php';
73 73
     $myts = MyTextSanitizer::getInstance();
74 74
     if (myiframe_getmoduleoption('showinmenu')) {
75
-        $sql    = 'SELECT * FROM ' . $xoopsDB->prefix('myiframe') . ' ORDER BY frame_description';
75
+        $sql    = 'SELECT * FROM '.$xoopsDB->prefix('myiframe').' ORDER BY frame_description';
76 76
         $result = $xoopsDB->query($sql);
77 77
         while ($myrow = $xoopsDB->fetchArray($result)) {
78 78
             if (xoops_trim($myrow['frame_description']) !== '') {
79 79
                 $modversion['sub'][$i]['name'] = $myts->htmlSpecialChars($myrow['frame_description']);
80
-                $modversion['sub'][$i]['url']  = 'index.php?iframeid=' . (int)$myrow['frame_frameid'];
80
+                $modversion['sub'][$i]['url']  = 'index.php?iframeid='.(int) $myrow['frame_frameid'];
81 81
                 $i++;
82 82
             }
83 83
         }
Please login to merge, or discard this patch.
blocks/myiframe_iframe.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  * ****************************************************************************
7 7
  */
8 8
 
9
-include_once XOOPS_ROOT_PATH . '/modules/myiframe/include/functions.php';
9
+include_once XOOPS_ROOT_PATH.'/modules/myiframe/include/functions.php';
10 10
 
11 11
 /**
12 12
  * @param $options
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         'left',
23 23
         'rigth'
24 24
     );
25
-    $tblscrolling  = array(
25
+    $tblscrolling = array(
26 26
         'yes',
27 27
         'no',
28 28
         'auto'
@@ -35,11 +35,11 @@  discard block
 block discarded – undo
35 35
         $block['longdesc']     = $frame->getVar('frame_description');
36 36
         $block['width']        = $frame->getVar('frame_width');
37 37
         $block['height']       = $frame->getVar('frame_height');
38
-        $block['align']        = $tblalign[$frame->getVar('frame_align') - 1];
38
+        $block['align']        = $tblalign[$frame->getVar('frame_align')-1];
39 39
         $block['frameborder']  = $frame->getVar('frame_frameborder');
40 40
         $block['marginwidth']  = $frame->getVar('frame_marginwidth');
41 41
         $block['marginheight'] = $frame->getVar('frame_marginheight');
42
-        $block['scrolling']    = $tblscrolling[$frame->getVar('frame_scrolling') - 1];
42
+        $block['scrolling']    = $tblscrolling[$frame->getVar('frame_scrolling')-1];
43 43
         $block['url']          = $frame->getVar('frame_url');
44 44
     }
45 45
     return $block;
@@ -57,13 +57,13 @@  discard block
 block discarded – undo
57 57
     $critere->setSort('frame_description');
58 58
     $frarray = $iframeHandler->getObjects($critere);
59 59
 
60
-    $form = '' . _MB_MYIFRAME_IFRAME . "&nbsp;<select name='options[0]'>";
60
+    $form = ''._MB_MYIFRAME_IFRAME."&nbsp;<select name='options[0]'>";
61 61
     foreach ($frarray as $oneframe) {
62
-        $form .= "<option value='" . $oneframe->getVar('frame_frameid') . "'";
62
+        $form .= "<option value='".$oneframe->getVar('frame_frameid')."'";
63 63
         if ($options[0] == $oneframe->getVar('frame_frameid')) {
64 64
             $form .= " selected='selected'";
65 65
         }
66
-        $form .= '>' . $oneframe->getVar('frame_description') . '</option>';
66
+        $form .= '>'.$oneframe->getVar('frame_description').'</option>';
67 67
     }
68 68
     $form .= "</select>\n";
69 69
     return $form;
Please login to merge, or discard this patch.
admin/manage.php 1 patch
Spacing   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -6,25 +6,25 @@  discard block
 block discarded – undo
6 6
  * ****************************************************************************
7 7
  */
8 8
 
9
-include __DIR__ . '/../../../include/cp_header.php';
10
-include_once XOOPS_ROOT_PATH . '/modules/myiframe/include/functions.php';
9
+include __DIR__.'/../../../include/cp_header.php';
10
+include_once XOOPS_ROOT_PATH.'/modules/myiframe/include/functions.php';
11 11
 
12 12
 // Verify if the table is up to date
13 13
 if (!myiframe_FieldExists('frame_frameid', $xoopsDB->prefix('myiframe'))) {
14
-    $result = $xoopsDB->queryF('ALTER TABLE ' . $xoopsDB->prefix('myiframe') . ' CHANGE `frameid` `frame_frameid` INT( 8 ) NOT NULL AUTO_INCREMENT');
15
-    $result = $xoopsDB->queryF('ALTER TABLE ' . $xoopsDB->prefix('myiframe') . " CHANGE `created` `frame_created` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0'");
16
-    $result = $xoopsDB->queryF('ALTER TABLE ' . $xoopsDB->prefix('myiframe') . " CHANGE `uid` `frame_uid` MEDIUMINT( 8 ) UNSIGNED NOT NULL DEFAULT '0'");
17
-    $result = $xoopsDB->queryF('ALTER TABLE ' . $xoopsDB->prefix('myiframe') . ' CHANGE `longdesc` `frame_description` VARCHAR( 255 ) NOT NULL');
18
-    $result = $xoopsDB->queryF('ALTER TABLE ' . $xoopsDB->prefix('myiframe') . ' CHANGE `width` `frame_width` VARCHAR( 15 ) NOT NULL');
19
-    $result = $xoopsDB->queryF('ALTER TABLE ' . $xoopsDB->prefix('myiframe') . ' CHANGE `height` `frame_height` VARCHAR( 15 ) NOT NULL');
20
-    $result = $xoopsDB->queryF('ALTER TABLE ' . $xoopsDB->prefix('myiframe') . " CHANGE `align` `frame_align` SMALLINT( 2 ) NOT NULL DEFAULT '0'");
21
-    $result = $xoopsDB->queryF('ALTER TABLE ' . $xoopsDB->prefix('myiframe') . " CHANGE `frameborder` `frame_frameborder` SMALLINT( 3 ) NOT NULL DEFAULT '0'");
22
-    $result = $xoopsDB->queryF('ALTER TABLE ' . $xoopsDB->prefix('myiframe') . " CHANGE `marginwidth` `frame_marginwidth` SMALLINT( 3 ) NOT NULL DEFAULT '0'");
23
-    $result = $xoopsDB->queryF('ALTER TABLE ' . $xoopsDB->prefix('myiframe') . " CHANGE `marginheight` `frame_marginheight` SMALLINT( 3 ) NOT NULL DEFAULT '0'");
24
-    $result = $xoopsDB->queryF('ALTER TABLE ' . $xoopsDB->prefix('myiframe') . " CHANGE `scrolling` `frame_scrolling` SMALLINT( 1 ) NOT NULL DEFAULT '0'");
25
-    $result = $xoopsDB->queryF('ALTER TABLE ' . $xoopsDB->prefix('myiframe') . " CHANGE `hits` `frame_hits` INT( 8 ) UNSIGNED NOT NULL DEFAULT '0'");
26
-    $result = $xoopsDB->queryF('ALTER TABLE ' . $xoopsDB->prefix('myiframe') . ' CHANGE `url` `frame_url` VARCHAR( 255 ) NOT NULL');
27
-    header('Location : ' . XOOPS_URL . '/modules/system/admin.php?fct=modulesadmin&op=update&module=myiframe');
14
+    $result = $xoopsDB->queryF('ALTER TABLE '.$xoopsDB->prefix('myiframe').' CHANGE `frameid` `frame_frameid` INT( 8 ) NOT NULL AUTO_INCREMENT');
15
+    $result = $xoopsDB->queryF('ALTER TABLE '.$xoopsDB->prefix('myiframe')." CHANGE `created` `frame_created` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0'");
16
+    $result = $xoopsDB->queryF('ALTER TABLE '.$xoopsDB->prefix('myiframe')." CHANGE `uid` `frame_uid` MEDIUMINT( 8 ) UNSIGNED NOT NULL DEFAULT '0'");
17
+    $result = $xoopsDB->queryF('ALTER TABLE '.$xoopsDB->prefix('myiframe').' CHANGE `longdesc` `frame_description` VARCHAR( 255 ) NOT NULL');
18
+    $result = $xoopsDB->queryF('ALTER TABLE '.$xoopsDB->prefix('myiframe').' CHANGE `width` `frame_width` VARCHAR( 15 ) NOT NULL');
19
+    $result = $xoopsDB->queryF('ALTER TABLE '.$xoopsDB->prefix('myiframe').' CHANGE `height` `frame_height` VARCHAR( 15 ) NOT NULL');
20
+    $result = $xoopsDB->queryF('ALTER TABLE '.$xoopsDB->prefix('myiframe')." CHANGE `align` `frame_align` SMALLINT( 2 ) NOT NULL DEFAULT '0'");
21
+    $result = $xoopsDB->queryF('ALTER TABLE '.$xoopsDB->prefix('myiframe')." CHANGE `frameborder` `frame_frameborder` SMALLINT( 3 ) NOT NULL DEFAULT '0'");
22
+    $result = $xoopsDB->queryF('ALTER TABLE '.$xoopsDB->prefix('myiframe')." CHANGE `marginwidth` `frame_marginwidth` SMALLINT( 3 ) NOT NULL DEFAULT '0'");
23
+    $result = $xoopsDB->queryF('ALTER TABLE '.$xoopsDB->prefix('myiframe')." CHANGE `marginheight` `frame_marginheight` SMALLINT( 3 ) NOT NULL DEFAULT '0'");
24
+    $result = $xoopsDB->queryF('ALTER TABLE '.$xoopsDB->prefix('myiframe')." CHANGE `scrolling` `frame_scrolling` SMALLINT( 1 ) NOT NULL DEFAULT '0'");
25
+    $result = $xoopsDB->queryF('ALTER TABLE '.$xoopsDB->prefix('myiframe')." CHANGE `hits` `frame_hits` INT( 8 ) UNSIGNED NOT NULL DEFAULT '0'");
26
+    $result = $xoopsDB->queryF('ALTER TABLE '.$xoopsDB->prefix('myiframe').' CHANGE `url` `frame_url` VARCHAR( 255 ) NOT NULL');
27
+    header('Location : '.XOOPS_URL.'/modules/system/admin.php?fct=modulesadmin&op=update&module=myiframe');
28 28
 }
29 29
 
30 30
 $module_id     = $xoopsModule->getVar('mid');
@@ -48,10 +48,10 @@  discard block
 block discarded – undo
48 48
  */
49 49
 function addEditForm($frameid, $Action, $FormTitle, $longdesc, $width, $height, $align, $frameborder, $marginwidth, $marginheight, $scrolling, $url, $LabelSubmitButton)
50 50
 {
51
-    include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
51
+    include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
52 52
     global $xoopsModule;
53 53
 
54
-    $sform = new XoopsThemeForm($FormTitle, 'indexform', XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/admin/manage.php');
54
+    $sform = new XoopsThemeForm($FormTitle, 'indexform', XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/admin/manage.php');
55 55
     $sform->addElement(new XoopsFormText(_AM_MYIFRAME_DESC, 'longdesc', 50, 255, $longdesc), false);
56 56
     $sform->addElement(new XoopsFormText(_AM_MYIFRAME_WIDTH, 'width', 10, 15, $width), false);
57 57
     $sform->addElement(new XoopsFormText(_AM_MYIFRAME_HEIGHT, 'height', 10, 15, $height), false);
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     $button_tray->addElement($cancel_btn);
90 90
     $sform->addElement($button_tray);
91 91
     $sform->display();
92
-    include_once __DIR__ . '/admin_footer.php';
92
+    include_once __DIR__.'/admin_footer.php';
93 93
 }
94 94
 
95 95
 // ******************************************************************************************************************************************
@@ -111,10 +111,10 @@  discard block
 block discarded – undo
111 111
                 $adminObject->displayNavigation(basename(__FILE__));
112 112
                 echo "<table width='100%' border='0' cellspacing='1' class='outer'>\n";
113 113
                 echo '<tr><td class="odd">';
114
-                echo "<a href='manage.php'><h4>" . _AM_MYIFRAME_CONFIG . '</h4></a>';
114
+                echo "<a href='manage.php'><h4>"._AM_MYIFRAME_CONFIG.'</h4></a>';
115 115
                 echo _AM_MYIFRAME_ERROR_ADD_INDEX;
116 116
                 echo '</td></tr></table>';
117
-                include_once __DIR__ . '/admin_footer.php';
117
+                include_once __DIR__.'/admin_footer.php';
118 118
                 xoops_cp_footer();
119 119
                 exit();
120 120
             }
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         $adminObject = \Xmf\Module\Admin::getInstance();
148 148
         $adminObject->displayNavigation(basename(__FILE__));
149 149
         if (isset($_GET['frameid'])) {
150
-            $frameid = (int)$_GET['frameid'];
150
+            $frameid = (int) $_GET['frameid'];
151 151
             $frame   = $iframeHandler->get($frameid);
152 152
             AddEditForm($frameid, 'verifybeforeedit', _AM_MYIFRAME_CONFIG, $frame->getVar('frame_description', 'e'), $frame->getVar('frame_width', 'e'), $frame->getVar('frame_height', 'e'), $frame->getVar('frame_align', 'e'),
153 153
                         $frame->getVar('frame_frameborder', 'e'), $frame->getVar('frame_marginwidth', 'e'), $frame->getVar('frame_marginheight', 'e'), $frame->getVar('frame_scrolling', 'e'), $frame->getVar('frame_url', 'e'), _AM_MYIFRAME_UPDATE);
@@ -157,10 +157,10 @@  discard block
 block discarded – undo
157 157
             $adminObject->displayNavigation(basename(__FILE__));
158 158
             echo "<table width='100%' border='0' cellspacing='1' class='outer'>\n";
159 159
             echo '<tr><td class="odd">';
160
-            echo "<a href='manage.php'><h4>" . _AM_MYIFRAME_CONFIG . '</h4></a>';
160
+            echo "<a href='manage.php'><h4>"._AM_MYIFRAME_CONFIG.'</h4></a>';
161 161
             echo _AM_MYIFRAME_ERROR_ADD_INDEX;
162 162
             echo "</td></tr></table>\n";
163
-            include_once __DIR__ . '/admin_footer.php';
163
+            include_once __DIR__.'/admin_footer.php';
164 164
             xoops_cp_footer();
165 165
             exit();
166 166
         }
@@ -171,19 +171,19 @@  discard block
 block discarded – undo
171 171
             xoops_cp_header();
172 172
             $adminObject = \Xmf\Module\Admin::getInstance();
173 173
             $adminObject->displayNavigation(basename(__FILE__));
174
-            echo '<h4>' . _AM_MYIFRAME_CONFIG . '</h4>';
174
+            echo '<h4>'._AM_MYIFRAME_CONFIG.'</h4>';
175 175
             xoops_confirm(array(
176 176
                               'op'      => 'delete',
177
-                              'frameid' => (int)$_GET['frameid'],
177
+                              'frameid' => (int) $_GET['frameid'],
178 178
                               'ok'      => 1
179 179
                           ), 'manage.php', _AM_MYIFRAME_RUSUREDEL);
180
-            include_once __DIR__ . '/admin_footer.php';
180
+            include_once __DIR__.'/admin_footer.php';
181 181
         } else {
182 182
             if (empty($_POST['frameid'])) {
183 183
                 redirect_header('manage.php', 2, _AM_MYIFRAME_ERROR_ADD_INDEX);
184 184
                 exit();
185 185
             }
186
-            $frameid = (int)$_POST['frameid'];
186
+            $frameid = (int) $_POST['frameid'];
187 187
             $critere = new Criteria('frame_frameid', $frameid, '=');
188 188
             $iframeHandler->deleteAll($critere);
189 189
             redirect_header('manage.php', 1, _AM_MYIFRAME_DBUPDATED);
@@ -199,10 +199,10 @@  discard block
 block discarded – undo
199 199
                 $adminObject->displayNavigation(basename(__FILE__));
200 200
                 echo "<table width='100%' border='0' cellspacing='1' class='outer'>\n";
201 201
                 echo '<tr><td class="odd">';
202
-                echo "<a href='manage.php'><h4>" . _AM_MYIFRAME_CONFIG . '</h4></a>';
202
+                echo "<a href='manage.php'><h4>"._AM_MYIFRAME_CONFIG.'</h4></a>';
203 203
                 echo _AM_MYIFRAME_ERROR_ADD_INDEX;
204 204
                 echo "</td></tr></table>\n";
205
-                include_once __DIR__ . '/admin_footer.php';
205
+                include_once __DIR__.'/admin_footer.php';
206 206
                 xoops_cp_footer();
207 207
                 $adminObject = \Xmf\Module\Admin::getInstance();
208 208
                 $adminObject->displayNavigation(basename(__FILE__));
@@ -241,33 +241,33 @@  discard block
 block discarded – undo
241 241
         xoops_cp_header();
242 242
         $adminObject = \Xmf\Module\Admin::getInstance();
243 243
         $adminObject->displayNavigation(basename(__FILE__));
244
-        echo '<h4>' . _AM_MYIFRAME_CONFIG . "</h4><br />\n";
244
+        echo '<h4>'._AM_MYIFRAME_CONFIG."</h4><br />\n";
245 245
         echo "<table width='100%' border='0' cellspacing='1' class='outer'>\n";
246
-        echo "<tr><th align='center'>" . _AM_MYIFRAME_ID . "</th><th align='center'>" . _AM_MYIFRAME_DESC . "</th><th align='center'>" . _AM_MYIFRAME_CREATED . "</th><th align='center'>" . _AM_MYIFRAME_HITS . "</th><th align='center'>"
247
-             . _AM_MYIFRAME_ACTION . "</th></tr>\n";
246
+        echo "<tr><th align='center'>"._AM_MYIFRAME_ID."</th><th align='center'>"._AM_MYIFRAME_DESC."</th><th align='center'>"._AM_MYIFRAME_CREATED."</th><th align='center'>"._AM_MYIFRAME_HITS."</th><th align='center'>"
247
+             . _AM_MYIFRAME_ACTION."</th></tr>\n";
248 248
         $critere = new Criteria('1', '1', '=');
249 249
         $critere->setSort('frame_description');
250 250
         $frarray = $iframeHandler->getObjects($critere);
251 251
         $class   = 'even';
252
-        $baseurl = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/admin/manage.php';
252
+        $baseurl = XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/admin/manage.php';
253 253
         if (count($frarray) > 0) {
254 254
             foreach ($frarray as $frame) {
255
-                $action_edit   = "<a href='" . $baseurl . '?op=edit&frameid=' . $frame->getVar('frame_frameid') . "'><img src='../assets/images/edit.png' alt='" . _AM_MYIFRAME_EDIT . "'></a>";
256
-                $action_delete = "<a href='" . $baseurl . '?op=delete&frameid=' . $frame->getVar('frame_frameid') . "'><img src='../assets/images/delete.png' alt='" . _AM_MYIFRAME_DELETE . "'></a>";
255
+                $action_edit   = "<a href='".$baseurl.'?op=edit&frameid='.$frame->getVar('frame_frameid')."'><img src='../assets/images/edit.png' alt='"._AM_MYIFRAME_EDIT."'></a>";
256
+                $action_delete = "<a href='".$baseurl.'?op=delete&frameid='.$frame->getVar('frame_frameid')."'><img src='../assets/images/delete.png' alt='"._AM_MYIFRAME_DELETE."'></a>";
257 257
                 if (xoops_trim($frame->getVar('frame_description') === '')) {
258 258
                     $liendesc = $frame->getVar('frame_url');
259 259
                 } else {
260
-                    $liendesc = "<a href='" . XOOPS_URL . '/modules/myiframe/index.php?iframeid=' . $frame->getVar('frame_frameid') . "'>" . $frame->getVar('frame_description') . '</a>';
260
+                    $liendesc = "<a href='".XOOPS_URL.'/modules/myiframe/index.php?iframeid='.$frame->getVar('frame_frameid')."'>".$frame->getVar('frame_description').'</a>';
261 261
                 }
262
-                echo "<tr class='" . $class . "'><td align='center'>" . $frame->getVar('frame_frameid') . "</td><td align='center'>" . $liendesc . "</td><td align='center'>" . formatTimestamp($frame->getVar('frame_created'))
263
-                     . "</td><td align='center'>" . $frame->getVar('frame_hits') . "</td><td align='center'>" . $action_edit . '&nbsp;-&nbsp;' . $action_delete . "</td></tr>\n";
262
+                echo "<tr class='".$class."'><td align='center'>".$frame->getVar('frame_frameid')."</td><td align='center'>".$liendesc."</td><td align='center'>".formatTimestamp($frame->getVar('frame_created'))
263
+                     . "</td><td align='center'>".$frame->getVar('frame_hits')."</td><td align='center'>".$action_edit.'&nbsp;-&nbsp;'.$action_delete."</td></tr>\n";
264 264
                 $class = ($class === 'even') ? 'odd' : 'even';
265 265
             }
266 266
         }
267
-        echo "<tr class='" . $class . "'><td colspan='5' align='center'><form name='faddframe' method='post' action='manage.php'><input type='hidden' name='op' value='addframe'><input type='submit' name='submit' value='" . _AM_MYIFRAME_ADD
267
+        echo "<tr class='".$class."'><td colspan='5' align='center'><form name='faddframe' method='post' action='manage.php'><input type='hidden' name='op' value='addframe'><input type='submit' name='submit' value='"._AM_MYIFRAME_ADD
268 268
              . "'></td></tr>";
269 269
         echo '</table>';
270
-        include_once __DIR__ . '/admin_footer.php';
270
+        include_once __DIR__.'/admin_footer.php';
271 271
         break;
272 272
 }
273 273
 
Please login to merge, or discard this patch.
admin/admin_footer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@
 block discarded – undo
17 17
  * @author     XOOPS Development Team
18 18
  */
19 19
 
20
-$pathIcon32      = Xmf\Module\Admin::iconUrl('', 32);
20
+$pathIcon32 = Xmf\Module\Admin::iconUrl('', 32);
21 21
 
22 22
 echo "<div class='adminfooter'>\n"
23 23
      ."  <div style='text-align: center;'>\n"
24 24
      ."    <a href='http://www.xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"
25 25
      ."  </div>\n"
26
-     .'  ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n"
26
+     .'  '._AM_MODULEADMIN_ADMIN_FOOTER."\n"
27 27
      .'</div>';
28 28
 
29 29
 xoops_cp_footer();
Please login to merge, or discard this patch.
admin/menu.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,19 +23,19 @@
 block discarded – undo
23 23
     array(
24 24
         'title' => _MI_MYIFRAME_NAME,
25 25
         'link'  => 'admin/index.php',
26
-        'icon'  => $pathIcon32 . '/home.png'
26
+        'icon'  => $pathIcon32.'/home.png'
27 27
     ),
28 28
 
29 29
     array(
30 30
         'title' => _MI_MYIFRAME_ADMENU1,
31 31
         'link'  => 'admin/manage.php',
32
-        'icon'  => $pathIcon32 . '/manage.png'
32
+        'icon'  => $pathIcon32.'/manage.png'
33 33
     ),
34 34
 
35 35
     // Category
36 36
     array(
37 37
         'title' => _MI_MYIFRAME_ADMENU2,
38 38
         'link'  => 'admin/about.php',
39
-        'icon'  => $pathIcon32 . '/about.png'
39
+        'icon'  => $pathIcon32.'/about.png'
40 40
     ),
41 41
 );
Please login to merge, or discard this patch.
admin/about.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,11 +9,11 @@
 block discarded – undo
9 9
 #  Licence : GPL 							#
10 10
 #######################################################
11 11
 
12
-require_once __DIR__ . '/admin_header.php';
12
+require_once __DIR__.'/admin_header.php';
13 13
 xoops_cp_header();
14 14
 $adminObject = \Xmf\Module\Admin::getInstance();
15 15
 $adminObject->displayNavigation(basename(__FILE__));
16 16
 \Xmf\Module\Admin::setPaypal('[email protected]');
17 17
 $adminObject->displayAbout(false);
18 18
 
19
-require_once __DIR__ . '/admin_footer.php';
19
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@
 block discarded – undo
10 10
  * @version             $Id: blocks_mytype.php 2017-06-06
11 11
  **/
12 12
 
13
-include_once __DIR__ . '/admin_header.php';
13
+include_once __DIR__.'/admin_header.php';
14 14
 xoops_cp_header();
15 15
 $adminObject = \Xmf\Module\Admin::getInstance();
16 16
 $adminObject->displayNavigation(basename(__FILE__));
17 17
 $adminObject->displayIndex();
18 18
 
19
-include_once __DIR__ . '/admin_footer.php';
19
+include_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/admin_header.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2
-include __DIR__ . '/../../../mainfile.php';
3
-include XOOPS_ROOT_PATH . '/include/cp_functions.php';
4
-include_once XOOPS_ROOT_PATH . '/kernel/module.php';
5
-include __DIR__ . '/../../../include/cp_header.php';
2
+include __DIR__.'/../../../mainfile.php';
3
+include XOOPS_ROOT_PATH.'/include/cp_functions.php';
4
+include_once XOOPS_ROOT_PATH.'/kernel/module.php';
5
+include __DIR__.'/../../../include/cp_header.php';
6 6
 if ($xoopsUser) {
7 7
     $xoopsModule = XoopsModule::getByDirname('myiframe');
8 8
     if (!$xoopsUser->isAdmin($xoopsModule->mid())) {
9
-        redirect_header(XOOPS_URL . '/', 3, _NOPERM);
9
+        redirect_header(XOOPS_URL.'/', 3, _NOPERM);
10 10
         exit();
11 11
     }
12 12
 } else {
13
-    redirect_header(XOOPS_URL . '/', 3, _NOPERM);
13
+    redirect_header(XOOPS_URL.'/', 3, _NOPERM);
14 14
     exit();
15 15
 }
16 16
 
Please login to merge, or discard this patch.