20 lines
329 B
PHP
Executable File
20 lines
329 B
PHP
Executable File
<?php
|
|
|
|
# Quick script to check valid HTML
|
|
include "../../include/boot.php";
|
|
|
|
include "../../include/authenticate.php";
|
|
|
|
echo "<pre>";
|
|
|
|
$text = getval("text", "");
|
|
|
|
$html = trim($text);
|
|
$result = validate_html($html);
|
|
if ($result === true || $html == "") {
|
|
echo "OK\n";
|
|
} else {
|
|
echo "FAIL - $result \n";
|
|
}
|
|
echo "</pre>";
|