C:\$Recycle.Bin\S-1-5-21-3967099092-2644009230-141905953-500\$RE86HC9\includes\js\availability.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
<?php
if ( empty ( $PHP_SELF ) && ! empty ( $_SERVER ) &&
  ! empty ( 
$_SERVER['PHP_SELF'] ) ) {
  
$PHP_SELF $_SERVER['PHP_SELF'];
}
if ( ! empty ( 
$PHP_SELF ) && preg_match "/\/includes\//"$PHP_SELF ) ) {
    die ( 
"You can't access this file directly!" );
}
global 
$month$day$year;
?>

<script type="text/javascript">
<!-- <![CDATA[
// detect browser
NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
// W3C stands for the W3C standard, implemented in Mozilla (and Netscape 6) and IE5
W3C = (document.getElementById) ? 1 : 0;    
//Function is similar to visible.php, but effects the parent
function makeVisible ( name ) {
  var ele;

  if ( W3C ) {
    ele = window.opener.document.getElementById(name);
  } else if ( NS4 ) {
    ele = window.opener.document.layers[name];
  } else { // IE4
    ele = window.opener.document.all[name];
  }

  if ( NS4 ) {
    ele.visibility = "show";
  } else {  // IE4 & W3C & Mozilla
    ele.style.visibility = "visible";
  }
}

function schedule_event(hours, minutes) {
  var year =<?php echo $year ?> ;
  var month =<?php echo $month ?> ;
  var day =<?php echo $day ?> ;
  if (confirm("<?php etranslate("Change the date and time of this entry?")?>")) {
    var parentForm = window.opener.document.editentryform;
    parentForm.timetype.selectedIndex = 1;
    //Make time controls visible on parent
    makeVisible ( "timeentrystart" );
    if ( parentForm.duration_h ) {
      makeVisible ( "timeentryduration" );
    } else {
      makeVisible ( "timeentryend" );
    }
    if ( hours >  12 ) {
      parentForm.hour.value = hours - 12;
      if ( parentForm.ampm ) {
        parentForm.ampm[1].checked = true;
      }
    } else {
      parentForm.hour.value = hours;
      if ( hours ==  12 &&  parentForm.ampm )  {
        parentForm.ampm[1].checked = true;
      } else {
        if ( parentForm.ampm ) {
          parentForm.ampm[0].checked = true;
        }
      }
    }
    parentForm.minute.value = minutes;
    parentForm.day.selectedIndex = day - 1;
    parentForm.month.selectedIndex = month - 1;
    for ( i = 0; i < parentForm.year.length; i++ ) {
      if ( parentForm.year.options[i].value == year ) {
        parentForm.year.selectedIndex = i;
      }
    }
    window.close ();
  }
}
//]]> -->
</script>