You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
836 B
36 lines
836 B
<?php
|
|
|
|
use Fuel\Core\Session;
|
|
use Fuel\Core\View;
|
|
|
|
class Controller_Admin_Libraries extends Controller_Admin
|
|
{
|
|
public function action_index()
|
|
{
|
|
$this->template->js_bottom = ['plex_alert.js', 'server_refresh.js'];
|
|
|
|
$body = View::forge('admin/libraries');
|
|
|
|
$libraries = Model_Library::find_all();
|
|
|
|
$body->set('libraries', $libraries);
|
|
|
|
$this->template->body = $body;
|
|
}
|
|
|
|
public function action_permissions()
|
|
{
|
|
$this->template->js_bottom = ['plex_alert.js'];
|
|
|
|
$body = View::forge('admin/libraries/permissions');
|
|
|
|
$library_id = $this->param('library_id');
|
|
|
|
$permissions = Model_Permission::find_all();
|
|
|
|
$body->set('permissions', $permissions);
|
|
$body->set('user', Session::get('user'));
|
|
|
|
$this->template->body = $body;
|
|
}
|
|
} |