"Fossies" - the Fresh Open Source Software Archive

Member "srg-1.3.6/examples/header.php" (5 Aug 2009, 1562 Bytes) of package /linux/privat/old/srg-1.3.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 <?php
    2 /* SRG - Squid Report Generator
    3  *
    4  * Example Custom PHP header
    5  *
    6  * $Id: header.php 145 2004-09-25 13:30:10Z mattgbrown $
    7  */
    8  
    9 /* NOTE: it is your responsibility when including PHP headers to make sure
   10  *       that the appropriate stylesheets and javascript files are 
   11  *       included.
   12  */
   13 
   14 /* Do any custom page setup here */
   15 
   16 /* if you have php_authentication (-A) enabled then this function must be 
   17  * uncommented. 
   18  *
   19  * For each group in the report the name of the group is passed to this
   20  * function which must return true if the currently logged in user can view the
   21  * reports for the specified group.
   22  *
   23  * A return value of false causes the reports for the specified group not to be
   24  * displayed.
   25  */
   26 function can_view($groupname) {
   27     /* Retrieve the currently logged in user from your session/cookie here */
   28 
   29     /* Check authentication here */
   30 
   31     /* But by default we'll have no authentication :) */
   32     return true;
   33 }
   34 
   35 /* This function is called when an error must be displayed to the user due to 
   36  * an access denied error or similar.
   37  */
   38 function report_error($errormessage) {
   39     echo "<br><b>$errormessage</b><br>";    
   40 }
   41 
   42 /* Setup the page HTML here */
   43 ?>
   44 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
   45 <html>
   46 <head>
   47 <meta name="generator" value="SRG 1.1 (http://www.crc.net.nz/software/srg.php)">
   48 <meta name="robots" content="noindex,nofollow">
   49 <link href="style.css" type="text/css" rel="stylesheet">
   50 <title>SRG - Squid Log Analysis</title>
   51 </head>
   52 <body>
   53 <br>
   54 <div align="center"><h1>SRG - Squid Log Analysis</h1></div>
   55 <br>