-
Notifications
You must be signed in to change notification settings - Fork 0
/
docs.php
46 lines (38 loc) · 1.91 KB
/
docs.php
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
39
40
41
42
43
44
45
46
<?php
/*
RPQ2-Webinterface
Copyright (C) 2012-2013 Innowatt Energiesysteme GmbH
Author: Max Bruckner
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/.
*/
include_once('meta.php');
include_once('profiles.php');
include_once('defaults.php');
include_once('settings.php');
include_once('templates.php');
include_once('file.php');
include_once('page.php');
$title = 'Dokumentationen';
$author = 'Max Bruckner';
$heading = 'Dokumentationen';
//Dateiliste erstellen:
$file_list = '<table>';
foreach ( get_files($settings['ordner_docs']) as $file ) {
$file_list .= get_template('link_docs', array('directory' => $settings['ordner_docs'], 'filename' => $file, 'return_success' => $meta_current, 'return_failure' => $meta_current));
}
$file_list .= '</table>';
$output = get_template('heading', array('heading' => $heading));
$output .= get_template('form_upload', array('directory' => $settings['ordner_docs'], 'extension' => '', 'return_success' => $meta_current, 'return_failure' => $meta_current));
$output .= get_template('container', array('content' => $file_list, 'height' => '50%', 'min-height' => DEFAULT_CONTAINER_MIN_HEIGHT, 'max-height' => DEFAULT_CONTAINER_MAX_HEIGHT, 'border' => DEFAULT_CONTAINER_BORDER, 'id' => DEFAULT_CONTAINER_ID));
$output .= get_references(array('index'));
draw_page($output, $title, $author, HEAD);
?>