4 chdir(dirname(__FILE__));
5 require_once
'common.php';
8 echo "Please do not run this script. It is here for historical purposes only.";
19 define(
'HTMLPURIFIER_SCHEMA_STRICT',
true);
20 require_once dirname(__FILE__) .
'/../library/HTMLPurifier.auto.php';
24 require_once
'HTMLPurifier.includes.php';
27 require_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);
64 foreach (
$schema->info as $ns => $ns_array) {
66 foreach ($ns_array as $dir =>
$x) {
if($is_dev) echo "Review changes write something in WHATSNEW and and then commit with log PHP_EOL
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