C:\$Recycle.Bin\S-1-5-21-3967099092-2644009230-141905953-500\$RE86HC9\day.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
include_once 'includes/init.php';

if ((
$user != $login) && $is_nonuser_admin)
  
load_user_layers ($user);
else
  
load_user_layers ();

load_user_categories ();

$wday strftime "%w"mktime 300$thismonth$thisday$thisyear ) );

$now mktime 300$thismonth$thisday$thisyear );
$nowYmd date "Ymd"$now );

$next mktime 300$thismonth$thisday 1$thisyear );
$nextYmd date "Ymd"$next );
$nextyear date "Y"$next );
$nextmonth date "m"$next );
$nextday date "d"$next );

$prev mktime 300$thismonth$thisday 1$thisyear );
$prevYmd date "Ymd"$prev );
$prevyear date "Y"$prev );
$prevmonth date "m"$prev );
$prevday date "d"$prev );

if ( ! empty ( 
$bold_days_in_year ) && $bold_days_in_year == 'Y' ) {
 
$boldDays true;
} else {
 
$boldDays false;
}

$startdate sprintf "%04d%02d01"$thisyear$thismonth );
$enddate sprintf "%04d%02d31"$thisyear$thismonth );

$HeadX '';
if ( 
$auto_refresh == "Y" && ! empty ( $auto_refresh_time ) ) {
  
$refresh $auto_refresh_time 60// convert to seconds
  
$HeadX "<meta http-equiv=\"refresh\" content=\"$refresh; url=day.php?$u_url.
    
"date=$nowYmd$caturl. ( ! empty ( $friendly ) ? "&amp;friendly=1" "") . "\" />\n";
}
$INC = array('js/popups.php');
print_header($INC,$HeadX);
?>

<?php
/* Pre-Load the repeated events for quckier access */
$repeated_events read_repeated_events ( empty ( $user ) ? $login $user,
  
$cat_id$startdate  );

/* Pre-load the non-repeating events for quicker access */
$events read_events ( empty ( $user ) ? $login $user$startdate$enddate,
  
$cat_id  );
?>

<table>
<tr><td style="vertical-align:top; width:82%;">
<div style="border-width:0px;">
<a title="<?php etranslate("Next"); ?>" class="next" href="day.php?<?php echo $u_url;?>date=<?php echo $nextYmd $caturl;?>"><img src="rightarrow.gif" alt="<?php etranslate("Next"); ?>" /></a>
<a title="<?php etranslate("Previous"); ?>" class="prev" href="day.php?<?php echo $u_url;?>date=<?php echo $prevYmd $caturl;?>"><img src="leftarrow.gif" alt="<?php etranslate("Previous"); ?>" /></a>
<div class="title">
<span class="date"><?php
  
echo date_to_str $nowYmd );
?></span>
<span class="user"><?php
  
// display current calendar's user (if not in single user)
  
if ( $single_user == "N" ) {
    echo 
"<br />";
    echo 
$user_fullname;
  }
  if ( 
$is_nonuser_admin )
    echo 
"<br />-- " translate("Admin mode") . " --";
  if ( 
$is_assistant )
    echo 
"<br />-- " translate("Assistant mode") . " --";
?></span>
<?php
  
if ( $categories_enabled == "Y" && (!$user || ($user == $login || $is_assistant ))) {
    echo 
"<br />\n<br />\n";
    
print_category_menu'day'sprintf "%04d%02d%02d",$thisyear$thismonth$thisday ), $cat_id );
  }
?>
</div>
</div>
</td>
<td style="vertical-align:top;" rowspan="2">
<!-- START MINICAL -->
<div class="minicalcontainer">
<?php display_small_month $thismonth$thisyeartrue ); ?>
</div>
</td></tr><tr><td>
<table class="glance" cellspacing="0" cellpadding="0">
<?php
if ( empty ( $TIME_SLOTS ) )
  
$TIME_SLOTS 24;

print_day_at_a_glance date "Ymd"$now ),
  empty ( 
$user ) ? $login $user$can_add );
?>
</table>
</td>
</tr></table>
<br />
<?php
 
if ( ! empty ( $eventinfo ) ) echo $eventinfo;

  
display_unapproved_events ( ( $is_assistant || $is_nonuser_admin $user $login ) );
?>
<br />
<a title="<?php etranslate("Generate printer-friendly version")?>" class="printer" href="day.php?<?php
  
echo $u_url;
  if ( 
$thisyear ) {
    echo 
"year=$thisyear&amp;month=$thismonth&amp;day=$thisday&amp;";
  }
  if ( ! empty ( 
$cat_id ) ) echo "cat_id=$cat_id&amp;";
?>friendly=1" target="cal_printer_friendly" onmouseover="window.status = '<?php etranslate("Generate printer-friendly version")?>'">[<?php etranslate("Printer Friendly")?>]</a>

<?php print_trailer (); ?>
</body>
</html>