summaryrefslogtreecommitdiff
path: root/app.php
diff options
context:
space:
mode:
authorhorus2021-03-15 18:16:14 +0100
committerhorus2021-03-15 18:16:14 +0100
commitd2dc7ccfa1c3f296e6ca5e5ef9459ab154670b70 (patch)
tree2e2d08dba1d3a02fb80cbcb556a03195d8e9a103 /app.php
parente1554c725e22909a5fb239f481e76e30abc306f9 (diff)
downloadmoehring-d2dc7ccfa1c3f296e6ca5e5ef9459ab154670b70.tar.gz
Add untrack
Diffstat (limited to 'app.php')
-rw-r--r--app.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/app.php b/app.php
index 53ca7eb..bac509e 100644
--- a/app.php
+++ b/app.php
@@ -1,6 +1,7 @@
<?php
require __DIR__ . '/vendor/autoload.php';
+require __DIR__ . '/functions.php';
$loader = new \Twig\Loader\FilesystemLoader(__DIR__ . '/views');
$twig = new \Twig\Environment($loader); # no cache
@@ -26,12 +27,3 @@ $function = new \Twig\TwigFunction('dump', function($data) {
var_dump($data);
});
$twig->addFunction($function);
-
-function get_faces(){
- return json_decode( file_get_contents( __DIR__ . '/views/tools/faces/faces.json' ), true );
-}
-
-function str_starts_with( $haystack, $needle ) {
- $length = strlen( $needle );
- return substr( $haystack, 0, $length ) === $needle;
-}