update v1.0.4
This commit is contained in:
11
vendor/dompdf/dompdf/www/debugger.php
vendored
11
vendor/dompdf/dompdf/www/debugger.php
vendored
@@ -1,4 +1,12 @@
|
||||
<?php
|
||||
<?php
|
||||
require_once "functions.inc.php";
|
||||
|
||||
$allowed_hosts = array("::1", "127.0.0.1");
|
||||
if( !auth_ok() || !in_array($_SERVER['REMOTE_ADDR'], $allowed_hosts) ) {
|
||||
die("Access denied to host at " . $_SERVER['REMOTE_ADDR']);
|
||||
}
|
||||
|
||||
|
||||
$files = glob("test/*.{html,htm,php}", GLOB_BRACE);
|
||||
?>
|
||||
|
||||
@@ -6,6 +14,7 @@ $files = glob("test/*.{html,htm,php}", GLOB_BRACE);
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>dompdf debugger</title>
|
||||
<meta name="robots" content="noindex">
|
||||
<script type="text/javascript" src="jquery-1.4.2.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
6
vendor/dompdf/dompdf/www/demo.php
vendored
6
vendor/dompdf/dompdf/www/demo.php
vendored
@@ -6,7 +6,7 @@ require_once("../dompdf_config.inc.php");
|
||||
$local = array("::1", "127.0.0.1");
|
||||
$is_local = in_array($_SERVER['REMOTE_ADDR'], $local);
|
||||
|
||||
if ( isset( $_POST["html"] ) && $is_local ) {
|
||||
if ( auth_ok() && $is_local && isset( $_POST["html"] ) ) {
|
||||
|
||||
if ( get_magic_quotes_gpc() )
|
||||
$_POST["html"] = stripslashes($_POST["html"]);
|
||||
@@ -27,7 +27,7 @@ if ( isset( $_POST["html"] ) && $is_local ) {
|
||||
<a name="demo"> </a>
|
||||
<h2>Demo</h2>
|
||||
|
||||
<?php if ($is_local) { ?>
|
||||
<?php if (auth_ok() && $is_local) { ?>
|
||||
|
||||
<p>Enter your html snippet in the text box below to see it rendered as a
|
||||
PDF: (Note by default, remote stylesheets, images & inline PHP are disabled.)</p>
|
||||
@@ -79,6 +79,8 @@ saving it to a file first.)</p>
|
||||
User input has been disabled for remote connections.
|
||||
</p>
|
||||
|
||||
<?php echo auth_get_link(); ?>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php include("foot.inc"); ?>
|
||||
5
vendor/dompdf/dompdf/www/head.inc
vendored
5
vendor/dompdf/dompdf/www/head.inc
vendored
@@ -1,4 +1,8 @@
|
||||
<?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();
|
||||
|
||||
@@ -21,6 +25,7 @@ auth_check();
|
||||
<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>
|
||||
|
||||
|
||||
11
vendor/dompdf/dompdf/www/setup.php
vendored
11
vendor/dompdf/dompdf/www/setup.php
vendored
@@ -1,5 +1,9 @@
|
||||
<?php include("head.inc"); ?>
|
||||
|
||||
<?php
|
||||
if (auth_ok()) {
|
||||
?>
|
||||
|
||||
<a name="setup"> </a>
|
||||
<h2>Setup</h2>
|
||||
|
||||
@@ -296,5 +300,12 @@ $constants = array(
|
||||
|
||||
</table>
|
||||
|
||||
<?php
|
||||
} else {
|
||||
echo auth_get_link();
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<?php include("foot.inc"); ?>
|
||||
Reference in New Issue
Block a user