@@ -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 |
@@ -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"; |
@@ -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 | } |
@@ -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'; |
@@ -33,13 +33,13 @@ |
||
33 | 33 | global $xoopsDB; |
34 | 34 | |
35 | 35 | // Create eXtcal upload directory if don't exist |
36 | - $dir = XOOPS_ROOT_PATH . '/uploads/extcal'; |
|
36 | + $dir = XOOPS_ROOT_PATH.'/uploads/extcal'; |
|
37 | 37 | if (!is_dir($dir)) { |
38 | 38 | mkdir($dir); |
39 | 39 | |
40 | 40 | // Copy index.html files on uploads folders |
41 | - $indexFile = __DIR__ . '/index.html'; |
|
42 | - copy($indexFile, XOOPS_ROOT_PATH . '/uploads/extcal/index.html'); |
|
41 | + $indexFile = __DIR__.'/index.html'; |
|
42 | + copy($indexFile, XOOPS_ROOT_PATH.'/uploads/extcal/index.html'); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | // Create who's not going table to fix bug. If the table exist, the query will faile |
@@ -32,7 +32,7 @@ |
||
32 | 32 | { |
33 | 33 | global $xoopsDB; |
34 | 34 | |
35 | - $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . "` ADD `event_nbmember` TINYINT(4) NOT NULL DEFAULT '0' AFTER `event_submitdate` ;"; |
|
35 | + $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event')."` ADD `event_nbmember` TINYINT(4) NOT NULL DEFAULT '0' AFTER `event_submitdate` ;"; |
|
36 | 36 | $xoopsDB->query($sql); |
37 | 37 | } |
38 | 38 |
@@ -17,5 +17,5 @@ |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -include __DIR__ . '/../../mainfile.php'; |
|
21 | -include XOOPS_ROOT_PATH . '/include/comment_reply.php'; |
|
20 | +include __DIR__.'/../../mainfile.php'; |
|
21 | +include XOOPS_ROOT_PATH.'/include/comment_reply.php'; |