Subversion Repositories oidplus

Rev

Rev 2 | Rev 12 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 daniel-mar 1
<?php
2
 
3
/*
4
 * OIDplus 2.0
5
 * Copyright 2019 Daniel Marschall, ViaThinkSoft
6
 *
7
 * Licensed under the Apache License, Version 2.0 (the "License");
8
 * you may not use this file except in compliance with the License.
9
 * You may obtain a copy of the License at
10
 *
11
 *     http://www.apache.org/licenses/LICENSE-2.0
12
 *
13
 * Unless required by applicable law or agreed to in writing, software
14
 * distributed under the License is distributed on an "AS IS" BASIS,
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
 * See the License for the specific language governing permissions and
17
 * limitations under the License.
18
 */
19
 
20
class OIDplusConfig {
21
 
22
        public function __construct() {
23
                // TODO
24
        }
25
 
26
        public function systemTitle() {
4 daniel-mar 27
                // TODO
28
                if (isset($_SERVER['SERVER_NAME']) && (($_SERVER['SERVER_NAME'] == 'oidplus.viathinksoft.com'))) {
29
                        return 'ViaThinkSoft Registration Authority';
30
                } else {
31
                        return 'OIDplus 2.0';
32
                }
2 daniel-mar 33
        }
34
 
35
        public function globalCC() {
36
                // TODO
37
                return 'info@daniel-marschall.de';
38
        }
39
 
40
        public function minRaPasswordLength() {
4 daniel-mar 41
                // TODO
2 daniel-mar 42
                return 6;
43
        }
44
 
45
        /*   hardcoded in setup/ , because during installation, we dont have a settings database
46
        public function minAdminPasswordLength() {
47
                return 6;
48
        }
49
        */
50
 
51
        public function maxInviteTime() {
4 daniel-mar 52
                // TODO
2 daniel-mar 53
                return 0; // infinite
54
        }
55
 
56
        public function maxPasswordResetTime() {
4 daniel-mar 57
                // TODO
2 daniel-mar 58
                return 0; // infinite
59
        }
60
 
61
        public function oidinfoExportProtected() {
4 daniel-mar 62
                // TODO
2 daniel-mar 63
                // true = oidinfo_export.php requires admin login
64
                // false = oidinfo_export.php can be accessed without restrictions
65
                return false;
66
        }
67
 
68
}
69