mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-06 22:26:31 +02:00
Some maintenance script cleanup
- Create super-script flush.php - Rename old scripts with old- prefix. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1574 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -25,6 +25,7 @@ $exclude_files = array(
|
||||
);
|
||||
|
||||
// Determine what files need to be included:
|
||||
echo 'Scanning for files... ';
|
||||
$raw_files = $FS->globr('.', '*.php');
|
||||
$files = array();
|
||||
foreach ($raw_files as $file) {
|
||||
@@ -42,6 +43,7 @@ foreach ($raw_files as $file) {
|
||||
if (in_array($file, $exclude_files)) continue; // rm excluded files
|
||||
$files[] = $file;
|
||||
}
|
||||
echo "done!\n";
|
||||
|
||||
// Reorder list so that dependencies are included first:
|
||||
|
||||
@@ -145,4 +147,6 @@ foreach ($files as $file) {
|
||||
$php .= "require '$file';" . PHP_EOL;
|
||||
}
|
||||
|
||||
echo "Writing file... ";
|
||||
file_put_contents('HTMLPurifier.includes.php', $php);
|
||||
echo "done!\n";
|
||||
|
Reference in New Issue
Block a user