Added list functions
This commit is contained in:
parent
e3775e1045
commit
2226e91faf
11 changed files with 116 additions and 9 deletions
|
|
@ -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']));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue