This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/libraries/Controllers/Settings/AdvancedController.php
2016-04-01 23:44:31 +02:00

37 lines
690 B
PHP

<?php
/**
* Holds the advanced section controller.
*
* @package Sakura
*/
namespace Sakura\Controllers\Settings;
use Sakura\ActiveUser;
use Sakura\DB;
use Sakura\Template;
/**
* Advanced settings.
*
* @package Sakura
* @author Julian van de Groep <me@flash.moe>
*/
class AdvancedController extends Controller
{
public function sessions()
{
$sessions = DB::table('sessions')
->where('user_id', ActiveUser::$user->id)
->get();
Template::vars(compact('sessions'));
return Template::render('settings/advanced/sessions');
}
public function deactivate()
{
return $this->go('advanced.deactivate');
}
}