Completed
Push — master ( 038288...a847dd )
by Richard
39s queued 10s
created
htdocs/modules/xlanguage/admin/index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  
19 19
 use Xmf\Request;
20 20
 
21
-include __DIR__ . '/header.php';
21
+include __DIR__.'/header.php';
22 22
 
23 23
 switch ($op) {
24 24
 
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
                 } else {
81 81
                     $confirm = $xoops->confirm(array(
82 82
                         'ok' => 1, 'xlanguage_id' => $xlanguage_id, 'op' => 'del'
83
-                    ), $_SERVER['REQUEST_URI'], sprintf(_AM_XLANGUAGE_DELETE_CFM . "<br /><b><span style='color : Red'> %s </span></b><br /><br />", $lang->getVar('xlanguage_name')));
84
-                    $confirm = '<div class="confirm">' . $confirm . '</div>';
83
+                    ), $_SERVER['REQUEST_URI'], sprintf(_AM_XLANGUAGE_DELETE_CFM."<br /><b><span style='color : Red'> %s </span></b><br /><br />", $lang->getVar('xlanguage_name')));
84
+                    $confirm = '<div class="confirm">'.$confirm.'</div>';
85 85
                     $admin_page->addInfoBox(_MI_XLANGUAGE_DELETE);
86 86
                     $admin_page->addInfoBoxLine($confirm);
87 87
                     $admin_page->displayIndex();
@@ -106,4 +106,4 @@  discard block
 block discarded – undo
106 106
         $admin_page->displayIndex();
107 107
         break;
108 108
 }
109
-include __DIR__ . '/footer.php';
109
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
htdocs/modules/maintenance/admin/center.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
 use Xmf\Request;
24 24
 
25
-include __DIR__ . '/header.php';
25
+include __DIR__.'/header.php';
26 26
 // Get main instance
27 27
 $system = System::getInstance();
28 28
 $xoops = Xoops::getInstance();
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         }
89 89
         //Session
90 90
         if ($session == 1) {
91
-            $result = $db->queryF('TRUNCATE TABLE ' . $db->prefix('session'));
91
+            $result = $db->queryF('TRUNCATE TABLE '.$db->prefix('session'));
92 92
             $result ? $result_session = true : $result_session = false;
93 93
             $xoops->tpl()->assign('result_session', $result_session);
94 94
             $xoops->tpl()->assign('session', true);
@@ -109,30 +109,30 @@  discard block
 block discarded – undo
109 109
             }
110 110
             unset($tab);
111 111
             for ($i = 0; $i < count($tables); ++$i) {
112
-                $result_arr['table'] = $db->prefix . $tables[$i];
112
+                $result_arr['table'] = $db->prefix.$tables[$i];
113 113
                 for ($j = 0; $j < 4; ++$j) {
114 114
                     switch ($tab1[$j]) {
115 115
                         case 1:
116 116
                             //Optimize
117
-                            $result = $db->queryF('OPTIMIZE TABLE ' . $db->prefix($tables[$i]));
117
+                            $result = $db->queryF('OPTIMIZE TABLE '.$db->prefix($tables[$i]));
118 118
                             $result ? $result_arr['optimize'] = true : $result_arr['optimize'] = false;
119 119
                             break;
120 120
 
121 121
                         case 2:
122 122
                             //Tables
123
-                            $result = $db->queryF('CHECK TABLE ' . $db->prefix($tables[$i]));
123
+                            $result = $db->queryF('CHECK TABLE '.$db->prefix($tables[$i]));
124 124
                             $result ? $result_arr['check'] = true : $result_arr['check'] = false;
125 125
                             break;
126 126
 
127 127
                         case 3:
128 128
                             //Repair
129
-                            $result = $db->queryF('REPAIR TABLE ' . $db->prefix($tables[$i]));
129
+                            $result = $db->queryF('REPAIR TABLE '.$db->prefix($tables[$i]));
130 130
                             $result ? $result_arr['repair'] = true : $result_arr['repair'] = false;
131 131
                             break;
132 132
 
133 133
                         case 4:
134 134
                             //Analyze
135
-                            $result = $db->queryF('ANALYZE TABLE ' . $db->prefix($tables[$i]));
135
+                            $result = $db->queryF('ANALYZE TABLE '.$db->prefix($tables[$i]));
136 136
                             $result ? $result_arr['analyse'] = true : $result_arr['analyse'] = false;
137 137
                             break;
138 138
                     }
Please login to merge, or discard this patch.
htdocs/modules/maintenance/admin/dump.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
 use Xmf\Request;
24 24
 
25
-include __DIR__ . '/header.php';
25
+include __DIR__.'/header.php';
26 26
 // Get main instance
27 27
 $system = System::getInstance();
28 28
 $xoops = Xoops::getInstance();
@@ -42,14 +42,14 @@  discard block
 block discarded – undo
42 42
 
43 43
     case 'list':
44 44
     default:
45
-        $files = glob(\XoopsBaseConfig::get('root-path') . '/modules/maintenance/dump/*.*');
45
+        $files = glob(\XoopsBaseConfig::get('root-path').'/modules/maintenance/dump/*.*');
46 46
         $count = 0;
47 47
         foreach ($files as $filename_path) {
48 48
             $filename = basename(strtolower($filename_path));
49 49
             if ($filename !== 'index.html') {
50 50
                 $file_arr[$count]['name'] = $filename;
51 51
                 $stat = stat($filename_path);
52
-                $file_arr[$count]['size'] = number_format($stat['size']/1024);
52
+                $file_arr[$count]['size'] = number_format($stat['size'] / 1024);
53 53
                 ++$count;
54 54
                 unset($filename);
55 55
             }
@@ -87,18 +87,18 @@  discard block
 block discarded – undo
87 87
         $dump = new Maintenance();
88 88
         $sql_text = "# \n";
89 89
         $sql_text .= "# Dump SQL, Generated by XOOPS \n";
90
-        $sql_text .= "# Date : " . \XoopsLocale::formatTimestamp(time(), 'medium') . " \n";
90
+        $sql_text .= "# Date : ".\XoopsLocale::formatTimestamp(time(), 'medium')." \n";
91 91
         $sql_text .= "# \n\n";
92 92
         if ($dump_tables != false) {
93 93
             $result_module = array();
94 94
             for ($i = 0; $i < count($dump_tables); ++$i) {
95 95
                 //structure
96
-                $result_tables[$i]['name'] = $db->prefix . '_' . $dump_tables[$i];
97
-                $result_structure = $dump->dumpTableStructure($db->prefix . '_' . $dump_tables[$i], $drop);
96
+                $result_tables[$i]['name'] = $db->prefix.'_'.$dump_tables[$i];
97
+                $result_structure = $dump->dumpTableStructure($db->prefix.'_'.$dump_tables[$i], $drop);
98 98
                 $sql_text .= $result_structure['sql_text'];
99 99
                 $result_tables[$i]['structure'] = $result_structure['structure'];
100 100
                 //data
101
-                $result_data = $dump->dumpTableData($db->prefix . '_' . $dump_tables[$i]);
101
+                $result_data = $dump->dumpTableData($db->prefix.'_'.$dump_tables[$i]);
102 102
                 $sql_text .= $result_data['sql_text'];
103 103
                 $result_tables[$i]['records'] = $result_data['records'];
104 104
             }
@@ -115,13 +115,13 @@  discard block
 block discarded – undo
115 115
                     $count = 0;
116 116
                     foreach ($modtables as $table) {
117 117
                         //structure
118
-                        $result_tables[$count]['name'] = $db->prefix . '_' . $table;
119
-                        $result_structure = $dump->dumpTableStructure($db->prefix . '_' . $table, $drop);
118
+                        $result_tables[$count]['name'] = $db->prefix.'_'.$table;
119
+                        $result_structure = $dump->dumpTableStructure($db->prefix.'_'.$table, $drop);
120 120
                         $sql_text .= $result_structure['sql_text'];
121 121
                         $result_tables[$count]['structure'] = $result_structure['structure'];
122 122
 
123 123
                         //data
124
-                        $result_data = $dump->dumpTableData($db->prefix . '_' . $table);
124
+                        $result_data = $dump->dumpTableData($db->prefix.'_'.$table);
125 125
                         $sql_text .= $result_data['sql_text'];
126 126
                         $result_tables[$count]['records'] = $result_data['records'];
127 127
                         ++$count;
@@ -145,12 +145,12 @@  discard block
 block discarded – undo
145 145
         if ($filename == '') {
146 146
             $xoops->redirect("dump.php", 2, _AM_MAINTENANCE_DUMP_NOFILE);
147 147
         }
148
-        unlink(\XoopsBaseConfig::get('root-path') . '/modules/maintenance/dump/' . $filename);
148
+        unlink(\XoopsBaseConfig::get('root-path').'/modules/maintenance/dump/'.$filename);
149 149
         $xoops->redirect("dump.php", 2, _AM_MAINTENANCE_DUMP_DELETED);
150 150
         break;
151 151
 
152 152
     case 'dump_deleteall':
153
-        $files = glob(\XoopsBaseConfig::get('root-path') . '/modules/maintenance/dump/*.*');
153
+        $files = glob(\XoopsBaseConfig::get('root-path').'/modules/maintenance/dump/*.*');
154 154
         $count = 0;
155 155
         foreach ($files as $filename_path) {
156 156
             if (basename(strtolower($filename_path)) !== 'index.html') {
Please login to merge, or discard this patch.