Completed
Push — master ( ec1681...68c045 )
by Michael
02:41
created
admin/about.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
16 16
  *
17 17
  * @author       Mage, Mamba
18 18
  **/
19
-require_once __DIR__ . '/admin_header.php';
19
+require_once __DIR__.'/admin_header.php';
20 20
 xoops_cp_header();
21 21
 
22 22
 $adminObject->displayNavigation(basename(__FILE__));
23 23
 $adminObject->displayAbout('[email protected]', false);
24 24
 
25
-require_once __DIR__ . '/admin_footer.php';
25
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/cat.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../../../include/cp_header.php';
21
-include __DIR__ . '/../../../class/xoopsformloader.php';
22
-require_once __DIR__ . '/admin_header.php';
23
-require_once __DIR__ . '/../class/utility.php';
24
-require_once __DIR__ . '/../include/constantes.php';
20
+require_once __DIR__.'/../../../include/cp_header.php';
21
+include __DIR__.'/../../../class/xoopsformloader.php';
22
+require_once __DIR__.'/admin_header.php';
23
+require_once __DIR__.'/../class/utility.php';
24
+require_once __DIR__.'/../include/constantes.php';
25 25
 
26 26
 $gepeto = array_merge($_GET, $_POST);
27 27
 //while (list($key, $value) = each($gepeto)) {
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         $form->addElement(new XoopsFormText(_AM_EXTCAL_WEIGHT, 'cat_weight', 30, 5, 0), false);
80 80
         $form->addElement(new XoopsFormColorPicker(_AM_EXTCAL_COLOR, 'cat_color', '#FF0000'));
81 81
 
82
-        $file_path = __DIR__ . '/../assets/css/images';
82
+        $file_path = __DIR__.'/../assets/css/images';
83 83
         $tf        = XoopsLists::getImgListAsArray($file_path);
84 84
         array_unshift($tf, _MD_EXTCAL_NONE);
85 85
         //$xfIcones = new XoopsFormSelect(_AM_EXTCAL_ICONE, "cat_icone", $cat->getVar('cat_icone'), '');
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
         $form->display();
93 93
 
94
-        require_once __DIR__ . '/admin_footer.php';
94
+        require_once __DIR__.'/admin_footer.php';
95 95
         break;
96 96
 
97 97
     case 'edit':
@@ -104,15 +104,15 @@  discard block
 block discarded – undo
104 104
             $cat = $catHandler->getCat($cat_id, true);
105 105
         }
106 106
 
107
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_EDIT_CATEGORY . '</legend>';
107
+        echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_EDIT_CATEGORY.'</legend>';
108 108
 
109 109
         $form = new XoopsThemeForm(_AM_EXTCAL_ADD_CATEGORY, 'add_cat', 'cat.php?op=enreg', 'post', true);
110 110
         $form->addElement(new XoopsFormText(_AM_EXTCAL_NAME, 'cat_name', 30, 255, $cat->getVar('cat_name')), true);
111 111
         $form->addElement(new XoopsFormDhtmlTextArea(_AM_EXTCAL_DESCRIPTION, 'cat_desc', $cat->getVar('cat_desc')), false);
112 112
         $form->addElement(new XoopsFormText(_AM_EXTCAL_WEIGHT, 'cat_weight', 30, 5, $cat->getVar('cat_weight')), false);
113
-        $form->addElement(new XoopsFormColorPicker(_AM_EXTCAL_COLOR, 'cat_color', '#' . $cat->getVar('cat_color')));
113
+        $form->addElement(new XoopsFormColorPicker(_AM_EXTCAL_COLOR, 'cat_color', '#'.$cat->getVar('cat_color')));
114 114
 
115
-        $file_path = __DIR__ . '/../assets/css/images';
115
+        $file_path = __DIR__.'/../assets/css/images';
116 116
         $tf        = XoopsLists::getImgListAsArray($file_path);
117 117
         array_unshift($tf, _MD_EXTCAL_NONE);
118 118
         $xfIcones = new XoopsFormSelect(_AM_EXTCAL_ICONE, 'cat_icone', $cat->getVar('cat_icone'), '');
@@ -268,6 +268,6 @@  discard block
 block discarded – undo
268 268
         //$xoopsTpl->assign("module_dirname",    $xoopsModule->getVar("dirname") );
269 269
 
270 270
         $xoopsTpl->display('db:admin/extcal_admin_cat_list.tpl');
271
-        require_once __DIR__ . '/admin_footer.php';
271
+        require_once __DIR__.'/admin_footer.php';
272 272
         break;
273 273
 }
Please login to merge, or discard this patch.
versions/extcal_2_21.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,13 +33,13 @@
 block discarded – undo
33 33
         global $xoopsDB;
34 34
 
35 35
         // Create eXtcal upload directory if don't exist
36
-        $dir = XOOPS_ROOT_PATH . '/uploads/extcal';
36
+        $dir = XOOPS_ROOT_PATH.'/uploads/extcal';
37 37
         if (!is_dir($dir)) {
38 38
             mkdir($dir);
39 39
 
40 40
             // Copy index.html files on uploads folders
41
-            $indexFile = __DIR__ . '/index.html';
42
-            copy($indexFile, XOOPS_ROOT_PATH . '/uploads/extcal/index.html');
41
+            $indexFile = __DIR__.'/index.html';
42
+            copy($indexFile, XOOPS_ROOT_PATH.'/uploads/extcal/index.html');
43 43
         }
44 44
 
45 45
         // Create who's not going table to fix bug. If the table exist, the query will faile
Please login to merge, or discard this patch.
versions/extcal_2_15.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,19 +35,19 @@
 block discarded – undo
35 35
         //$xoopsDB = XoopsDatabaseFactory::getDatabaseConnection();
36 36
         $xoopsDB = XoopsDatabaseFactory::getDatabaseConnection();
37 37
 
38
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . "` CHANGE `event_approved` `event_approved` TINYINT( 1 ) NOT NULL DEFAULT '0' ;";
38
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event')."` CHANGE `event_approved` `event_approved` TINYINT( 1 ) NOT NULL DEFAULT '0' ;";
39 39
         $xoopsDB->query($sql);
40 40
 
41
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . '` ADD `event_isrecur` TINYINT( 1 ) NOT NULL AFTER `event_nbmember` ;';
41
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event').'` ADD `event_isrecur` TINYINT( 1 ) NOT NULL AFTER `event_nbmember` ;';
42 42
         $xoopsDB->query($sql);
43 43
 
44
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . '` ADD `event_recur_rules` VARCHAR( 255 ) NOT NULL AFTER `event_isrecur` ';
44
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event').'` ADD `event_recur_rules` VARCHAR( 255 ) NOT NULL AFTER `event_isrecur` ';
45 45
         $xoopsDB->query($sql);
46 46
 
47
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . '` ADD `event_recur_start` INT( 11 ) NOT NULL AFTER `event_recur_rules` ;';
47
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event').'` ADD `event_recur_start` INT( 11 ) NOT NULL AFTER `event_recur_rules` ;';
48 48
         $xoopsDB->query($sql);
49 49
 
50
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . '` ADD `event_recur_end` INT( 11 ) NOT NULL AFTER `event_recur_start` ;';
50
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event').'` ADD `event_recur_end` INT( 11 ) NOT NULL AFTER `event_recur_start` ;';
51 51
         $xoopsDB->query($sql);
52 52
 
53 53
         $sql = 'CREATE TABLE `'
Please login to merge, or discard this patch.
versions/extcal_2_04.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     {
33 33
         global $xoopsDB;
34 34
 
35
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . "` ADD `event_nbmember` TINYINT(4) NOT NULL DEFAULT '0' AFTER `event_submitdate` ;";
35
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event')."` ADD `event_nbmember` TINYINT(4) NOT NULL DEFAULT '0' AFTER `event_submitdate` ;";
36 36
         $xoopsDB->query($sql);
37 37
     }
38 38
 
Please login to merge, or discard this patch.
header.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -17,24 +17,24 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-include XOOPS_ROOT_PATH . '/header.php';
20
+include XOOPS_ROOT_PATH.'/header.php';
21 21
 
22
-require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
22
+require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
23 23
 
24
-require_once __DIR__ . '/include/agenda_fnc.php';
25
-require_once __DIR__ . '/class/utility.php';
24
+require_once __DIR__.'/include/agenda_fnc.php';
25
+require_once __DIR__.'/class/utility.php';
26 26
 
27
-require_once __DIR__ . '/class/perm.php';
28
-require_once __DIR__ . '/class/form/extcalform.php';
27
+require_once __DIR__.'/class/perm.php';
28
+require_once __DIR__.'/class/form/extcalform.php';
29 29
 
30 30
 xoops_loadLanguage('modinfo', _EXTCAL_MODULE);
31 31
 
32 32
 //------------------------------------------------------
33
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Util/Textual.php';
34
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weeks.php';
35
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weekdays.php';
36
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Week.php';
37
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Day.php';
33
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Util/Textual.php';
34
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weeks.php';
35
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weekdays.php';
36
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Week.php';
37
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Day.php';
38 38
 
39 39
 //------------------------------------------------------
40 40
 // Getting eXtCal object's handler
Please login to merge, or discard this patch.
comment_reply.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,5 +17,5 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-include __DIR__ . '/../../mainfile.php';
21
-include XOOPS_ROOT_PATH . '/include/comment_reply.php';
20
+include __DIR__.'/../../mainfile.php';
21
+include XOOPS_ROOT_PATH.'/include/comment_reply.php';
Please login to merge, or discard this patch.
download_attachement.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-require_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+require_once __DIR__.'/include/constantes.php';
5 5
 
6 6
 if (!isset($_GET['file'])) {
7 7
     $fileId = 0;
8 8
 } else {
9
-    $fileId = (int)$_GET['file'];
9
+    $fileId = (int) $_GET['file'];
10 10
 }
11 11
 /** @var ExtcalFileHandler $fileHandler */
12 12
 $fileHandler = xoops_getModuleHandler(_EXTCAL_CLS_FILE, _EXTCAL_MODULE);
13 13
 
14 14
 $file = $fileHandler->getFile($fileId);
15 15
 
16
-header('Content-Type: ' . $file->getVar('file_mimetype') . '');
17
-header('Content-Disposition: attachment; filename="' . $file->getVar('file_nicename') . '"');
16
+header('Content-Type: '.$file->getVar('file_mimetype').'');
17
+header('Content-Disposition: attachment; filename="'.$file->getVar('file_nicename').'"');
18 18
 
19
-readfile(XOOPS_ROOT_PATH . '/uploads/extcal/' . $file->getVar('file_name'));
19
+readfile(XOOPS_ROOT_PATH.'/uploads/extcal/'.$file->getVar('file_name'));
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
3
+include __DIR__.'/../../mainfile.php';
4 4
 
5 5
 //modif JJD
6
-require_once __DIR__ . '/include/constantes.php';
6
+require_once __DIR__.'/include/constantes.php';
7 7
 
8 8
 header("Location: {$xoopsModuleConfig['start_page']}");
Please login to merge, or discard this patch.