Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

23 rindas
749B

  1. <?php
  2. /**
  3. * @file
  4. * This file compares our version of PH5P with Jero's original version, and
  5. * generates a patch of the differences. This script should be run whenever
  6. * library/HTMLPurifier/Lexer/PH5P.php is modified.
  7. */
  8. $orig = realpath(dirname(__FILE__) . '/PH5P.php');
  9. $new = realpath(dirname(__FILE__) . '/../library/HTMLPurifier/Lexer/PH5P.php');
  10. $newt = dirname(__FILE__) . '/PH5P.new.php'; // temporary file
  11. // minor text-processing of new file to get into same format as original
  12. $new_src = file_get_contents($new);
  13. $new_src = '<?php' . PHP_EOL . substr($new_src, strpos($new_src, 'class HTML5 {'));
  14. file_put_contents($newt, $new_src);
  15. shell_exec("diff -u \"$orig\" \"$newt\" > PH5P.patch");
  16. unlink($newt);
  17. // vim: et sw=4 sts=4