-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.html
More file actions
45 lines (39 loc) · 1.92 KB
/
header.html
File metadata and controls
45 lines (39 loc) · 1.92 KB
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
<?php // $Id: header.html,v 2.3 2003/04/05 07:34:11 turbo Exp ?>
<?php //require_once($_SESSION["path"]."/include/dlw_porting.inc"); ?>
<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<title><?php echo pql_get_define("PQL_CONF_WHOAREWE"); ?></title>
<link rel="stylesheet" href="tools/normal.css" type="text/css">
<?php
$br = strtolower(getenv("HTTP_USER_AGENT"));
$_SESSION["konqueror"] = preg_match("/konqueror/i", $br);
$_SESSION["opera"] = preg_match("/opera/i", $br);
if($_SESSION["opera"]) {
?>
<script src="tools/opera.js" type="text/javascript" language="javascript1.2"></script>
<?php } ?>
<?php
// This is here because of one single function!
// user_edit_attribute.php->attrib.accountstatus.inc:attribute_print_form()
// Example from http://dynarch.com/mishoo/calendar/simple-1.html
if(!empty($_REQUEST["rootdn"]) && isset($_REQUEST["domain"]) && isset($_REQUEST["user"]) &&
isset($_REQUEST["view"]) && (@($_REQUEST["attrib"] == sprintf("%s", pql_get_define("PQL_ATTR_EXPIRATION"))) or
@($_REQUEST["attrib"] == sprintf("%s", pql_get_define("PQL_ATTR_ISACTIVE")))))
{
//if(dlw_v('rootdn') && dlw_v('domain') && dlw_v('user') && dlw_v('view') && (dlw_v('attrib') == "shadowexpire")) {
?>
<!-- calendar stylesheet -->
<link rel="stylesheet" type="text/css" media="all" href="jscalendar/calendar-win2k-cold-1.css" title="win2k-cold-1" />
<!-- main calendar program -->
<script type="text/javascript" src="jscalendar/calendar.js"></script>
<!-- language for the calendar -->
<script type="text/javascript" src="jscalendar/lang/calendar-en.js"></script>
<!-- the following script defines the Calendar.setup helper function, which makes
adding a calendar a matter of 1 or 2 lines of code. -->
<script type="text/javascript" src="jscalendar/calendar-setup.js"></script>
<?php
}
?>
</head>
<body bgcolor="#e7e7e7" background="images/bkg.png">