-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.php
More file actions
42 lines (39 loc) · 1.18 KB
/
settings.php
File metadata and controls
42 lines (39 loc) · 1.18 KB
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
<?php
/**
* ownCloud - Files Etherpad
*
* @author Bastien Ho (EELV - Urbancube)
* @copyleft 2012 [email protected]
* @projeturl http://ecolosites.eelv.fr/files_etherpad
*
* Free Software under creative commons licence
* http://creativecommons.org/licenses/by-nc/3.0/
* Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0)
*
* You are free:
* to Share — to copy, distribute and transmit the work
* to Remix — to adapt the work
*
* Under the following conditions:
* Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that
* suggests that they endorse you or your use of the work).
* Noncommercial — You may not use this work for commercial purposes.
*
*/
$params = array(
'files_etherpad_host',
);
if ($_POST) {
foreach($params as $param){
if(isset($_POST[$param])){
OC_Appconfig::setValue('files_etherpad', $param, $_POST[$param]);
}
}
}
// fill template
$tmpl = new OC_Template('files_etherpad', 'settings');
foreach($params as $param){
$value = OC_Appconfig::getValue('files_etherpad', $param,'');
$tmpl->assign($param, $value);
}
return $tmpl->fetchPage();