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

38 lines
690 B
PHP
Raw Normal View History

<?php
/**
* Holds the advanced section controller.
*
* @package Sakura
*/
namespace Sakura\Controllers\Settings;
2016-04-01 21:44:31 +00:00
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()
{
2016-04-01 21:44:31 +00:00
$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');
}
}