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 chdir(dirname(__FILE__) .
'/../tests/HTMLPurifier');
24 if (substr_count(basename($file),
'.') > 1)
continue;
25 $old_code = file_get_contents($file);
26 $new_code = preg_replace(
"#^require_once .+[\n\r]*#m",
'', $old_code);
27 if ($old_code !== $new_code) {
28 file_put_contents($file, $new_code);
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file