@@ -159,9 +159,9 @@ |
||
| 159 | 159 | $tHex = array('', '', '', ''); |
| 160 | 160 | |
| 161 | 161 | $tHex[0] = $aColors[0]; |
| 162 | - $tHex[1] = substr('00' . dechex($aColors[1]), -2); |
|
| 163 | - $tHex[2] = substr('00' . dechex($aColors[2]), -2); |
|
| 164 | - $tHex[3] = substr('00' . dechex($aColors[3]), -2); |
|
| 162 | + $tHex[1] = substr('00'.dechex($aColors[1]), -2); |
|
| 163 | + $tHex[2] = substr('00'.dechex($aColors[2]), -2); |
|
| 164 | + $tHex[3] = substr('00'.dechex($aColors[3]), -2); |
|
| 165 | 165 | |
| 166 | 166 | $colorHexa = implode('', $tHex); |
| 167 | 167 | |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | */ |
| 204 | 204 | public function setMin($min) |
| 205 | 205 | { |
| 206 | - $this->_min = (int)$min; |
|
| 206 | + $this->_min = (int) $min; |
|
| 207 | 207 | } |
| 208 | 208 | /*-----------------------------------------------------------------*/ |
| 209 | 209 | /** |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | */ |
| 222 | 222 | public function setMax($max) |
| 223 | 223 | { |
| 224 | - $this->_max = (int)$max; |
|
| 224 | + $this->_max = (int) $max; |
|
| 225 | 225 | } |
| 226 | 226 | |
| 227 | 227 | /*-----------------------------------------------------------------*/ |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | */ |
| 243 | 243 | public function setSmallIncrement($smallIncrement) |
| 244 | 244 | { |
| 245 | - $this->_smallIncrement = (int)$smallIncrement; |
|
| 245 | + $this->_smallIncrement = (int) $smallIncrement; |
|
| 246 | 246 | if ($this->_smallIncrement == 0) { |
| 247 | 247 | $this->_smallIncrement = 1; |
| 248 | 248 | } |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | */ |
| 265 | 265 | public function setLargeIncrement($largeIncrement) |
| 266 | 266 | { |
| 267 | - $this->_largeIncrement = (int)$largeIncrement; |
|
| 267 | + $this->_largeIncrement = (int) $largeIncrement; |
|
| 268 | 268 | if ($this->_largeIncrement == 0) { |
| 269 | 269 | $this->_largeIncrement = 10; |
| 270 | 270 | } |
@@ -405,7 +405,7 @@ discard block |
||
| 405 | 405 | $sFolderImg = "{$sSpinFolder}/images/{$this->getImgFolder()}/"; |
| 406 | 406 | |
| 407 | 407 | $prefixe = $this->getName(); |
| 408 | - $prefixe2 = 'spin' . $prefixe; |
|
| 408 | + $prefixe2 = 'spin'.$prefixe; |
|
| 409 | 409 | |
| 410 | 410 | $smallIncrement = $this->getSmallIncrement(); |
| 411 | 411 | $largeIncrement = $this->getLargeIncrement(); |
@@ -424,7 +424,7 @@ discard block |
||
| 424 | 424 | $t = array(); |
| 425 | 425 | |
| 426 | 426 | if ($this->_loadJS) { |
| 427 | - $js = $sSpinFolder . '/js/spin.js'; |
|
| 427 | + $js = $sSpinFolder.'/js/spin.js'; |
|
| 428 | 428 | $t[] = "<script src='{$js}' type='text/javascript'></script>"; |
| 429 | 429 | } |
| 430 | 430 | |
@@ -469,7 +469,7 @@ discard block |
||
| 469 | 469 | //------------------------------------------------------- |
| 470 | 470 | |
| 471 | 471 | $t[] = ' </tr>'; |
| 472 | - $t[] = '</table>' . "\n"; |
|
| 472 | + $t[] = '</table>'."\n"; |
|
| 473 | 473 | $t[] = '</div>'; |
| 474 | 474 | //------------------------------------------- |
| 475 | 475 | $html = implode("\n", $t); |
@@ -144,8 +144,8 @@ |
||
| 144 | 144 | // Flag current day |
| 145 | 145 | $selectedDays = array( |
| 146 | 146 | new Calendar_Day(date('Y', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))), |
| 147 | - date('n', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))), |
|
| 148 | - date('j', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser'])))), |
|
| 147 | + date('n', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))), |
|
| 148 | + date('j', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser'])))), |
|
| 149 | 149 | ); |
| 150 | 150 | |
| 151 | 151 | // Build calendar object |
@@ -38,9 +38,9 @@ discard block |
||
| 38 | 38 | $edit_delete = ''; |
| 39 | 39 | if (is_object($xoopsUser) && $isAdmin) { |
| 40 | 40 | $edit_delete = '<a href="'.XOOPS_URL.'/modules/extcal/admin/etablissement.php?op=edit_etablissement&etablissement_id='.$etablissement_id.'"><img src="'.$pathIcon16 |
| 41 | - .'/edit.png" width="16px" height="16px" border="0" title="'._MD_EXTCAL_ETABLISSEMENT_EDIT.'"/></a><a href="'.XOOPS_URL |
|
| 42 | - .'/modules/extcal/admin/etablissement.php?op=delete_etablissement&etablissement_id='.$etablissement_id.'"><img src="'.$pathIcon16 |
|
| 43 | - .'/delete.png" width="16px" height="16px" border="0" title="'._MD_EXTCAL_ETABLISSEMENT_DELETE.'"/></a>'; |
|
| 41 | + .'/edit.png" width="16px" height="16px" border="0" title="'._MD_EXTCAL_ETABLISSEMENT_EDIT.'"/></a><a href="'.XOOPS_URL |
|
| 42 | + .'/modules/extcal/admin/etablissement.php?op=delete_etablissement&etablissement_id='.$etablissement_id.'"><img src="'.$pathIcon16 |
|
| 43 | + .'/delete.png" width="16px" height="16px" border="0" title="'._MD_EXTCAL_ETABLISSEMENT_DELETE.'"/></a>'; |
|
| 44 | 44 | } |
| 45 | 45 | $xoopsTpl->assign('edit_delete', $edit_delete); |
| 46 | 46 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | $date = mktime(0, 0, 0, date('m'), date('d'), date('y')); |
| 50 | 50 | |
| 51 | 51 | $requete = $xoopsDB->query('SELECT event_id, event_title, event_desc, event_picture1, event_start FROM '.$xoopsDB->prefix('extcal_event')." WHERE event_etablissement='".$etablissement_id |
| 52 | - ."' AND event_start >='".$date."'"); |
|
| 52 | + ."' AND event_start >='".$date."'"); |
|
| 53 | 53 | while ($donnees = $xoopsDB->fetchArray($requete)) { |
| 54 | 54 | if ($donnees['event_desc'] > 210) { |
| 55 | 55 | $event_desc = $donnees['event_desc']; |
@@ -34,9 +34,9 @@ |
||
| 34 | 34 | if ($_POST['mode'] === 'add') { |
| 35 | 35 | $event = $eventHandler->getEvent((int) $_POST['event'], $xoopsUser); |
| 36 | 36 | $eventNotMemberHandler->createEventNotMember(array( |
| 37 | - 'event_id' => (int) $_POST['event'], |
|
| 38 | - 'uid' => $xoopsUser->getVar('uid'), |
|
| 39 | - )); |
|
| 37 | + 'event_id' => (int) $_POST['event'], |
|
| 38 | + 'uid' => $xoopsUser->getVar('uid'), |
|
| 39 | + )); |
|
| 40 | 40 | sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_3, _MD_EXTCAL_MSG_3); |
| 41 | 41 | $rediredtMessage = _MD_EXTCAL_WHOSNOT_GOING_ADDED_TO_EVENT; |
| 42 | 42 | |
@@ -48,11 +48,11 @@ |
||
| 48 | 48 | $xoopsDB->query($sql); |
| 49 | 49 | |
| 50 | 50 | $sql = 'CREATE TABLE `'.$xoopsDB->prefix('extcal_event') |
| 51 | - ."` (`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 | + ."` (`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 | 54 | $sql = 'CREATE TABLE `'.$xoopsDB->prefix('extcal_file') |
| 55 | - ."` (`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 | + ."` (`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' ;"; |
|
| 56 | 56 | $xoopsDB->query($sql); |
| 57 | 57 | } |
| 58 | 58 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | |
| 42 | 42 | // Create who's not going table to fix bug. If the table exist, the query will faile |
| 43 | 43 | $sql = 'CREATE TABLE `'.$xoopsDB->prefix('extcal_eventnotmember') |
| 44 | - ."` (`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 | + ."` (`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 | |
@@ -102,8 +102,8 @@ |
||
| 102 | 102 | define('_EXTCAL_NAV_NEW_EVENT', 'new-event'); |
| 103 | 103 | |
| 104 | 104 | define('_EXTCAL_NAV_LIST', |
| 105 | - _EXTCAL_NAV_CALMONTH."\n"._EXTCAL_NAV_CALWEEK."\n"._EXTCAL_NAV_YEAR."\n"._EXTCAL_NAV_MONTH."\n"._EXTCAL_NAV_WEEK."\n"._EXTCAL_NAV_DAY."\n"._EXTCAL_NAV_AGENDA_WEEK."\n" |
|
| 106 | - ._EXTCAL_NAV_AGENDA_DAY."\n"._EXTCAL_NAV_SEARCH."\n"._EXTCAL_NAV_NEW_EVENT); |
|
| 105 | + _EXTCAL_NAV_CALMONTH."\n"._EXTCAL_NAV_CALWEEK."\n"._EXTCAL_NAV_YEAR."\n"._EXTCAL_NAV_MONTH."\n"._EXTCAL_NAV_WEEK."\n"._EXTCAL_NAV_DAY."\n"._EXTCAL_NAV_AGENDA_WEEK."\n" |
|
| 106 | + ._EXTCAL_NAV_AGENDA_DAY."\n"._EXTCAL_NAV_SEARCH."\n"._EXTCAL_NAV_NEW_EVENT); |
|
| 107 | 107 | |
| 108 | 108 | define('_EXTCAL_PREFIX_VIEW', 'view_'); |
| 109 | 109 | define('_EXTCAL_SUFFIX_VIEW', '.php'); |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | define('_EXTCAL_CLN_EVENT', 'ExtcalEvent'); |
| 38 | 38 | |
| 39 | 39 | //------------------------------------------------------------------- |
| 40 | -define('_EXTCAL_PEAR_ROOT_DEFAULT', dirname(__DIR__) .'/class/pear'); |
|
| 40 | +define('_EXTCAL_PEAR_ROOT_DEFAULT', dirname(__DIR__).'/class/pear'); |
|
| 41 | 41 | //define('_EXTCAL_PEAR_ROOT', 'F:/wamp/www/xfr254b/xoops_lib/Frameworks/pear' ); |
| 42 | 42 | |
| 43 | 43 | $pear_path = _EXTCAL_PEAR_ROOT_DEFAULT; |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | define('_AM_EXTCAL_MD_FILE_DONT_EXIST_SHORT', "Module files don't exist"); |
| 94 | 94 | define('_AM_EXTCAL_MODULE_ADMIN_SUMMARY', 'eXtCal Administration Summary'); |
| 95 | 95 | define('_AM_EXTCAL_MULTIUPLOADS_NOT_OK', |
| 96 | - "The multiuploads component is not installed.<br><br><a href='http://xoops.kiolo.com/modules/mydownloads/'>Download here the multiuploads component</a><br><br>and install it in the folder 'class/xoopsform/'"); |
|
| 96 | + "The multiuploads component is not installed.<br><br><a href='http://xoops.kiolo.com/modules/mydownloads/'>Download here the multiuploads component</a><br><br>and install it in the folder 'class/xoopsform/'"); |
|
| 97 | 97 | define('_AM_EXTCAL_NAME', 'Name'); |
| 98 | 98 | define('_AM_EXTCAL_NOPERMSSET', 'Permission cannot be set: There are no Categories created yet! Please create a Category first.'); |
| 99 | 99 | define('_AM_EXTCAL_PENDING', 'Pending'); |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | define('_AM_EXTCAL_PREFERENCES', 'Preferences'); |
| 104 | 104 | define('_AM_EXTCAL_PUBLIC_PERM_MASK', 'Public permissions mask'); |
| 105 | 105 | define('_AM_EXTCAL_PUBLIC_PERM_MASK_INFO', |
| 106 | - "You can set here the default mask permission who will be apply to new category. Be careful to don't give excessive permissions here because all new category will give them."); |
|
| 106 | + "You can set here the default mask permission who will be apply to new category. Be careful to don't give excessive permissions here because all new category will give them."); |
|
| 107 | 107 | define('_AM_EXTCAL_REDIRECT_DELOK', 'successfully deleted'); |
| 108 | 108 | define('_AM_EXTCAL_START_DATE', 'Start Date'); |
| 109 | 109 | define('_AM_EXTCAL_SUBMIT_PERMISSION', 'Submit permission'); |