-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsettings.php
50 lines (37 loc) · 1.23 KB
/
settings.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
47
48
49
50
<?php
/*
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <[email protected]>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
*/
/**
* ownCloud - user_pwauth
*
* @author Clément Véret
* @copyright 2012 Clément Véret [email protected]
*
*/
OC_Util::checkAdminUser();
$params = array('uid_list', 'pwauth_path');
if ($_POST) {
// CSRF check
OCP\JSON::callCheck();
foreach($params as $param){
if(isset($_POST[$param])){
OC_Appconfig::setValue('user_pwauth', $param, $_POST[$param]);
}
}
}
OCP\Util::addStyle('user_pwauth', 'settings');
// fill template
$tmpl = new OC_Template( 'user_pwauth', 'settings');
$tmpl->assign( 'uid_list', OC_Appconfig::getValue('user_pwauth', 'uid_list', OC_USER_BACKEND_PWAUTH_UID_LIST));
$tmpl->assign( 'pwauth_path', OC_Appconfig::getValue('user_pwauth', 'pwauth_path', OC_USER_BACKEND_PWAUTH_PATH));
return $tmpl->fetchPage();
?>