File: header.php

package info (click to toggle)
srg 1.3.5-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,956 kB
  • ctags: 776
  • sloc: sh: 9,073; cpp: 3,383; ansic: 563; makefile: 74; php: 57; yacc: 35; lex: 30
file content (55 lines) | stat: -rw-r--r-- 1,556 bytes parent folder | download
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
<?php
/* SRG - Squid Report Generator
 *
 * Example Custom PHP header
 *
 * $Id: header.php 246 2008-01-19 23:13:17Z matt $
 */
 
/* NOTE: it is your responsibility when including PHP headers to make sure
 *       that the appropriate stylesheets and javascript files are 
 *       included.
 */

/* Do any custom page setup here */

/* if you have php_authentication (-A) enabled then this function must be 
 * uncommented. 
 *
 * For each group in the report the name of the group is passed to this
 * function which must return true if the currently logged in user can view the
 * reports for the specified group.
 *
 * A return value of false causes the reports for the specified group not to be
 * displayed.
 */
function can_view($groupname) {
	/* Retrieve the currently logged in user from your session/cookie here */

	/* Check authentication here */

	/* But by default we'll have no authentication :) */
	return true;
}

/* This function is called when an error must be displayed to the user due to 
 * an access denied error or similar.
 */
function report_error($errormessage) {
	echo "<br><b>$errormessage</b><br>";	
}

/* Setup the page HTML here */
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" value="SRG 1.1 (http://www.crc.net.nz/software/srg.php)">
<meta name="robots" content="noindex,nofollow">
<link href="style.css" type="text/css" rel="stylesheet">
<title>SRG - Squid Log Analysis</title>
</head>
<body>
<br>
<div align="center"><h1>SRG - Squid Log Analysis</h1></div>
<br>