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

47
admin/checktimeout.php Normal file
View File

@@ -0,0 +1,47 @@
<?php
use KupShop\KupShopBundle\Util\Compat\ServiceContainer;
class Checktimeout extends Window
{
public function get_vars()
{
$vars = parent::get_vars();
$pageVars = getVal('body', $vars);
if (getVal('frame')) {
$this->setTemplate('window/checktimeoutFrame.tpl');
} else {
$this->setTemplate('window/checktimeoutWindow.tpl');
}
$session = ServiceContainer::getService('session');
$pageVars['expiry'] = $session->get('_expiry');
$pageVars['time'] = time();
$vars['body'] = $pageVars;
return $vars;
}
public function handle()
{
}
public function hasRights($name = null)
{
switch ($name) {
case Window::RIGHT_SAVE:
case Window::RIGHT_DELETE:
case Window::RIGHT_DUPLICATE:
return false;
default:
return parent::hasRights($name);
}
}
}
$checktimeout = new Checktimeout();
$checktimeout->run();