summaryrefslogtreecommitdiff
path: root/functions.php
blob: 0b7d36903e01ad468359f79c2008d8b095a74988 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

require __DIR__ . '/views/tools/untrack/resolve.php';
require __DIR__ . '/views/tools/zeitumstellung/vendor/autoload.php';

function get_faces(){
	return json_decode( file_get_contents( __DIR__ . '/views/tools/faces/faces.json' ), true );
}

function get_dances(){
	return json_decode( file_get_contents( __DIR__ . '/views/tools/bpm/dances.json' ), true );
}

function str_starts_with( $haystack, $needle ) {
     $length = strlen( $needle );
     return substr( $haystack, 0, $length ) === $needle;
}