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

19
admin/list.php Normal file
View File

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