16 lines
304 B
PHP
16 lines
304 B
PHP
|
<?php namespace ProcessWire;
|
||
|
|
||
|
if($input->get->logout == true)
|
||
|
{
|
||
|
$session->logout();
|
||
|
$session->redirect($inicio->url);
|
||
|
}
|
||
|
|
||
|
if($user->isLoggedin())
|
||
|
{
|
||
|
$session->redirect($pages->get('/es/gestion/panel/')->httpUrl);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
$session->redirect($pages->get('/es/gestion/acceder/')->httpUrl);
|
||
|
}
|