ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
generate-ph5p-patch.php
Go to the documentation of this file.
1
<?php
2
10
$orig
= realpath(dirname(__FILE__) .
'/PH5P.php'
);
11
$new
= realpath(dirname(__FILE__) .
'/../library/HTMLPurifier/Lexer/PH5P.php'
);
12
$newt
= dirname(__FILE__) .
'/PH5P.new.php'
;
// temporary file
13
14
// minor text-processing of new file to get into same format as original
15
$new_src
= file_get_contents(
$new
);
16
$new_src
=
'<?php'
.
PHP_EOL
. substr(
$new_src
, strpos(
$new_src
,
'class HTML5 {'
));
17
18
file_put_contents(
$newt
,
$new_src
);
19
shell_exec(
"diff -u \"$orig\" \"$newt\" > PH5P.patch"
);
20
unlink(
$newt
);
21
22
// vim: et sw=4 sts=4
$newt
$newt
Definition:
generate-ph5p-patch.php:12
$new
$new
Definition:
generate-ph5p-patch.php:11
$orig
$orig
Definition:
generate-ph5p-patch.php:10
PHP_EOL
if($is_dev) echo "Review changes write something in WHATSNEW and and then commit with log PHP_EOL
Definition:
release1-update.php:107
$new_src
$new_src
Definition:
generate-ph5p-patch.php:15
libs
composer
vendor
ezyang
htmlpurifier
maintenance
generate-ph5p-patch.php
Generated on Sat Jan 18 2025 19:01:02 for ILIAS by
1.8.13 (using
Doxyfile
)