Completed
Branch master (838035)
by Michael
03:45
created
htdocs/modules/extcal/include/functions.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -433,8 +433,8 @@
 block discarded – undo
433 433
 /**************************************************************************/
434 434
 /**
435 435
  * @param $color
436
- * @param $plancher
437
- * @param $plafond
436
+ * @param integer $plancher
437
+ * @param integer $plafond
438 438
  *
439 439
  * @return string
440 440
  */
Please login to merge, or discard this patch.
htdocs/modules/extcal/include/mail_fnc.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -211,6 +211,9 @@  discard block
 block discarded – undo
211 211
  * @param int    $mode
212 212
  * @param string $sep
213 213
  */
214
+/**
215
+ * @param string $mail_subject
216
+ */
214 217
 function extcal_SendMail(
215 218
     $destinataires,
216 219
     $mail_fromname,
@@ -300,6 +303,9 @@  discard block
 block discarded – undo
300 303
  *
301 304
  * @return string
302 305
  */
306
+/**
307
+ * @param integer $mode
308
+ */
303 309
 function extcal_getHeader($mode, $emailSender)
304 310
 {
305 311
 //mode = 0 pas d'entete
Please login to merge, or discard this patch.
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * classGenerator
4
- * walls_watermarks
5
- *
6
- * You may not change or alter any portion of this comment or credits
7
- * of supporting developers from this source code or any supporting source code
8
- * which is considered copyrighted (c) material of the original comment or credit authors.
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
- *
13
- *
14
- *
15
- * L'utilisation de ce formulaire d'adminitration suppose
16
- * que la classe correspondante de la table a été générées avec classGenerator
17
- **/
3
+     * classGenerator
4
+     * walls_watermarks
5
+     *
6
+     * You may not change or alter any portion of this comment or credits
7
+     * of supporting developers from this source code or any supporting source code
8
+     * which is considered copyrighted (c) material of the original comment or credit authors.
9
+     * This program is distributed in the hope that it will be useful,
10
+     * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
+     *
13
+     *
14
+     *
15
+     * L'utilisation de ce formulaire d'adminitration suppose
16
+     * que la classe correspondante de la table a été générées avec classGenerator
17
+     **/
18 18
 
19 19
 define('_EXTCAL_FORMAT_AGENDA_KEYD', 'Y-m-d');
20 20
 define('_EXTCAL_FORMAT_AGENDA_KEYT', 'H:i');
Please login to merge, or discard this patch.
htdocs/modules/extcal/versions/extcal_2_21.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,17 +31,17 @@
 block discarded – undo
31 31
 global $xoopsDB;
32 32
 
33 33
         // Create eXtcal upload directory if don't exist
34
-        $dir = XOOPS_ROOT_PATH."/uploads/extcal";
34
+        $dir = XOOPS_ROOT_PATH . "/uploads/extcal";
35 35
         if (!is_dir($dir)) {
36 36
             mkdir($dir);
37 37
 
38 38
             // Copy index.html files on uploads folders
39
-            $indexFile = XOOPS_ROOT_PATH."/modules/extcal/include/index.html";
40
-            copy($indexFile, XOOPS_ROOT_PATH."/uploads/extcal/index.html");
39
+            $indexFile = XOOPS_ROOT_PATH . "/modules/extcal/include/index.html";
40
+            copy($indexFile, XOOPS_ROOT_PATH . "/uploads/extcal/index.html");
41 41
         }
42 42
 
43 43
         // Create who's not going table to fix bug. If the table exist, the query will faile
44
-        $sql = "CREATE TABLE `".$xoopsDB->prefix('extcal_eventnotmember')."` (`eventnotmember_id` int(11) NOT NULL auto_increment,`event_id` int(11) NOT NULL default '0',`uid` int(11) NOT NULL default '0',PRIMARY KEY  (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;";
44
+        $sql = "CREATE TABLE `" . $xoopsDB->prefix('extcal_eventnotmember') . "` (`eventnotmember_id` int(11) NOT NULL auto_increment,`event_id` int(11) NOT NULL default '0',`uid` int(11) NOT NULL default '0',PRIMARY KEY  (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;";
45 45
         $xoopsDB->query($sql);
46 46
 
47 47
 }
Please login to merge, or discard this patch.
htdocs/modules/extcal/versions/extcal_2_34.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,21 +30,21 @@
 block discarded – undo
30 30
 {
31 31
 global $xoopsDB;
32 32
 
33
-  $this->alterTable_etablissement();
33
+    $this->alterTable_etablissement();
34 34
 
35 35
 }
36 36
 //----------------------------------------------------
37 37
 function alterTable_etablissement()
38 38
 {
39 39
 global $xoopsDB;
40
-  $tbl = $xoopsDB->prefix('extcal_etablissement');
40
+    $tbl = $xoopsDB->prefix('extcal_etablissement');
41 41
 
42 42
 $sql = <<<__sql__
43 43
 ALTER TABLE `{$tbl}`
44 44
  CHANGE `desc` `description` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
45 45
 __sql__;
46 46
 
47
-  $xoopsDB->queryF($sql);
47
+    $xoopsDB->queryF($sql);
48 48
 //echo "<hr>{$sql}<hr>";
49 49
 }
50 50
 //----------------------------------------------------
Please login to merge, or discard this patch.
htdocs/modules/extcal/versions/extcal_2_15.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -31,27 +31,27 @@
 block discarded – undo
31 31
 global $xoopsDB;
32 32
 
33 33
         //$xoopsDB =& Database::getInstance();
34
-        $xoopsDB =& XoopsDatabaseFactory::getDatabaseConnection();
34
+        $xoopsDB = & XoopsDatabaseFactory::getDatabaseConnection();
35 35
 
36
-        $sql = "ALTER TABLE `".$xoopsDB->prefix('extcal_event')."` CHANGE `event_approved` `event_approved` TINYINT( 1 ) NOT NULL DEFAULT '0' ;";
36
+        $sql = "ALTER TABLE `" . $xoopsDB->prefix('extcal_event') . "` CHANGE `event_approved` `event_approved` TINYINT( 1 ) NOT NULL DEFAULT '0' ;";
37 37
         $xoopsDB->query($sql);
38 38
 
39
-        $sql = "ALTER TABLE `".$xoopsDB->prefix('extcal_event')."` ADD `event_isrecur` TINYINT( 1 ) NOT NULL AFTER `event_nbmember` ;";
39
+        $sql = "ALTER TABLE `" . $xoopsDB->prefix('extcal_event') . "` ADD `event_isrecur` TINYINT( 1 ) NOT NULL AFTER `event_nbmember` ;";
40 40
         $xoopsDB->query($sql);
41 41
 
42
-        $sql = "ALTER TABLE `".$xoopsDB->prefix('extcal_event')."` ADD `event_recur_rules` VARCHAR( 255 ) NOT NULL AFTER `event_isrecur` ";
42
+        $sql = "ALTER TABLE `" . $xoopsDB->prefix('extcal_event') . "` ADD `event_recur_rules` VARCHAR( 255 ) NOT NULL AFTER `event_isrecur` ";
43 43
         $xoopsDB->query($sql);
44 44
 
45
-        $sql = "ALTER TABLE `".$xoopsDB->prefix('extcal_event')."` ADD `event_recur_start` INT( 11 ) NOT NULL AFTER `event_recur_rules` ;";
45
+        $sql = "ALTER TABLE `" . $xoopsDB->prefix('extcal_event') . "` ADD `event_recur_start` INT( 11 ) NOT NULL AFTER `event_recur_rules` ;";
46 46
         $xoopsDB->query($sql);
47 47
 
48
-        $sql = "ALTER TABLE `".$xoopsDB->prefix('extcal_event')."` ADD `event_recur_end` INT( 11 ) NOT NULL AFTER `event_recur_start` ;";
48
+        $sql = "ALTER TABLE `" . $xoopsDB->prefix('extcal_event') . "` ADD `event_recur_end` INT( 11 ) NOT NULL AFTER `event_recur_start` ;";
49 49
         $xoopsDB->query($sql);
50 50
 
51
-        $sql = "CREATE TABLE `".$xoopsDB->prefix('extcal_event')."` (`eventnotmember_id` int(11) NOT NULL auto_increment,`event_id` int(11) NOT NULL default '0',`uid` int(11) NOT NULL default '0',PRIMARY KEY  (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;";
51
+        $sql = "CREATE TABLE `" . $xoopsDB->prefix('extcal_event') . "` (`eventnotmember_id` int(11) NOT NULL auto_increment,`event_id` int(11) NOT NULL default '0',`uid` int(11) NOT NULL default '0',PRIMARY KEY  (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;";
52 52
         $xoopsDB->query($sql);
53 53
 
54
-        $sql = "CREATE TABLE `".$xoopsDB->prefix('extcal_file')."` (`file_id` int(11) NOT NULL auto_increment,`file_name` varchar(255) NOT NULL,`file_nicename` varchar(255) NOT NULL,`file_mimetype` varchar(255) NOT NULL,`file_size` int(11) NOT NULL,`file_download` int(11) NOT NULL,`file_date` int(11) NOT NULL,`file_approved` tinyint(1) NOT NULL,`event_id` int(11) NOT NULL,`uid` int(11) NOT NULL,PRIMARY KEY  (`file_id`)) COMMENT='eXtcal By Zoullou' ;";
54
+        $sql = "CREATE TABLE `" . $xoopsDB->prefix('extcal_file') . "` (`file_id` int(11) NOT NULL auto_increment,`file_name` varchar(255) NOT NULL,`file_nicename` varchar(255) NOT NULL,`file_mimetype` varchar(255) NOT NULL,`file_size` int(11) NOT NULL,`file_download` int(11) NOT NULL,`file_date` int(11) NOT NULL,`file_approved` tinyint(1) NOT NULL,`event_id` int(11) NOT NULL,`uid` int(11) NOT NULL,PRIMARY KEY  (`file_id`)) COMMENT='eXtcal By Zoullou' ;";
55 55
         $xoopsDB->query($sql);
56 56
 
57 57
 }
Please login to merge, or discard this patch.
htdocs/modules/extcal/versions/extcal_2_28.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
 {
31 31
 global $xoopsDB;
32 32
 
33
-  $this->addTable_etablissement();
34
-  $this->alterTable_event();
33
+    $this->addTable_etablissement();
34
+    $this->alterTable_event();
35 35
 
36 36
 }
37 37
 //----------------------------------------------------
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 {
40 40
 global $xoopsDB;
41 41
 
42
-  $tbl = $xoopsDB->prefix('extcal_event');
42
+    $tbl = $xoopsDB->prefix('extcal_event');
43 43
 
44 44
 $sql = <<<__sql__
45 45
 ALTER TABLE `{$tbl}`
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
   add  `event_etablissement` int(5) NOT NULL DEFAULT '1';
51 51
 __sql__;
52 52
 
53
-  $xoopsDB->queryF($sql);
53
+    $xoopsDB->queryF($sql);
54 54
 
55 55
 }
56 56
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 {
60 60
 global $xoopsDB;
61 61
 
62
-  $tbl = $xoopsDB->prefix('extcal_etablissement');
62
+    $tbl = $xoopsDB->prefix('extcal_etablissement');
63 63
 
64 64
 $sql = <<<__sql__
65 65
 CREATE TABLE `{$tbl}` (
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 ) ENGINE = MYISAM ;
86 86
 __sql__;
87 87
 
88
-  $xoopsDB->queryF($sql);
88
+    $xoopsDB->queryF($sql);
89 89
 //---------------------------------------------------
90 90
 
91 91
 }
Please login to merge, or discard this patch.
htdocs/modules/extcal/versions/extcal_2_35.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,21 +30,21 @@
 block discarded – undo
30 30
 {
31 31
 global $xoopsDB;
32 32
 
33
-  $this->alterTable_event();
33
+    $this->alterTable_event();
34 34
 
35 35
 }
36 36
 //----------------------------------------------------
37 37
 function alterTable_event()
38 38
 {
39 39
 global $xoopsDB;
40
-  $tbl = $xoopsDB->prefix('extcal_event');
40
+    $tbl = $xoopsDB->prefix('extcal_event');
41 41
 
42 42
 $sql = <<<__sql__
43 43
 ALTER TABLE `{$tbl}`
44 44
  CHANGE `event_etablissement` `event_etablissement` INT( 5 ) NOT NULL DEFAULT '0';
45 45
 __sql__;
46 46
 
47
-  $xoopsDB->queryF($sql);
47
+    $xoopsDB->queryF($sql);
48 48
 
49 49
 }
50 50
 
Please login to merge, or discard this patch.
htdocs/modules/extcal/versions/extcal_2_04.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 {
31 31
 global $xoopsDB;
32 32
 
33
-        $sql = "ALTER TABLE `".$xoopsDB->prefix('extcal_event')."` ADD `event_nbmember` tinyint(4) NOT NULL default '0' AFTER `event_submitdate` ;";
33
+        $sql = "ALTER TABLE `" . $xoopsDB->prefix('extcal_event') . "` ADD `event_nbmember` tinyint(4) NOT NULL default '0' AFTER `event_submitdate` ;";
34 34
         $xoopsDB->query($sql);
35 35
 
36 36
 }
Please login to merge, or discard this patch.
htdocs/modules/extcal/versions/extcal_2_33.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,36 +30,36 @@
 block discarded – undo
30 30
 {
31 31
 global $xoopsDB;
32 32
 
33
-  $this->alterTable_cat();
34
-  $this->alterTable_eventmember();
33
+    $this->alterTable_cat();
34
+    $this->alterTable_eventmember();
35 35
 
36 36
 }
37 37
 //----------------------------------------------------
38 38
 function alterTable_cat()
39 39
 {
40 40
 global $xoopsDB;
41
-  $tbl = $xoopsDB->prefix('extcal_cat');
41
+    $tbl = $xoopsDB->prefix('extcal_cat');
42 42
 
43 43
 $sql = <<<__sql__
44 44
 ALTER TABLE `{$tbl}`
45 45
   ADD `cat_weight` INT NOT NULL DEFAULT '0';
46 46
 __sql__;
47 47
 
48
-  $xoopsDB->queryF($sql);
48
+    $xoopsDB->queryF($sql);
49 49
 
50 50
 }
51 51
 //----------------------------------------------------
52 52
 function alterTable_eventmember()
53 53
 {
54 54
 global $xoopsDB;
55
-  $tbl = $xoopsDB->prefix('eventmember');
55
+    $tbl = $xoopsDB->prefix('eventmember');
56 56
 
57 57
 $sql = <<<__sql__
58 58
 ALTER TABLE `{$tbl}`
59 59
   ADD `status` INT NOT NULL DEFAULT '0';
60 60
 __sql__;
61 61
 
62
-  $xoopsDB->queryF($sql);
62
+    $xoopsDB->queryF($sql);
63 63
 
64 64
 }
65 65
 
Please login to merge, or discard this patch.