blob: 9bd65e4c5246dfc6379f0e6dbb1447d857cf32db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?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;
}
function str_ends_with( $haystack, $needle) {
$len = strlen($needle);
if ($len == 0) {
return true;
}
return substr($haystack, -$len) === $needle;
}
|