Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
1010 B

  1. <?php
  2. // Tired of chasing typos and finding them after a commit.
  3. // Run this from cmdline in basedir and quickly see if we've
  4. // got any parse errors in our application files.
  5. error_reporting(E_ERROR | E_WARNING | E_PARSE );
  6. ini_set('display_errors', '1');
  7. ini_set('log_errors','0');
  8. include 'boot.php';
  9. $a = new App();
  10. echo "Directory: mod\n";
  11. $files = glob('mod/*.php');
  12. foreach($files as $file) {
  13. echo $file . "\n";
  14. include_once($file);
  15. }
  16. echo "Directory: include\n";
  17. $files = glob('include/*.php');
  18. foreach($files as $file) {
  19. echo $file . "\n";
  20. include_once($file);
  21. }
  22. echo "Directory: addon\n";
  23. $dirs = glob('addon/*');
  24. foreach($dirs as $dir) {
  25. $files = glob($dir . '/*.php');
  26. foreach($files as $file) {
  27. echo $file . "\n";
  28. include_once($file);
  29. }
  30. }
  31. echo "String files\n";
  32. echo 'util/strings.php' . "\n";
  33. include_once('util/strings.php');
  34. $files = glob('view/*/strings.php');
  35. foreach($files as $file) {
  36. echo $file . "\n";
  37. include_once($file);
  38. }