update v1.0.4

This commit is contained in:
sujitprasad
2016-01-04 18:05:45 +05:30
parent 372485336b
commit 4864e5a3f1
529 changed files with 20956 additions and 8178 deletions

View File

@@ -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">

View File

@@ -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 &amp; 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"); ?>

View File

@@ -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>

View File

@@ -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"); ?>