Update index.php

This commit is contained in:
Josh North 2014-08-25 14:44:37 -04:00
parent 2e6f5ce7fa
commit 888de6372b

View File

@ -1,31 +1,29 @@
<?php
// MAIN CONFIGURATION
$page_title = "Scanimage Web GUI"; // Name to be displayed on top of page as well as page title
$user_message = "Use the drop-downs below to set preferences. Load documents in the feeder and press "Scan". When the job completes, you will be able to pick your file from the selection at the bottom of the page."; // Text welcome message for user under title
// DIRECTORIES
$app_dir = "/var/www/scan/"; // Absolute path to where this app directory is - must end with a /
$scan_dir = "scans/"; // Relative path inside application directory that holds the scans - must end with a /
// FORMATS
$date_format = "Y-m-d_H.i.s"; // Date format to use for file naming - in PHP date code format
// PROGRAM LOCATIONS
$scanimage = "/usr/bin/scanimage"; // Absolute path to scanimage binary
$convert = "/usr/bin/convert"; //Absolute path to scanimage binary
?>
<html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Scanimage Web GUI</title> <title><?php $page_title ?></title>
<link rel="stylesheet" href="pure/pure-min.css"> <link rel="stylesheet" href="pure/pure-min.css">
<link rel="stylesheet" href="pure/grids-responsive.css"> <link rel="stylesheet" href="pure/grids-responsive.css">
<link rel="stylesheet" href="pure/base-min.css"> <link rel="stylesheet" href="pure/base-min.css">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
</head> </head>
<body> <body>
<?php <?php
// Configuration
// Directories
$app_dir = "/var/www/scan/"; // Absolute path to where this app directory is - must end with a /
$scan_dir = "scans/"; // Relative path inside application directory that holds the scans - must end with a /
// Formats
$date_format = "Y-m-d_H.i.s"; // Date format to use for file naming - in PHP date code format
// Binarys
$scanimage = "/usr/bin/scanimage"; // Absolute path to scanimage binary
$convert = "/usr/bin/convert"; //Absolute path to scanimage binary
// Don't touch below!
// initialize scanned files directory path // initialize scanned files directory path
$scans_dir = $app_dir . $scan_dir; $scans_dir = $app_dir . $scan_dir;
@ -79,7 +77,7 @@ if (isset($_POST["scan"])) {
<div class="pure-g"> <div class="pure-g">
<div class="pure-u-1"> <div class="pure-u-1">
<h1>Scanner Web GUI</h1> <h1>Scanner Web GUI</h1>
<p>Use the drop-downs below to set preferences. Load documents in the feeder and press "Scan". When the job completes, you will be able to pick your file from the selection at the bottom of the page.</p> <p>aa</p>
</div> </div>
</div> </div>
<form class="pure-form pure-form-aligned" action="index.php" method="post"> <form class="pure-form pure-form-aligned" action="index.php" method="post">