blob: 7d3290b1fb3e826293bc802f9aadc3e28c58819d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<?php
/**
* accessibility_info_text.php - controller class for administrating additional information text to accessible files
* in file upload/edit dialogs
*
* @author Michaela Brückner <brueckner@data-quest.de>
* @license GPL2 or any later version
* @category Stud.IP
* @package admin
* @since 5.3
*/
class Admin_AccessibilityInfoTextController extends AuthenticatedController
{
public function before_filter(&$action, &$args)
{
parent::before_filter($action, $args);
$GLOBALS['perm']->check('root');
PageLayout::setTitle(_('Infotext zu barrierefreien Dateien'));
Navigation::activateItem('/admin/locations/accessibility_info_text');
}
public function index_action()
{
}
public function edit_action()
{
CSRFProtection::verifyUnsafeRequest();
Config::get()->store(
'ACCESSIBILITY_INFO_TEXT',
Studip\Markup::purifyHtml(Request::i18n('accessbility_info_text'))
);
PageLayout::postSuccess(_('Die Einstellungen wurden gespeichert.'));
$this->relocate('admin/accessibility_info_text/index');
}
}
|