first commit

This commit is contained in:
2025-08-02 16:30:27 +02:00
commit 23646bfcee
14851 changed files with 1750626 additions and 0 deletions

20
admin/board.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
global $cfg, $type;
use KupShop\AdminBundle\Util\AdminClassLocator;
use KupShop\KupShopBundle\Util\Compat\ServiceContainer;
$type = getVal('type', null, 'index');
$className = $type;
$adminClassLocator = ServiceContainer::getService(AdminClassLocator::class);
$classPath = $adminClassLocator->getClassPath('board/board.'.$className.'.php');
if (file_exists($classPath)) {
$list = $adminClassLocator->createClass($classPath, $className);
$list->run();
} else {
$err = "Neexistující board {$type}";
throw new Exception('Neexistující board '.$type);
}