forked from DistributedProofreaders/ppwb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pphtml.php
42 lines (32 loc) · 1.52 KB
/
pphtml.php
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
<?php
require_once("base.inc");
output_header("pphtml", ["techinfo-pphtml.php" => "TECH INFO"]);
output_content();
function output_content()
{
echo <<<MENU
<p>Pphtml combines several tests that are applicable to HTML files that have
been prepared to submit to Project Gutenberg. This includes link checking, image
validation, and several tests usually accomplished by Post Processing Verifiers
at DP.</p>
<p>To use this test, prepare a zip file containing a book's HTML file and
the images folder. Drag and drop the zip file onto the Browse button and then
click Submit to run pphtml against your uploaded zip. When it's
finished you should see a screen announcing "Pphtml Results" with a link to the results
of the run. Left click to view or right click the link to download the results.</p>
<p>Please note that HTML a (link) tags must begin and end on a single line for this
to work—the beginning < must be in the same row with the >. Otherwise the link
test will report these as [FAIL] duplicate targets.</p>
<form target="_blank" action="pphtml-action.php" method="POST" enctype="multipart/form-data">
<input type="checkbox" name="ver" value="Yes" id="ver" autocomplete="off">
<label for="ver">verbose operation</label><br/>
<table>
<tr>
<td style='text-align:right'><label for='userfile'>User zip file (HTML+images)</label></td>
<td><input type="file" name="userfile" autocomplete=off /></td>
</tr>
</table>
<div style='margin-top:1em; margin-bottom:0em;'><input type="submit" value="Submit" name="upload"/></div>
</form>
MENU;
}