Chore: Verschiebe Git-Repository in das Hauptverzeichnis und richte .gitignore ein

This commit is contained in:
salam committed 2026-10-19 10:11:04 +02:00
commit 96d0545193
502 files changed
+176027

No files matched your search

@@ -0,0 +1,27 @@
<?php
namespace HermannTelser\Gutachten\Settings;
use HermannTelser\Gutachten\DB\DbFunction;
class ToggleTheme
{
/**
* @param mixed $id
*
* @return bool
*/
public static function toggle()
{
$theme = $GLOBALS['TSFE']->fe_user->user['tx_nuh_layout'];
$userid = $GLOBALS['TSFE']->fe_user->user['uid'];
$update_array = [];
$update_array['tx_nuh_layout'] = 'light' == $theme ? 'dark' : 'light';
DbFunction::secureUpdate('fe_users', $update_array, ['uid' => $userid]);
echo 1;
exit;
}
}