C:\$Recycle.Bin\S-1-5-21-3967099092-2644009230-141905953-500\$R30CG93\webcalendar\base.inc.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
<?
/*  ©2004 Proverbs, LLC. All rights reserved.  */

if (eregi("base.inc.php"$_SERVER['PHP_SELF']))
{
    
// redirect to calendar page
    
header("Location: calendar.php");
    exit;
}

if(!
defined("BASE_CALENDAR")) 

    
define("BASE_CALENDAR"TRUE); 

    require (
'setup.inc.php');
    require (
'language.inc.php');
    require (
'calaccess.inc.php');

    class 
base_calendar
    
{
        var 
$pagelayout;
        var 
$activeday;
        var 
$activemonth;
        var 
$activeyear;

        
// Constructor
        
function base_calendar()
        {
            
$this->pagelayout '';
        }

        function 
checkbrowser()
        {
            
// create the setup object
            
$conf = new layout_setup;
            
$javaallowed $conf->enable_javacss;
            unset(
$conf);
            if (!isset(
$_SERVER['HTTP_USER_AGENT']) || !$javaallowed)
                return 
0;
            if (
eregi("Opera"$_SERVER['HTTP_USER_AGENT']) || eregi("Firefox"$_SERVER['HTTP_USER_AGENT']))
                return 
1;
            if (
eregi("MSIE"$_SERVER['HTTP_USER_AGENT']))
            {
                if (
intval(trim(substr($_SERVER['HTTP_USER_AGENT'], strpos($_SERVER['HTTP_USER_AGENT'], "MSIE"), 2))) >= 4)
                    return 
2;
            }
            if (
eregi("Netscape"$_SERVER['HTTP_USER_AGENT']))
            {
                if (
eregi("Netscape6"$_SERVER['HTTP_USER_AGENT']))
                    return 
1;
                if (
intval(trim(substr($_SERVER['HTTP_USER_AGENT'], strpos($_SERVER['HTTP_USER_AGENT'], "Netscape"), 2))) >= 6)
                    return 
1;
            }
            return 
0;
        }

        function 
makeheader()
        {
            
// create the setup object
            
$conf = new layout_setup;
            
// create the language object
            
$lang = new language;

            
$retversion $this->checkbrowser();
            
$this->pagelayout '<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'
.$lang->lang_value.'" lang="'.$lang->lang_value.'">
<head>
<title>'
.$conf->calendar_title_text.'</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta name="Description" content="'
.$conf->calendar_title_text.'" />
'
;
            unset(
$conf);
            unset(
$lang);
            return 
$retversion;
        }

        function 
closeheader()
        {
            
$this->pagelayout .= '</head>
<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
'
;
        }

        function 
displaypage()
        {
            
$this->pagelayout .= '
</body>
</html>'
;

            echo 
$this->pagelayout;
        }
    }
}
?>