Added list functions

This commit is contained in:
Antonio de la Rosa 2025-11-28 18:50:32 +01:00
parent e3775e1045
commit 2226e91faf
11 changed files with 116 additions and 9 deletions

View file

@ -1,9 +1,11 @@
<?php
namespace Admin\TplController;
use PhangoApp\WPDO;
use PhaTemplates\Templates;
class TplController extends PhangoApp\PhaRouter\Controller {
class TplController extends \PhangoApp\PhaRouter\Controller {
public $tpl;
public $db;
@ -35,12 +37,12 @@ class TplController extends PhangoApp\PhaRouter\Controller {
if($timestamp_5_min>$timestamp_last_login) {
header('Location: '.PhangoApp\PhaRouter\Url::make_url('admin', 'app', ['logout']));
header('Location: '.\PhangoApp\PhaRouter\Url::make_url('admin', 'app', ['logout']));
}
else {
header('Location: '.PhangoApp\PhaRouter\Url::make_url('admin', 'app', ['check_auth']));
header('Location: '.\PhangoApp\PhaRouter\Url::make_url('admin', 'app', ['check_auth']));
}