15 lines
384 B
PHP
15 lines
384 B
PHP
|
<?php
|
||
|
require_once $GLOBALS['app_path'].'Framework/Controller.php';
|
||
|
|
||
|
abstract class ControllerSecure extends Controller
|
||
|
{
|
||
|
public function executeAction($action)
|
||
|
{
|
||
|
if ($this->request->getSession()->existAttribute("user_id")) {
|
||
|
parent::executeAction($action);
|
||
|
}
|
||
|
else {
|
||
|
$this->redirect("connexion");
|
||
|
}
|
||
|
}
|
||
|
}
|