@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | if ((!defined('XOOPS_ROOT_PATH')) || !($GLOBALS['xoopsUser'] instanceof XoopsUser) |
| 22 | 22 | || !$GLOBALS['xoopsUser']->IsAdmin() |
| 23 | 23 | ) { |
| 24 | - exit('Restricted access' . PHP_EOL); |
|
| 24 | + exit('Restricted access'.PHP_EOL); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | /** |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | function xoops_module_pre_update_extcal(XoopsModule $module) |
| 47 | 47 | { |
| 48 | 48 | $moduleDirName = basename(dirname(__DIR__)); |
| 49 | - $classUtility = ucfirst($moduleDirName) . 'Utility'; |
|
| 49 | + $classUtility = ucfirst($moduleDirName).'Utility'; |
|
| 50 | 50 | if (!class_exists($classUtility)) { |
| 51 | 51 | xoops_load('utility', $moduleDirName); |
| 52 | 52 | } |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | return true; |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | - $fld = XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/versions/'; |
|
| 86 | + $fld = XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/versions/'; |
|
| 87 | 87 | $cls = 'extcal_%1$s'; |
| 88 | 88 | |
| 89 | 89 | $version = array( |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | foreach ($version as $key => $val) { |
| 103 | 103 | if ($previousVersion < $val) { |
| 104 | 104 | $name = sprintf($cls, $key); |
| 105 | - $f = $fld . $name . '.php'; |
|
| 105 | + $f = $fld.$name.'.php'; |
|
| 106 | 106 | //ext_echo ("<hr>{$f}<hr>"); |
| 107 | 107 | if (is_readable($f)) { |
| 108 | 108 | echo "mise à jour version : {$key} = {$val}<br>"; |
@@ -113,8 +113,8 @@ discard block |
||
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | if ($previousVersion < 240) { |
| 116 | - $configurator = include __DIR__ . '/config.php'; |
|
| 117 | - $classUtility = ucfirst($moduleDirName) . 'Utility'; |
|
| 116 | + $configurator = include __DIR__.'/config.php'; |
|
| 117 | + $classUtility = ucfirst($moduleDirName).'Utility'; |
|
| 118 | 118 | if (!class_exists($classUtility)) { |
| 119 | 119 | xoops_load('utility', $moduleDirName); |
| 120 | 120 | } |
@@ -122,14 +122,14 @@ discard block |
||
| 122 | 122 | //delete old HTML templates |
| 123 | 123 | if (count($configurator['templateFolders']) > 0) { |
| 124 | 124 | foreach ($configurator['templateFolders'] as $folder) { |
| 125 | - $templateFolder = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $folder); |
|
| 125 | + $templateFolder = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$folder); |
|
| 126 | 126 | if (is_dir($templateFolder)) { |
| 127 | 127 | $templateList = array_diff(scandir($templateFolder, SCANDIR_SORT_NONE), array('..', '.')); |
| 128 | 128 | foreach ($templateList as $k => $v) { |
| 129 | - $fileInfo = new SplFileInfo($templateFolder . $v); |
|
| 129 | + $fileInfo = new SplFileInfo($templateFolder.$v); |
|
| 130 | 130 | if ($fileInfo->getExtension() === 'html' && $fileInfo->getFilename() !== 'index.html') { |
| 131 | - if (file_exists($templateFolder . $v)) { |
|
| 132 | - unlink($templateFolder . $v); |
|
| 131 | + if (file_exists($templateFolder.$v)) { |
|
| 132 | + unlink($templateFolder.$v); |
|
| 133 | 133 | } |
| 134 | 134 | } |
| 135 | 135 | } |
@@ -139,9 +139,9 @@ discard block |
||
| 139 | 139 | |
| 140 | 140 | // --- COPY blank.png FILES --------------- |
| 141 | 141 | if (count($configurator['copyFiles']) > 0) { |
| 142 | - $file = __DIR__ . '/../assets/images/blank.png'; |
|
| 142 | + $file = __DIR__.'/../assets/images/blank.png'; |
|
| 143 | 143 | foreach (array_keys($configurator['copyFiles']) as $i) { |
| 144 | - $dest = $configurator['copyFiles'][$i] . '/blank.png'; |
|
| 144 | + $dest = $configurator['copyFiles'][$i].'/blank.png'; |
|
| 145 | 145 | $classUtility::copyFile($file, $dest); |
| 146 | 146 | } |
| 147 | 147 | } |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | if (count($configurator['oldFiles']) > 0) { |
| 151 | 151 | // foreach (array_keys($GLOBALS['uploadFolders']) as $i) { |
| 152 | 152 | foreach (array_keys($configurator['oldFiles']) as $i) { |
| 153 | - $tempFile = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $configurator['oldFiles'][$i]); |
|
| 153 | + $tempFile = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$configurator['oldFiles'][$i]); |
|
| 154 | 154 | if (is_file($tempFile)) { |
| 155 | 155 | unlink($tempFile); |
| 156 | 156 | } |
@@ -160,14 +160,14 @@ discard block |
||
| 160 | 160 | //--------------------- |
| 161 | 161 | |
| 162 | 162 | //delete .html entries from the tpl table |
| 163 | - $sql = 'DELETE FROM ' . $xoopsDB->prefix('tplfile') . " WHERE `tpl_module` = '" . $module->getVar('dirname', 'n') . "' AND `tpl_file` LIKE '%.html%'"; |
|
| 163 | + $sql = 'DELETE FROM '.$xoopsDB->prefix('tplfile')." WHERE `tpl_module` = '".$module->getVar('dirname', 'n')."' AND `tpl_file` LIKE '%.html%'"; |
|
| 164 | 164 | $xoopsDB->queryF($sql); |
| 165 | 165 | |
| 166 | 166 | // Load class XoopsFile ==================== |
| 167 | 167 | xoops_load('XoopsFile'); |
| 168 | 168 | |
| 169 | 169 | //delete /images directory ============ |
| 170 | - $imagesDirectory = $GLOBALS['xoops']->path('modules/' . $module->getVar('dirname', 'n') . '/images/'); |
|
| 170 | + $imagesDirectory = $GLOBALS['xoops']->path('modules/'.$module->getVar('dirname', 'n').'/images/'); |
|
| 171 | 171 | $folderHandler = XoopsFile::getHandler('folder', $imagesDirectory); |
| 172 | 172 | $folderHandler->delete($imagesDirectory); |
| 173 | 173 | } |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | function xoops_module_pre_install_extcal(XoopsModule $module) |
| 29 | 29 | { |
| 30 | 30 | $moduleDirName = basename(dirname(__DIR__)); |
| 31 | - $className = ucfirst($moduleDirName) . 'Utility'; |
|
| 31 | + $className = ucfirst($moduleDirName).'Utility'; |
|
| 32 | 32 | if (!class_exists($className)) { |
| 33 | 33 | xoops_load('utility', $moduleDirName); |
| 34 | 34 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | $mod_tables = $module->getInfo('tables'); |
| 46 | 46 | foreach ($mod_tables as $table) { |
| 47 | - $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS ' . $GLOBALS['xoopsDB']->prefix($table) . ';'); |
|
| 47 | + $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS '.$GLOBALS['xoopsDB']->prefix($table).';'); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | return true; |
@@ -73,20 +73,20 @@ discard block |
||
| 73 | 73 | */ |
| 74 | 74 | |
| 75 | 75 | // Access right |
| 76 | - $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_ADMIN, $moduleId); |
|
| 77 | - $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_USERS, $moduleId); |
|
| 78 | - $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_ANONYMOUS, $moduleId); |
|
| 76 | + $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_ADMIN, $moduleId); |
|
| 77 | + $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_USERS, $moduleId); |
|
| 78 | + $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_ANONYMOUS, $moduleId); |
|
| 79 | 79 | |
| 80 | 80 | // Can submit |
| 81 | - $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 2, XOOPS_GROUP_ADMIN, $moduleId); |
|
| 81 | + $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 2, XOOPS_GROUP_ADMIN, $moduleId); |
|
| 82 | 82 | |
| 83 | 83 | // Auto approve |
| 84 | - $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 4, XOOPS_GROUP_ADMIN, $moduleId); |
|
| 84 | + $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 4, XOOPS_GROUP_ADMIN, $moduleId); |
|
| 85 | 85 | |
| 86 | 86 | // $moduleDirName = $xoopsModule->getVar('dirname'); |
| 87 | - $configurator = include $GLOBALS['xoops']->path('modules/' . $moduleDirName . '/include/config.php'); |
|
| 87 | + $configurator = include $GLOBALS['xoops']->path('modules/'.$moduleDirName.'/include/config.php'); |
|
| 88 | 88 | |
| 89 | - $classUtility = ucfirst($moduleDirName) . 'Utility'; |
|
| 89 | + $classUtility = ucfirst($moduleDirName).'Utility'; |
|
| 90 | 90 | if (!class_exists($classUtility)) { |
| 91 | 91 | xoops_load('utility', $moduleDirName); |
| 92 | 92 | } |
@@ -98,9 +98,9 @@ discard block |
||
| 98 | 98 | } |
| 99 | 99 | } |
| 100 | 100 | if (count($configurator['copyFiles']) > 0) { |
| 101 | - $file = __DIR__ . '/../assets/images/blank.png'; |
|
| 101 | + $file = __DIR__.'/../assets/images/blank.png'; |
|
| 102 | 102 | foreach (array_keys($configurator['copyFiles']) as $i) { |
| 103 | - $dest = $configurator['copyFiles'][$i] . '/blank.png'; |
|
| 103 | + $dest = $configurator['copyFiles'][$i].'/blank.png'; |
|
| 104 | 104 | $classUtility::copyFile($file, $dest); |
| 105 | 105 | } |
| 106 | 106 | } |
@@ -20,11 +20,11 @@ discard block |
||
| 20 | 20 | * que la classe correspondante de la table a été générées avec classGenerator |
| 21 | 21 | **/ |
| 22 | 22 | |
| 23 | -require_once __DIR__ . '/../../../class/uploader.php'; |
|
| 24 | -require_once __DIR__ . '/../../../class/mail/phpmailer/class.phpmailer.php'; // First we require the PHPMailer libary in our script |
|
| 25 | -require_once __DIR__ . '/../class/utility.php'; |
|
| 26 | -require_once __DIR__ . '/constantes.php'; |
|
| 27 | -require_once __DIR__ . '/../../../class/template.php'; |
|
| 23 | +require_once __DIR__.'/../../../class/uploader.php'; |
|
| 24 | +require_once __DIR__.'/../../../class/mail/phpmailer/class.phpmailer.php'; // First we require the PHPMailer libary in our script |
|
| 25 | +require_once __DIR__.'/../class/utility.php'; |
|
| 26 | +require_once __DIR__.'/constantes.php'; |
|
| 27 | +require_once __DIR__.'/../../../class/template.php'; |
|
| 28 | 28 | |
| 29 | 29 | /******************************************************************** |
| 30 | 30 | * |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | $action = ''; //a voir JJD |
| 139 | 139 | $message = sprintf($tplMessage, $acteur['name']); |
| 140 | 140 | //$subject .= ' (' . rand(1, 100) . ')'; |
| 141 | - $subject .= ' - ' . $acteur['name']; |
|
| 141 | + $subject .= ' - '.$acteur['name']; |
|
| 142 | 142 | //-------------------------------------------------------------- |
| 143 | 143 | //Chargement du template dans le dossier de langue |
| 144 | 144 | //$f = _EXTCAL_PATH_LG . $xoopsConfig['language'] . '\mail_inscription.html'; |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | if ($mode == _EXTCAL_HEADER_HTML) { |
| 181 | 181 | $template = 'extcal_mail_member_html.tpl'; |
| 182 | 182 | } |
| 183 | - $mail_body = $tpl->fetch('db:' . $template); |
|
| 183 | + $mail_body = $tpl->fetch('db:'.$template); |
|
| 184 | 184 | |
| 185 | 185 | extcal_SendMail($destinataires, $mail_fromName, $mail_fromemail, $mail_subject, $mail_body, $bEcho = false, $mode = 0, $sep = '|'); |
| 186 | 186 | |
@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | $header = array(); |
| 314 | 314 | $header[] = "From: {$emailSender}"; |
| 315 | 315 | $header[] = "Reply-To: {$emailSender}"; |
| 316 | - $header[] = 'X-Mailer: PHP/' . PHP_VERSION; |
|
| 316 | + $header[] = 'X-Mailer: PHP/'.PHP_VERSION; |
|
| 317 | 317 | |
| 318 | 318 | if ($mode == _EXTCAL_HEADER_HTML) { |
| 319 | 319 | $header[] = 'MIME-Version: 1.0'; |
@@ -17,18 +17,18 @@ discard block |
||
| 17 | 17 | * @author XOOPS Development Team, |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | -require_once __DIR__ . '/../../../mainfile.php'; |
|
| 20 | +require_once __DIR__.'/../../../mainfile.php'; |
|
| 21 | 21 | $moduleDirName = basename(dirname(__DIR__)); |
| 22 | 22 | |
| 23 | 23 | if (!defined('EXTCAL_DIRNAME')) { |
| 24 | 24 | define('EXTCAL_DIRNAME', $moduleDirName); |
| 25 | - define('EXTCAL_PATH', XOOPS_ROOT_PATH . '/modules/' . EXTCAL_DIRNAME); |
|
| 26 | - define('EXTCAL_URL', XOOPS_URL . '/modules/' . EXTCAL_DIRNAME); |
|
| 27 | - define('EXTCAL_ADMIN', EXTCAL_URL . '/admin/index.php'); |
|
| 28 | - define('EXTCAL_ROOT_PATH', XOOPS_ROOT_PATH . '/modules/' . EXTCAL_DIRNAME); |
|
| 29 | - define('EXTCAL_AUTHOR_LOGOIMG', EXTCAL_URL . '/assets/images/logoModule.png'); |
|
| 30 | - define('EXTCAL_UPLOAD_URL', XOOPS_UPLOAD_URL . '/' . EXTCAL_DIRNAME); // WITHOUT Trailing slash |
|
| 31 | - define('EXTCAL_UPLOAD_PATH', XOOPS_UPLOAD_PATH . '/' . EXTCAL_DIRNAME); // WITHOUT Trailing slash |
|
| 25 | + define('EXTCAL_PATH', XOOPS_ROOT_PATH.'/modules/'.EXTCAL_DIRNAME); |
|
| 26 | + define('EXTCAL_URL', XOOPS_URL.'/modules/'.EXTCAL_DIRNAME); |
|
| 27 | + define('EXTCAL_ADMIN', EXTCAL_URL.'/admin/index.php'); |
|
| 28 | + define('EXTCAL_ROOT_PATH', XOOPS_ROOT_PATH.'/modules/'.EXTCAL_DIRNAME); |
|
| 29 | + define('EXTCAL_AUTHOR_LOGOIMG', EXTCAL_URL.'/assets/images/logoModule.png'); |
|
| 30 | + define('EXTCAL_UPLOAD_URL', XOOPS_UPLOAD_URL.'/'.EXTCAL_DIRNAME); // WITHOUT Trailing slash |
|
| 31 | + define('EXTCAL_UPLOAD_PATH', XOOPS_UPLOAD_PATH.'/'.EXTCAL_DIRNAME); // WITHOUT Trailing slash |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | //Configurator |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | 'name' => 'Module Configurator', |
| 37 | 37 | 'uploadFolders' => array( |
| 38 | 38 | EXTCAL_UPLOAD_PATH, |
| 39 | - EXTCAL_UPLOAD_PATH . '/etablissement' |
|
| 39 | + EXTCAL_UPLOAD_PATH.'/etablissement' |
|
| 40 | 40 | ), |
| 41 | 41 | // 'copyFiles' => array( |
| 42 | 42 | // EXTCAL_UPLOAD_PATH, |
@@ -57,4 +57,4 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | // module information |
| 59 | 59 | $mod_copyright = "<a href='https://xoops.org' title='XOOPS Project' target='_blank'> |
| 60 | - <img src='" . EXTCAL_AUTHOR_LOGOIMG . "' alt='XOOPS Project'></a>"; |
|
| 60 | + <img src='" . EXTCAL_AUTHOR_LOGOIMG."' alt='XOOPS Project'></a>"; |
|
@@ -33,22 +33,22 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | //---------------------------------------------------------- |
| 35 | 35 | // Create eXtCal upload directory |
| 36 | - $indexFile = __DIR__ . '/index.html'; |
|
| 36 | + $indexFile = __DIR__.'/index.html'; |
|
| 37 | 37 | |
| 38 | - $dir = XOOPS_ROOT_PATH . '/uploads/extcal'; |
|
| 38 | + $dir = XOOPS_ROOT_PATH.'/uploads/extcal'; |
|
| 39 | 39 | if (!is_dir($dir)) { |
| 40 | 40 | mkdir($dir, 0777); |
| 41 | - copy($indexFile, $dir . '/index.html'); |
|
| 41 | + copy($indexFile, $dir.'/index.html'); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - $dir = XOOPS_ROOT_PATH . '/uploads/extcal/etablissement'; |
|
| 44 | + $dir = XOOPS_ROOT_PATH.'/uploads/extcal/etablissement'; |
|
| 45 | 45 | if (!is_dir($dir)) { |
| 46 | 46 | mkdir($dir, 0777); |
| 47 | - copy($indexFile, $dir . '/index.html'); |
|
| 47 | + copy($indexFile, $dir.'/index.html'); |
|
| 48 | 48 | } |
| 49 | 49 | //------------------------------------------------------------ |
| 50 | 50 | |
| 51 | - $fld = XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/versions/'; |
|
| 51 | + $fld = XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/versions/'; |
|
| 52 | 52 | $cls = 'extcal_%1$s'; |
| 53 | 53 | |
| 54 | 54 | $version = array( |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | foreach ($version as $key => $val) { |
| 68 | 68 | if ($previousVersion < $val) { |
| 69 | 69 | $name = sprintf($cls, $key); |
| 70 | - $f = $fld . $name . '.php'; |
|
| 70 | + $f = $fld.$name.'.php'; |
|
| 71 | 71 | //ext_echo ("<hr>{$f}<hr>"); |
| 72 | 72 | if (is_readable($f)) { |
| 73 | 73 | echo "mise à jour version : {$key} = {$val}<br>"; |
@@ -18,8 +18,8 @@ discard block |
||
| 18 | 18 | define('_EXTCAL_FORMAT_AGENDA_KEYD', 'Y-m-d'); |
| 19 | 19 | define('_EXTCAL_FORMAT_AGENDA_KEYT', 'H:i'); |
| 20 | 20 | |
| 21 | -require_once __DIR__ . '/constantes.php'; |
|
| 22 | -require_once __DIR__ . '/../class/utility.php'; |
|
| 21 | +require_once __DIR__.'/constantes.php'; |
|
| 22 | +require_once __DIR__.'/../class/utility.php'; |
|
| 23 | 23 | |
| 24 | 24 | $moduleDirName = basename(dirname(__DIR__)); |
| 25 | 25 | xoops_loadLanguage('main', $moduleDirName); |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $tj[$kj]['dayWeek'] = date('w', $tsj); |
| 72 | 72 | $tj[$kj]['jour'] = $jName[$tj[$kj]['dayWeek']]; //date('l', $tsj); |
| 73 | 73 | if ($tj[$kj]['dayWeek'] == 0) { |
| 74 | - $tj[$kj]['bg'] = "background='" . XOOPS_URL . "/modules/extcal/assets/images/trame.png'"; |
|
| 74 | + $tj[$kj]['bg'] = "background='".XOOPS_URL."/modules/extcal/assets/images/trame.png'"; |
|
| 75 | 75 | } else { |
| 76 | 76 | $tj[$kj]['bg'] = ''; |
| 77 | 77 | } |
@@ -151,16 +151,16 @@ discard block |
||
| 151 | 151 | $kd = date(_EXTCAL_FORMAT_AGENDA_KEYD, $ts); |
| 152 | 152 | $hour = date('H', $ts); |
| 153 | 153 | $minute = date('i', $ts); |
| 154 | - $m = (int)($minute / $mPlage) * $mPlage; |
|
| 154 | + $m = (int) ($minute / $mPlage) * $mPlage; |
|
| 155 | 155 | // echo "--->{$minute} / {$mPlage} = {$m}<br>"; |
| 156 | - $sMinute = (($m < 10) ? '0' . $m : $m); |
|
| 156 | + $sMinute = (($m < 10) ? '0'.$m : $m); |
|
| 157 | 157 | //$kt = date(_EXTCAL_FORMAT_AGENDA_KEYT, $ts); |
| 158 | 158 | if ($hour < $hStart) { |
| 159 | 159 | $kt = $tk0; |
| 160 | 160 | } elseif ($hour >= ($hEnd + 1)) { |
| 161 | 161 | $kt = $tk1; |
| 162 | 162 | } else { |
| 163 | - $kt = $hour . ':' . $sMinute; |
|
| 163 | + $kt = $hour.':'.$sMinute; |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | $tAgenda[$kt]['jours'][$kd]['events'][] = $e; |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | return false; |
| 310 | 310 | } |
| 311 | 311 | |
| 312 | - $file = XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/' . $f; |
|
| 312 | + $file = XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/'.$f; |
|
| 313 | 313 | $prefix = (defined($name) ? '_MI' : '_MD'); |
| 314 | 314 | require_once $file; |
| 315 | 315 | } |
@@ -449,7 +449,7 @@ discard block |
||
| 449 | 449 | // while (list($k, $v) = each($tNavBar)) { |
| 450 | 450 | foreach ($tNavBar as $k => $v) { |
| 451 | 451 | if (isset($tWeight[$k])) { |
| 452 | - $ordre[] = (int)$tWeight[$k]; //ordre defini dans les option du module |
|
| 452 | + $ordre[] = (int) $tWeight[$k]; //ordre defini dans les option du module |
|
| 453 | 453 | } else { |
| 454 | 454 | $ordre[] = $v['weight']; // ordre par defaut ddefini dans le tableau $tNavBar |
| 455 | 455 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | define('_EXTCAL_CLN_EVENT', 'ExtcalEvent'); |
| 42 | 42 | |
| 43 | 43 | //------------------------------------------------------------------- |
| 44 | -define('_EXTCAL_PEAR_ROOT_DEFAULT', __DIR__ . '/../class/pear'); |
|
| 44 | +define('_EXTCAL_PEAR_ROOT_DEFAULT', __DIR__.'/../class/pear'); |
|
| 45 | 45 | //define('_EXTCAL_PEAR_ROOT', 'F:/wamp/www/xfr254b/xoops_lib/Frameworks/pear' ); |
| 46 | 46 | |
| 47 | 47 | $pear_path = _EXTCAL_PEAR_ROOT_DEFAULT; |
@@ -76,22 +76,22 @@ discard block |
||
| 76 | 76 | //} |
| 77 | 77 | define('_EXTCAL_PEAR_ROOT', $pear_path); |
| 78 | 78 | |
| 79 | -define('_EXTCAL_PEAR_CALENDAR_ROOT', _EXTCAL_PEAR_ROOT . '/Calendar'); |
|
| 80 | -define('CALENDAR_ROOT', _EXTCAL_PEAR_CALENDAR_ROOT . '/'); |
|
| 79 | +define('_EXTCAL_PEAR_CALENDAR_ROOT', _EXTCAL_PEAR_ROOT.'/Calendar'); |
|
| 80 | +define('CALENDAR_ROOT', _EXTCAL_PEAR_CALENDAR_ROOT.'/'); |
|
| 81 | 81 | |
| 82 | 82 | //------------------------------------------------------------------- |
| 83 | 83 | define('_EXTCAL_SHOW_NO_PICTURE', false); |
| 84 | 84 | |
| 85 | 85 | define('_EXTCAL_PATH_HORLOGES', '/modules/extcal/assets/images/horloges/'); |
| 86 | -define('_EXTCAL_PATH_ICONS16', XOOPS_URL . '/Frameworks/moduleclasses/icons/16/'); |
|
| 87 | -define('_EXTCAL_PATH_ICONS32', XOOPS_URL . '/Frameworks/moduleclasses/icons/32/'); |
|
| 88 | -define('_EXTCAL_PATH_FO', XOOPS_URL . '/modules/extcal/'); |
|
| 89 | -define('_EXTCAL_PATH_BO', _EXTCAL_PATH_FO . 'admin/'); |
|
| 90 | -define('_EXTCAL_PATH_LG', XOOPS_URL . '/modules/extcal/languages/'); |
|
| 86 | +define('_EXTCAL_PATH_ICONS16', XOOPS_URL.'/Frameworks/moduleclasses/icons/16/'); |
|
| 87 | +define('_EXTCAL_PATH_ICONS32', XOOPS_URL.'/Frameworks/moduleclasses/icons/32/'); |
|
| 88 | +define('_EXTCAL_PATH_FO', XOOPS_URL.'/modules/extcal/'); |
|
| 89 | +define('_EXTCAL_PATH_BO', _EXTCAL_PATH_FO.'admin/'); |
|
| 90 | +define('_EXTCAL_PATH_LG', XOOPS_URL.'/modules/extcal/languages/'); |
|
| 91 | 91 | |
| 92 | 92 | define('_EXTCAL_IMG_INTERVAL', 'interval04.png'); |
| 93 | -define('_EXTCAL_IMG_INTERVAL16', _EXTCAL_PATH_ICONS16 . _EXTCAL_IMG_INTERVAL); |
|
| 94 | -define('_EXTCAL_IMG_INTERVAL32', _EXTCAL_PATH_ICONS32 . _EXTCAL_IMG_INTERVAL); |
|
| 93 | +define('_EXTCAL_IMG_INTERVAL16', _EXTCAL_PATH_ICONS16._EXTCAL_IMG_INTERVAL); |
|
| 94 | +define('_EXTCAL_IMG_INTERVAL32', _EXTCAL_PATH_ICONS32._EXTCAL_IMG_INTERVAL); |
|
| 95 | 95 | |
| 96 | 96 | //define('_EXTCAL_DIRNAME', $xoopsModule->getVar('dirname')); |
| 97 | 97 | |
@@ -129,16 +129,16 @@ discard block |
||
| 129 | 129 | define('_EXTCAL_PREFIX_VIEW', 'view_'); |
| 130 | 130 | define('_EXTCAL_SUFFIX_VIEW', '.php'); |
| 131 | 131 | |
| 132 | -define('_EXTCAL_FILE_CALMONTH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_CALMONTH . _EXTCAL_SUFFIX_VIEW); |
|
| 133 | -define('_EXTCAL_FILE_CALWEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_CALWEEK . _EXTCAL_SUFFIX_VIEW); |
|
| 134 | -define('_EXTCAL_FILE_YEAR', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_YEAR . _EXTCAL_SUFFIX_VIEW); |
|
| 135 | -define('_EXTCAL_FILE_MONTH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_MONTH . _EXTCAL_SUFFIX_VIEW); |
|
| 136 | -define('_EXTCAL_FILE_WEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_WEEK . _EXTCAL_SUFFIX_VIEW); |
|
| 137 | -define('_EXTCAL_FILE_DAY', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_DAY . _EXTCAL_SUFFIX_VIEW); |
|
| 138 | -define('_EXTCAL_FILE_AGENDA_WEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_AGENDA_WEEK . _EXTCAL_SUFFIX_VIEW); |
|
| 139 | -define('_EXTCAL_FILE_AGENDA_DAY', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_AGENDA_DAY . _EXTCAL_SUFFIX_VIEW); |
|
| 140 | -define('_EXTCAL_FILE_SEARCH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_SEARCH . _EXTCAL_SUFFIX_VIEW); |
|
| 141 | -define('_EXTCAL_FILE_NEW_EVENT', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_NEW_EVENT . _EXTCAL_SUFFIX_VIEW); |
|
| 132 | +define('_EXTCAL_FILE_CALMONTH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_CALMONTH._EXTCAL_SUFFIX_VIEW); |
|
| 133 | +define('_EXTCAL_FILE_CALWEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_CALWEEK._EXTCAL_SUFFIX_VIEW); |
|
| 134 | +define('_EXTCAL_FILE_YEAR', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_YEAR._EXTCAL_SUFFIX_VIEW); |
|
| 135 | +define('_EXTCAL_FILE_MONTH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_MONTH._EXTCAL_SUFFIX_VIEW); |
|
| 136 | +define('_EXTCAL_FILE_WEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_WEEK._EXTCAL_SUFFIX_VIEW); |
|
| 137 | +define('_EXTCAL_FILE_DAY', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_DAY._EXTCAL_SUFFIX_VIEW); |
|
| 138 | +define('_EXTCAL_FILE_AGENDA_WEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_AGENDA_WEEK._EXTCAL_SUFFIX_VIEW); |
|
| 139 | +define('_EXTCAL_FILE_AGENDA_DAY', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_AGENDA_DAY._EXTCAL_SUFFIX_VIEW); |
|
| 140 | +define('_EXTCAL_FILE_SEARCH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_SEARCH._EXTCAL_SUFFIX_VIEW); |
|
| 141 | +define('_EXTCAL_FILE_NEW_EVENT', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_NEW_EVENT._EXTCAL_SUFFIX_VIEW); |
|
| 142 | 142 | |
| 143 | 143 | define('_EXTCAL_MULTILOADER', '/class/xoopsform/multiuploads/formmultiuploads.php'); |
| 144 | 144 | |
@@ -1,15 +1,15 @@ discard block |
||
| 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 | $params = array('view' => _EXTCAL_NAV_CALMONTH, 'file' => _EXTCAL_FILE_CALMONTH); |
| 6 | 6 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
| 7 | -require_once __DIR__ . '/header.php'; |
|
| 7 | +require_once __DIR__.'/header.php'; |
|
| 8 | 8 | |
| 9 | 9 | /* ========================================================================== */ |
| 10 | -$year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
| 11 | -$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n'); |
|
| 12 | -$cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
| 10 | +$year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
| 11 | +$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n'); |
|
| 12 | +$cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
| 13 | 13 | /* ========================================================================== */ |
| 14 | 14 | |
| 15 | 15 | $form = new XoopsSimpleForm('', 'navigSelectBox', $params['file'], 'get'); |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | 'cat' => $cat, |
| 32 | 32 | 'externalKeys' => 'cat_id', |
| 33 | 33 | ); |
| 34 | -$events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 34 | +$events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 35 | 35 | /**********************************************************************/ |
| 36 | 36 | |
| 37 | 37 | // Calculating timestamp for the begin and the end of the month |
@@ -128,21 +128,21 @@ discard block |
||
| 128 | 128 | // Making navig data |
| 129 | 129 | $navig = array( |
| 130 | 130 | 'prev' => array( |
| 131 | - 'uri' => 'year=' . $pMonthCalObj->thisYear() . '&month=' . $pMonthCalObj->thisMonth(), |
|
| 131 | + 'uri' => 'year='.$pMonthCalObj->thisYear().'&month='.$pMonthCalObj->thisMonth(), |
|
| 132 | 132 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $pMonthCalObj->getTimestamp()), |
| 133 | 133 | ), |
| 134 | 134 | 'this' => array( |
| 135 | - 'uri' => 'year=' . $monthCalObj->thisYear() . '&month=' . $monthCalObj->thisMonth(), |
|
| 135 | + 'uri' => 'year='.$monthCalObj->thisYear().'&month='.$monthCalObj->thisMonth(), |
|
| 136 | 136 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $monthCalObj->getTimestamp()), |
| 137 | 137 | ), |
| 138 | 138 | 'next' => array( |
| 139 | - 'uri' => 'year=' . $nMonthCalObj->thisYear() . '&month=' . $nMonthCalObj->thisMonth(), |
|
| 139 | + 'uri' => 'year='.$nMonthCalObj->thisYear().'&month='.$nMonthCalObj->thisMonth(), |
|
| 140 | 140 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $nMonthCalObj->getTimestamp()), |
| 141 | 141 | ), |
| 142 | 142 | ); |
| 143 | 143 | |
| 144 | 144 | // Title of the page |
| 145 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
| 145 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
| 146 | 146 | |
| 147 | 147 | // Assigning navig data to the template |
| 148 | 148 | $xoopsTpl->assign('navig', $navig); |
@@ -182,4 +182,4 @@ discard block |
||
| 182 | 182 | $xoopsTpl->assign('lang', $lang); |
| 183 | 183 | $xoopsTpl->assign('view', 'calmonth'); |
| 184 | 184 | |
| 185 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
| 185 | +include XOOPS_ROOT_PATH.'/footer.php'; |
|
@@ -1,15 +1,15 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -include __DIR__ . '/../../mainfile.php'; |
|
| 4 | -require_once __DIR__ . '/include/constantes.php'; |
|
| 5 | -require_once __DIR__ . '/header.php'; |
|
| 3 | +include __DIR__.'/../../mainfile.php'; |
|
| 4 | +require_once __DIR__.'/include/constantes.php'; |
|
| 5 | +require_once __DIR__.'/header.php'; |
|
| 6 | 6 | |
| 7 | -require_once XOOPS_ROOT_PATH . '/class/template.php'; |
|
| 7 | +require_once XOOPS_ROOT_PATH.'/class/template.php'; |
|
| 8 | 8 | $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE); |
| 9 | 9 | if (!isset($_GET['cat'])) { |
| 10 | 10 | $cat = 0; |
| 11 | 11 | } else { |
| 12 | - $cat = (int)$_GET['cat']; |
|
| 12 | + $cat = (int) $_GET['cat']; |
|
| 13 | 13 | } |
| 14 | 14 | if (function_exists('mb_http_output')) { |
| 15 | 15 | mb_http_output('pass'); |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | $events = $eventHandler->getUpcommingEvent($xoopsModuleConfig['rss_nb_event'], $cat); |
| 23 | 23 | if (is_array($events)) { |
| 24 | 24 | $tpl->assign('channel_title', xoops_utf8_encode(htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES))); |
| 25 | - $tpl->assign('channel_link', XOOPS_URL . '/'); |
|
| 25 | + $tpl->assign('channel_link', XOOPS_URL.'/'); |
|
| 26 | 26 | $tpl->assign('channel_desc', xoops_utf8_encode(htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES))); |
| 27 | 27 | $tpl->assign('channel_lastbuild', formatTimestamp(time(), 'rss')); |
| 28 | 28 | $tpl->assign('channel_webmaster', $xoopsConfig['adminmail']); |
@@ -30,14 +30,14 @@ discard block |
||
| 30 | 30 | $tpl->assign('channel_category', 'Event'); |
| 31 | 31 | $tpl->assign('channel_generator', 'XOOPS'); |
| 32 | 32 | $tpl->assign('channel_language', _LANGCODE); |
| 33 | - $tpl->assign('image_url', XOOPS_URL . '/modules/extcal/assets/images/extcal_logo.png'); |
|
| 33 | + $tpl->assign('image_url', XOOPS_URL.'/modules/extcal/assets/images/extcal_logo.png'); |
|
| 34 | 34 | $tpl->assign('image_width', 92); |
| 35 | 35 | $tpl->assign('image_height', 52); |
| 36 | 36 | foreach ($events as $event) { |
| 37 | 37 | $tpl->append('items', array( |
| 38 | 38 | 'title' => xoops_utf8_encode(htmlspecialchars($event->getVar('event_title'), ENT_QUOTES)), |
| 39 | - 'link' => XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'), |
|
| 40 | - 'guid' => XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'), |
|
| 39 | + 'link' => XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'), |
|
| 40 | + 'guid' => XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'), |
|
| 41 | 41 | 'pubdate' => formatTimestamp($event->getVar('event_start'), 'rss'), |
| 42 | 42 | 'description' => xoops_utf8_encode(htmlspecialchars($event->getVar('event_desc'), ENT_QUOTES)), |
| 43 | 43 | )); |