@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | use XoopsModules\Extcal; |
| 21 | 21 | |
| 22 | -require_once __DIR__ . '/../include/constantes.php'; |
|
| 22 | +require_once __DIR__.'/../include/constantes.php'; |
|
| 23 | 23 | |
| 24 | 24 | /******************************************************/ |
| 25 | 25 | /* Ajour JJD - Evenements par categries */ |
@@ -92,22 +92,22 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
| 94 | 94 | |
| 95 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
| 96 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
| 97 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
| 95 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
| 96 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
| 97 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
| 98 | 98 | array_shift($options); |
| 99 | 99 | array_shift($options); |
| 100 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 100 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 101 | 101 | if (false === array_search(0, $options)) { |
| 102 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 102 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 103 | 103 | } else { |
| 104 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 104 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 105 | 105 | } |
| 106 | 106 | foreach ($cats as $cat) { |
| 107 | 107 | if (false === array_search($cat->getVar('cat_id'), $options)) { |
| 108 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
| 108 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
| 109 | 109 | } else { |
| 110 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
| 110 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
| 111 | 111 | } |
| 112 | 112 | } |
| 113 | 113 | $form .= '</select>'; |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | use XoopsModules\Extcal; |
| 21 | 21 | |
| 22 | -require_once __DIR__ . '/../include/constantes.php'; |
|
| 22 | +require_once __DIR__.'/../include/constantes.php'; |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * @param $options |
@@ -66,22 +66,22 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
| 68 | 68 | |
| 69 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
| 70 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
| 71 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
| 69 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
| 70 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
| 71 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
| 72 | 72 | array_shift($options); |
| 73 | 73 | array_shift($options); |
| 74 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 74 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
| 75 | 75 | if (false === array_search(0, $options)) { |
| 76 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 76 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 77 | 77 | } else { |
| 78 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
| 78 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
| 79 | 79 | } |
| 80 | 80 | foreach ($cats as $cat) { |
| 81 | 81 | if (false === array_search($cat->getVar('cat_id'), $options)) { |
| 82 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
| 82 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
| 83 | 83 | } else { |
| 84 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
| 84 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
| 85 | 85 | } |
| 86 | 86 | } |
| 87 | 87 | $form .= '</select>'; |
@@ -21,49 +21,49 @@ |
||
| 21 | 21 | $moduleDirName = basename(dirname(dirname(__DIR__))); |
| 22 | 22 | $moduleDirNameUpper = strtoupper($moduleDirName); |
| 23 | 23 | |
| 24 | -define('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS', 'GD library support: '); |
|
| 25 | -define('CO_' . $moduleDirNameUpper . '_GDLIBVERSION', 'GD Library version: '); |
|
| 26 | -define('CO_' . $moduleDirNameUpper . '_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)"); |
|
| 27 | -define('CO_' . $moduleDirNameUpper . '_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)"); |
|
| 28 | -define('CO_' . $moduleDirNameUpper . '_IMAGEINFO', 'Server status'); |
|
| 29 | -define('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): '); |
|
| 30 | -define('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): '); |
|
| 31 | -define('CO_' . $moduleDirNameUpper . '_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): '); |
|
| 32 | -define('CO_' . $moduleDirNameUpper . '_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> "); |
|
| 33 | -define('CO_' . $moduleDirNameUpper . '_OFF', "<span style='font-weight: bold;'>OFF</span>"); |
|
| 34 | -define('CO_' . $moduleDirNameUpper . '_ON', "<span style='font-weight: bold;'>ON</span>"); |
|
| 35 | -define('CO_' . $moduleDirNameUpper . '_SERVERPATH', 'Server path to XOOPS root: '); |
|
| 36 | -define('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS', 'Server uploads status: '); |
|
| 37 | -define('CO_' . $moduleDirNameUpper . '_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>"); |
|
| 38 | -define('CO_' . $moduleDirNameUpper . '_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.'); |
|
| 24 | +define('CO_'.$moduleDirNameUpper.'_GDLIBSTATUS', 'GD library support: '); |
|
| 25 | +define('CO_'.$moduleDirNameUpper.'_GDLIBVERSION', 'GD Library version: '); |
|
| 26 | +define('CO_'.$moduleDirNameUpper.'_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)"); |
|
| 27 | +define('CO_'.$moduleDirNameUpper.'_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)"); |
|
| 28 | +define('CO_'.$moduleDirNameUpper.'_IMAGEINFO', 'Server status'); |
|
| 29 | +define('CO_'.$moduleDirNameUpper.'_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): '); |
|
| 30 | +define('CO_'.$moduleDirNameUpper.'_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): '); |
|
| 31 | +define('CO_'.$moduleDirNameUpper.'_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): '); |
|
| 32 | +define('CO_'.$moduleDirNameUpper.'_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> "); |
|
| 33 | +define('CO_'.$moduleDirNameUpper.'_OFF', "<span style='font-weight: bold;'>OFF</span>"); |
|
| 34 | +define('CO_'.$moduleDirNameUpper.'_ON', "<span style='font-weight: bold;'>ON</span>"); |
|
| 35 | +define('CO_'.$moduleDirNameUpper.'_SERVERPATH', 'Server path to XOOPS root: '); |
|
| 36 | +define('CO_'.$moduleDirNameUpper.'_SERVERUPLOADSTATUS', 'Server uploads status: '); |
|
| 37 | +define('CO_'.$moduleDirNameUpper.'_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>"); |
|
| 38 | +define('CO_'.$moduleDirNameUpper.'_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.'); |
|
| 39 | 39 | |
| 40 | -define('CO_' . $moduleDirNameUpper . '_PRINT', "<span style='font-weight: bold;'>Print</span>"); |
|
| 41 | -define('CO_' . $moduleDirNameUpper . '_PDF', "<span style='font-weight: bold;'>Create PDF</span>"); |
|
| 40 | +define('CO_'.$moduleDirNameUpper.'_PRINT', "<span style='font-weight: bold;'>Print</span>"); |
|
| 41 | +define('CO_'.$moduleDirNameUpper.'_PDF', "<span style='font-weight: bold;'>Create PDF</span>"); |
|
| 42 | 42 | |
| 43 | -define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'"); |
|
| 44 | -define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED1', "Update failed - couldn't add new fields"); |
|
| 45 | -define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'"); |
|
| 46 | -define('CO_' . $moduleDirNameUpper . '_ERROR_COLUMN', 'Could not create column in database : %s'); |
|
| 47 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)'); |
|
| 48 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)'); |
|
| 49 | -define('CO_' . $moduleDirNameUpper . '_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module'); |
|
| 43 | +define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'"); |
|
| 44 | +define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED1', "Update failed - couldn't add new fields"); |
|
| 45 | +define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'"); |
|
| 46 | +define('CO_'.$moduleDirNameUpper.'_ERROR_COLUMN', 'Could not create column in database : %s'); |
|
| 47 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)'); |
|
| 48 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)'); |
|
| 49 | +define('CO_'.$moduleDirNameUpper.'_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module'); |
|
| 50 | 50 | |
| 51 | -define('CO_' . $moduleDirNameUpper . '_FOLDERS_DELETED_OK', 'Upload Folders have been deleted'); |
|
| 51 | +define('CO_'.$moduleDirNameUpper.'_FOLDERS_DELETED_OK', 'Upload Folders have been deleted'); |
|
| 52 | 52 | |
| 53 | 53 | // Error Msgs |
| 54 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_DEL_PATH', 'Could not delete %s directory'); |
|
| 55 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_REMOVE', 'Could not delete %s'); |
|
| 56 | -define('CO_' . $moduleDirNameUpper . '_ERROR_NO_PLUGIN', 'Could not load plugin'); |
|
| 54 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_DEL_PATH', 'Could not delete %s directory'); |
|
| 55 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_REMOVE', 'Could not delete %s'); |
|
| 56 | +define('CO_'.$moduleDirNameUpper.'_ERROR_NO_PLUGIN', 'Could not load plugin'); |
|
| 57 | 57 | |
| 58 | 58 | //Help |
| 59 | -define('CO_' . $moduleDirNameUpper . '_DIRNAME', basename(dirname(dirname(__DIR__)))); |
|
| 60 | -define('CO_' . $moduleDirNameUpper . '_HELP_HEADER', __DIR__ . '/help/helpheader.tpl'); |
|
| 61 | -define('CO_' . $moduleDirNameUpper . '_BACK_2_ADMIN', 'Back to Administration of '); |
|
| 62 | -define('CO_' . $moduleDirNameUpper . '_OVERVIEW', 'Overview'); |
|
| 59 | +define('CO_'.$moduleDirNameUpper.'_DIRNAME', basename(dirname(dirname(__DIR__)))); |
|
| 60 | +define('CO_'.$moduleDirNameUpper.'_HELP_HEADER', __DIR__.'/help/helpheader.tpl'); |
|
| 61 | +define('CO_'.$moduleDirNameUpper.'_BACK_2_ADMIN', 'Back to Administration of '); |
|
| 62 | +define('CO_'.$moduleDirNameUpper.'_OVERVIEW', 'Overview'); |
|
| 63 | 63 | |
| 64 | 64 | //define('CO_' . $moduleDirNameUpper . '_HELP_DIR', __DIR__); |
| 65 | 65 | |
| 66 | 66 | //help multi-page |
| 67 | -define('CO_' . $moduleDirNameUpper . '_DISCLAIMER', 'Disclaimer'); |
|
| 68 | -define('CO_' . $moduleDirNameUpper . '_LICENSE', 'License'); |
|
| 69 | -define('CO_' . $moduleDirNameUpper . '_SUPPORT', 'Support'); |
|
| 67 | +define('CO_'.$moduleDirNameUpper.'_DISCLAIMER', 'Disclaimer'); |
|
| 68 | +define('CO_'.$moduleDirNameUpper.'_LICENSE', 'License'); |
|
| 69 | +define('CO_'.$moduleDirNameUpper.'_SUPPORT', 'Support'); |
|
@@ -19,20 +19,20 @@ |
||
| 19 | 19 | |
| 20 | 20 | use XoopsModules\Extcal; |
| 21 | 21 | |
| 22 | -include XOOPS_ROOT_PATH . '/header.php'; |
|
| 22 | +include XOOPS_ROOT_PATH.'/header.php'; |
|
| 23 | 23 | |
| 24 | -require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 24 | +require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
| 25 | 25 | |
| 26 | -require_once __DIR__ . '/include/agenda_fnc.php'; |
|
| 26 | +require_once __DIR__.'/include/agenda_fnc.php'; |
|
| 27 | 27 | |
| 28 | 28 | Extcal\Helper::getInstance()->loadLanguage('modinfo'); |
| 29 | 29 | |
| 30 | 30 | //------------------------------------------------------ |
| 31 | -require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Util/Textual.php'; |
|
| 32 | -require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weeks.php'; |
|
| 33 | -require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weekdays.php'; |
|
| 34 | -require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Week.php'; |
|
| 35 | -require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Day.php'; |
|
| 31 | +require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Util/Textual.php'; |
|
| 32 | +require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weeks.php'; |
|
| 33 | +require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weekdays.php'; |
|
| 34 | +require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Week.php'; |
|
| 35 | +require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Day.php'; |
|
| 36 | 36 | |
| 37 | 37 | //------------------------------------------------------ |
| 38 | 38 | // Getting eXtCal object's handler |
@@ -17,14 +17,14 @@ |
||
| 17 | 17 | * @author XOOPS Development Team, |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | -include __DIR__ . '/../../mainfile.php'; |
|
| 21 | -$com_itemid = isset($_GET['com_itemid']) ? (int)$_GET['com_itemid'] : 0; |
|
| 20 | +include __DIR__.'/../../mainfile.php'; |
|
| 21 | +$com_itemid = isset($_GET['com_itemid']) ? (int) $_GET['com_itemid'] : 0; |
|
| 22 | 22 | if ($com_itemid > 0) { |
| 23 | 23 | // Get link title |
| 24 | - $sql = 'SELECT event_title, event_desc FROM ' . $xoopsDB->prefix('extcal_event') . ' WHERE event_id=' . $com_itemid . ' '; |
|
| 24 | + $sql = 'SELECT event_title, event_desc FROM '.$xoopsDB->prefix('extcal_event').' WHERE event_id='.$com_itemid.' '; |
|
| 25 | 25 | $result = $xoopsDB->query($sql); |
| 26 | 26 | $row = $xoopsDB->fetchArray($result); |
| 27 | 27 | $com_replytitle = $row['event_title']; |
| 28 | 28 | $com_replytext = $row['event_desc']; |
| 29 | - include XOOPS_ROOT_PATH . '/include/comment_new.php'; |
|
| 29 | + include XOOPS_ROOT_PATH.'/include/comment_new.php'; |
|
| 30 | 30 | } |
@@ -2,10 +2,10 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | use XoopsModules\Extcal; |
| 4 | 4 | |
| 5 | -include __DIR__ . '/../../mainfile.php'; |
|
| 5 | +include __DIR__.'/../../mainfile.php'; |
|
| 6 | 6 | |
| 7 | -require_once __DIR__ . '/include/constantes.php'; |
|
| 8 | -require_once __DIR__ . '/include/mail_fnc.php'; |
|
| 7 | +require_once __DIR__.'/include/constantes.php'; |
|
| 8 | +require_once __DIR__.'/include/mail_fnc.php'; |
|
| 9 | 9 | |
| 10 | 10 | /* |
| 11 | 11 | Extcal\Utility::echoArray($_POST); |
@@ -22,20 +22,20 @@ discard block |
||
| 22 | 22 | $member_uid = $xoopsUser->getVar('uid'); |
| 23 | 23 | |
| 24 | 24 | if (!$GLOBALS['xoopsSecurity']->check()) { |
| 25 | - redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
|
| 25 | + redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | if ($xoopsUser && $xoopsModuleConfig['whosnot_going']) { |
| 29 | 29 | // If param are right |
| 30 | - if ((int)$_POST['event'] > 0 && ('add' === $_POST['mode'] || 'remove' === $_POST['mode'])) { |
|
| 30 | + if ((int) $_POST['event'] > 0 && ('add' === $_POST['mode'] || 'remove' === $_POST['mode'])) { |
|
| 31 | 31 | $eventHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_EVENT); |
| 32 | 32 | $eventNotMemberHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_NOT_MEMBER); |
| 33 | 33 | |
| 34 | 34 | // If the user have to be added |
| 35 | 35 | if ('add' === $_POST['mode']) { |
| 36 | - $event = $eventHandler->getEvent((int)$_POST['event'], $xoopsUser); |
|
| 36 | + $event = $eventHandler->getEvent((int) $_POST['event'], $xoopsUser); |
|
| 37 | 37 | $eventNotMemberHandler->createEventNotMember([ |
| 38 | - 'event_id' => (int)$_POST['event'], |
|
| 38 | + 'event_id' => (int) $_POST['event'], |
|
| 39 | 39 | 'uid' => $xoopsUser->getVar('uid'), |
| 40 | 40 | ]); |
| 41 | 41 | sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_3, _MD_EXTCAL_MSG_3); |
@@ -44,12 +44,12 @@ discard block |
||
| 44 | 44 | // If the user have to be remove |
| 45 | 45 | } else { |
| 46 | 46 | if ('remove' === $_POST['mode']) { |
| 47 | - $eventNotMemberHandler->deleteEventNotMember([(int)$_POST['event'], $xoopsUser->getVar('uid')]); |
|
| 47 | + $eventNotMemberHandler->deleteEventNotMember([(int) $_POST['event'], $xoopsUser->getVar('uid')]); |
|
| 48 | 48 | sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_4, _MD_EXTCAL_MSG_4); |
| 49 | 49 | $rediredtMessage = _MD_EXTCAL_WHOSNOT_GOING_REMOVED_TO_EVENT; |
| 50 | 50 | } |
| 51 | 51 | } |
| 52 | - redirect_header('event.php?event=' . $_POST['event'], 3, $rediredtMessage, false); |
|
| 52 | + redirect_header('event.php?event='.$_POST['event'], 3, $rediredtMessage, false); |
|
| 53 | 53 | } else { |
| 54 | 54 | redirect_header('index.php', 3, _NOPERM, false); |
| 55 | 55 | } |
@@ -2,20 +2,20 @@ |
||
| 2 | 2 | |
| 3 | 3 | use XoopsModules\Extcal; |
| 4 | 4 | |
| 5 | -include __DIR__ . '/../../mainfile.php'; |
|
| 6 | -require_once __DIR__ . '/include/constantes.php'; |
|
| 5 | +include __DIR__.'/../../mainfile.php'; |
|
| 6 | +require_once __DIR__.'/include/constantes.php'; |
|
| 7 | 7 | |
| 8 | 8 | if (!isset($_GET['file'])) { |
| 9 | 9 | $fileId = 0; |
| 10 | 10 | } else { |
| 11 | - $fileId = (int)$_GET['file']; |
|
| 11 | + $fileId = (int) $_GET['file']; |
|
| 12 | 12 | } |
| 13 | 13 | /** @var Extcal\FileHandler $fileHandler */ |
| 14 | 14 | $fileHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_FILE); |
| 15 | 15 | |
| 16 | 16 | $file = $fileHandler->getFile($fileId); |
| 17 | 17 | |
| 18 | -header('Content-Type: ' . $file->getVar('file_mimetype') . ''); |
|
| 19 | -header('Content-Disposition: attachment; filename="' . $file->getVar('file_nicename') . '"'); |
|
| 18 | +header('Content-Type: '.$file->getVar('file_mimetype').''); |
|
| 19 | +header('Content-Disposition: attachment; filename="'.$file->getVar('file_nicename').'"'); |
|
| 20 | 20 | |
| 21 | -readfile(XOOPS_ROOT_PATH . '/uploads/extcal/' . $file->getVar('file_name')); |
|
| 21 | +readfile(XOOPS_ROOT_PATH.'/uploads/extcal/'.$file->getVar('file_name')); |
|
@@ -2,16 +2,16 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | use XoopsModules\Extcal; |
| 4 | 4 | |
| 5 | -include __DIR__ . '/../../mainfile.php'; |
|
| 6 | -require_once __DIR__ . '/include/constantes.php'; |
|
| 5 | +include __DIR__.'/../../mainfile.php'; |
|
| 6 | +require_once __DIR__.'/include/constantes.php'; |
|
| 7 | 7 | $params = ['view' => _EXTCAL_NAV_MONTH, 'file' => _EXTCAL_FILE_MONTH]; |
| 8 | 8 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
| 9 | -require_once __DIR__ . '/header.php'; |
|
| 9 | +require_once __DIR__.'/header.php'; |
|
| 10 | 10 | |
| 11 | 11 | /* ========================================================================== */ |
| 12 | -$year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
| 13 | -$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n'); |
|
| 14 | -$cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
| 12 | +$year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
| 13 | +$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n'); |
|
| 14 | +$cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
| 15 | 15 | /* ========================================================================== */ |
| 16 | 16 | |
| 17 | 17 | $form = new \XoopsSimpleForm('', 'navigSelectBox', $params['file'], 'get'); |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | 'cat' => $cat, |
| 34 | 34 | 'externalKeys' => 'cat_id', |
| 35 | 35 | ]; |
| 36 | -$events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 36 | +$events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 37 | 37 | /**********************************************************************/ |
| 38 | 38 | $eventsArray = $events; |
| 39 | 39 | |
@@ -90,21 +90,21 @@ discard block |
||
| 90 | 90 | $nMonthCalObj = $monthCalObj->nextMonth('object'); |
| 91 | 91 | $navig = [ |
| 92 | 92 | 'prev' => [ |
| 93 | - 'uri' => 'year=' . $pMonthCalObj->thisYear() . '&month=' . $pMonthCalObj->thisMonth(), |
|
| 93 | + 'uri' => 'year='.$pMonthCalObj->thisYear().'&month='.$pMonthCalObj->thisMonth(), |
|
| 94 | 94 | 'name' => $timeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $pMonthCalObj->getTimestamp()), |
| 95 | 95 | ], |
| 96 | 96 | 'this' => [ |
| 97 | - 'uri' => 'year=' . $monthCalObj->thisYear() . '&month=' . $monthCalObj->thisMonth(), |
|
| 97 | + 'uri' => 'year='.$monthCalObj->thisYear().'&month='.$monthCalObj->thisMonth(), |
|
| 98 | 98 | 'name' => $timeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $monthCalObj->getTimestamp()), |
| 99 | 99 | ], |
| 100 | 100 | 'next' => [ |
| 101 | - 'uri' => 'year=' . $nMonthCalObj->thisYear() . '&month=' . $nMonthCalObj->thisMonth(), |
|
| 101 | + 'uri' => 'year='.$nMonthCalObj->thisYear().'&month='.$nMonthCalObj->thisMonth(), |
|
| 102 | 102 | 'name' => $timeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $nMonthCalObj->getTimestamp()), |
| 103 | 103 | ], |
| 104 | 104 | ]; |
| 105 | 105 | |
| 106 | 106 | // Title of the page |
| 107 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
| 107 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
| 108 | 108 | |
| 109 | 109 | // Assigning navig data to the template |
| 110 | 110 | $xoopsTpl->assign('navig', $navig); |
@@ -161,4 +161,4 @@ discard block |
||
| 161 | 161 | $xoopsTpl->assign('lang', $lang); |
| 162 | 162 | $xoopsTpl->assign('view', 'month'); |
| 163 | 163 | |
| 164 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
| 164 | +include XOOPS_ROOT_PATH.'/footer.php'; |
|
@@ -19,15 +19,15 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | use XoopsModules\Extcal; |
| 21 | 21 | |
| 22 | -include __DIR__ . '/../../mainfile.php'; |
|
| 23 | -require_once __DIR__ . '/include/constantes.php'; |
|
| 22 | +include __DIR__.'/../../mainfile.php'; |
|
| 23 | +require_once __DIR__.'/include/constantes.php'; |
|
| 24 | 24 | $params = ['view' => _EXTCAL_NAV_YEAR, 'file' => _EXTCAL_FILE_YEAR]; |
| 25 | 25 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
| 26 | -require_once __DIR__ . '/header.php'; |
|
| 26 | +require_once __DIR__.'/header.php'; |
|
| 27 | 27 | |
| 28 | 28 | /* ========================================================================== */ |
| 29 | -$year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
| 30 | -$cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
| 29 | +$year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
| 30 | +$cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
| 31 | 31 | |
| 32 | 32 | // Getting eXtCal object's handler |
| 33 | 33 | $catHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT); |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | 'cat' => $cat, |
| 57 | 57 | 'externalKeys' => 'cat_id', |
| 58 | 58 | ]; |
| 59 | -$events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 59 | +$events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 60 | 60 | /**********************************************************************/ |
| 61 | 61 | $eventsArray = $events; |
| 62 | 62 | // Formating date |
@@ -100,21 +100,21 @@ discard block |
||
| 100 | 100 | // Making navig data |
| 101 | 101 | $navig = [ |
| 102 | 102 | 'prev' => [ |
| 103 | - 'uri' => 'year=' . $prevYear, |
|
| 103 | + 'uri' => 'year='.$prevYear, |
|
| 104 | 104 | 'name' => $prevYear, |
| 105 | 105 | ], |
| 106 | 106 | 'this' => [ |
| 107 | - 'uri' => 'year=' . $year, |
|
| 107 | + 'uri' => 'year='.$year, |
|
| 108 | 108 | 'name' => $year, |
| 109 | 109 | ], |
| 110 | 110 | 'next' => [ |
| 111 | - 'uri' => 'year=' . $nexYear, |
|
| 111 | + 'uri' => 'year='.$nexYear, |
|
| 112 | 112 | 'name' => $nexYear, |
| 113 | 113 | ], |
| 114 | 114 | ]; |
| 115 | 115 | |
| 116 | 116 | // Title of the page |
| 117 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
| 117 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
| 118 | 118 | |
| 119 | 119 | // Assigning navig data to the template |
| 120 | 120 | $xoopsTpl->assign('navig', $navig); |
@@ -168,4 +168,4 @@ discard block |
||
| 168 | 168 | $xoopsTpl->assign('lang', $lang); |
| 169 | 169 | $xoopsTpl->assign('view', 'year'); |
| 170 | 170 | |
| 171 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
| 171 | +include XOOPS_ROOT_PATH.'/footer.php'; |
|