File: head.inc

package info (click to toggle)
php-dompdf 0.6.2%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 4,208 kB
  • ctags: 5,137
  • sloc: php: 19,618; makefile: 39; sh: 13
file content (59 lines) | stat: -rw-r--r-- 1,978 bytes parent folder | download | duplicates (3)
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
<?php
$allowed_hosts = array("::1", "127.0.0.1");
if( !in_array($_SERVER['REMOTE_ADDR'], $allowed_hosts) ) {
  die("Access denied to host at " . $_SERVER['REMOTE_ADDR']);
}

session_start();

require_once "../dompdf_config.inc.php";
require_once "functions.inc.php";

function li_arrow() {
  return '<li style="list-style-image: url(\'images/arrow_0' . rand(1,6) . '.gif\');">';  
}

function li_star() {
  return '<li style="list-style-image: url(\'images/star_0' . rand(1,5) . '.gif\');">';  
}

auth_check();

?>
<!DOCTYPE html>
<html lang="en">
<head>
  <title>dompdf - The PHP 5 HTML to PDF Converter</title>
  <link rel="stylesheet" href="style.css" type="text/css"/>
  <meta name="robots" content="noindex">
  <link rel="SHORTCUT ICON" href="images/favicon.ico"/>
  <script type="text/javascript" src="jquery-1.4.2.js"></script>
  
  <?php if (isset($_SESSION["auth_message"])) { ?>
    <script type="text/javascript">
      alert("<?php echo $_SESSION["auth_message"]; ?>");
    </script>
  <?php } ?>
</head>

<body>

<div id="header" class="bar">
  <a href="index.php"><img id="logo" src="images/title.gif" alt="dompdf"/></a>
  <a href="http://dompdf.github.com/" target="_blank">dompdf.github.com</a>
  &mdash; 
  Send bug reports to <a href="https://github.com/dompdf/dompdf/issues">the bug tracker</a> 
  &amp; support questions to <a href="http://groups.google.com/group/dompdf">Google Groups</a>.
</div>

<div id="left_col">
  <ul>
    <li style="list-style-image: url('images/star_02.gif');"><a href="index.php">Overview</a></li>
    <li style="list-style-image: url('images/star_02.gif');"><a href="examples.php">Examples</a></li>
    <li style="list-style-image: url('images/star_02.gif');"><a href="demo.php">Demo</a></li>
    <li style="list-style-image: url('images/star_02.gif');"><a href="setup.php">Setup / Config</a></li>
    <li style="list-style-image: url('images/star_02.gif');"><a href="fonts.php">Fonts</a></li>
  </ul>
</div>

<div id="content">