4chdir(dirname(__FILE__));
5require_once
'common.php';
8echo
"Please do not run this script. It is here for historical purposes only.";
19define(
'HTMLPURIFIER_SCHEMA_STRICT',
true);
20require_once dirname(__FILE__) .
'/../library/HTMLPurifier.auto.php';
24require_once
'HTMLPurifier.includes.php';
27require_once
'HTMLPurifier/Filter/ExtractStyleBlocks.php';
34 if ($hash ===
false)
return;
35 $dir = realpath(dirname(__FILE__) .
'/../library/HTMLPurifier/ConfigSchema');
36 $name = $hash[
'ID'] .
'.txt';
37 $file = $dir .
'/' . $name;
38 if (file_exists(
$file)) {
39 trigger_error(
"File already exists; skipped $name");
45 foreach ($hash as $key => $value) {
46 $multiline = $multiline || (strpos($value,
"\n") !==
false);
64foreach (
$schema->info as $ns => $ns_array) {
66 foreach ($ns_array as $dir =>
$x) {
An exception for terminatinating execution or to throw for unit testing.
static instance($prototype=null)
Retrieves an instance of the application-wide configuration definition.
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file