Initial commit

This commit is contained in:
2026-05-20 18:25:15 +02:00
commit 95f0b4ff01
288 changed files with 90909 additions and 0 deletions

26
app/helpers.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
/* SECTIONS HELPERS */
if( !function_exists( 'section_must_be' ) ){
function section_must_be( array|string $sections, string $item ): bool
{
if( is_array($sections) ){
return in_array( $item, $sections );
}
return $sections === $item;
}
}
if( !function_exists( 'section_must_not_be' ) ){
function section_must_not_be( array|string $sections, string $item ): bool
{
if( is_array($sections) ){
return ! in_array( $item, $sections );
}
return $sections !== $item;
}
}