aboutsummaryrefslogtreecommitdiff
path: root/vendor/trails/src/trails.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+github@gmail.com>2021-07-22 16:07:19 +0200
committerJan-Hendrik Willms <tleilax+github@gmail.com>2021-07-22 16:19:12 +0200
commita3da1483a9e689846179159355badfec8073dbec (patch)
tree770dcca6bdf5f6f2a11b0e7fcbbeda6919a3fc52 /vendor/trails/src/trails.php
current code from svn, revision 62608
Diffstat (limited to 'vendor/trails/src/trails.php')
-rw-r--r--vendor/trails/src/trails.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/trails/src/trails.php b/vendor/trails/src/trails.php
new file mode 100644
index 0000000..2e9e8e2
--- /dev/null
+++ b/vendor/trails/src/trails.php
@@ -0,0 +1,16 @@
+<?php
+function fgc($files/*, ... */) {
+ $result = '';
+ $files = func_get_args();
+ foreach ($files as $file) {
+ $string = file_get_contents(dirname(__FILE__)."/$file.php");
+ $result .= preg_replace("/^(<\?(php)?)|(\?>)\s*\v+$/", "", $string);
+ }
+ return $result;
+}
+?>
+<?= "<?php" ?>
+<?= fgc("HEADER") ?>
+
+<?= fgc("dispatcher", "response", "controller",
+ "inflector", "flash", "exception") ?>