@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | * @author XOOPS Development Team, |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | -require_once __DIR__ . '/../include/constantes.php'; |
|
| 20 | +require_once __DIR__.'/../include/constantes.php'; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * @param $options |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | function bExtcalDayShow($options) |
| 28 | 28 | { |
| 29 | - require_once __DIR__ . '/../class/config.php'; |
|
| 29 | + require_once __DIR__.'/../class/config.php'; |
|
| 30 | 30 | |
| 31 | 31 | // Retriving module config |
| 32 | 32 | $extcalConfig = ExtcalConfig::getHandler(); |
@@ -64,22 +64,22 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
| 66 | 66 | |
| 67 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
| 68 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
| 69 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
| 67 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
| 68 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
| 69 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
| 70 | 70 | array_shift($options); |
| 71 | 71 | array_shift($options); |
| 72 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 72 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 73 | 73 | if (array_search(0, $options) === false) { |
| 74 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 74 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 75 | 75 | } else { |
| 76 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 76 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 77 | 77 | } |
| 78 | 78 | foreach ($cats as $cat) { |
| 79 | 79 | if (array_search($cat->getVar('cat_id'), $options) === false) { |
| 80 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
| 80 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
| 81 | 81 | } else { |
| 82 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
| 82 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
| 83 | 83 | } |
| 84 | 84 | } |
| 85 | 85 | $form .= '</select>'; |
@@ -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_MONTH, 'file' => _EXTCAL_FILE_MONTH); |
| 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 | $eventsArray = $events; |
| 37 | 37 | |
@@ -88,21 +88,21 @@ discard block |
||
| 88 | 88 | $nMonthCalObj = $monthCalObj->nextMonth('object'); |
| 89 | 89 | $navig = array( |
| 90 | 90 | 'prev' => array( |
| 91 | - 'uri' => 'year=' . $pMonthCalObj->thisYear() . '&month=' . $pMonthCalObj->thisMonth(), |
|
| 91 | + 'uri' => 'year='.$pMonthCalObj->thisYear().'&month='.$pMonthCalObj->thisMonth(), |
|
| 92 | 92 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $pMonthCalObj->getTimestamp()), |
| 93 | 93 | ), |
| 94 | 94 | 'this' => array( |
| 95 | - 'uri' => 'year=' . $monthCalObj->thisYear() . '&month=' . $monthCalObj->thisMonth(), |
|
| 95 | + 'uri' => 'year='.$monthCalObj->thisYear().'&month='.$monthCalObj->thisMonth(), |
|
| 96 | 96 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $monthCalObj->getTimestamp()), |
| 97 | 97 | ), |
| 98 | 98 | 'next' => array( |
| 99 | - 'uri' => 'year=' . $nMonthCalObj->thisYear() . '&month=' . $nMonthCalObj->thisMonth(), |
|
| 99 | + 'uri' => 'year='.$nMonthCalObj->thisYear().'&month='.$nMonthCalObj->thisMonth(), |
|
| 100 | 100 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $nMonthCalObj->getTimestamp()), |
| 101 | 101 | ), |
| 102 | 102 | ); |
| 103 | 103 | |
| 104 | 104 | // Title of the page |
| 105 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
| 105 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
| 106 | 106 | |
| 107 | 107 | // Assigning navig data to the template |
| 108 | 108 | $xoopsTpl->assign('navig', $navig); |
@@ -159,4 +159,4 @@ discard block |
||
| 159 | 159 | $xoopsTpl->assign('lang', $lang); |
| 160 | 160 | $xoopsTpl->assign('view', 'month'); |
| 161 | 161 | |
| 162 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
| 162 | +include XOOPS_ROOT_PATH.'/footer.php'; |
|
@@ -1,8 +1,8 @@ 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 | 7 | // Getting eXtCal object's handler |
| 8 | 8 | $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE); |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | $permHandler = ExtcalPerm::getHandler(); |
| 11 | 11 | $xoopsUser = $xoopsUser ?: null; |
| 12 | 12 | if (count($permHandler->getAuthorizedCat($xoopsUser, 'extcal_cat_submit')) > 0) { |
| 13 | - include XOOPS_ROOT_PATH . '/header.php'; |
|
| 13 | + include XOOPS_ROOT_PATH.'/header.php'; |
|
| 14 | 14 | |
| 15 | 15 | // Title of the page |
| 16 | 16 | $xoopsTpl->assign('xoops_pagetitle', _MI_EXTCAL_SUBMIT_EVENT); |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | //$form->display(); |
| 22 | 22 | |
| 23 | - include XOOPS_ROOT_PATH . '/footer.php'; |
|
| 23 | + include XOOPS_ROOT_PATH.'/footer.php'; |
|
| 24 | 24 | } else { |
| 25 | 25 | redirect_header('index.php', 3); |
| 26 | 26 | } |
@@ -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 | } |
@@ -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'; |
|