@@ -5,7 +5,7 @@ |
||
5 | 5 | if (!@include 'Calendar/Calendar.php') { |
6 | 6 | define('CALENDAR_ROOT', '../../'); |
7 | 7 | } |
8 | -require_once CALENDAR_ROOT . 'Day.php'; |
|
8 | +require_once CALENDAR_ROOT.'Day.php'; |
|
9 | 9 | |
10 | 10 | $Day = new Calendar_Day(2003, 10, 23); |
11 | 11 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE); |
22 | 22 | $event = $eventHandler->getEvent($itemId, 0, true); |
23 | 23 | $item['name'] = $event->getVar('event_title'); |
24 | - $item['url'] = XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'); |
|
24 | + $item['url'] = XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'); |
|
25 | 25 | |
26 | 26 | return $item; |
27 | 27 | } |
@@ -1,4 +1,4 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include __DIR__ . '/../../mainfile.php'; |
|
4 | -include XOOPS_ROOT_PATH . '/include/notification_update.php'; |
|
3 | +include __DIR__.'/../../mainfile.php'; |
|
4 | +include XOOPS_ROOT_PATH.'/include/notification_update.php'; |
@@ -6,9 +6,9 @@ discard block |
||
6 | 6 | if (!@include 'Calendar/Calendar.php') { |
7 | 7 | define('CALENDAR_ROOT', '../../'); |
8 | 8 | } |
9 | -require_once CALENDAR_ROOT . 'Day.php'; |
|
10 | -require_once CALENDAR_ROOT . 'Month/Weekdays.php'; |
|
11 | -require_once CALENDAR_ROOT . 'Decorator/Textual.php'; |
|
9 | +require_once CALENDAR_ROOT.'Day.php'; |
|
10 | +require_once CALENDAR_ROOT.'Month/Weekdays.php'; |
|
11 | +require_once CALENDAR_ROOT.'Decorator/Textual.php'; |
|
12 | 12 | |
13 | 13 | // Could change language like this |
14 | 14 | // setlocale (LC_TIME, "de_DE"); // Unix based (probably) |
@@ -28,12 +28,12 @@ discard block |
||
28 | 28 | // Decorate |
29 | 29 | $Textual = new Calendar_Decorator_Textual($Calendar); |
30 | 30 | |
31 | -echo '<hr>Previous month is: ' . $Textual->prevMonthName('two') . '<br>'; |
|
32 | -echo 'This month is: ' . $Textual->thisMonthName('short') . '<br>'; |
|
33 | -echo 'Next month is: ' . $Textual->nextMonthName() . '<br><hr>'; |
|
34 | -echo 'Previous day is: ' . $Textual->prevDayName() . '<br>'; |
|
35 | -echo 'This day is: ' . $Textual->thisDayName('short') . '<br>'; |
|
36 | -echo 'Next day is: ' . $Textual->nextDayName('one') . '<br><hr>'; |
|
31 | +echo '<hr>Previous month is: '.$Textual->prevMonthName('two').'<br>'; |
|
32 | +echo 'This month is: '.$Textual->thisMonthName('short').'<br>'; |
|
33 | +echo 'Next month is: '.$Textual->nextMonthName().'<br><hr>'; |
|
34 | +echo 'Previous day is: '.$Textual->prevDayName().'<br>'; |
|
35 | +echo 'This day is: '.$Textual->thisDayName('short').'<br>'; |
|
36 | +echo 'Next day is: '.$Textual->nextDayName('one').'<br><hr>'; |
|
37 | 37 | |
38 | 38 | echo "Creating: new Calendar_Month_Weekdays(date('Y'), date('n'), 6); - Saturday is first day of week<br>"; |
39 | 39 | $Calendar = new Calendar_Month_Weekdays(date('Y'), date('n'), 6); |
@@ -43,12 +43,12 @@ discard block |
||
43 | 43 | ?> |
44 | 44 | <p>Rendering calendar....</p> |
45 | 45 | <table> |
46 | - <caption><?php echo $Textual->thisMonthName() . ' ' . $Textual->thisYear(); ?></caption> |
|
46 | + <caption><?php echo $Textual->thisMonthName().' '.$Textual->thisYear(); ?></caption> |
|
47 | 47 | <tr> |
48 | 48 | <?php |
49 | 49 | $dayheaders = $Textual->orderedWeekdays('short'); |
50 | 50 | foreach ($dayheaders as $dayheader) { |
51 | - echo '<th>' . $dayheader . '</th>'; |
|
51 | + echo '<th>'.$dayheader.'</th>'; |
|
52 | 52 | } |
53 | 53 | ?> |
54 | 54 | </tr> |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | if ($Day->isEmpty()) { |
62 | 62 | echo '<td> </td>'; |
63 | 63 | } else { |
64 | - echo '<td>' . $Day->thisDay() . '</td>'; |
|
64 | + echo '<td>'.$Day->thisDay().'</td>'; |
|
65 | 65 | } |
66 | 66 | if ($Day->isLast()) { |
67 | 67 | echo "</tr>\n"; |
@@ -6,9 +6,9 @@ discard block |
||
6 | 6 | if (!@include 'Calendar/Calendar.php') { |
7 | 7 | define('CALENDAR_ROOT', '../../'); |
8 | 8 | } |
9 | -require_once CALENDAR_ROOT . 'Day.php'; |
|
10 | -require_once CALENDAR_ROOT . 'Month/Weekdays.php'; |
|
11 | -require_once CALENDAR_ROOT . 'Util/Textual.php'; |
|
9 | +require_once CALENDAR_ROOT.'Day.php'; |
|
10 | +require_once CALENDAR_ROOT.'Month/Weekdays.php'; |
|
11 | +require_once CALENDAR_ROOT.'Util/Textual.php'; |
|
12 | 12 | |
13 | 13 | // Could change language like this |
14 | 14 | // setlocale (LC_TIME, "de_DE"); // Unix based (probably) |
@@ -25,12 +25,12 @@ discard block |
||
25 | 25 | echo "<hr>Creating: new Calendar_Day(date('Y'), date('n'), date('d'));<br>"; |
26 | 26 | $Calendar = new Calendar_Day(date('Y'), date('n'), date('d')); |
27 | 27 | |
28 | -echo '<hr>Previous month is: ' . Calendar_Util_Textual::prevMonthName($Calendar, 'two') . '<br>'; |
|
29 | -echo 'This month is: ' . Calendar_Util_Textual::thisMonthName($Calendar, 'short') . '<br>'; |
|
30 | -echo 'Next month is: ' . Calendar_Util_Textual::nextMonthName($Calendar) . '<br><hr>'; |
|
31 | -echo 'Previous day is: ' . Calendar_Util_Textual::prevDayName($Calendar) . '<br>'; |
|
32 | -echo 'This day is: ' . Calendar_Util_Textual::thisDayName($Calendar, 'short') . '<br>'; |
|
33 | -echo 'Next day is: ' . Calendar_Util_Textual::nextDayName($Calendar, 'one') . '<br><hr>'; |
|
28 | +echo '<hr>Previous month is: '.Calendar_Util_Textual::prevMonthName($Calendar, 'two').'<br>'; |
|
29 | +echo 'This month is: '.Calendar_Util_Textual::thisMonthName($Calendar, 'short').'<br>'; |
|
30 | +echo 'Next month is: '.Calendar_Util_Textual::nextMonthName($Calendar).'<br><hr>'; |
|
31 | +echo 'Previous day is: '.Calendar_Util_Textual::prevDayName($Calendar).'<br>'; |
|
32 | +echo 'This day is: '.Calendar_Util_Textual::thisDayName($Calendar, 'short').'<br>'; |
|
33 | +echo 'Next day is: '.Calendar_Util_Textual::nextDayName($Calendar, 'one').'<br><hr>'; |
|
34 | 34 | |
35 | 35 | echo "Creating: new Calendar_Month_Weekdays(date('Y'), date('n'), 6); - Saturday is first day of week<br>"; |
36 | 36 | $Calendar = new Calendar_Month_Weekdays(date('Y'), date('n'), 6); |
@@ -38,12 +38,12 @@ discard block |
||
38 | 38 | ?> |
39 | 39 | <p>Rendering calendar....</p> |
40 | 40 | <table> |
41 | - <caption><?php echo Calendar_Util_Textual::thisMonthName($Calendar) . ' ' . $Calendar->thisYear(); ?></caption> |
|
41 | + <caption><?php echo Calendar_Util_Textual::thisMonthName($Calendar).' '.$Calendar->thisYear(); ?></caption> |
|
42 | 42 | <tr> |
43 | 43 | <?php |
44 | 44 | $dayheaders = Calendar_Util_Textual::orderedWeekdays($Calendar, 'short'); |
45 | 45 | foreach ($dayheaders as $dayheader) { |
46 | - echo '<th>' . $dayheader . '</th>'; |
|
46 | + echo '<th>'.$dayheader.'</th>'; |
|
47 | 47 | } |
48 | 48 | ?> |
49 | 49 | </tr> |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | if ($Day->isEmpty()) { |
57 | 57 | echo '<td> </td>'; |
58 | 58 | } else { |
59 | - echo '<td>' . $Day->thisDay() . '</td>'; |
|
59 | + echo '<td>'.$Day->thisDay().'</td>'; |
|
60 | 60 | } |
61 | 61 | if ($Day->isLast()) { |
62 | 62 | echo "</tr>\n"; |
@@ -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 | } |
@@ -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 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -require_once __DIR__ . '/../../../include/cp_header.php'; |
|
20 | +require_once __DIR__.'/../../../include/cp_header.php'; |
|
21 | 21 | require_once $GLOBALS['xoops']->path('www/class/xoopsformloader.php'); |
22 | 22 | |
23 | 23 | $moduleDirName = basename(dirname(__DIR__)); |
@@ -16,10 +16,10 @@ |
||
16 | 16 | * |
17 | 17 | * @author Mage, Mamba |
18 | 18 | **/ |
19 | -require_once __DIR__ . '/admin_header.php'; |
|
19 | +require_once __DIR__.'/admin_header.php'; |
|
20 | 20 | xoops_cp_header(); |
21 | 21 | |
22 | 22 | $adminObject->displayNavigation(basename(__FILE__)); |
23 | 23 | $adminObject->displayAbout('[email protected]', false); |
24 | 24 | |
25 | -require_once __DIR__ . '/admin_footer.php'; |
|
25 | +require_once __DIR__.'/admin_footer.php'; |